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,238
mmengine.fileio.handlers.pickle_handler
load_from_path
null
def load_from_path(self, filepath, **kwargs): return super().load_from_path(filepath, mode='rb', **kwargs)
(self, filepath, **kwargs)
[ 0.0009484388865530491, -0.07140374183654785, -0.028243841603398323, 0.03628884628415108, -0.02372068352997303, -0.015244077891111374, 0.010902191512286663, 0.11760210245847702, 0.01737617701292038, -0.015485773794353008, 0.028606384992599487, 0.051170382648706436, -0.04768306016921997, 0.029745806008577347, -0.014976486563682556, 0.02068222500383854, -0.028502799570560455, 0.011653173714876175, -0.05358733609318733, -0.008019110187888145, -0.04315990209579468, 0.001250558183528483, 0.012853018939495087, 0.04730325564742088, 0.021286465227603912, 0.05244791507720947, -0.04426479712128639, -0.009590130299329758, 0.011480534449219704, -0.03314680606126785, 0.033077750355005264, -0.003221886930987239, 0.007004852406680584, 0.09315633773803711, -0.016685618087649345, 0.0017846620175987482, -0.0010919455671682954, 0.032266344875097275, -0.048373620957136154, -0.0003984198556281626, -0.05151566118001938, 0.024083226919174194, 0.037566378712654114, -0.005032444838434458, -0.0258441511541605, 0.0023371088318526745, -0.037255629897117615, 0.0038843913935124874, -0.01995714008808136, 0.0328705832362175, 0.038395050913095474, 0.023582572117447853, -0.019611859694123268, 0.021545423194766045, -0.04668175056576729, 0.055728066712617874, -0.031282298266887665, 0.0770663246512413, -0.041260868310928345, 0.06346232444047928, -0.020406002178788185, -0.0484081469476223, 0.04205501079559326, -0.06398024410009384, -0.018127160146832466, -0.012939339503645897, -0.00332115450873971, -0.012619955465197563, 0.02779497765004635, 0.018351590260863304, 0.009710978716611862, 0.0073889754712581635, 0.03590904176235199, -0.011178415268659592, 0.02422133833169937, 0.02632754109799862, -0.07982856035232544, 0.0027838137466460466, 0.02411775477230549, 0.06360043585300446, -0.016443923115730286, -0.04264198616147041, -0.01735028065741062, 0.01124747097492218, -0.026396596804261208, -0.0534837543964386, 0.06498154997825623, -0.017954520881175995, 0.01947374828159809, 0.03221455216407776, -0.010082153603434563, 0.03254256770014763, -0.05130849406123161, -0.001357379020191729, 0.025257175788283348, -0.06391118466854095, 0.04678533598780632, 0.03780807554721832, 0.0009991517290472984, -0.009676450863480568, -0.08155495673418045, -0.05866293981671333, 0.003517532255500555, -0.055175621062517166, -0.016340339556336403, -0.012887547723948956, 0.052551500499248505, -0.01735028065741062, 0.001751213101670146, -0.020423267036676407, -0.043954044580459595, -0.03849863260984421, 0.0013239301042631269, 0.07899988442659378, -0.020509585738182068, -0.051653772592544556, -0.007423503324389458, -0.015304502099752426, 0.031852010637521744, 0.017186272889375687, -0.05244791507720947, 0.03157578408718109, -0.024998215958476067, 0.03967258334159851, 0.07195619493722916, 0.05579712241888046, 0.013759377412497997, -0.043228957802057266, 0.04243481904268265, -0.02855459228157997, 0.027829505503177643, 0.004257724620401859, -0.004635373596101999, -0.027708658948540688, -0.012930707074701786, -0.01912846975028515, 0.032180022448301315, 0.009253483265638351, 0.02266758121550083, 0.11180141568183899, 0.050756048411130905, -0.002009093528613448, 0.0776878297328949, -0.05141207575798035, 0.032024648040533066, 0.025964997708797455, 0.06377307325601578, -0.028433743864297867, -0.08873676508665085, 0.04433385282754898, 0.052482444792985916, 0.0015300186350941658, -0.03739374130964279, 0.04516252502799034, 0.040535781532526016, -0.053518280386924744, -0.01647845096886158, 0.016987737268209457, -0.025706037878990173, 0.014285928569734097, 0.007846470922231674, 0.0292796790599823, 0.0036038518883287907, -0.03527027368545532, 0.004911596886813641, 0.01687552221119404, -0.04730325564742088, -0.02159721590578556, 0.0037333315704017878, -0.030937019735574722, -0.04775211587548256, -0.029176095500588417, -0.007699726615101099, 0.027708658948540688, 0.040432196110486984, -0.0063833496533334255, 0.007151596248149872, 0.021441839635372162, 0.024808311834931374, 0.05047982186079025, 0.016254018992185593, 0.0014037758810445666, 0.0057791112922132015, 0.03804977238178253, 0.07161091268062592, 0.05914633348584175, 0.03159305080771446, 0.04188236966729164, 0.061839509755373, 0.031454939395189285, 0.026379333809018135, 0.013250090181827545, 0.018696870654821396, 0.0031355670653283596, 0.021873438730835915, -0.07054054737091064, 0.02936599776148796, -0.057143714278936386, -0.08383379876613617, 0.11974284052848816, 0.023945115506649017, -0.023254556581377983, 0.030712587758898735, -0.04050125554203987, -0.03590904176235199, 0.03566734492778778, -0.006974640302360058, 0.011161151342093945, -0.017160378396511078, 0.04457554966211319, -0.03915466368198395, -0.07064413279294968, -0.013448625802993774, 0.02126920036971569, 0.05047982186079025, -0.01456215139478445, -0.09902608394622803, 0.03884391486644745, -0.02575783059000969, 0.011143887415528297, 0.14308370649814606, 0.11042030155658722, -0.10952257364988327, -0.0276396032422781, 0.013828433118760586, 0.013517681509256363, 0.0005297877942211926, -0.035460177809000015, -0.050583407282829285, 0.08314324170351028, -0.023202763870358467, -0.017937256023287773, 0.0347868837416172, 0.007104120217263699, 0.02836468815803528, 0.06132159009575844, 0.02796761691570282, 0.023444458842277527, -0.02159721590578556, 0.021079296246170998, 0.030142877250909805, -0.010755447670817375, 0.003187358845025301, -0.021873438730835915, -0.042987264692783356, -0.02789856120944023, -0.00003344892684253864, -0.006732944864779711, -0.025498870760202408, -0.040604837238788605, 0.07209430634975433, 0.02976306900382042, -0.013327778317034245, 0.04595666378736496, -0.01733301766216755, -0.022046077996492386, 0.02372068352997303, -0.08949637413024902, 0.022149663418531418, -0.01816168799996376, -0.006499881390482187, -0.010962615720927715, 0.0322490818798542, -0.004095874726772308, -0.009486546739935875, -0.01962912455201149, -0.020509585738182068, -0.022857485339045525, 0.022512204945087433, -0.027432434260845184, -0.04474818706512451, 0.06978093087673187, -0.02052685059607029, 0.03238719329237938, -0.006672521121799946, -0.03663412481546402, -0.000653333030641079, -0.03625432029366493, -0.010436064563691616, 0.033181335777044296, -0.027035363018512726, 0.005874062888324261, 0.055072035640478134, 0.005843850784003735, 0.0025939103215932846, -0.021977022290229797, -0.02069948986172676, -0.032577093690633774, -0.04540421813726425, -0.014372248202562332, 0.026120373979210854, 0.01226604450494051, -0.04022502899169922, -0.01483837515115738, 0.018506966531276703, 0.0005546047468669713, -0.06111442297697067, -0.00722065195441246, 0.03387189283967018, -0.024583881720900536, -0.036185264587402344, -0.04909870773553848, 0.08804620057344437, 0.025740565732121468, 0.02510179951786995, -0.04115728288888931, -0.031765688210725784, -0.051170382648706436, -0.04202048107981682, 0.059664249420166016, 0.06311704218387604, 0.005502887535840273, -0.003003929276019335, 0.026189429685473442, 0.03171389549970627, 0.03649601340293884, 0.016797835007309914, 0.037739019840955734, 0.049513041973114014, -0.02617216482758522, -0.05372544750571251, -0.005166240502148867, -0.038878440856933594, -0.02133825607597828, 0.0415370911359787, -0.0014210398076102138, 0.038567688316106796, 0.013396834023296833, -0.03159305080771446, 0.04426479712128639, 0.03413085266947746, 0.05607334524393082, 0.039707113057374954, -0.010807239450514317, -0.011394214816391468, -0.012291940860450268, -0.014156448654830456, 0.007112752180546522, 0.010453328490257263, -0.004626741632819176, 0.06190856546163559, -0.017238065600395203, -0.014777950942516327, -0.010142577812075615, -0.018852245062589645, -0.012214252725243568, 0.012360996566712856, -0.026241222396492958, 0.04001786187291145, -0.01914573274552822, -0.030298251658678055, -0.06139064580202103, -0.016901418566703796, 0.01247321255505085, -0.06729492545127869, -0.029383262619376183, -0.008079534396529198, 0.059249915182590485, -0.00533456401899457, -0.04139897972345352, -0.0007401923649013042, -0.010729552246630192, -0.051826413720846176, 0.01533039752393961, 0.043228957802057266, 0.035132162272930145, -0.01239552441984415, 0.006331557873636484, -0.022356830537319183, 0.026362068951129913, -0.020544113591313362, -0.005347512196749449, -0.04547327384352684, 0.036185264587402344, 0.07047148793935776, -0.04267651215195656, -0.047061558812856674, -0.03205917775630951, -0.015356293879449368, 0.04402310028672218, 0.017712824046611786, 0.03444160148501396, 0.014493095688521862, 0.0010142577812075615, -0.011402846314013004, 0.010073521174490452, 0.014743423089385033, 0.023116445168852806, 0.0032326767686754465, -0.04443743824958801, 0.02297833189368248, -0.005256876349449158, 0.01328461803495884, 0.005248244386166334, -0.020008930936455727, -0.011471902020275593, 0.016228124499320984, 0.08279795944690704, 0.052793193608522415, 0.0044282060116529465, -0.04578402638435364, -0.031144186854362488, -0.06463627517223358, 0.0573854073882103, -0.011023038998246193, 0.04001786187291145, 0.0036966458428651094, 0.056971073150634766, 0.016746042296290398, -0.04132992401719093, 0.020923921838402748, 0.015399453230202198, 0.009132635779678822, -0.02706989087164402, 0.009357066825032234, 0.05331111326813698, 0.007199071813374758, -0.055831652134656906, 0.0026543340645730495, -0.00908084399998188, -0.007462347391992807, 0.06508513540029526, -0.008127009496092796, -0.051239438354969025, 0.022218719124794006, 0.022115135565400124, 0.000801155692897737, -0.01995714008808136, 0.007622038945555687, 0.014078760519623756, -0.04029408469796181, 0.02019883506000042, -0.03804977238178253, -0.02289201319217682, 0.04792475700378418, 0.004618109669536352, -0.04719967022538185, -0.024583881720900536, 0.017445232719182968, 0.009158531203866005, 0.003224044805392623, -0.025895942002534866, 0.010142577812075615, -0.016245387494564056, -0.00010924850357696414, -0.04219312220811844, -0.05130849406123161, 0.04205501079559326, 0.03254256770014763, -0.04340159893035889, -0.04923681914806366, -0.010315217077732086, 0.06757114827632904, -0.04889154061675072, -0.05873199552297592, 0.005727319046854973, 0.0019950666464865208, -0.011040303856134415, 0.03199012205004692, 0.005684159230440855, -0.01423413585871458, 0.001714527141302824, 0.03311227634549141, -0.10165020823478699, 0.02052685059607029, 0.01022889744490385, -0.03451066091656685, 0.025740565732121468, -0.023340875282883644, -0.009598762728273869, 0.034631505608558655, -0.039051081985235214, -0.027190739288926125, -0.05579712241888046, -0.024756520986557007, 0.055002979934215546, 0.031938329339027405, 0.027777714654803276, -0.0300220288336277, -0.020923921838402748, 0.016400763764977455, -0.05907727777957916, -0.04284915328025818, 0.013629897497594357, 0.006966008339077234, -0.015848316252231598, 0.013595369644463062, 0.03829146549105644, 0.03729015588760376, -0.006944428663700819, 0.022374093532562256, 0.07547803968191147, -0.05690201744437218, 0.023841530084609985, 0.0498928502202034, 0.012032981030642986, -0.011014407500624657, -0.011920765042304993, 0.016780570149421692, 0.024393977597355843, -0.025792358443140984, -0.061218008399009705, -0.02201155014336109, 0.05534826219081879, 0.004626741632819176, 0.08300513029098511, 0.01583968475461006, 0.016383498907089233, -0.006439457647502422, -0.02978033386170864, -0.03680676594376564, 0.054174311459064484, -0.037013933062553406, 0.03126503527164459, -0.0017986890161409974, 0.045438747853040695, -0.033077750355005264, 0.04492082819342613, -0.023858794942498207, 0.015054174698889256, 0.05403620004653931, -0.009935409761965275, 0.0027643919456750154, -0.048857010900974274, -0.011722229421138763, -0.013716217130422592, -0.015934636816382408, -0.013137875124812126, 0.024100489914417267, 0.048857010900974274, 0.04284915328025818, -0.033181335777044296, -0.007121384143829346, 0.004410942085087299, 0.004747589584439993, 0.0466126948595047, -0.02444577030837536, -0.007980266585946083, -0.015813788399100304, -0.02969401329755783, 0.0012958761071786284, -0.013698953203856945, -0.0013854329008609056, 0.018541494384407997, 0.0018774558557197452, -0.04505893960595131, -0.023271819576621056, -0.0011998453410342336, 0.051170382648706436, -0.01599506102502346, 0.013120611198246479, -0.019594596698880196, -0.005956066772341728, 0.018196215853095055, 0.01905941404402256, -0.04719967022538185, -0.0373246856033802, -0.05013454332947731, -0.020975712686777115, -0.042987264692783356, 0.07054054737091064, -0.0006382270948961377, -0.05586617812514305, 0.025550663471221924, -0.04654363915324211, 0.052551500499248505, -0.03326765447854996, 0.0600440576672554, -0.04647458344697952, -0.015157758258283138, 0.006987588480114937, 0.021631743758916855, -0.0238933227956295, 0.016685618087649345, 0.026621028780937195, 0.02266758121550083, 0.036357901990413666, 0.026034053415060043, 0.0005173793178983033, -0.018178950995206833, 0.021821647882461548, -0.026534708216786385, -0.002514064311981201, 0.006327242124825716, -0.015390821732580662, -0.024652937427163124, 0.003148515010252595, 0.061148952692747116, 0.00574458297342062, -0.005761847365647554, 0.016159068793058395, -0.022201454266905785, -0.005140344612300396, -0.03261162340641022, -0.015356293879449368, 0.009616026654839516, 0.009754138067364693, -0.025533398613333702, 0.019421957433223724, -0.030729850754141808, -0.023841530084609985, -0.008325545117259026, -0.06087272986769676, 0.03801524266600609, -0.05186093971133232, 0.05493392422795296, -0.01136831846088171, 0.05358733609318733, 0.002826973795890808, 0.03231813758611679, -0.01897309347987175, -0.017169009894132614, 0.03770449012517929, -0.015252710320055485, 0.040190503001213074, 0.011463270522654057, -0.019836291670799255, -0.01665109023451805, -0.01706542633473873, 0.009089475497603416, -0.02380700223147869, -0.015986427664756775, 0.03231813758611679, 0.05617693066596985, -0.030522683635354042, 0.04170973226428032, -0.009926778264343739, 0.019749971106648445, -0.01634897105395794, 0.01767829619348049, 0.05037624016404152, -0.007142964284867048, 0.03033277951180935, 0.033181335777044296, 0.01857602223753929, -0.047648534178733826, 0.0256887748837471, 0.02706989087164402, 0.01980176381766796, 0.0019788816571235657, 0.010418800637125969, -0.08970354497432709, -0.045680440962314606, -0.020475057885050774, -0.04295273497700691, 0.00034878597944043577, -0.01722080074250698, -0.0019454326247796416, 0.028761759400367737, -0.005364776123315096, 0.030194668099284172, 0.005619419272989035, -0.03359567001461983, -0.0025636982172727585, 0.003463582368567586, 0.02902071923017502, 0.07264675199985504, -0.012248780578374863, 0.042158592492341995, 0.006491249427199364, 0.0012786121806129813, 0.010306584648787975, -0.04164067655801773, 0.02634480595588684, 0.02216692641377449, -0.0018547968938946724, -0.023841530084609985, -0.020630434155464172, 0.02256399765610695, -0.0030859331600368023, -0.06083820015192032, 0.043056320399045944, -0.05800691246986389, -0.014225504361093044, -0.019525540992617607, -0.021614478901028633, -0.023737946525216103, -0.0902559906244278, 0.05365639179944992, 0.03836052119731903, -0.025947734713554382, 0.034476131200790405, -0.013396834023296833, 0.021821647882461548, -0.043954044580459595, 0.04015597328543663, 0.00249464251101017, 0.032024648040533066, 0.043954044580459595, -0.03516668826341629, -0.013457258231937885, -0.0065603055991232395, -0.037255629897117615, -0.030194668099284172, -0.03199012205004692, 0.004225354641675949, 0.045438747853040695, -0.06757114827632904, 0.01930110901594162, 0.017030898481607437, -0.007458031177520752, -0.04557685926556587, -0.007345815654844046, 0.0034182644449174404, -0.04378140717744827, -0.04978926479816437, -0.06653530895709991, 0.022512204945087433, -0.0247910488396883, 0.01619359664618969, 0.006435141433030367, -0.02446303330361843, 0.027950353920459747, -0.03559828922152519, 0.045024409890174866, 0.015425349585711956, -0.05047982186079025, -0.012360996566712856, -0.005610787309706211, -0.04654363915324211, -0.03804977238178253, -0.007578879129141569, 0.009011788293719292, 0.05096321552991867, 0.00566257955506444, -0.013068818487226963, -0.041260868310928345, -0.00008814061584416777, -0.007272443734109402, 0.030557211488485336, 0.046819861978292465, -0.02960769459605217, -0.033992741256952286, -0.04112275689840317, -0.04471366107463837, -0.05224074795842171, -0.0012386892922222614, -0.0011469743913039565, 0.056798432022333145, 0.004760537296533585, -0.040363140404224396, 0.017600608989596367, -0.0636349618434906, 0.062115732580423355, 0.040846534073352814, -0.02864091284573078, 0.08438624441623688, 0.01800631172955036, -0.04139897972345352, 0.06774378567934036, -0.03494225814938545, 0.012447316199541092, -0.0050453925505280495, 0.08873676508665085, -0.007950054481625557, -0.03425170108675957, -0.025636982172727585, -0.043470654636621475, 0.013949280604720116, -0.05234432965517044, -0.04647458344697952, -0.046405527740716934, -0.03884391486644745, -0.009288011118769646, 0.038982026278972626, 0.04844267666339874, -0.004980653058737516, 0.03276699781417847 ]
730,239
mmengine.utils.progressbar
ProgressBar
A progress bar which can print the progress. Args: task_num (int): Number of total steps. Defaults to 0. bar_width (int): Width of the progress bar. Defaults to 50. start (bool): Whether to start the progress bar in the constructor. Defaults to True. file (callable): Progress bar output mode. Defaults to "sys.stdout". Examples: >>> import mmengine >>> import time >>> bar = mmengine.ProgressBar(10) >>> for i in range(10): >>> bar.update() >>> time.sleep(1)
class ProgressBar: """A progress bar which can print the progress. Args: task_num (int): Number of total steps. Defaults to 0. bar_width (int): Width of the progress bar. Defaults to 50. start (bool): Whether to start the progress bar in the constructor. Defaults to True. file (callable): Progress bar output mode. Defaults to "sys.stdout". Examples: >>> import mmengine >>> import time >>> bar = mmengine.ProgressBar(10) >>> for i in range(10): >>> bar.update() >>> time.sleep(1) """ def __init__(self, task_num: int = 0, bar_width: int = 50, start: bool = True, file=sys.stdout): self.task_num = task_num self.bar_width = bar_width self.completed = 0 self.file = file if start: self.start() @property def terminal_width(self): width, _ = get_terminal_size() return width def start(self): if self.task_num > 0: self.file.write(f'[{" " * self.bar_width}] 0/{self.task_num}, ' 'elapsed: 0s, ETA:') else: self.file.write('completed: 0, elapsed: 0s') self.file.flush() self.timer = Timer() def update(self, num_tasks: int = 1): """update progressbar. Args: num_tasks (int): Update step size. """ assert num_tasks > 0 self.completed += num_tasks elapsed = self.timer.since_start() if elapsed > 0: fps = self.completed / elapsed else: fps = float('inf') if self.task_num > 0: percentage = self.completed / float(self.task_num) eta = int(elapsed * (1 - percentage) / percentage + 0.5) msg = f'\r[{{}}] {self.completed}/{self.task_num}, ' \ f'{fps:.1f} task/s, elapsed: {int(elapsed + 0.5)}s, ' \ f'ETA: {eta:5}s' bar_width = min(self.bar_width, int(self.terminal_width - len(msg)) + 2, int(self.terminal_width * 0.6)) bar_width = max(2, bar_width) mark_width = int(bar_width * percentage) bar_chars = '>' * mark_width + ' ' * (bar_width - mark_width) self.file.write(msg.format(bar_chars)) else: self.file.write( f'completed: {self.completed}, elapsed: {int(elapsed + 0.5)}s,' f' {fps:.1f} tasks/s') self.file.flush()
(task_num: int = 0, bar_width: int = 50, start: bool = True, file=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)
[ 0.046378906816244125, -0.0002092522190650925, -0.12516717612743378, 0.020134778693318367, 0.0740944966673851, 0.018020719289779663, -0.04343598708510399, 0.027343066409230232, -0.06124250963330269, -0.03300539031624794, 0.05129618942737579, -0.009750746190547943, 0.036767855286598206, 0.012675038538873196, -0.020339665934443474, 0.029336055740714073, 0.11078784614801407, 0.0016053341096267104, -0.01989264041185379, 0.01721048541367054, 0.050588399171829224, 0.044330038130283356, 0.028591012582182884, 0.010858996771275997, -0.0467141754925251, 0.006216449663043022, 0.00904761254787445, -0.04719845578074455, -0.039561767131090164, -0.03386218845844269, 0.008530738763511181, -0.02831162139773369, -0.022835558280348778, -0.008018521592020988, -0.018579501658678055, -0.014193062670528889, -0.002733375411480665, 0.00874028168618679, -0.0687301903963089, 0.0007619225652888417, 0.043026216328144073, -0.022854184731841087, 0.042914457619190216, -0.010579606518149376, 0.0018544577760621905, -0.0056669809855520725, 0.021848376840353012, 0.03624632582068443, 0.026691153645515442, -0.06399916857481003, 0.030826140195131302, -0.038928478956222534, 0.006491184234619141, 0.005145451053977013, -0.01855156198143959, 0.09409888833761215, 0.029764454811811447, -0.020414169877767563, 0.0041955215856432915, -0.027287188917398453, -0.004656516946852207, 0.013820542022585869, 0.04961984232068062, 0.011939308606088161, -0.015422383323311806, 0.004118688870221376, 0.01064479723572731, -0.004824151284992695, -0.01100800558924675, 0.03509151190519333, 0.041685137897729874, 0.01241427380591631, 0.008586617186665535, -0.03559441491961479, -0.001679838402196765, 0.011929996311664581, -0.0696987435221672, -0.0077763828448951244, 0.032074086368083954, 0.023599227890372276, 0.009974258951842785, 0.031384922564029694, 0.07014577090740204, -0.014127871952950954, 0.031962331384420395, -0.040902841836214066, -0.013159316033124924, -0.00632820650935173, -0.06344038248062134, -0.00533171184360981, -0.05099816992878914, 0.008088369853794575, 0.031384922564029694, 0.02000439539551735, -0.015971852466464043, -0.07137508690357208, -0.0288145262748003, -0.03840694949030876, -0.07316318899393082, -0.007906765677034855, -0.02128959447145462, 0.03149668127298355, 0.012162821367383003, -0.014202375896275043, 0.0025005494244396687, -0.014947419054806232, -0.0442182831466198, 0.010924188420176506, 0.01241427380591631, 0.01034678053110838, -0.023655105382204056, -0.023729609325528145, -0.046974942088127136, -0.03414158150553703, -0.0038881914224475622, 0.01166923064738512, -0.07126333564519882, 0.010160519741475582, 0.05796432122588158, -0.0310124009847641, 0.02605786733329296, 0.012311830185353756, 0.022351279854774475, -0.03296813741326332, -0.011846178211271763, 0.0033200965262949467, -0.013680846430361271, 0.051258936524391174, 0.02739894390106201, 0.020190656185150146, -0.010467849671840668, -0.00360880047082901, 0.03570616990327835, 0.014146498404443264, 0.0729396790266037, -0.015897348523139954, -0.03859321027994156, 0.054015595465898514, -0.008954482153058052, 0.01375535037368536, 0.03501700609922409, -0.05788981541991234, -0.03874221816658974, -0.04559661075472832, -0.007259509526193142, 0.029708577319979668, 0.02892628125846386, -0.00928509421646595, -0.0087589081376791, 0.03574342280626297, -0.006183854304254055, -0.014519019052386284, 0.005154764279723167, 0.022500289604067802, 0.08471135050058365, 0.010588918812572956, 0.006365458481013775, -0.02000439539551735, -0.02054455131292343, 0.020376916974782944, -0.027827344834804535, -0.016763459891080856, 0.0377177856862545, -0.03652571886777878, 0.003387616015970707, 0.09096971154212952, -0.05546842887997627, 0.06671857088804245, -0.017033537849783897, 0.01815110258758068, 0.013513212092220783, -0.04041856527328491, -0.004009260796010494, 0.017312929034233093, 0.018467744812369347, 0.022332655265927315, -0.014202375896275043, -0.012246639467775822, 0.010505101643502712, -0.01236770860850811, -0.027790091931819916, -0.03173881769180298, -0.025964736938476562, -0.05166871100664139, -0.0016297808615490794, 0.047682732343673706, 0.05889562517404556, 0.03764327988028526, -0.0038043742533773184, -0.03319165110588074, -0.018383927643299103, -0.016782086342573166, 0.023487471044063568, 0.043696753680706024, 0.02670978009700775, -0.007417831104248762, 0.011529535986483097, -0.045075081288814545, 0.1493065506219864, -0.03654434531927109, 0.0064306496642529964, 0.08091163635253906, 0.04459080472588539, -0.010356093756854534, 0.029876211658120155, -0.022537540644407272, -0.0008666942012496293, 0.010477162897586823, -0.05382933467626572, -0.0002879764651879668, -0.04604363813996315, -0.07148684561252594, -0.004609951749444008, 0.01918484829366207, 0.02412075735628605, -0.03088201954960823, 0.08240172266960144, 0.025778476148843765, -0.00481018191203475, 0.0017264035996049643, 0.07875101268291473, 0.0310124009847641, -0.036693353205919266, -0.013243134133517742, 0.004921938292682171, -0.009159368462860584, 0.027827344834804535, -0.003005781676620245, -0.01659582555294037, -0.022891435772180557, 0.005289803259074688, -0.01748056337237358, -0.04388301447033882, 0.06504222750663757, -0.030043845996260643, -0.02477267012000084, -0.015897348523139954, 0.01722911186516285, -0.0654892548918724, -0.03686098754405975, -0.029224298894405365, 0.00004700171484728344, 0.025908859446644783, 0.025778476148843765, -0.03509151190519333, -0.04589463025331497, 0.030826140195131302, 0.014993984252214432, -0.07193387299776077, 0.009522576816380024, -0.027287188917398453, -0.006919583771377802, 0.003368989797309041, -0.040269557386636734, -0.0038812067359685898, 0.050476640462875366, -0.06131701171398163, -0.022276775911450386, 0.024269765242934227, 0.057293783873319626, 0.009732119739055634, -0.03568754345178604, 0.01606498286128044, 0.04101460054516792, 0.06973599642515182, 0.009787998162209988, -0.01983676105737686, -0.03967352211475372, -0.00930372066795826, 0.02272380143404007, 0.03099377639591694, 0.0467141754925251, -0.03211133927106857, -0.008116308599710464, -0.03026735968887806, 0.012945116497576237, 0.019650500267744064, 0.00719431834295392, -0.014155810698866844, -0.033303406089544296, 0.011538848280906677, -0.037550151348114014, -0.005741485394537449, -0.017201172187924385, -0.01477047149091959, -0.026318632066249847, -0.0019173207692801952, 0.010132580064237118, 0.02954094298183918, 0.0029126512818038464, -0.002371331211179495, 0.0026239471044391394, 0.02484717406332493, 0.01594391278922558, 0.08195469528436661, 0.017182547599077225, -0.07115157693624496, -0.028404751792550087, -0.04798074811697006, -0.020823942497372627, 0.01438863668590784, -0.046267151832580566, -0.05405284836888313, -0.02343159168958664, -0.036097317934036255, 0.036209072917699814, 0.015217497013509274, -0.025256946682929993, 0.05710752308368683, -0.07126333564519882, 0.027678335085511208, 0.03557578846812248, 0.05699576437473297, 0.03781091794371605, -0.0017939230892807245, 0.04589463025331497, -0.021475855261087418, 0.005322398617863655, 0.003923115320503712, 0.036749228835105896, -0.04727295786142349, 0.009769372642040253, 0.03933825343847275, 0.021643489599227905, 0.026262754574418068, -0.03244660794734955, 0.047831740230321884, 0.044292788952589035, 0.015105740167200565, -0.027175432071089745, -0.033284783363342285, 0.014146498404443264, -0.018765762448310852, -0.026542145758867264, -0.031105531379580498, -0.042951710522174835, -0.009033642709255219, 0.002467953832820058, 0.0467141754925251, -0.036823734641075134, 0.07577084004878998, 0.01103594433516264, 0.0040767802856862545, 0.014574897475540638, -0.012805420905351639, -0.04541034996509552, 0.022407159209251404, 0.004439988639205694, 0.054648879915475845, -0.015953226014971733, 0.02410213090479374, 0.02680291049182415, -0.034067075699567795, 0.01989264041185379, -0.01446314062923193, -0.015105740167200565, 0.03345241770148277, -0.07219463586807251, -0.008670434355735779, -0.027939099818468094, -0.10393345355987549, 0.05856035649776459, -0.029112542048096657, 0.04585737735033035, -0.04406927525997162, -0.02346884459257126, -0.012702977284789085, -0.030714385211467743, 0.03660022094845772, 0.06135426461696625, 0.014258254319429398, 0.025089312344789505, 0.02333846129477024, -0.008870664052665234, -0.020078901201486588, 0.04123811423778534, -0.02328258380293846, -0.011194266378879547, 0.02682153694331646, -0.07934704422950745, 0.09640852361917496, -0.0327446274459362, -0.042318426072597504, 0.01170648355036974, -0.02399037405848503, -0.02473541721701622, -0.024884425103664398, -0.03289363533258438, 0.03233485296368599, 0.023897243663668633, -0.0509236678481102, 0.019110344350337982, -0.01925935409963131, -0.003557578893378377, -0.04172239080071449, -0.02190425433218479, 0.015170931816101074, 0.027994979172945023, -0.02745482325553894, 0.009136086329817772, 0.04965709522366524, 0.006547062657773495, -0.010207084938883781, 0.03836969658732414, -0.002914979588240385, -0.034700363874435425, 0.06057196855545044, -0.02410213090479374, -0.002219994319602847, 0.05479788780212402, 0.007389891892671585, -0.019743630662560463, 0.019240727648139, 0.042132165282964706, -0.019743630662560463, -0.034067075699567795, -0.07316318899393082, -0.12822183966636658, 0.02279830537736416, -0.014416576363146305, -0.05278627574443817, 0.06794789433479309, 0.06101899594068527, 0.04392026737332344, 0.028404751792550087, -0.03436509519815445, 0.02678428404033184, 0.006961492355912924, 0.03151530399918556, -0.025741225108504295, -0.010626171715557575, 0.003639067756012082, -0.05863485857844353, 0.010058076120913029, -0.036823734641075134, -0.04146162420511246, 0.016316434368491173, -0.026653902605175972, 0.07018302381038666, 0.017452625557780266, 0.014546958729624748, 0.009555172175168991, 0.07800596952438354, 0.03032323718070984, -0.021643489599227905, 0.010393345728516579, -0.014947419054806232, -0.022854184731841087, -0.03088201954960823, -0.012544656172394753, -0.04395751655101776, 0.07629237323999405, 0.0015971852699294686, -0.023580601438879967, 0.03246523439884186, -0.07472778111696243, -0.02050730027258396, -0.008800816722214222, -0.03430921584367752, 0.008926542475819588, 0.026989171281456947, 0.08925611525774002, -0.03456997871398926, 0.017014911398291588, -0.020917072892189026, -0.04105185344815254, 0.09253430366516113, 0.028628265485167503, -0.02898216061294079, 0.015366504900157452, 0.033396538347005844, 0.025182442739605904, -0.009359599091112614, 0.001188575872220099, -0.015692461282014847, 0.022295402362942696, -0.014109245501458645, -0.022947315126657486, -0.03911473974585533, -0.016726208850741386, 0.000861455628182739, -0.004335217177867889, -0.0035762048792093992, 0.021811123937368393, -0.013820542022585869, 0.05062565207481384, 0.06526573747396469, -0.033303406089544296, 0.06120525673031807, -0.050588399171829224, -0.04406927525997162, -0.04216941446065903, -0.022425785660743713, 0.03212996572256088, -0.036134570837020874, -0.012693664990365505, -0.017452625557780266, 0.028367500752210617, -0.02417663484811783, -0.04548485577106476, 0.030397741124033928, -0.019408361986279488, 0.051184430718421936, -0.010439910925924778, 0.028516508638858795, 0.007748444098979235, -0.035519909113645554, 0.007902109064161777, -0.03652571886777878, -0.018775075674057007, -0.0032642183359712362, -0.027678335085511208, -0.03624632582068443, -0.023692356422543526, 0.006072097923606634, -0.05900738015770912, -0.07606885582208633, 0.011315335519611835, 0.07845299690961838, -0.048539530485868454, -0.01916622370481491, 0.057293783873319626, 0.015273375436663628, -0.06358939409255981, -0.033973947167396545, 0.06593627482652664, -0.005769424140453339, -0.007469052914530039, 0.0033852877095341682, 0.029987968504428864, 0.010756554082036018, -0.0087123429402709, 0.03570616990327835, -0.020991576835513115, 0.034737616777420044, 0.03458860516548157, 0.010430597700178623, -0.06090724095702171, 0.002745016710832715, -0.011408465914428234, 0.03699136897921562, -0.0038951763417571783, 0.05166871100664139, -0.03730801120400429, 0.010160519741475582, 0.04146162420511246, 0.04101460054516792, -0.01137121394276619, 0.03635808452963829, -0.005252550821751356, 0.008153560571372509, -0.01659582555294037, -0.0059510283172130585, -0.018383927643299103, -0.04544760286808014, 0.08158217370510101, -0.0064865280874073505, -0.0027915819082409143, 0.076962910592556, -0.016335060819983482, 0.021848376840353012, 0.023915870115160942, -0.038779471069574356, -0.05375482887029648, -0.005778737366199493, 0.023636478930711746, 0.023059071972966194, 0.01034678053110838, 0.0026937949005514383, -0.018346676602959633, 0.014332758262753487, 0.05643698200583458, -0.0015087114879861474, -0.08433882892131805, 0.006053471937775612, -0.00483346451073885, 0.028572386130690575, 0.018830953165888786, -0.004083765204995871, -0.018942710012197495, -0.04392026737332344, 0.028423378244042397, -0.03017422929406166, -0.07286517322063446, -0.008884633891284466, 0.004554073326289654, -0.03384356573224068, -0.0373266376554966, 0.0317760705947876, -0.019743630662560463, -0.03911473974585533, 0.0096203638240695, -0.0026681839954108, -0.055244915187358856, 0.004160597920417786, -0.0035156700760126114, -0.0024074192624539137, -0.00758080929517746, -0.014109245501458645, 0.04406927525997162, -0.029205672442913055, -0.0015517842257395387, -0.05975242331624031, 0.04347323998808861, 0.02622550167143345, 0.015338566154241562, 0.047757234424352646, -0.013317638076841831, -0.028628265485167503, 0.006910271011292934, -0.03570616990327835, -0.0168472770601511, 0.012255951762199402, -0.005615759175270796, -0.027920475229620934, -0.015524826943874359, -0.0061186631210148335, -0.041610632091760635, 0.016344374045729637, 0.07431800663471222, 0.0221091415733099, 0.058076076209545135, 0.0009196620667353272, 0.006467901635915041, 0.0015028908383101225, 0.016223303973674774, 0.005215298850089312, -0.042355675250291824, -0.02065630815923214, -0.07882551848888397, 0.01102663204073906, 0.02197875827550888, 0.0220160111784935, -0.04608089104294777, -0.027175432071089745, -0.005322398617863655, -0.04541034996509552, 0.023897243663668633, 0.002010451164096594, -0.024903051555156708, 0.027790091931819916, -0.02393449656665325, -0.04604363813996315, -0.0038951763417571783, 0.03721488267183304, -0.054015595465898514, -0.046453412622213364, 0.035519909113645554, 0.05569193884730339, 0.02751070074737072, -0.020768065005540848, 0.019725004211068153, 0.0037973893340677023, 0.037382517009973526, -0.06314236670732498, -0.0063188932836055756, 0.0012956757564097643, -0.07539831846952438, -0.006481871474534273, 0.04321247711777687, -0.031273167580366135, -0.031068280339241028, -0.013448020443320274, 0.014668027870357037, 0.029336055740714073, -0.03855595737695694, -0.016977660357952118, 0.04313797131180763, -0.010970753617584705, -0.05129618942737579, 0.05222749337553978, 0.010505101643502712, -0.01764819771051407, -0.05002961680293083, -0.03222309425473213, 0.04324972629547119, 0.0056390417739748955, 0.00842363853007555, 0.015059174969792366, -0.006104693282395601, 0.027734214439988136, -0.006933553609997034, -0.020749438554048538, -0.03989703580737114, 0.022351279854774475, 0.07252990454435349, 0.010682049207389355, -0.006416680291295052, -0.026411762461066246, -0.04865128546953201, -0.01991126500070095, 0.047161202877759933, -0.008493486791849136, -0.013103438541293144, -0.02395312301814556, -0.0009865994798019528, -0.009410819970071316, -0.024195261299610138, 0.03697274252772331, -0.09558897465467453, 0.035426780581474304, -0.06358939409255981, 0.041685137897729874, 0.03663747385144234, -0.024213887751102448, 0.036134570837020874, -0.028423378244042397, -0.029373308643698692, -0.04816700890660286, -0.01686590351164341, 0.04105185344815254, 0.041647884994745255, 0.030788889154791832, 0.044292788952589035, 0.019464239478111267, -0.027901848778128624, -0.03907749056816101, -0.023245330899953842, -0.007287448737770319, -0.005629728548228741, -0.027343066409230232, 0.06370115280151367, 0.0386677160859108, 0.013950924389064312, 0.0050895726308226585, -0.0024237169418483973, -0.06995950639247894, -0.019538745284080505, -0.015617957338690758, -0.00855867750942707, 0.0038253285456448793, 0.01648406870663166, -0.06034845858812332, -0.01788102462887764, -0.023189453408122063, -0.015915974974632263, 0.031347669661045074, -0.021680742502212524, 0.062248315662145615, 0.014248941093683243, 0.0024912364315241575, -0.0606837272644043, -0.019743630662560463, -0.01882163994014263, 0.017741328105330467, 0.007501648738980293, 0.015701774507761, 0.04831601679325104, 0.0029545598663389683, 0.038891229778528214, 0.06981050223112106, -0.04336148500442505, -0.03851870819926262, 0.10438048094511032, 0.08523288369178772, -0.016204677522182465, 0.040157802402973175, -0.011119762435555458, 0.01575765199959278, -0.03529639542102814, 0.011482970789074898, -0.03568754345178604, 0.03654434531927109, 0.044367291033267975, 0.06545200198888779, 0.08009208738803864, -0.052674517035484314, 0.049098312854766846 ]
730,240
mmengine.utils.progressbar
__init__
null
def __init__(self, task_num: int = 0, bar_width: int = 50, start: bool = True, file=sys.stdout): self.task_num = task_num self.bar_width = bar_width self.completed = 0 self.file = file if start: self.start()
(self, task_num: int = 0, bar_width: int = 50, start: bool = True, file=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)
[ 0.023266052827239037, 0.06197309494018555, -0.06768939644098282, 0.016896208748221397, 0.036667995154857635, 0.032659612596035004, -0.023841168731451035, 0.015493273735046387, -0.06890933960676193, -0.021035300567746162, 0.045834995806217194, 0.033513572067022324, 0.026403049007058144, -0.025165677070617676, 0.0004991418099962175, 0.021348999813199043, 0.05029650032520294, 0.015240571461617947, -0.01445632241666317, 0.04803089052438736, 0.027849551290273666, 0.0540260411798954, 0.022673508152365685, 0.039700426161289215, -0.010988199152052402, 0.05385176092386246, -0.027257008478045464, -0.05848754569888115, -0.03642400726675987, -0.04534701630473137, -0.006661759223788977, -0.006430841516703367, -0.03656342998147011, 0.02805868536233902, 0.03532605990767479, 0.004927697591483593, -0.00907114613801241, 0.009489412419497967, -0.048867423087358475, 0.032119352370500565, 0.06075315177440643, -0.044754475355148315, -0.013889920897781849, -0.00843503326177597, -0.00831739604473114, 0.029487760737538338, 0.0765426978468895, -0.0003839552227873355, 0.026803886517882347, -0.0516907200217247, 0.010813921689987183, -0.026455331593751907, -0.012478272430598736, 0.0005005033453926444, -0.05646592378616333, 0.10860976576805115, 0.039421580731868744, 0.013907347805798054, 0.004141270183026791, -0.003505157073959708, -0.01597253791987896, 0.06674829870462418, 0.03563975915312767, -0.014953013509511948, 0.018665125593543053, 0.02650761418044567, -0.025095967575907707, 0.006814252119511366, -0.02506111189723015, 0.052562106400728226, 0.08560512959957123, 0.025618799030780792, -0.014970441348850727, 0.002476919675245881, 0.00047027706750668585, 0.020233623683452606, -0.11878757923841476, -0.021854404360055923, -0.022394664585590363, 0.012225570157170296, 0.013227665796875954, 0.05141187459230423, 0.03987470269203186, -0.007276087533682585, 0.02319634146988392, -0.039351869374513626, 0.038375914096832275, -0.013550079427659512, -0.09369160979986191, -0.020686745643615723, -0.0715235024690628, 0.047821760177612305, 0.01151974592357874, 0.0033112734090536833, 0.023998018354177475, -0.038027361035346985, -0.0012221212964504957, -0.022900069132447243, -0.08302582055330276, -0.008426319807767868, -0.0423494428396225, -0.048484012484550476, 0.0057206605561077595, -0.05378204956650734, -0.03131767362356186, -0.054235171526670456, -0.01687006652355194, 0.000043228999857092276, -0.041443198919296265, 0.01892654225230217, -0.009986103512346745, -0.006792467553168535, -0.04527730494737625, 0.036005742847919464, -0.005929793696850538, 0.017436468973755836, -0.04029296711087227, -0.00548974284902215, 0.06343702971935272, -0.01678292825818062, 0.022882642224431038, 0.008661594241857529, -0.0006148729589767754, -0.01597253791987896, -0.006962387822568417, 0.03222391754388809, -0.036667995154857635, -0.0009476341656409204, 0.08539599925279617, 0.014334328472614288, 0.04869314655661583, -0.032851316034793854, 0.001173105789348483, 0.0007749904762022197, 0.04032782465219498, -0.03171851485967636, -0.053538061678409576, 0.06702714413404465, -0.013401943258941174, 0.01737547107040882, 0.030986547470092773, -0.04761262610554695, -0.030986547470092773, -0.04259343072772026, 0.0017983263824135065, 0.052910663187503815, -0.012216855771839619, -0.015536842867732048, -0.009027577005326748, 0.030132587999105453, 0.01779373735189438, -0.04193117842078209, 0.002757942071184516, 0.01585054211318493, 0.06476153433322906, -0.0025618800427764654, 0.0019606223795562983, -0.008352251723408699, 0.014665455557405949, -0.013567507266998291, -0.0032546331640332937, 0.004993051756173372, 0.022098392248153687, -0.027344146743416786, -0.02265608124434948, 0.04911141097545624, -0.06277476996183395, 0.061729107052087784, 0.011763734742999077, 0.01997220702469349, 0.030812270939350128, -0.041129499673843384, 0.0014737345045432448, 0.03318244591355324, -0.007546217646449804, 0.030568281188607216, -0.0011164655443280935, -0.01208614744246006, -0.01151974592357874, 0.02366689033806324, -0.04757776856422424, 0.029330911114811897, 0.021662699058651924, -0.028860362246632576, 0.04283742234110832, 0.033165015280246735, 0.06009089946746826, 0.04865829274058342, 0.016922349110245705, 0.0021327214781194925, 0.027814695611596107, -0.02187183126807213, -0.01814229227602482, -0.006544122006744146, 0.043499674648046494, -0.016608649864792824, -0.00913214311003685, -0.05468829348683357, 0.07256916910409927, -0.04099008068442345, 0.04123406857252121, 0.05399118363857269, 0.04252372309565544, -0.02751842513680458, 0.03889874741435051, 0.04046724736690521, -0.019519085064530373, 0.041687190532684326, 0.0065484787337481976, 0.03393183648586273, -0.0273964311927557, -0.10470595210790634, -0.014831019565463066, 0.04660181701183319, 0.03159651905298233, -0.04492875188589096, 0.03855019435286522, 0.01199029479175806, -0.0036772561725229025, -0.0011611242080107331, 0.11097994446754456, 0.06389015167951584, -0.00038341060280799866, -0.009201854467391968, -0.004152162466198206, 0.014308186247944832, 0.06361130625009537, -0.05608251318335533, -0.014665455557405949, 0.04161747917532921, -0.012940107844769955, -0.0567447692155838, -0.04555615037679672, 0.0268213152885437, -0.055245980620384216, -0.03997926786541939, -0.002592378528788686, 0.01842113584280014, -0.07807634025812149, -0.06493581086397171, -0.0006039806175976992, 0.028006400913000107, 0.014447608962655067, -0.054270029067993164, -0.010674499906599522, -0.05521112680435181, -0.02208096534013748, 0.03785308450460434, -0.05779043585062027, 0.014848447404801846, 0.005128116812556982, -0.028389811515808105, -0.01608581840991974, -0.042454011738300323, -0.023806313052773476, 0.04046724736690521, -0.05162100866436958, -0.08776617050170898, -0.0014007558347657323, 0.03326958417892456, 0.020425328984856606, -0.027605563402175903, 0.04527730494737625, 0.029818888753652573, 0.05148158594965935, 0.021941542625427246, -0.016225239261984825, -0.06455240398645401, 0.006748897954821587, -0.001338669448159635, 0.011964153498411179, 0.031265392899513245, 0.030655421316623688, -0.005276252515614033, -0.06312333047389984, -0.0466366708278656, -0.0047839186154305935, -0.047124650329351425, -0.016878779977560043, -0.0008975293603725731, 0.03945643827319145, -0.015597840771079063, -0.017898304387927055, -0.005045334808528423, 0.015092435292899609, -0.03042886033654213, 0.024224579334259033, 0.0703384205698967, -0.02413744106888771, -0.009158285334706306, -0.028895217925310135, 0.05228326469659805, 0.01358493510633707, -0.018665125593543053, 0.05914979800581932, -0.05109817534685135, -0.020303335040807724, -0.0014149157796055079, -0.054967138916254044, 0.009262851439416409, 0.03945643827319145, -0.08072535693645477, -0.05566424876451492, -0.02786698006093502, -0.028999783098697662, 0.05336378514766693, 0.015475845895707607, -0.01123218797147274, 0.03753938525915146, -0.060962285846471786, 0.06922303885221481, 0.06870020925998688, 0.014142623171210289, -0.004566071555018425, -0.0018898221896961331, 0.05817384645342827, -0.009707259014248848, 0.027797268703579903, -0.014447608962655067, 0.06273991614580154, -0.036354295909404755, -0.014142623171210289, 0.013532651588320732, 0.007737922947853804, 0.025479378178715706, 0.017419040203094482, 0.04370880872011185, 0.02985374443233013, -0.028337528929114342, 0.03611030802130699, -0.010552505031228065, 0.0392473042011261, -0.004396151285618544, -0.06598147749900818, -0.08184073865413666, -0.0119467256590724, -0.002540095243602991, -0.0006404700106941164, -0.010543791577219963, -0.05343349650502205, 0.030184870585799217, -0.025758221745491028, 0.003803607542067766, 0.03760909289121628, -0.04569557309150696, -0.06120627373456955, 0.006500552408397198, -0.04796117916703224, 0.06385529041290283, -0.05873153358697891, 0.013959631323814392, 0.06434327363967896, -0.03579660877585411, 0.03431524708867073, 0.02495654486119747, 0.014168764464557171, -0.009367418475449085, -0.02063446119427681, 0.012940107844769955, -0.013558792881667614, -0.0474034920334816, 0.011694023385643959, -0.04067637771368027, 0.011049196124076843, -0.020773883908987045, 0.007223804481327534, 0.01459574420005083, -0.019292524084448814, 0.011964153498411179, 0.06779396533966064, 0.031195681542158127, -0.019379662349820137, -0.00897529348731041, 0.014848447404801846, -0.010386941954493523, 0.02107015624642372, -0.04653210565447807, -0.02581050433218479, 0.016303664073348045, -0.08762674778699875, -0.009907678700983524, -0.024538278579711914, 0.01437789760529995, 0.02666446380317211, -0.09062432497739792, -0.019867639988660812, -0.025862788781523705, -0.017584605142474174, 0.0466366708278656, 0.02394573576748371, 0.013288662768900394, 0.0081605464220047, -0.018595414236187935, -0.003792715026065707, 0.011493604630231857, -0.023248624056577682, 0.03450695425271988, 0.0017122769495472312, 0.004309012554585934, 0.007607215084135532, 0.02032076194882393, -0.043116264045238495, -0.018630269914865494, 0.060648586601018906, 0.03447210043668747, -0.018020298331975937, 0.02844209596514702, -0.049529679119586945, 0.032938458025455475, 0.011885728687047958, 0.037678804248571396, -0.03194507583975792, 0.0018952683312818408, 0.014386611059308052, -0.06057887524366379, -0.007010314147919416, -0.061624541878700256, -0.08421090990304947, 0.041408345103263855, -0.03321729972958565, -0.0446847639977932, 0.09410987794399261, 0.08909068256616592, 0.014665455557405949, 0.025671083480119705, -0.030132587999105453, 0.056675057858228683, -0.024468567222356796, 0.08553542196750641, -0.019919924437999725, -0.05228326469659805, 0.04130377992987633, -0.03788793832063675, 0.022028682753443718, 0.01981535740196705, -0.03241562470793724, -0.0002976333780679852, -0.01199029479175806, 0.04827488213777542, 0.018595414236187935, -0.0019704254809767008, -0.003631508443504572, 0.07438165694475174, -0.03454180806875229, -0.040083836764097214, 0.011763734742999077, -0.019065963104367256, 0.01990249566733837, -0.03621487319469452, -0.040014125406742096, -0.03844562545418739, 0.03368784859776497, 0.018525702878832817, -0.036005742847919464, 0.029365766793489456, -0.035221491008996964, -0.018856830894947052, 0.016730643808841705, 0.003553083399310708, -0.011633026413619518, 0.026525042951107025, 0.03422810882329941, -0.07127951830625534, -0.028128396719694138, -0.00100590824149549, -0.012068720534443855, 0.0563613586127758, 0.04154776781797409, -0.023963162675499916, -0.02063446119427681, 0.005986433941870928, 0.04252372309565544, -0.011528459377586842, -0.002437707269564271, -0.03563975915312767, 0.048832569271326065, 0.02300463616847992, -0.02385859563946724, 0.020425328984856606, -0.010517650283873081, 0.014735166914761066, -0.021941542625427246, 0.025671083480119705, 0.04810060188174248, -0.027849551290273666, 0.005951578263193369, 0.01997220702469349, -0.055594537407159805, 0.04193117842078209, -0.022586369886994362, -0.010334658436477184, -0.012478272430598736, -0.03403640538454056, 0.028476951643824577, 0.00029382103821262717, 0.015641409903764725, 0.00588622409850359, 0.01585054211318493, -0.015989964827895164, 0.004313369281589985, 0.033513572067022324, 0.0016371196834370494, 0.0022830357775092125, 0.011371609754860401, 0.028163252398371696, 0.018177147954702377, -0.04552129656076431, -0.007585430052131414, -0.06465697288513184, -0.03046371601521969, 0.026315908879041672, -0.0034289106260985136, -0.043464820832014084, 0.00857009831815958, -0.019153103232383728, -0.04123406857252121, -0.08016767352819443, 0.02385859563946724, 0.06890933960676193, 0.0053067514672875404, 0.01736675761640072, 0.05820870026946068, 0.0180725809186697, -0.0011513209901750088, -0.01582440175116062, 0.009768256917595863, 0.037713661789894104, 0.015092435292899609, 0.012286567129194736, 0.07828547060489655, 0.021976398304104805, -0.06047431007027626, 0.019710790365934372, -0.018595414236187935, 0.03112597018480301, 0.06929275393486023, -0.012382419779896736, -0.026943309232592583, -0.014308186247944832, -0.054235171526670456, 0.021749837324023247, -0.019658507779240608, 0.07417252659797668, -0.06009089946746826, 0.02227267064154148, 0.03572689741849899, -0.0019312130752950907, 0.027483569458127022, 0.05977720022201538, 0.007132308557629585, 0.028773222118616104, -0.014194905757904053, -0.03788793832063675, -0.02844209596514702, -0.009689831174910069, 0.03997926786541939, 0.018752263858914375, -0.008670307695865631, 0.07187206298112869, -0.012121003121137619, 0.03279903531074524, 0.021819548681378365, -0.049146268516778946, -0.0221506766974926, -0.006234779022634029, -0.017610745504498482, 0.003884210716933012, -0.005446173250675201, -0.011964153498411179, -0.016617363318800926, -0.005128116812556982, 0.02354489639401436, -0.02082616649568081, -0.01639951765537262, 0.007546217646449804, -0.0010075420141220093, 0.0384804829955101, 0.06500552594661713, -0.033949267119169235, -0.05033135414123535, -0.04458019509911537, 0.010944630019366741, -0.038759324699640274, -0.016382088884711266, -0.045486439019441605, -0.008456817828118801, -0.05782528966665268, -0.06322789192199707, 0.028006400913000107, -0.03677256405353546, 0.02607192099094391, -0.0231266301125288, 0.001460663741454482, 0.010752924717962742, -0.0174887515604496, -0.0004201722622383386, 0.02495654486119747, -0.05650078132748604, -0.017183765769004822, 0.0446847639977932, -0.02417229488492012, 0.002768834587186575, -0.03865475952625275, 0.04607898369431496, 0.025427093729376793, 0.008352251723408699, 0.0369119830429554, 0.008770517073571682, -0.05535054951906204, 0.010334658436477184, -0.013332231901586056, -0.053538061678409576, 0.03722568228840828, 0.0002476647205185145, -0.051899854093790054, -0.02518310584127903, 0.006125855725258589, -0.017985442653298378, 0.008853299543261528, 0.010116811841726303, 0.02208096534013748, 0.03858504816889763, 0.01803772523999214, 0.03611030802130699, -0.01857798732817173, 0.01096205785870552, 0.021087583154439926, -0.050854187458753586, -0.011877015233039856, -0.04029296711087227, 0.02148842066526413, -0.02398058958351612, 0.01341065764427185, -0.03579660877585411, -0.01451731938868761, -0.03983984887599945, -0.011267043650150299, 0.03820163756608963, 0.01488330215215683, -0.050819333642721176, -0.01911824755370617, -0.01585054211318493, -0.005912365857511759, -0.0423494428396225, 0.03799250349402428, -0.12798942625522614, -0.04182660952210426, 0.019379662349820137, 0.013611076399683952, 0.009794398210942745, -0.0273964311927557, 0.03508206829428673, 0.0018266465049237013, 0.049564532935619354, -0.04492875188589096, -0.016974633559584618, -0.003208885435014963, -0.06047431007027626, -0.016913635656237602, 0.035308629274368286, -0.04133863374590874, -0.011824731715023518, 0.0033112734090536833, 0.006609476171433926, 0.03023715503513813, -0.03649371862411499, 0.005289323627948761, -0.012791971676051617, -0.05921950936317444, -0.039421580731868744, 0.012809399515390396, 0.029557472094893456, 0.012896538712084293, -0.02774498611688614, -0.011432606726884842, 0.0270130205899477, 0.011336754076182842, 0.0033178087323904037, 0.026803886517882347, -0.01341065764427185, 0.015231858007609844, -0.02976660430431366, 0.017201194539666176, -0.05981205403804779, 0.04534701630473137, 0.07870373874902725, -0.055315691977739334, -0.03757423907518387, 0.017009489238262177, 0.02565365470945835, -0.0022002540063112974, 0.05270152911543846, -0.027727557346224785, 0.009794398210942745, -0.050923898816108704, 0.023806313052773476, -0.03401897847652435, -0.05817384645342827, 0.05855725705623627, -0.03778337314724922, 0.01753232069313526, -0.048867423087358475, 0.03455923870205879, 0.02910435013473034, -0.04025811329483986, -0.016756786033511162, -0.042802564799785614, -0.013149240985512733, -0.012809399515390396, -0.017236050218343735, 0.048135459423065186, 0.017044344916939735, 0.0038144998252391815, 0.06615575402975082, -0.033949267119169235, 0.008735662326216698, -0.026995591819286346, 0.0025814862456172705, -0.01348908245563507, -0.03042886033654213, 0.025165677070617676, 0.054618582129478455, 0.00276447762735188, 0.04297684133052826, 0.04966910183429718, -0.028424667194485664, -0.06016061082482338, -0.008273826912045479, -0.020390473306179047, -0.028860362246632576, 0.005289323627948761, -0.0072107333689928055, -0.08037680387496948, -0.021540705114603043, -0.007324013859033585, 0.0019170530140399933, 0.0431511215865612, 0.0074982913210988045, 0.049146268516778946, 0.021558132022619247, -0.0022438233718276024, -0.07375425845384598, -0.01395091786980629, -0.0033896982204169035, -0.015136005356907845, -0.000024984319679788314, 0.03318244591355324, 0.030533425509929657, -0.003666363889351487, 0.04527730494737625, -0.009759542532265186, -0.0011589457280933857, -0.026943309232592583, 0.09041519463062286, 0.030864553526043892, -0.004753420129418373, 0.03271189704537392, 0.027727557346224785, 0.015536842867732048, -0.04876285791397095, -0.008600597269833088, -0.03008030541241169, -0.02005934529006481, 0.027936691418290138, 0.07751864939928055, 0.07256916910409927, 0.025287672877311707, 0.03583146259188652 ]
730,241
mmengine.utils.progressbar
start
null
def start(self): if self.task_num > 0: self.file.write(f'[{" " * self.bar_width}] 0/{self.task_num}, ' 'elapsed: 0s, ETA:') else: self.file.write('completed: 0, elapsed: 0s') self.file.flush() self.timer = Timer()
(self)
[ 0.023740652948617935, 0.07449162751436234, -0.05835651233792305, 0.02503785863518715, 0.06766796857118607, 0.026477225124835968, -0.06514463573694229, 0.06269238144159317, -0.09062673896551132, -0.013736170716583729, 0.026974782347679138, -0.00988009199500084, 0.058498673141002655, -0.032003678381443024, 0.008445167914032936, 0.0011450510937720537, 0.05096421390771866, 0.0053309849463403225, -0.050893135368824005, 0.03763675317168236, 0.029942363500595093, 0.012634433805942535, 0.028076520189642906, 0.008200831711292267, -0.01738789491355419, 0.00346958264708519, -0.060169048607349396, -0.029124947264790535, -0.03577090799808502, -0.06738364696502686, 0.005641958676278591, -0.05725477635860443, -0.01899607479572296, -0.009258143603801727, 0.0009240373619832098, 0.020399902015924454, 0.0005736361490562558, -0.05402064695954323, 0.02231905609369278, 0.056934915482997894, 0.07569998502731323, -0.02603297494351864, -0.0015348793240264058, 0.040053464472293854, -0.05259905010461807, -0.01944032497704029, 0.057325854897499084, 0.024344829842448235, 0.07612646371126175, -0.04691266641020775, 0.006681500934064388, -0.02221243642270565, -0.023474102839827538, 0.010048906318843365, -0.014287038706243038, 0.0864330306649208, 0.050893135368824005, -0.030226683244109154, -0.005575321614742279, 0.007574440911412239, 0.015673095360398293, 0.03671271353960037, 0.008534017950296402, -0.006041782908141613, 0.012723283842206001, 0.005606418941169977, 0.015424315817654133, 0.013167532160878181, -0.00516217015683651, 0.029338186606764793, 0.07868533581495285, 0.022692225873470306, 0.018187543377280235, -0.012643318623304367, -0.003496237564831972, 0.005579764023423195, -0.10086223483085632, 0.004311433993279934, -0.013753940351307392, -0.007601095829159021, -0.02333194389939308, 0.021181778982281685, 0.0456332303583622, 0.017307929694652557, -0.012127989903092384, 0.01290986780077219, 0.027916589751839638, -0.011799246072769165, -0.12026701867580414, -0.010493154637515545, -0.015610900707542896, 0.04392731562256813, -0.0045890891924500465, -0.01105290837585926, 0.023118704557418823, -0.06187496334314346, -0.04513566941022873, -0.007276793941855431, -0.06912510097026825, 0.00810309685766697, -0.016534937545657158, -0.014260384254157543, 0.012767708860337734, -0.029124947264790535, -0.01865844614803791, -0.03912942856550217, 0.005495356861501932, 0.017530055716633797, 0.0027987670619040728, 0.014926757663488388, -0.00015062808233778924, -0.013682860881090164, -0.029746895655989647, -0.032181378453969955, -0.017689984291791916, -0.009951171465218067, -0.01694364659488201, 0.0057441359385848045, 0.051106374710798264, 0.0021046283654868603, 0.05018233507871628, 0.005188825074583292, 0.003847193904221058, -0.0291427168995142, -0.04613078758120537, 0.020293282344937325, -0.01246561948210001, 0.053167689591646194, 0.07036899775266647, -0.027223562821745872, 0.010866323485970497, 0.015530935488641262, 0.034242693334817886, 0.027898820117115974, 0.04218585789203644, -0.019618023186922073, -0.019084924831986427, 0.021732646971940994, -0.006739253178238869, 0.03477578982710838, -0.010964058339595795, -0.08401632308959961, -0.03898726776242256, -0.05448266491293907, 0.04762346297502518, 0.0761975422501564, -0.030901942402124405, 0.00988009199500084, -0.024291520938277245, 0.010617544874548912, 0.014198189601302147, -0.03770783171057701, -0.015530935488641262, -0.008178618736565113, 0.05650843679904938, -0.03454478085041046, -0.032181378453969955, 0.0228166151791811, -0.032625626772642136, -0.022461215034127235, -0.03912942856550217, -0.01981349289417267, 0.008431840687990189, -0.031666047871112823, -0.006446049083024263, 0.04296773672103882, -0.10199950635433197, 0.11820570379495621, -0.01232345961034298, -0.003347414080053568, 0.03093748167157173, -0.027632270008325577, -0.010946288704872131, 0.014971181750297546, 0.000398157921154052, -0.03285663574934006, -0.013780595734715462, -0.012874328531324863, 0.0009262586245313287, 0.029906824231147766, -0.027952130883932114, 0.033460814505815506, -0.012838788330554962, -0.009133754298090935, 0.00952469278126955, 0.004515788517892361, 0.03802769258618355, 0.02958696521818638, 0.002327863359823823, -0.014011604711413383, 0.025801965966820717, 0.016223963350057602, -0.017201310023665428, -0.010697509162127972, 0.0646115317940712, 0.020239971578121185, 0.029906824231147766, -0.07033345848321915, 0.07491810619831085, -0.05167501047253609, 0.028965016826987267, 0.060879845172166824, 0.022052505984902382, -0.024629149585962296, 0.02276330441236496, -0.0021357256919145584, 0.012821018695831299, 0.027952130883932114, 0.0045890891924500465, 0.00004872853241977282, -0.01761001907289028, -0.05601087957620621, -0.020293282344937325, 0.011212837882339954, -0.013807250186800957, -0.027916589751839638, -0.0027565632481127977, 0.012172414921224117, -0.00685475766658783, -0.009311453439295292, 0.0658198893070221, 0.030564311891794205, -0.020808611065149307, -0.03820538893342018, -0.013833905570209026, 0.002512226579710841, 0.04435379430651665, -0.056117501109838486, -0.036232925951480865, 0.011781476438045502, -0.020915230736136436, -0.00963131245225668, -0.055157922208309174, 0.026832623407244682, -0.05107083544135094, -0.009058231487870216, -0.008778355084359646, 0.019795723259449005, -0.06333209574222565, -0.04573984816670418, -0.021288398653268814, 0.0010384314227849245, 0.005193267483264208, -0.025464337319135666, -0.04897398129105568, -0.04247017949819565, 0.013238612562417984, 0.011434962041676044, -0.062052663415670395, 0.035788677632808685, 0.008836107328534126, -0.010724164545536041, -0.005233250092715025, -0.036108534783124924, 0.011319457553327084, 0.024469219148159027, -0.035735368728637695, -0.050608813762664795, 0.007583325728774071, 0.023456333205103874, -0.00985343661159277, -0.010502040386199951, 0.014624668285250664, -0.004500239621847868, 0.06446937471628189, 0.032963257282972336, 0.010066675953567028, -0.05473144352436066, -0.013780595734715462, 0.003840530291199684, 0.034349311143159866, 0.013140877708792686, -0.007929840125143528, -0.03207475692033768, -0.029355956241488457, 0.0171657707542181, 0.019564714282751083, -0.030013443902134895, -0.014953412115573883, -0.0075211310759186745, 0.025304406881332397, -0.003109741024672985, 0.008574000559747219, -0.006041782908141613, -0.025801965966820717, -0.019298164173960686, 0.008005362004041672, 0.09944063425064087, -0.005557551514357328, -0.016010724008083344, -0.04748130589723587, 0.057503554970026016, 0.011488271877169609, -0.009107098914682865, 0.034509241580963135, -0.030191143974661827, -0.018009843304753304, -0.008596212603151798, -0.03251900523900986, 0.04008900374174118, 0.018676215782761574, -0.05782341584563255, -0.07591322064399719, -0.057894494384527206, -0.04918722063302994, 0.040444403886795044, 0.0007202382548712194, 0.012785478495061398, 0.05334538593888283, -0.07044007629156113, 0.008849434554576874, 0.03477578982710838, 0.032892175018787384, -0.007405626121908426, 0.023953892290592194, 0.10853885114192963, -0.03660609573125839, 0.03703257441520691, 0.02381173148751259, 0.04353637620806694, -0.04129736125469208, 0.005082205403596163, 0.02148386836051941, 0.016508283093571663, 0.020701991394162178, 0.006757023278623819, 0.05537116155028343, 0.054944682866334915, -0.032678935676813126, -0.03653501719236374, 0.006255022250115871, 0.031737130135297775, 0.028751777485013008, -0.07285679131746292, -0.04040886461734772, -0.03186151757836342, 0.005904065445065498, 0.008129751309752464, 0.02231905609369278, -0.006828102748841047, 0.01781437359750271, -0.01254558376967907, 0.024682458490133286, 0.05071543529629707, -0.02111070044338703, -0.036339547485113144, -0.014251499436795712, -0.05778787285089493, 0.06315439939498901, -0.035788677632808685, 0.004948930814862251, 0.03275001794099808, -0.031132951378822327, 0.021004080772399902, 0.010555350221693516, -0.009888976812362671, 0.013922755606472492, -0.03582421690225601, -0.013904985040426254, -0.023953892290592194, -0.09460721164941788, 0.03969806805253029, -0.029622504487633705, 0.0014593570958822966, 0.01054646447300911, -0.02215912565588951, 0.040337786078453064, -0.009462498128414154, 0.012812132947146893, 0.051603931933641434, 0.005535339005291462, 0.0030075639951974154, 0.004731249064207077, 0.033798445016145706, -0.021181778982281685, 0.010875209234654903, -0.022390136495232582, -0.017974304035305977, 0.008889417164027691, -0.10633537918329239, 0.0341893807053566, -0.021750418469309807, -0.05291890725493431, 0.05458928272128105, -0.028840627521276474, -0.016303928568959236, -0.04446041211485863, -0.015113341622054577, 0.029000556096434593, 0.026637153699994087, 0.042292479425668716, 0.0022767747286707163, -0.026015205308794975, -0.02503785863518715, 0.012332344427704811, -0.030404383316636086, 0.010057791136205196, -0.016508283093571663, -0.03290994465351105, 0.03841862827539444, 0.025624265894293785, -0.07132857292890549, -0.026139594614505768, 0.03713919222354889, 0.0336562842130661, -0.04858304187655449, 0.03912942856550217, -0.11180852353572845, 0.03463362902402878, 0.002167933853343129, 0.0386318676173687, -0.01920931413769722, 0.004557991866022348, 0.034793559461832047, -0.03511342033743858, -0.0032407944090664387, -0.07328327000141144, -0.1316397786140442, 0.018480747938156128, 0.012083565816283226, -0.060169048607349396, 0.10064899176359177, 0.08572223782539368, 0.023616261780261993, 0.018374128267169, -0.017672214657068253, 0.032625626772642136, 0.015690864995121956, 0.03937820717692375, -0.012954292818903923, -0.009142639115452766, 0.024504760280251503, -0.06891186535358429, 0.03976914659142494, -0.014260384254157543, -0.008645080029964447, 0.012963177636265755, -0.04868965968489647, 0.026068516075611115, 0.02153717912733555, 0.012287919409573078, -0.002251230413094163, 0.047943323850631714, -0.027738889679312706, -0.001483790809288621, 0.0005208816146478057, -0.02420267090201378, -0.015948528423905373, 0.014056029729545116, 0.0011056240182369947, -0.031132951378822327, 0.06283453851938248, 0.04385623335838318, 0.0021979205776005983, 0.025730885565280914, -0.015042262151837349, 0.009737932123243809, 0.02260337583720684, 0.01138165220618248, -0.027952130883932114, -0.015175536274909973, 0.061661724001169205, -0.07275017350912094, -0.006348314229398966, 0.03138172999024391, -0.052670128643512726, 0.06887632608413696, 0.030830862000584602, -0.03141726925969124, 0.019458094611763954, 0.012127989903092384, 0.014864562079310417, -0.002843191847205162, -0.02231905609369278, -0.016250617802143097, 0.023580722510814667, 0.004860081244260073, 0.0317726694047451, 0.030333302915096283, 0.01130168791860342, -0.0006924726767465472, 0.0001713134115561843, -0.029906824231147766, 0.06336763501167297, 0.018960535526275635, 0.06887632608413696, 0.025499876588582993, -0.03221691772341728, 0.03880956768989563, -0.0437496155500412, -0.022443445399403572, -0.07882749289274216, -0.04126182198524475, 0.009426957927644253, 0.0050111254677176476, -0.005384294781833887, -0.006992475129663944, -0.01731681451201439, -0.043998394161462784, -0.010564235039055347, 0.013265267014503479, 0.004273672588169575, 0.007223484106361866, 0.044957973062992096, -0.0037849992513656616, -0.0013471842976287007, -0.01649939827620983, -0.030457692220807076, -0.05746801570057869, -0.04069318249821663, -0.0020413228776305914, 0.0020413228776305914, -0.04748130589723587, -0.0030453249346464872, -0.0010956284822896123, -0.04001792520284653, -0.05679275840520859, 0.007028014864772558, 0.04662834480404854, -0.05057327449321747, -0.03601968660950661, 0.045171212404966354, 0.028112059459090233, -0.017841028049588203, -0.010670854710042477, 0.021341709420084953, -0.003565096063539386, 0.032181378453969955, -0.019013846293091774, 0.04090642184019089, 0.015122226439416409, -0.049720317125320435, 0.06301224231719971, -0.026246214285492897, 0.02132393978536129, 0.05135515332221985, 0.03360297530889511, -0.09190617501735687, -0.017370125278830528, -0.028449688106775284, 0.03870294988155365, -0.01920931413769722, 0.08515359461307526, -0.08550899475812912, 0.03522003814578056, 0.0406576432287693, 0.007143519353121519, -0.012821018695831299, 0.058214351534843445, 0.049009520560503006, 0.036677174270153046, 0.00010113600001204759, -0.012723283842206001, -0.028840627521276474, -0.030439922586083412, 0.04712590575218201, 0.012945408001542091, 0.006903625093400478, 0.041723839938640594, -0.027738889679312706, 0.020844150334596634, 0.011657086201012135, -0.009578002616763115, 0.0073212189599871635, -0.0016170653980225325, 0.00240782811306417, 0.016250617802143097, 0.02642391435801983, 0.009222603403031826, -0.008862761780619621, -0.013078682124614716, 0.03482909873127937, -0.01665044203400612, -0.06720595061779022, 0.03349635377526283, -0.014900102280080318, 0.03681933507323265, 0.013647320680320263, -0.04637956619262695, -0.03266116604208946, -0.028396379202604294, 0.03905835002660751, -0.04737468436360359, -0.0291427168995142, 0.004502460826188326, -0.025677576661109924, -0.013833905570209026, -0.036055225878953934, 0.029444806277751923, -0.025624265894293785, -0.029800204560160637, -0.015957415103912354, 0.02231905609369278, -0.016081804409623146, -0.045775387436151505, 0.014926757663488388, 0.05046665668487549, -0.030066754668951035, -0.021199548617005348, 0.04851195961236954, -0.0020391016732901335, 0.00247002299875021, -0.030830862000584602, 0.029498115181922913, 0.0038960613310337067, 0.018445206806063652, 0.03753013163805008, 0.022247975692152977, -0.03349635377526283, 0.0034762462601065636, -0.0036472820211201906, -0.040835343301296234, 0.024558069184422493, 0.029071636497974396, -0.021466098725795746, -0.03127511218190193, 0.011861440725624561, -0.03141726925969124, 0.005904065445065498, 0.07669509947299957, 0.023900581523776054, 0.04421163350343704, -0.016508283093571663, 0.016339467838406563, -0.008196389302611351, 0.0015681979712098837, 0.0519593320786953, -0.029124947264790535, 0.01915600523352623, -0.056934915482997894, 0.0010839669266715646, 0.004464699886739254, -0.0234918724745512, -0.04925829917192459, -0.0023967218585312366, -0.019351474940776825, -0.0495426170527935, 0.05839205160737038, 0.024184901267290115, -0.05501576140522957, 0.02736572176218033, -0.02203473635017872, -0.010528694838285446, -0.05967148765921593, 0.0374235138297081, -0.07548674196004868, -0.06749026477336884, 0.015468740835785866, 0.023456333205103874, 0.03472248092293739, -0.014749057590961456, 0.0028032094705849886, 0.011506042443215847, 0.0873570665717125, -0.03699703514575958, -0.010173295624554157, -0.004267008975148201, -0.10455837845802307, -0.02432706020772457, 0.045562148094177246, 0.0055886488407850266, -0.023740652948617935, -0.012954292818903923, 0.012847673147916794, 0.04730360582470894, -0.030137833207845688, 0.004035999532788992, 0.044105011969804764, -0.022976543754339218, -0.03820538893342018, 0.01738789491355419, 0.008476265706121922, -0.014349234290421009, -0.019724642857909203, -0.011461617425084114, 0.048618581146001816, 0.028947247192263603, 0.009084886871278286, 0.028112059459090233, 0.033176496624946594, -0.00908044446259737, -0.03653501719236374, 0.0386318676173687, -0.05458928272128105, 0.04424717277288437, 0.060666605830192566, -0.007338989060372114, -0.08366092294454575, 0.004695708863437176, 0.0017614462412893772, 0.0026477223727852106, 0.029693584889173508, -0.02127062901854515, 0.017005842179059982, -0.0034606975968927145, -0.010155525989830494, 0.0014882332179695368, -0.02198142744600773, 0.02548210695385933, -0.05437604337930679, 0.027578961104154587, -0.04915167763829231, 0.05426942557096481, 0.012518929317593575, -0.0035206712782382965, 0.026068516075611115, -0.027454571798443794, -0.021785957738757133, -0.036890413612127304, -0.011044023558497429, 0.0406576432287693, 0.02054206095635891, -0.0180364977568388, 0.11756598204374313, -0.028520768508315086, -0.04271895810961723, -0.07854317873716354, -0.013247497379779816, 0.01282990351319313, 0.0038849550765007734, -0.018409667536616325, 0.04534890875220299, 0.026726003736257553, 0.04890289902687073, 0.043287597596645355, -0.004735691472887993, -0.04318097606301308, -0.011026252992451191, -0.03731689229607582, -0.007001359947025776, -0.010404305532574654, -0.04762346297502518, -0.04129736125469208, -0.034900180995464325, -0.017947647720575333, 0.002909829141572118, 0.022745534777641296, 0.018569596111774445, 0.06510909646749496, -0.014651322737336159, 0.0015615342417731881, -0.058107733726501465, -0.003111962229013443, 0.0063305445946753025, 0.00346958264708519, 0.008916071616113186, 0.018462976440787315, 0.00487340847030282, -0.0399823859333992, 0.08003585040569305, 0.007658848073333502, 0.006428278982639313, -0.03703257441520691, 0.12979170680046082, 0.043394215404987335, 0.014669093303382397, 0.027845511212944984, 0.020861919969320297, -0.004355859011411667, -0.025642037391662598, 0.05871191248297691, -0.026139594614505768, 0.030120063573122025, 0.016339467838406563, 0.030884170904755592, 0.05725477635860443, -0.03221691772341728, 0.019404783844947815 ]
730,242
mmengine.utils.progressbar
update
update progressbar. Args: num_tasks (int): Update step size.
def update(self, num_tasks: int = 1): """update progressbar. Args: num_tasks (int): Update step size. """ assert num_tasks > 0 self.completed += num_tasks elapsed = self.timer.since_start() if elapsed > 0: fps = self.completed / elapsed else: fps = float('inf') if self.task_num > 0: percentage = self.completed / float(self.task_num) eta = int(elapsed * (1 - percentage) / percentage + 0.5) msg = f'\r[{{}}] {self.completed}/{self.task_num}, ' \ f'{fps:.1f} task/s, elapsed: {int(elapsed + 0.5)}s, ' \ f'ETA: {eta:5}s' bar_width = min(self.bar_width, int(self.terminal_width - len(msg)) + 2, int(self.terminal_width * 0.6)) bar_width = max(2, bar_width) mark_width = int(bar_width * percentage) bar_chars = '>' * mark_width + ' ' * (bar_width - mark_width) self.file.write(msg.format(bar_chars)) else: self.file.write( f'completed: {self.completed}, elapsed: {int(elapsed + 0.5)}s,' f' {fps:.1f} tasks/s') self.file.flush()
(self, num_tasks: int = 1)
[ 0.026249118149280548, -0.007727128453552723, -0.12470109760761261, 0.040725257247686386, 0.03323821350932121, 0.017241545021533966, -0.04812338203191757, 0.03841334208846092, -0.06985537707805634, -0.011008268222212791, 0.04186343029141426, -0.056446272879838943, 0.051893580704927444, 0.011319487355649471, 0.001551650115288794, 0.03919583559036255, 0.10990484058856964, 0.007655992638319731, -0.021234042942523956, 0.008963113650679588, 0.03489211946725845, 0.015996668487787247, 0.044246479868888855, 0.021731993183493614, -0.0407608263194561, -0.017268219962716103, 0.032882533967494965, -0.03645710647106171, -0.02795637771487236, -0.032544638961553574, -0.012457660399377346, -0.013649185188114643, -0.015712125226855278, -0.006428899709135294, 0.0033522755838930607, 0.012555472552776337, 0.005290726665407419, 0.013933729380369186, -0.04154331982135773, 0.02402612380683422, 0.035016607493162155, -0.031851064413785934, 0.01749941147863865, -0.008411810733377934, 0.014084892347455025, -0.002318583196029067, -0.0041970135644078255, 0.05100438371300697, 0.056019458919763565, -0.04371296241879463, 0.0014405003748834133, -0.05986079201102257, -0.008349566720426083, 0.023794932290911674, 0.01741049252450466, 0.10179536044597626, 0.04958166554570198, -0.031922198832035065, 0.022621190175414085, -0.029236823320388794, 0.027316154912114143, -0.02872108854353428, 0.03437638655304909, -0.014227163977921009, 0.0074025713838636875, 0.015961099416017532, 0.026764852926135063, -0.001516082207672298, -0.01741938479244709, 0.009461063891649246, 0.03684835508465767, 0.021874265745282173, -0.0139070525765419, -0.040049467235803604, -0.019508998841047287, 0.03723960369825363, -0.07010435312986374, 0.007380341645330191, 0.0323667973279953, 0.018130742013454437, 0.022052103653550148, -0.010145746171474457, 0.0750482901930809, -0.025946790352463722, -0.0024608548264950514, -0.024915320798754692, 0.016841406002640724, -0.0388401597738266, -0.10833985358476639, 0.004112539812922478, -0.016921432688832283, -0.0051440089009702206, 0.02231886424124241, -0.029183469712734222, 0.0031988888513296843, -0.0834423154592514, -0.04275262728333473, -0.05715763196349144, -0.07159820199012756, -0.006842376664280891, -0.006362210027873516, -0.0360836461186409, 0.012066413648426533, -0.04577590152621269, 0.015231957659125328, -0.049688372761011124, -0.027031611651182175, -0.003985829185694456, -0.005108441226184368, -0.0028120880015194416, -0.01872650533914566, -0.003861341392621398, -0.04413977637887001, -0.035016607493162155, 0.013151234947144985, 0.020024733617901802, -0.024595210328698158, -0.0040903096087276936, 0.09297452121973038, -0.014280515722930431, 0.031015217304229736, 0.03912470117211342, 0.003999167121946812, -0.023937202990055084, -0.00531740253791213, 0.01060812920331955, -0.035443421453237534, 0.06644085794687271, 0.04058298468589783, 0.004583814647048712, -0.023225845769047737, -0.016272319480776787, 0.004452657885849476, 0.031370896846055984, 0.07604419440031052, -0.024417370557785034, -0.027316154912114143, -0.012039737775921822, 0.0004829455283470452, 0.003536784090101719, 0.001563876518048346, -0.06455575674772263, -0.005428552161902189, -0.035158880054950714, 0.04680737107992172, 0.06704550981521606, 0.02548440732061863, 0.006371101830154657, -0.028952278196811676, 0.020362628623843193, 0.010625912807881832, 0.013720321469008923, -0.024595210328698158, -0.013738105073571205, 0.06875277310609818, 0.004297048319131136, 0.01982910931110382, -0.0028076418675482273, -0.0240972600877285, -0.004479333758354187, 0.005948733072727919, -0.020771659910678864, 0.011968601495027542, -0.013951512984931469, -0.0010559223592281342, 0.0899156779050827, -0.03645710647106171, 0.09738493710756302, -0.03912470117211342, 0.045135676860809326, 0.047412022948265076, -0.023848284035921097, -0.015498717315495014, 0.03558569401502609, 0.06192373111844063, 0.003805766347795725, -0.025857871398329735, -0.028400976210832596, 0.02857881598174572, 0.0001952066959347576, -0.02562667988240719, -0.011275027878582478, -0.005659743677824736, -0.047483161091804504, 0.01487627811729908, 0.0673656240105629, 0.03603029251098633, 0.06213713809847832, -0.012884475290775299, -0.01556096039712429, -0.0004551580932457, -0.013933729380369186, 0.017472736537456512, 0.004877249710261822, 0.01749051921069622, -0.02045154944062233, -0.005010629538446665, -0.0527472123503685, 0.1277599334716797, -0.04730531945824623, 0.0005913164932280779, 0.012768879532814026, 0.05288948118686676, -0.025768950581550598, 0.019882461056113243, -0.021731993183493614, 0.024470722302794456, 0.008207295089960098, -0.015054117888212204, 0.024541858583688736, -0.025537759065628052, -0.03731073811650276, -0.009176520630717278, -0.0009030914516188204, 0.003061063354834914, -0.029361309483647346, 0.0424325168132782, 0.025217648595571518, -0.025911223143339157, -0.0040458496659994125, 0.056446272879838943, 0.04054741933941841, -0.012128657661378384, -0.0378798246383667, 0.020149221643805504, -0.01036804635077715, 0.02850767970085144, -0.013008963316679, -0.024915320798754692, -0.00971003994345665, -0.00995012279599905, 0.014004864729940891, -0.024364018812775612, 0.06462689489126205, -0.023385901004076004, -0.02423953078687191, -0.04801667854189873, -0.02231886424124241, -0.024630777537822723, -0.01713484153151512, -0.0119863860309124, -0.016227860003709793, 0.0023741580080240965, 0.00381465838290751, -0.04911928251385689, -0.0731276273727417, 0.033842865377664566, 0.004092532675713301, -0.06818368285894394, 0.02196318469941616, 0.0213407464325428, -0.02450628951191902, -0.04606044292449951, -0.03437638655304909, -0.009407712146639824, 0.04019173979759216, -0.053956519812345505, -0.035283368080854416, 0.01672581024467945, 0.027654049918055534, 0.0026609243359416723, -0.019669054076075554, 0.0026853771414607763, 0.012973395176231861, 0.04015617072582245, 0.028187569230794907, 0.025982359424233437, -0.05157347023487091, -0.0378798246383667, 0.037844255566596985, -0.023866068571805954, 0.0278141051530838, -0.026533661410212517, -0.0012548803351819515, -0.02829427272081375, 0.018059605732560158, 0.03919583559036255, -0.0059931930154562, -0.007242515683174133, -0.04179229587316513, 0.04054741933941841, -0.03378951549530029, -0.0278141051530838, 0.013169018551707268, 0.018993264064192772, 0.00714470399543643, 0.00819395761936903, 0.06939299404621124, -0.00926544051617384, 0.0061488025821745396, 0.015498717315495014, 0.029183469712734222, 0.0395515151321888, 0.03208225592970848, 0.03042834810912609, 0.017721710726618767, -0.02941466122865677, -0.008127267472445965, -0.03409184142947197, 0.031228626146912575, -0.0009269886650145054, -0.03458979353308678, -0.06967753916978836, -0.058011263608932495, -0.005735325627028942, 0.009567768312990665, 0.022229943424463272, 0.006095450837165117, 0.04641612246632576, -0.0692862868309021, 0.03930254280567169, 0.016476834192872047, 0.038057662546634674, 0.04161445423960686, 0.02761848270893097, 0.045491356402635574, -0.05406322330236435, 0.04367739334702492, 0.004239250440150499, 0.023261412978172302, -0.07259410619735718, 0.002169642597436905, 0.03720403462648392, 0.017721710726618767, 0.005810907576233149, -0.03809323161840439, 0.03645710647106171, 0.02562667988240719, -0.009443280287086964, -0.009398819878697395, 0.015400905162096024, 0.006028760690242052, 0.01298228744417429, -0.04346398636698723, -0.04670066758990288, -0.03220674395561218, 0.0231369249522686, 0.02975255623459816, 0.04680737107992172, 0.022425567731261253, 0.03085516206920147, 0.02555554360151291, 0.015472041442990303, 0.04517124593257904, -0.05804682895541191, -0.06889504194259644, 0.030268291011452675, 0.00963890366256237, 0.07497715204954147, -0.03334491699934006, 0.003143314039334655, -0.013337966054677963, -0.03587023913860321, 0.02788524143397808, -0.017045920714735985, 0.015738800168037415, 0.014769574627280235, -0.07078014314174652, 0.031566519290208817, -0.06715221703052521, -0.12818674743175507, 0.04481556639075279, -0.022852381691336632, 0.05669524893164635, -0.000734143890440464, -0.006091004703193903, 0.003112192265689373, -0.011612922884523869, 0.017588332295417786, 0.008411810733377934, 0.0038480032235383987, 0.04428204894065857, 0.044246479868888855, 0.02230107970535755, -0.01693921722471714, 0.04833678901195526, -0.044175345450639725, 0.012439876794815063, 0.005744217429310083, -0.10350261628627777, 0.060643285512924194, -0.0258934386074543, -0.05360084027051926, 0.04474443197250366, -0.007553734816610813, -0.000784717034548521, -0.03106856904923916, -0.03106856904923916, 0.04413977637887001, 0.03313151001930237, -0.0240972600877285, 0.027333939447999, -0.03819993510842323, 0.010963808745145798, -0.039836060255765915, -0.022532271221280098, 0.03656381368637085, -0.0013115666806697845, -0.005126225296407938, -0.00595762487500906, 0.04140104725956917, -0.03145981580018997, -0.02562667988240719, 0.03373616188764572, 0.0015483156312257051, -0.016334563493728638, 0.039017997682094574, -0.0057664476335048676, -0.016823621466755867, 0.012235361151397228, 0.03215339034795761, 0.0072825294919312, 0.017579440027475357, 0.02651587687432766, -0.05473901331424713, 0.003381174523383379, -0.13729213178157806, -0.13323739171028137, 0.02340368553996086, 0.008980897255241871, -0.018548665568232536, 0.08792387694120407, 0.04869246855378151, 0.042183540761470795, 0.02761848270893097, -0.05541480332612991, 0.02980590984225273, 0.0000616880934103392, 0.03259798884391785, 0.0012604377698153257, -0.018370825797319412, -0.0008747482788749039, -0.052853915840387344, 0.028810007497668266, -0.019846893846988678, -0.04058298468589783, 0.05619729682803154, -0.058153532445430756, 0.037701986730098724, 0.032135605812072754, 0.013177910819649696, 0.012101981788873672, 0.0589715950191021, 0.001760611543431878, -0.01722376048564911, -0.031228626146912575, -0.007073568180203438, -0.05303175374865532, -0.03752414509654045, -0.011275027878582478, -0.07060230523347855, 0.07597305625677109, -0.02479083277285099, -0.007811602205038071, 0.05772671848535538, -0.05128892511129379, 0.014218272641301155, 0.014004864729940891, -0.026195766404271126, -0.014885170385241508, 0.014316083863377571, 0.09155180305242538, -0.03834220767021179, 0.029023414477705956, -0.00578423123806715, -0.09055589884519577, 0.08237528055906296, 0.013462454080581665, -0.0055886078625917435, 0.015089686028659344, 0.026213550940155983, 0.00681570079177618, -0.011275027878582478, 0.0007419243920594454, -0.021038418635725975, 0.01741049252450466, -0.006184370256960392, 0.006046544760465622, -0.013551373966038227, -0.028952278196811676, 0.00032205632305704057, 0.016957001760601997, -0.005704203620553017, 0.02018478885293007, 0.013542481698095798, 0.03745301067829132, 0.027903025969862938, -0.024328451603651047, 0.05665967985987663, -0.05687309056520462, -0.023581525310873985, -0.07689782232046127, -0.03106856904923916, 0.003058840287849307, -0.04659396409988403, -0.018228553235530853, -0.03090851381421089, 0.007838278077542782, -0.007580410689115524, 0.0014182704035192728, 0.04367739334702492, -0.011968601495027542, 0.04965280368924141, -0.006944634485989809, -0.0029143455903977156, -0.0006869052886031568, 0.013524698093533516, 0.015783259645104408, -0.0291301179677248, -0.01886877603828907, -0.0005682529299519956, -0.026622580364346504, -0.032882533967494965, -0.009923446923494339, 0.03078402578830719, -0.049688372761011124, -0.04641612246632576, 0.003727961564436555, 0.0803123414516449, -0.019295591861009598, -0.030339427292346954, 0.04737645760178566, 0.0008975340169854462, -0.028045296669006348, -0.009283225052058697, 0.02354595623910427, -0.014502815902233124, -0.006860160734504461, 0.004141438752412796, 0.02519986405968666, -0.019651271402835846, -0.012751095928251743, 0.05637513846158981, -0.008638556115329266, 0.04922598972916603, 0.03972935676574707, 0.004119208548218012, -0.08379799872636795, -0.05882932245731354, -0.004417089745402336, 0.001468287780880928, -0.021358530968427658, 0.05427663028240204, -0.05978965759277344, -0.005277388729155064, 0.038662318140268326, 0.02176756039261818, -0.04044071584939957, 0.06487587094306946, -0.0008825287804938853, -0.036812786012887955, 0.014458355493843555, 0.01425383985042572, 0.00418367562815547, -0.038591183722019196, 0.05612616240978241, -0.02838319167494774, 0.0003114971041213721, 0.04246808588504791, -0.011799653992056847, 0.013231262564659119, -0.009416604414582253, 0.0028543248772621155, -0.04111650586128235, -0.020469332113862038, 0.025164296850562096, -0.0028521018102765083, 0.022069888189435005, 0.012884475290775299, 0.004970615264028311, 0.008082807995378971, 0.07917416840791702, -0.015107469633221626, -0.10101286321878433, 0.019260022789239883, -0.06476916372776031, 0.05039972811937332, -0.01672581024467945, 0.014680654741823673, -0.029307957738637924, -0.06370212882757187, 0.061603620648384094, -0.005304064601659775, -0.04510011151432991, -0.011746302247047424, 0.011888573877513409, -0.023296982049942017, -0.011488434858620167, 0.043357282876968384, 0.015685448423027992, -0.05858035013079643, -0.025359919294714928, 0.019028831273317337, -0.024684129282832146, -0.02582230232656002, -0.0152230653911829, -0.027725186198949814, -0.029076766222715378, -0.01741049252450466, 0.03430524840950966, -0.01755276322364807, 0.0024941996671259403, -0.02196318469941616, 0.031139705330133438, 0.017268219962716103, 0.01707259751856327, 0.03517666459083557, -0.0011526226298883557, -0.02961028553545475, 0.024755265563726425, 0.021500801667571068, -0.0017350470880046487, 0.05420549586415291, 0.015738800168037415, -0.038946863263845444, -0.012884475290775299, -0.0008480723481625319, -0.010777076706290245, -0.012582148425281048, 0.05495242029428482, -0.014849602244794369, 0.05509469285607338, -0.022407783195376396, 0.009701147675514221, -0.0305706188082695, -0.007811602205038071, 0.04207683727145195, -0.013489129953086376, -0.029094550758600235, -0.0796009823679924, -0.012279820628464222, 0.0016316778492182493, 0.009896771050989628, -0.018353041261434555, -0.02562667988240719, -0.01267106831073761, -0.06839708983898163, 0.0424325168132782, -0.003032164415344596, -0.041685592383146286, 0.07391011714935303, -0.013462454080581665, -0.0469852089881897, -0.03752414509654045, 0.025324352085590363, -0.013080098666250706, -0.08707024157047272, 0.011443975381553173, 0.04584703594446182, 0.054169926792383194, -0.03049948252737522, 0.009469956159591675, 0.0008291769190691411, 0.04662952944636345, -0.05882932245731354, 0.008185065351426601, 0.0036412647459656, -0.07113581895828247, -0.020647171884775162, 0.016761377453804016, -0.03891129419207573, -0.0272094514220953, -0.014369435608386993, 0.025253215804696083, 0.011186107993125916, -0.008625218644738197, -0.005748663563281298, 0.05591275542974472, -0.021518586203455925, -0.0678635761141777, 0.050364162772893906, 0.011595138348639011, 0.004397083073854446, -0.006028760690242052, -0.01922445558011532, 0.04979507625102997, -0.012742203660309315, 0.037701986730098724, 0.014689547009766102, 0.001921778661198914, 0.020825011655688286, -0.0436418280005455, -0.02610684558749199, -0.007060230243951082, 0.0014616188127547503, 0.07202501595020294, -0.0046238284558057785, 0.013746997341513634, 0.00480611389502883, 0.006313303951174021, -0.016556862741708755, 0.03780869022011757, -0.03834220767021179, 0.008931991644203663, -0.014227163977921009, -0.015872180461883545, -0.00021660301717929542, -0.01436054427176714, 0.06839708983898163, -0.08251754939556122, 0.004039180930703878, -0.03780869022011757, 0.040938664227724075, -0.01322237029671669, -0.007118028122931719, 0.027991944923996925, -0.02183869667351246, -0.03208225592970848, -0.07689782232046127, 0.0037412995006889105, 0.024773050099611282, 0.025591110810637474, -0.03023272380232811, 0.06192373111844063, -0.014405003748834133, -0.006406669970601797, -0.000814727449323982, -0.052853915840387344, -0.0033144846092909575, -0.017730602994561195, -0.026675932109355927, 0.06501813977956772, 0.02891671098768711, 0.017641684040427208, 0.004983953665941954, -0.0050951032899320126, -0.031584303826093674, -0.0016016674926504493, -0.03844891116023064, -0.0067312270402908325, 0.008149497210979462, -0.016983676701784134, -0.03393178805708885, -0.051751308143138885, -0.011177215725183487, 0.012688851915299892, 0.04758986458182335, -0.022745678201317787, 0.0323667973279953, 0.03898242861032486, 0.015543176792562008, -0.030606187880039215, -0.013435778208076954, -0.009140953421592712, 0.010865996591746807, -0.0075581809505820274, 0.01769503578543663, 0.014049324207007885, -0.02941466122865677, 0.007664884906262159, 0.06192373111844063, 0.01524974126368761, -0.038733456283807755, 0.08891977369785309, 0.100230373442173, -0.010777076706290245, 0.060572151094675064, -0.005446336232125759, 0.006242168135941029, 0.0054952423088252544, 0.02562667988240719, -0.021109554916620255, 0.021536368876695633, 0.04598930850625038, 0.03521222993731499, 0.0879950076341629, -0.05929170548915863, 0.03852004557847977 ]
730,243
mmengine.registry.registry
Registry
A registry to map strings to classes or functions. Registered object could be built from registry. Meanwhile, registered functions could be called from registry. Args: name (str): Registry name. build_func (callable, optional): A function to construct instance from Registry. :func:`build_from_cfg` is used if neither ``parent`` or ``build_func`` is specified. If ``parent`` is specified and ``build_func`` is not given, ``build_func`` will be inherited from ``parent``. Defaults to None. parent (:obj:`Registry`, optional): Parent registry. The class registered in children registry could be built from parent. Defaults to None. scope (str, optional): The scope of registry. It is the key to search for children registry. If not specified, scope will be the name of the package where class is defined, e.g. mmdet, mmcls, mmseg. Defaults to None. locations (list): The locations to import the modules registered in this registry. Defaults to []. New in version 0.4.0. Examples: >>> # define a registry >>> MODELS = Registry('models') >>> # registry the `ResNet` to `MODELS` >>> @MODELS.register_module() >>> class ResNet: >>> pass >>> # build model from `MODELS` >>> resnet = MODELS.build(dict(type='ResNet')) >>> @MODELS.register_module() >>> def resnet50(): >>> pass >>> resnet = MODELS.build(dict(type='resnet50')) >>> # hierarchical registry >>> DETECTORS = Registry('detectors', parent=MODELS, scope='det') >>> @DETECTORS.register_module() >>> class FasterRCNN: >>> pass >>> fasterrcnn = DETECTORS.build(dict(type='FasterRCNN')) >>> # add locations to enable auto import >>> DETECTORS = Registry('detectors', parent=MODELS, >>> scope='det', locations=['det.models.detectors']) >>> # define this class in 'det.models.detectors' >>> @DETECTORS.register_module() >>> class MaskRCNN: >>> pass >>> # The registry will auto import det.models.detectors.MaskRCNN >>> fasterrcnn = DETECTORS.build(dict(type='det.MaskRCNN')) More advanced usages can be found at https://mmengine.readthedocs.io/en/latest/advanced_tutorials/registry.html.
class Registry: """A registry to map strings to classes or functions. Registered object could be built from registry. Meanwhile, registered functions could be called from registry. Args: name (str): Registry name. build_func (callable, optional): A function to construct instance from Registry. :func:`build_from_cfg` is used if neither ``parent`` or ``build_func`` is specified. If ``parent`` is specified and ``build_func`` is not given, ``build_func`` will be inherited from ``parent``. Defaults to None. parent (:obj:`Registry`, optional): Parent registry. The class registered in children registry could be built from parent. Defaults to None. scope (str, optional): The scope of registry. It is the key to search for children registry. If not specified, scope will be the name of the package where class is defined, e.g. mmdet, mmcls, mmseg. Defaults to None. locations (list): The locations to import the modules registered in this registry. Defaults to []. New in version 0.4.0. Examples: >>> # define a registry >>> MODELS = Registry('models') >>> # registry the `ResNet` to `MODELS` >>> @MODELS.register_module() >>> class ResNet: >>> pass >>> # build model from `MODELS` >>> resnet = MODELS.build(dict(type='ResNet')) >>> @MODELS.register_module() >>> def resnet50(): >>> pass >>> resnet = MODELS.build(dict(type='resnet50')) >>> # hierarchical registry >>> DETECTORS = Registry('detectors', parent=MODELS, scope='det') >>> @DETECTORS.register_module() >>> class FasterRCNN: >>> pass >>> fasterrcnn = DETECTORS.build(dict(type='FasterRCNN')) >>> # add locations to enable auto import >>> DETECTORS = Registry('detectors', parent=MODELS, >>> scope='det', locations=['det.models.detectors']) >>> # define this class in 'det.models.detectors' >>> @DETECTORS.register_module() >>> class MaskRCNN: >>> pass >>> # The registry will auto import det.models.detectors.MaskRCNN >>> fasterrcnn = DETECTORS.build(dict(type='det.MaskRCNN')) More advanced usages can be found at https://mmengine.readthedocs.io/en/latest/advanced_tutorials/registry.html. """ def __init__(self, name: str, build_func: Optional[Callable] = None, parent: Optional['Registry'] = None, scope: Optional[str] = None, locations: List = []): from .build_functions import build_from_cfg self._name = name self._module_dict: Dict[str, Type] = dict() self._children: Dict[str, 'Registry'] = dict() self._locations = locations self._imported = False if scope is not None: assert isinstance(scope, str) self._scope = scope else: self._scope = self.infer_scope() # See https://mypy.readthedocs.io/en/stable/common_issues.html# # variables-vs-type-aliases for the use self.parent: Optional['Registry'] if parent is not None: assert isinstance(parent, Registry) parent._add_child(self) self.parent = parent else: self.parent = None # self.build_func will be set with the following priority: # 1. build_func # 2. parent.build_func # 3. build_from_cfg self.build_func: Callable if build_func is None: if self.parent is not None: self.build_func = self.parent.build_func else: self.build_func = build_from_cfg else: self.build_func = build_func def __len__(self): return len(self._module_dict) def __contains__(self, key): return self.get(key) is not None def __repr__(self): table = Table(title=f'Registry of {self._name}') table.add_column('Names', justify='left', style='cyan') table.add_column('Objects', justify='left', style='green') for name, obj in sorted(self._module_dict.items()): table.add_row(name, str(obj)) console = Console() with console.capture() as capture: console.print(table, end='') return capture.get() @staticmethod def infer_scope() -> str: """Infer the scope of registry. The name of the package where registry is defined will be returned. Returns: str: The inferred scope name. Examples: >>> # in mmdet/models/backbone/resnet.py >>> MODELS = Registry('models') >>> @MODELS.register_module() >>> class ResNet: >>> pass >>> # The scope of ``ResNet`` will be ``mmdet``. """ from ..logging import print_log # `sys._getframe` returns the frame object that many calls below the # top of the stack. The call stack for `infer_scope` can be listed as # follow: # frame-0: `infer_scope` itself # frame-1: `__init__` of `Registry` which calls the `infer_scope` # frame-2: Where the `Registry(...)` is called module = inspect.getmodule(sys._getframe(2)) if module is not None: filename = module.__name__ split_filename = filename.split('.') scope = split_filename[0] else: # use "mmengine" to handle some cases which can not infer the scope # like initializing Registry in interactive mode scope = 'mmengine' print_log( 'set scope as "mmengine" when scope can not be inferred. You ' 'can silence this warning by passing a "scope" argument to ' 'Registry like `Registry(name, scope="toy")`', logger='current', level=logging.WARNING) return scope @staticmethod def split_scope_key(key: str) -> Tuple[Optional[str], str]: """Split scope and key. The first scope will be split from key. Return: tuple[str | None, str]: The former element is the first scope of the key, which can be ``None``. The latter is the remaining key. Examples: >>> Registry.split_scope_key('mmdet.ResNet') 'mmdet', 'ResNet' >>> Registry.split_scope_key('ResNet') None, 'ResNet' """ split_index = key.find('.') if split_index != -1: return key[:split_index], key[split_index + 1:] else: return None, key @property def name(self): return self._name @property def scope(self): return self._scope @property def module_dict(self): return self._module_dict @property def children(self): return self._children @property def root(self): return self._get_root_registry() @contextmanager def switch_scope_and_registry(self, scope: Optional[str]) -> Generator: """Temporarily switch default scope to the target scope, and get the corresponding registry. If the registry of the corresponding scope exists, yield the registry, otherwise yield the current itself. Args: scope (str, optional): The target scope. Examples: >>> from mmengine.registry import Registry, DefaultScope, MODELS >>> import time >>> # External Registry >>> MMDET_MODELS = Registry('mmdet_model', scope='mmdet', >>> parent=MODELS) >>> MMCLS_MODELS = Registry('mmcls_model', scope='mmcls', >>> parent=MODELS) >>> # Local Registry >>> CUSTOM_MODELS = Registry('custom_model', scope='custom', >>> parent=MODELS) >>> >>> # Initiate DefaultScope
(name: str, build_func: Optional[collections.abc.Callable] = None, parent: Optional[ForwardRef('Registry')] = None, scope: Optional[str] = None, locations: List = [])
[ 0.09000343084335327, -0.03299305960536003, -0.01909908838570118, -0.021373765543103218, 0.019703619182109833, 0.018545787781476974, -0.016537515446543694, 0.0017790124984458089, 0.002991917310282588, -0.04153846949338913, 0.010973778553307056, -0.018515050411224365, 0.021414751186966896, 0.030001142993569374, -0.025308340787887573, -0.018299877643585205, -0.004229157231748104, 0.03149710223078728, -0.020154455676674843, -0.06311716139316559, -0.033607836812734604, 0.008955258876085281, 0.06057607755064964, -0.032685671001672745, -0.004918219987303019, 0.032029908150434494, 0.03686615824699402, 0.036251381039619446, -0.02987818792462349, -0.0584038645029068, -0.056272637099027634, -0.05725628137588501, 0.00017050470341928303, 0.009626391343772411, 0.0063783167861402035, -0.07319951057434082, -0.015369437634944916, 0.06983872503042221, -0.08631476759910583, -0.02024667337536812, -0.0027383214328438044, 0.022623812779784203, 0.0029099469538778067, -0.03614891692996025, 0.01708056963980198, 0.04340329393744469, 0.05364958569407463, 0.05213313549757004, 0.030226562172174454, -0.0058711254969239235, 0.012992298230528831, -0.030185576528310776, -0.03139463812112808, 0.006209252867847681, -0.013002544641494751, 0.017469927668571472, 0.010343631729483604, -0.0037860048469156027, 0.06668286770582199, -0.018781453371047974, 0.03262419253587723, 0.006562749855220318, -0.01280786469578743, 0.028628140687942505, -0.03955068811774254, -0.013443134725093842, -0.05336268991231918, -0.01999051496386528, -0.046600136905908585, 0.04442792385816574, -0.08172442764043808, -0.06824030727148056, 0.06041213870048523, -0.024816518649458885, 0.035616111010313034, -0.02270578406751156, -0.050165846943855286, -0.058731745928525925, 0.08065880835056305, -0.016312096267938614, -0.008494175970554352, 0.011557817459106445, -0.032460253685712814, -0.021025391295552254, 0.005630337633192539, 0.035165272653102875, 0.014252591878175735, 0.030697891488671303, 0.051969192922115326, -0.06274829059839249, -0.06266631931066513, 0.03463246673345566, 0.017849041149020195, 0.03748093545436859, -0.0030662028584629297, -0.041251569986343384, 0.019017118960618973, -0.0036425567232072353, -0.011650034226477146, -0.02064627781510353, -0.016486283391714096, -0.010840577073395252, -0.0691009908914566, 0.019662633538246155, -0.028812572360038757, 0.0020748742390424013, -0.055166035890579224, 0.04340329393744469, 0.00030722864903509617, 0.0035733943805098534, -0.07852758467197418, -0.0267633143812418, 0.0332389697432518, 0.02625099942088127, 0.016435053199529648, -0.025000952184200287, -0.02403780072927475, -0.011465600691735744, 0.05799401178956032, -0.016219880431890488, -0.00830974243581295, 0.04129255563020706, -0.01860726624727249, 0.026660852134227753, 0.06016622856259346, 0.035185765475034714, -0.00046620628563687205, 0.011916437186300755, 0.06426474452018738, -0.08197033405303955, 0.061436768621206284, 0.003463246626779437, -0.04778870567679405, 0.0031046264339238405, 0.053075794130563736, 0.0032019661739468575, -0.05323973298072815, -0.019703619182109833, -0.05655953288078308, 0.038075219839811325, -0.0025410803500562906, -0.005809647496789694, -0.02245987206697464, 0.011383630335330963, -0.01168077252805233, -0.05860878899693489, 0.012213580310344696, 0.03174301236867905, -0.0651664137840271, -0.05254298448562622, -0.022172976285219193, -0.016988351941108704, 0.005835263524204493, 0.08045388758182526, -0.04133354127407074, 0.03227581828832626, -0.028894543647766113, 0.02090243622660637, 0.020113471895456314, -0.03922280669212341, -0.03397670388221741, -0.022869722917675972, -0.010241168551146984, -0.03248074650764465, -0.0017252194229513407, 0.008058709092438221, 0.009985012002289295, -0.10418429970741272, -0.01933475397527218, 0.0565185472369194, -0.0503297857940197, -0.03748093545436859, -0.008371220901608467, -0.002160686766728759, -0.01978559046983719, 0.050001904368400574, -0.00797161553055048, 0.00832511205226183, -0.0303290244191885, 0.05274791270494461, 0.05619066581130028, -0.023525485768914223, -0.0829949676990509, 0.006834276951849461, 0.009129445999860764, 0.006414178758859634, -0.01932450756430626, 0.008007477037608624, 0.054018452763557434, 0.01066638994961977, -0.034468527883291245, 0.004628762602806091, 0.08762628585100174, 0.02403780072927475, 0.01412963680922985, -0.006306592840701342, -0.02604607492685318, 0.045657478272914886, -0.034693945199251175, 0.07160108536481857, -0.03686615824699402, 0.030943801626563072, 0.027255136519670486, 0.024140264838933945, -0.041640929877758026, 0.02629198506474495, 0.03344389796257019, 0.028402721509337425, -0.0024706372059881687, -0.022131990641355515, -0.05975637584924698, -0.024078786373138428, -0.005778908729553223, 0.06758454442024231, 0.014877616427838802, -0.05430534854531288, 0.018053967505693436, 0.027009226381778717, 0.0503297857940197, -0.0054459040984511375, 0.03395621106028557, 0.041169602423906326, 0.013299686834216118, -0.03211187943816185, -0.06512543559074402, -0.06487952172756195, -0.053321704268455505, -0.04602634534239769, 0.04664112254977226, 0.0016035446897149086, 0.08344580233097076, -0.04967402294278145, 0.006829153746366501, -0.03930477797985077, 0.04787067696452141, -0.03188646212220192, 0.007228759117424488, 0.05233805999159813, 0.03194793686270714, 0.038505565375089645, 0.0111274728551507, 0.03856704384088516, -0.026414940133690834, -0.015769043937325478, 0.0061272825114429, -0.005963341798633337, 0.0043777283281087875, -0.00224906112998724, 0.012295550666749477, -0.05405943840742111, -0.00393713777884841, 0.00024062776356004179, -0.004469945095479488, 0.027787944301962852, -0.046600136905908585, -0.040985167026519775, -0.00886816531419754, 0.00955979060381651, 0.027460062876343727, -0.027050210162997246, -0.0006138169555924833, 0.010476833209395409, 0.006347578018903732, 0.05147737264633179, -0.026128044351935387, -0.022992679849267006, 0.01976509764790535, 0.001999307656660676, -0.01403742004185915, -0.0258206557482481, 0.07750295102596283, 0.0835687592625618, -0.01931426115334034, 0.03928428515791893, -0.032460253685712814, -0.0293863657861948, 0.021455734968185425, -0.013791508972644806, -0.011434861458837986, -0.01357633713632822, 0.0018468941561877728, -0.004603146575391293, -0.020502829924225807, 0.034468527883291245, 0.026988733559846878, -0.00898599810898304, -0.028136318549513817, -0.023668935522437096, 0.01458047330379486, 0.016312096267938614, 0.016322342678904533, -0.021250810474157333, 0.004989944398403168, 0.03551364690065384, 0.07606847584247589, -0.011045502498745918, -0.06508444994688034, 0.012213580310344696, 0.0015689635183662176, -0.04237866401672363, 0.009149938821792603, 0.024304205551743507, 0.04631324112415314, 0.021660661324858665, 0.003650241531431675, -0.00840708240866661, 0.05336268991231918, -0.03528822958469391, -0.03729650378227234, 0.0516413114964962, 0.002516745589673519, 0.04512466862797737, 0.049305155873298645, -0.011414369568228722, 0.027705973014235497, -0.013699292205274105, 0.0377473384141922, -0.014180867932736874, 0.05373155698180199, 0.0616007074713707, 0.0006736937211826444, 0.06955183297395706, 0.01935524493455887, 0.004928466398268938, 0.04463284835219383, -0.017183031886816025, 0.040534332394599915, 0.02561572939157486, 0.004741471726447344, -0.047993630170822144, -0.057584162801504135, -0.04754279553890228, 0.05278889834880829, 0.009021860547363758, 0.03567758947610855, 0.02405829355120659, 0.01978559046983719, -0.022172976285219193, -0.012654170393943787, -0.05553490296006203, 0.074552021920681, -0.013135746121406555, -0.059223566204309464, -0.0009759592940099537, -0.03914083540439606, -0.022828739136457443, 0.0422557070851326, 0.027070702984929085, 0.013689045794308186, 0.0031686658039689064, 0.006957232486456633, -0.025308340787887573, 0.003734773490577936, -0.01751091331243515, 0.014949340373277664, -0.03209138661623001, -0.015072295442223549, 0.014180867932736874, -0.01726500131189823, -0.02063603140413761, 0.05504308268427849, 0.0211278535425663, -0.09762667119503021, -0.0029842325020581484, -0.03344389796257019, -0.06106790155172348, -0.009370233863592148, 0.040513839572668076, 0.07770787924528122, -0.09393800795078278, 0.028833065181970596, -0.016435053199529648, 0.00852491520345211, -0.0035759559832513332, -0.019406476989388466, 0.03930477797985077, 0.07139616459608078, -0.010697129182517529, -0.04967402294278145, -0.029099470004439354, 0.04401807114481926, 0.03926379233598709, 0.003745019668713212, -0.021927064284682274, 0.026005089282989502, -0.016896136105060577, 0.0552070215344429, 0.008366097696125507, -0.0039755613543093204, -0.01994953118264675, 0.016219880431890488, 0.012664416804909706, 0.00012823875294998288, 0.07430610805749893, -0.014314070343971252, -0.023504994809627533, -0.028812572360038757, 0.005266594234853983, -0.0674206018447876, -0.0016573377652093768, 0.042337678372859955, -0.056026723235845566, 0.04733787104487419, -0.0018814753275364637, 0.059223566204309464, -0.017234263941645622, 0.05959243327379227, 0.0038551674224436283, -0.01574855111539364, -0.01618914119899273, 0.002989355707541108, -0.03075936809182167, -0.08926569670438766, -0.016670716926455498, -0.017910517752170563, -0.026660852134227753, 0.07184699922800064, 0.015092788264155388, 0.0376448780298233, -0.022152483463287354, -0.017808055505156517, -0.014016927219927311, 0.017224017530679703, 0.04729688540101051, 0.005015559960156679, 0.06442868709564209, -0.06455163657665253, 0.044591862708330154, -0.0292019322514534, 0.023054156452417374, -0.06344503909349442, 0.006567873060703278, -0.029960157349705696, -0.0395301952958107, -0.0016675840597599745, -0.10598764568567276, -0.010604912415146828, -0.0011379788629710674, -0.030656905844807625, 0.022377902641892433, 0.011035256087779999, -0.004843934439122677, 0.020267166197299957, 0.004874673672020435, -0.04557550698518753, 0.035575125366449356, -0.021209824830293655, 0.10098745673894882, -0.03623088821768761, -0.01686539687216282, -0.019939284771680832, -0.027316614985466003, 0.02178361639380455, 0.0364358127117157, -0.00841732881963253, -0.04819855839014053, 0.03725551813840866, 0.01636332832276821, 0.022152483463287354, -0.009564913809299469, -0.001060491194948554, 0.008904027752578259, 0.029755232855677605, 0.017172785475850105, -0.023402530699968338, 0.05160032585263252, 0.061190854758024216, -0.049264173954725266, 0.02336154505610466, -0.01660924032330513, 0.040267929434776306, 0.052010178565979004, -0.014447271823883057, -0.03655876964330673, -0.045903388410806656, 0.026107551530003548, 0.028156811371445656, -0.025902627035975456, -0.03889492526650429, -0.06688779592514038, 0.007423438597470522, -0.021373765543103218, 0.04328033700585365, 0.023033663630485535, -0.01640431396663189, -0.05147737264633179, 0.06508444994688034, -0.06266631931066513, 0.0057123079895973206, 0.02672232873737812, -0.06672385334968567, 0.011762742884457111, 0.00840708240866661, 0.030656905844807625, -0.008494175970554352, 0.011209443211555481, 0.01233653537929058, 0.017920764163136482, 0.0064807794988155365, -0.056067708879709244, -0.005164131056517363, 0.05024781450629234, -0.015441162511706352, 0.024529622867703438, 0.023525485768914223, -0.0170908160507679, -0.0006993094575591385, 0.0029483705293387175, 0.010476833209395409, -0.006383439991623163, -0.012531215324997902, -0.038259655237197876, 0.022418886423110962, -0.0111274728551507, -0.03209138661623001, -0.023914845660328865, -0.003053395077586174, 0.024570608511567116, -0.05373155698180199, 0.009231909178197384, 0.007628364488482475, 0.010686882771551609, 0.0661090761423111, -0.042337678372859955, 0.03994004800915718, 0.012684909626841545, 0.012398012913763523, 0.02741907723248005, 0.009856932796537876, 0.047993630170822144, 0.05143638700246811, 0.022541843354701996, -0.03254222497344017, 0.005543244071304798, 0.03485788404941559, 0.0033505375031381845, 0.030615920200943947, -0.024304205551743507, -0.019724112004041672, 0.017900271341204643, -0.005261471029371023, 0.0036553647369146347, -0.004787580110132694, 0.008709347806870937, 0.03799325227737427, -0.04467383399605751, 0.062051545828580856, -0.06865015625953674, -0.003908960614353418, -0.05102653428912163, 0.021455734968185425, -0.0146931828930974, -0.012059886008501053, -0.02649691142141819, 0.02625099942088127, -0.01665022410452366, 0.020974159240722656, -0.000045427896111505106, -0.02786991372704506, 0.0020108348689973354, -0.004718417301774025, 0.09320027381181717, 0.0064654103480279446, -0.005020683165639639, 0.015492393635213375, -0.025062430649995804, -0.03541118651628494, 0.009226785972714424, -0.03991955518722534, 0.01506204903125763, -0.021004898473620415, -0.017152292653918266, 0.04709195718169212, 0.013852986507117748, -0.01819741539657116, 0.0691009908914566, 0.005297333002090454, 0.013514859601855278, 0.010302647016942501, -0.05959243327379227, 0.018771206960082054, -0.00367585732601583, -0.04205078259110451, -0.033320941030979156, -0.0050283679738640785, 0.010604912415146828, 0.017162539064884186, 0.08959357440471649, -0.013125499710440636, -0.019457709044218063, 0.02715267427265644, 0.07012562453746796, 0.03321848064661026, -0.03297256678342819, 0.03883344680070877, -0.03678418695926666, -0.07205192744731903, 0.013627568259835243, 0.020584801211953163, -0.025882134214043617, -0.049715008586645126, -0.014662443660199642, 0.01819741539657116, -0.03250123932957649, 0.019396230578422546, -0.014437025412917137, 0.042091768234968185, 0.0004866988747380674, 0.0032583209685981274, 0.001976253464818001, -0.028833065181970596, -0.07024858146905899, 0.011147965677082539, 0.010635650716722012, -0.019601156935095787, -0.05815795436501503, -0.04336230829358101, -0.006701075006276369, 0.05209214985370636, -0.01461121253669262, -0.00612215930595994, 0.03543167933821678, -0.020144209265708923, -0.015297713689506054, -0.02516489289700985, 0.02289021573960781, -0.04967402294278145, -0.01598421484231949, 0.0364358127117157, 0.00511033833026886, 0.00039992560050450265, 0.005901864264160395, 0.009774962440133095, -0.07151912152767181, 0.02608705870807171, -0.035800542682409286, 0.042747531086206436, -0.01615840196609497, -0.00797161553055048, 0.024078786373138428, -0.043034426867961884, -0.03657926246523857, -0.012510722503066063, 0.02360745705664158, -0.05774810165166855, -0.003908960614353418, 0.02360745705664158, -0.010994271375238895, 0.0570923388004303, -0.04955106973648071, -0.011178704909980297, 0.0448787584900856, -0.0008478806703351438, 0.0015958599979057908, 0.044141024351119995, 0.008898904547095299, -0.025103416293859482, -0.04266555979847908, 0.010061859153211117, 0.044837772846221924, 0.03080035373568535, -0.01301279105246067, 0.02020568773150444, 0.021435242146253586, -0.03387423977255821, 0.0003089897509198636, 0.03354635834693909, 0.000024815239157760516, 0.02336154505610466, -0.00077871821122244, 0.005630337633192539, -0.06852719932794571, 0.0386899970471859, -0.03994004800915718, -0.08877387642860413, 0.029345380142331123, 0.004354673903435469, 0.07213389873504639, 0.05561687424778938, 0.019467955455183983, -0.021865587681531906, 0.038034237921237946, -0.009313879534602165, 0.038485072553157806, 0.0017713276902213693, 0.07610945403575897, -0.02332056127488613, -0.0038782216142863035, 0.012152102775871754, -0.07668325304985046, 0.036968622356653214, -0.019590910524129868, 0.05610869452357292, -0.008555653505027294, -0.029304394498467445, 0.020318396389484406, -0.05037077143788338, -0.08049487322568893, -0.0454525500535965, -0.0060965437442064285, 0.047501809895038605, -0.005233293864876032, -0.02108686976134777, -0.06819932162761688, 0.009821071289479733, 0.01796174980700016, -0.05696938559412956, 0.029283903539180756, -0.011209443211555481, -0.009134569205343723, 0.0445098914206028, 0.024181248620152473, 0.025267357006669044, -0.0584038645029068, 0.010686882771551609, -0.05721529573202133, -0.0056252144277095795, 0.04043186828494072, 0.0040985168889164925, -0.02651740424335003, 0.05119047686457634, 0.03479640930891037, 0.059223566204309464, -0.004687678534537554, 0.07258473336696625, 0.04336230829358101, 0.010912301018834114, 0.008960382081568241, 0.029468335211277008, -0.02944784425199032, -0.011414369568228722, 0.028013361617922783, -0.09590529650449753, 0.027501048520207405, 0.035493154078722, -0.09098707139492035, 0.030247054994106293, 0.01505180262029171, -0.05508406460285187, -0.02022618055343628, -0.004398220684379339, 0.013125499710440636, -0.04754279553890228, 0.021947557106614113, 0.00851979199796915, 0.003783443244174123, 0.028833065181970596, -0.023525485768914223, 0.021045884117484093, 0.01995977759361267, 0.05442830175161362, 0.019191304221749306, 0.021209824830293655, 0.003683541901409626, -0.01638382114470005, -0.039673641324043274, -0.019908545538783073, 0.03481690213084221, 0.0013922149082645774, -0.01516451220959425, -0.013637814670801163, -0.07701113075017929, -0.0013217716477811337, -0.04213275387883186, 0.04002201557159424, 0.001843051752075553, -0.014570226892828941, -0.044100042432546616 ]
730,244
mmengine.registry.registry
__contains__
null
def __contains__(self, key): return self.get(key) is not None
(self, key)
[ 0.04607151448726654, -0.05245491862297058, -0.04020849987864494, 0.027805963531136513, 0.000829365337267518, -0.01387696247547865, 0.017814550548791885, -0.021648060530424118, 0.04825713858008385, -0.042532891035079956, -0.040486037731170654, -0.010451087728142738, 0.07451929152011871, -0.025620341300964355, -0.025412186980247498, -0.0075976368971168995, -0.017328856512904167, 0.06175248324871063, 0.013477999716997147, -0.06258510053157806, -0.01635747030377388, 0.017736492678523064, 0.0535997673869133, 0.011830110102891922, -0.0007865419029258192, 0.024943839758634567, 0.03701679781079292, -0.023347988724708557, 0.035021983087062836, 0.05842201039195061, -0.05380792170763016, -0.013235152699053288, -0.007623656187206507, 0.01627941243350506, 0.004874282982200384, 0.011587264016270638, -0.002541218651458621, 0.026643767952919006, -0.00232872786000371, -0.02962731570005417, 0.023261258378624916, 0.02473568543791771, 0.017250798642635345, -0.027597809210419655, 0.024041837081313133, 0.01278415136039257, -0.001150270109064877, 0.08388623595237732, 0.025602996349334717, 0.015420774929225445, 0.03007831610739231, -0.010095490142703056, -0.027042729780077934, -0.037571877241134644, -0.07798852771520615, 0.041492119431495667, -0.0070382216945290565, 0.08763302117586136, 0.02699069119989872, 0.06095455586910248, -0.01882063038647175, 0.010173548012971878, 0.01523863896727562, -0.03526483103632927, 0.0202083270996809, -0.019948134198784828, -0.034067943692207336, -0.013616769574582577, 0.016851836815476418, 0.016756432130932808, -0.026557037606835365, -0.038508571684360504, -0.020711366087198257, 0.053911998867988586, 0.00372726540081203, -0.025082608684897423, -0.021665407344698906, -0.010277625173330307, 0.019531823694705963, -0.02565503492951393, -0.0028100849594920874, -0.058248549699783325, -0.028725313022732735, -0.007176991552114487, -0.04520420357584953, 0.052316147834062576, 0.03635764122009277, -0.017164068296551704, 0.05460584536194801, 0.05235084146261215, -0.0410064235329628, 0.047806136310100555, 0.026869269087910652, -0.004666128661483526, 0.037849415093660355, -0.00907206442207098, 0.06456256657838821, -0.03209047392010689, -0.02735496312379837, -0.03169151395559311, 0.02379899099469185, -0.02143990620970726, 0.0913797989487648, 0.009878662414848804, 0.02605399675667286, 0.03073747269809246, -0.031552743166685104, -0.005524765700101852, 0.00250218971632421, 0.01635747030377388, -0.04180435091257095, -0.03642702475190163, -0.01599319837987423, 0.011691341176629066, 0.005745929665863514, -0.043400198221206665, -0.041700273752212524, 0.018178820610046387, -0.05144883692264557, -0.03597602620720863, -0.015923814848065376, 0.03300982341170311, -0.038890186697244644, 0.0005854343762621284, 0.060885172337293625, -0.05006114020943642, -0.035490330308675766, 0.04513482004404068, 0.05040806531906128, 0.011587264016270638, -0.00227018422447145, 0.03321797773241997, 0.016114622354507446, 0.03356490284204483, 0.030720125883817673, 0.014458060264587402, 0.012489265762269497, 0.00968785397708416, -0.030980318784713745, 0.05141414701938629, 0.0038053232710808516, -0.005255899392068386, 0.0489162914454937, -0.006799711380153894, 0.01766710728406906, -0.03450159728527069, -0.044510357081890106, 0.008443264290690422, -0.005915055051445961, -0.014917735010385513, -0.00745453080162406, -0.022151101380586624, -0.018126782029867172, 0.011361762881278992, -0.04388589411973953, 0.007376472931355238, -0.004809234756976366, 0.013859616592526436, -0.02031240426003933, -0.034831177443265915, 0.04652251675724983, 0.03715556859970093, -0.04454505071043968, -0.029367120936512947, -0.05144883692264557, 0.018681861460208893, -0.017467627301812172, 0.01189082209020853, 0.07004396617412567, 0.0530099980533123, 0.002426300197839737, -0.03092828020453453, -0.06168309971690178, 0.048187751322984695, 0.013521364890038967, 0.04336550831794739, -0.030633393675088882, 0.01973997987806797, -0.01395502034574747, 0.02192560024559498, -0.013382595963776112, -0.03538625314831734, -0.033721018582582474, -0.031552743166685104, 0.05078968405723572, 0.011084224097430706, 0.02303575724363327, -0.03198639675974846, -0.005555121693760157, 0.0642850250005722, -0.04315735399723053, -0.09068594872951508, 0.014787637628614902, 0.02201233245432377, -0.019063476473093033, -0.03470975160598755, 0.01245457399636507, -0.0006640343344770372, -0.03701679781079292, 0.07521313428878784, -0.02340002730488777, -0.07216020673513412, -0.01387696247547865, 0.034466903656721115, -0.028621235862374306, 0.0033001152332872152, 0.00014771375572308898, -0.005086774006485939, 0.03555971756577492, -0.007658348418772221, -0.039896268397569656, -0.07403359562158585, 0.029176313430070877, 0.0228449497371912, 0.08735547959804535, 0.03861264884471893, -0.06629718840122223, -0.009150122292339802, -0.047251056879758835, 0.04447566345334053, 0.06348710507154465, -0.022498024627566338, 0.054120153188705444, 0.026782536879181862, 0.019063476473093033, 0.03321797773241997, 0.024215299636125565, 0.011977553367614746, -0.028048809617757797, -0.022064371034502983, 0.051691684871912, 0.07340913265943527, 0.009349603205919266, 0.009592450223863125, 0.040867652744054794, -0.04430220276117325, -0.0025975939352065325, 0.0575547032058239, 0.013668808154761791, 0.022064371034502983, 0.04402466490864754, 0.027008038014173508, -0.006253306288272142, 0.007124952971935272, 0.003998299594968557, -0.014553464017808437, 0.0034367165062576532, 0.06782365590333939, 0.003276264062151313, 0.0035646448377519846, 0.027788616716861725, -0.01758904941380024, 0.0022268188185989857, -0.015039158053696156, 0.01654827781021595, -0.0780579149723053, -0.0888819471001625, 0.0114224748685956, 0.028447773307561874, -0.003291442058980465, -0.05845670402050018, 0.01547281350940466, 0.05745062604546547, 0.061266787350177765, -0.029835470020771027, 0.00322205713018775, 0.04974890872836113, 0.03958403691649437, -0.014536118134856224, -0.016114622354507446, 0.05630577355623245, -0.007380809169262648, 0.020069556310772896, 0.030685432255268097, 0.025047916918992996, 0.013859616592526436, 0.011595936492085457, -0.030893588438630104, -0.012862209230661392, -0.005472727119922638, 0.030113007873296738, 0.014961100183427334, 0.010329663753509521, -0.011118915863335133, -0.024284685030579567, -0.0344148650765419, -0.025984611362218857, 0.010659242048859596, 0.0015416437527164817, -0.0076670218259096146, 0.034067943692207336, -0.01392032764852047, -0.008768505416810513, 0.008278475143015385, -0.015949834138154984, 0.03660048916935921, -0.005355640314519405, -0.024857109412550926, 0.05519561842083931, 0.018126782029867172, 0.024995878338813782, 0.007723397109657526, -0.03491790592670441, -0.03411998227238655, -0.013981039635837078, 0.006309681572020054, 0.023382682353258133, 0.046106208115816116, 0.035021983087062836, 0.04617559164762497, 0.0011405128752812743, 0.004713830538094044, -0.002751541556790471, 0.04326143115758896, 0.022896988317370415, -0.04943667724728584, -0.031743552535772324, -0.013582076877355576, -0.02744169346988201, 0.08693917095661163, -0.04936729371547699, -0.011786744929850101, -0.05245491862297058, 0.005819651298224926, -0.024111222475767136, -0.0490550622344017, 0.005797968246042728, -0.011986225843429565, -0.011812764219939709, 0.01882063038647175, 0.018491052091121674, -0.07916807383298874, 0.03687802702188492, 0.005507419351488352, -0.031726203858852386, -0.039063647389411926, -0.012680074200034142, 0.03618418052792549, 0.08513516187667847, 0.008412908762693405, 0.004351728595793247, -0.00950571894645691, -0.0037467798683792353, -0.025360148400068283, 0.039063647389411926, -0.03656579554080963, -0.026400921866297722, 0.016608988866209984, 0.041700273752212524, -0.025429533794522285, -0.01928897760808468, -0.023729605600237846, 0.06477072089910507, 0.02567237988114357, 0.0456898994743824, -0.013850943185389042, 0.038682032376527786, 0.027493732050061226, 0.020902175456285477, 0.004934994969516993, 0.13953286409378052, -0.0181614737957716, -0.05915055051445961, 0.00465745572000742, -0.07340913265943527, -0.002584584290161729, -0.032107822597026825, -0.013720846734941006, -0.019254285842180252, -0.05613231286406517, -0.001435398356989026, -0.009618469513952732, -0.04534297436475754, 0.0003889343934133649, 0.03996565192937851, -0.06581149250268936, 0.008126696571707726, 0.0464184395968914, -0.005216870456933975, 0.018664514645934105, 0.026557037606835365, 0.03961872681975365, -0.01627941243350506, 0.023434720933437347, -0.012922921217978, 0.00846494734287262, 0.03411998227238655, 0.006752009503543377, 0.0062446328811347485, 0.00404383335262537, -0.027389654889702797, -0.005164831876754761, -0.09248995780944824, -0.014787637628614902, -0.09561227262020111, -0.04475320503115654, 0.030720125883817673, -0.05557723343372345, -0.011457167565822601, 0.010615875944495201, 0.09068594872951508, -0.030494624748826027, -0.02133582904934883, 0.03677394986152649, 0.033061861991882324, 0.024007145315408707, -0.0007740742876194417, 0.015342716127634048, -0.014510098844766617, -0.010971473529934883, -0.009479699656367302, -0.06612372398376465, -0.02567237988114357, -0.05290592089295387, -0.058526087552309036, -0.055334389209747314, 0.02539484202861786, -0.01029497105628252, 0.00030545578920282423, 0.022220486775040627, -0.02509995549917221, -0.034570980817079544, -0.035698484629392624, 0.012151014991104603, -0.03941057249903679, -0.004635772667825222, 0.012636709026992321, -0.060781095176935196, 0.020173633471131325, -0.011344416998326778, -0.07285404950380325, -0.06608903408050537, 0.03288840129971504, -0.00964448880404234, 0.03958403691649437, -0.013035671785473824, -0.01769312657415867, -0.07035619765520096, -0.040659498423337936, 0.01349534559994936, -0.011396455578505993, -0.008703457191586494, -0.03760656714439392, 0.009731220081448555, 0.01448407955467701, -0.014588156715035439, -0.015282005071640015, 0.08409439027309418, 0.12468450516462326, -0.05793631821870804, -0.0456898994743824, 0.03857795521616936, -0.023174528032541275, 0.009609796106815338, 0.01710335537791252, -0.03240270912647247, -0.10490983724594116, -0.006266315933316946, 0.011353089474141598, 0.03321797773241997, -0.0549180805683136, 0.030026277527213097, -0.027198845520615578, -0.038126952946186066, 0.0009166384115815163, 0.034657713025808334, -0.006517835892736912, 0.03608010336756706, 0.003590664127841592, 0.02322656661272049, -0.020381787791848183, -0.03673925623297691, -0.048291828483343124, -0.03847387805581093, -0.018404321745038033, 0.0045880707912147045, 0.019687941297888756, 0.05602823570370674, -0.04745921120047569, -0.014033078216016293, -0.00021574340644292533, 0.006218613591045141, -0.02483976259827614, -0.04523889720439911, 0.012489265762269497, -0.05765878036618233, 0.00404383335262537, 0.01814412884414196, 0.018577784299850464, -0.0198440570384264, -0.0004518143832683563, -0.010485779494047165, 0.0024566559586673975, 0.021960293874144554, 0.05422423034906387, -0.02201233245432377, -0.022064371034502983, 0.04947137087583542, 0.02941915951669216, 0.011630629189312458, 0.0008781515061855316, 0.02556830272078514, 0.022029677405953407, 0.03542094677686691, -0.00367739493958652, -0.07125820219516754, -0.04333081468939781, 0.02114502154290676, -0.019965479150414467, -0.010407721623778343, 0.03677394986152649, 0.0018235195893794298, 0.057207778096199036, -0.05446707829833031, 0.06608903408050537, 0.031639475375413895, -0.03278432413935661, -0.047355134040117264, -0.007654012180864811, 0.03094562701880932, 0.06310548633337021, 0.016799798235297203, 0.045169513672590256, -0.035594407469034195, -0.05620169639587402, 0.06015663221478462, -0.025845842435956, -0.029072236269712448, -0.026175420731306076, 0.010425068438053131, -0.027008038014173508, -0.026400921866297722, -0.041977811604738235, 0.019948134198784828, 0.012818844057619572, 0.036808643490076065, 0.001333489315584302, 0.004848263692110777, -0.016418181359767914, 0.034102633595466614, 0.03687802702188492, -0.002729858737438917, 0.061162710189819336, -0.0037901452742516994, 0.007784108631312847, 0.0423247367143631, -0.0694195032119751, -0.018456360325217247, 0.03767595440149307, 0.007918541319668293, 0.0016413844423368573, 0.03339144214987755, 0.05592415854334831, -0.0353689081966877, 0.05502215772867203, -0.011509206146001816, -0.006821394432336092, 0.021752137690782547, 0.026869269087910652, 0.06914196163415909, 0.03311390057206154, -0.0075976368971168995, 0.01143114734441042, -0.009453680366277695, -0.04381651058793068, -0.07604575157165527, -0.033998556435108185, -0.036635179072618484, 0.09630612283945084, 0.015282005071640015, 0.0036470391787588596, 0.01889001578092575, -0.04430220276117325, 0.0031960378400981426, -0.00813970621675253, 0.038231030106544495, -0.015360062941908836, 0.01647021993994713, -0.05804039537906647, -0.07986191660165787, -0.051552914083004, -0.007281068712472916, 0.049506064504384995, 0.02199498564004898, 0.0034692406188696623, -0.018959399312734604, -0.006678288336843252, 0.021283790469169617, -0.03460567444562912, 0.0000013424673852568958, -0.01842166855931282, -0.011370436288416386, -0.0004444964579306543, -0.02379899099469185, 0.07549067586660385, 0.01720743253827095, 0.03861264884471893, -0.026782536879181862, -0.017606396228075027, 0.007376472931355238, 0.0140590975061059, -0.01448407955467701, 0.014891715720295906, -0.010589856654405594, 0.030338509008288383, 0.023469412699341774, 0.0012239915085956454, 0.024874454364180565, -0.018386974930763245, -0.08229038864374161, -0.027233539149165154, -0.008096340112388134, 0.04544705152511597, 0.03391182795166969, 0.023625528439879417, -0.007623656187206507, 0.027025384828448296, 0.016608988866209984, -0.04062480852007866, -0.027407001703977585, -0.006405085325241089, 0.016851836815476418, -0.01513456180691719, 0.038231030106544495, -0.04766736552119255, -0.10012228041887283, 0.04447566345334053, -0.05262837931513786, -0.023053104057908058, -0.06005255505442619, 0.01973997987806797, 0.019236939027905464, 0.020919520407915115, -0.007016539108008146, -0.001409378950484097, -0.0026062671095132828, 0.04097172990441322, -0.007875176146626472, 0.013365249149501324, 0.042636968195438385, -0.07604575157165527, -0.027302922680974007, -0.046106208115816116, 0.026487652212381363, -0.007961907424032688, 0.047806136310100555, -0.011084224097430706, -0.00031765233143232763, 0.052524302154779434, -0.017432933673262596, -0.05845670402050018, 0.0043061948381364346, -0.010928108356893063, 0.018664514645934105, 0.029731392860412598, -0.026817230507731438, 0.00014066685980651528, -0.007567280903458595, -0.02301841229200363, -0.018837977200746536, -0.011838783510029316, -0.02237660251557827, -0.0708765834569931, -0.0496448315680027, 0.010589856654405594, -0.017337530851364136, -0.052801843732595444, -0.05745062604546547, 0.01569831371307373, 0.0681011900305748, 0.034466903656721115, -0.009869989939033985, -0.05644454434514046, -0.05068560689687729, -0.006344373803585768, -0.03432813659310341, -0.024388762190937996, -0.03875141590833664, 0.0020349265541881323, -0.04003503546118736, 0.04544705152511597, 0.028447773307561874, -0.0025672379415482283, 0.05582008138298988, -0.02471833862364292, 0.06112802028656006, 0.023903068155050278, -0.057034317404031754, 0.03195170685648918, -0.059358708560466766, 0.008248119615018368, -0.07042558491230011, -0.014501425437629223, 0.06931542605161667, 0.02133582904934883, 0.004063348285853863, -0.03802287578582764, 0.010581184178590775, 0.028465120121836662, 0.011734706349670887, -0.022515371441841125, 0.021474599838256836, 0.006938481237739325, 0.005403342191129923, -0.031171126291155815, 0.009835297241806984, -0.0008017198415473104, 0.03601071611046791, 0.03882080316543579, 0.004004804417490959, -0.06754611432552338, 0.04992237314581871, 0.025151994079351425, -0.0938776507973671, 0.0170252975076437, -0.054293613880872726, -0.016400834545493126, 0.0038855494931340218, 0.03451894223690033, 0.013929001055657864, 0.055334389209747314, -0.012220400385558605, 0.016530930995941162, -0.003681731643155217, 0.0027168490923941135, -0.005637515801936388, 0.014024404808878899, -0.08749424666166306, -0.06345240771770477, 0.04215127229690552, 0.050720296800136566, 0.03325267136096954, 0.009306238032877445, 0.0716051235795021, 0.007207347545772791, -0.03694741427898407, -0.06327895075082779, -0.023053104057908058, -0.013755539432168007, 0.0792374536395073, 0.02340002730488777, 0.008846563287079334, 0.04666128754615784, -0.030442586168646812, 0.015611582435667515, -0.0175023190677166, 0.007237703073769808, 0.017849242314696312, -0.005650525446981192, 0.011838783510029316, -0.010355683043599129, 0.04430220276117325, 0.01599319837987423, 0.022619448602199554, 0.04558582231402397, 0.00775808934122324, -0.04804898425936699, 0.01882063038647175, 0.027198845520615578, 0.03137928247451782, -0.09512657672166824, -0.014536118134856224, -0.04530828073620796, 0.02603664994239807, -0.013373922556638718, 0.010546491481363773, 0.0010662494460120797, 0.05002645030617714 ]
730,245
mmengine.registry.registry
__init__
null
def __init__(self, name: str, build_func: Optional[Callable] = None, parent: Optional['Registry'] = None, scope: Optional[str] = None, locations: List = []): from .build_functions import build_from_cfg self._name = name self._module_dict: Dict[str, Type] = dict() self._children: Dict[str, 'Registry'] = dict() self._locations = locations self._imported = False if scope is not None: assert isinstance(scope, str) self._scope = scope else: self._scope = self.infer_scope() # See https://mypy.readthedocs.io/en/stable/common_issues.html# # variables-vs-type-aliases for the use self.parent: Optional['Registry'] if parent is not None: assert isinstance(parent, Registry) parent._add_child(self) self.parent = parent else: self.parent = None # self.build_func will be set with the following priority: # 1. build_func # 2. parent.build_func # 3. build_from_cfg self.build_func: Callable if build_func is None: if self.parent is not None: self.build_func = self.parent.build_func else: self.build_func = build_from_cfg else: self.build_func = build_func
(self, name: str, build_func: Optional[collections.abc.Callable] = None, parent: Optional[mmengine.registry.registry.Registry] = None, scope: Optional[str] = None, locations: List = [])
[ 0.03731317073106766, -0.034570369869470596, -0.0016854895511642098, 0.01658567786216736, -0.022421037778258324, 0.03284000977873802, -0.009645831771194935, 0.036135055124759674, -0.04539431631565094, -0.038730595260858536, 0.023507114499807358, 0.05043812841176987, 0.011725944466888905, 0.02810913324356079, -0.020304108038544655, 0.0031615872867405415, 0.016696125268936157, 0.024998167529702187, -0.036834560334682465, -0.04068185016512871, -0.028403662145137787, -0.006603897549211979, 0.07886020094156265, 0.008711622096598148, 0.051947593688964844, 0.07204921543598175, 0.022476261481642723, 0.04760328680276871, -0.04675651341676712, -0.07311688363552094, -0.02135336957871914, -0.020893167704343796, 0.0025196054484695196, 0.04579929634928703, 0.038104720413684845, -0.009793097153306007, -0.029176801443099976, 0.0342390239238739, -0.09682648628950119, -0.018941910937428474, 0.0551505982875824, -0.001757971360348165, -0.06752082705497742, -0.04333261400461197, 0.04068185016512871, 0.028385253623127937, 0.027280770242214203, 0.020451372489333153, -0.012830429710447788, -0.029250433668494225, -0.011670720763504505, 0.013290631584823132, 0.004758487921208143, 0.01336426381021738, -0.009342098608613014, 0.055297862738370895, 0.03655844181776047, 0.009875932708382607, 0.05272073298692703, 0.020156843587756157, -0.04005597531795502, 0.006323174573481083, -0.01788344606757164, -0.0206170454621315, -0.007786616683006287, 0.02551359497010708, -0.05702822282910347, -0.06383921205997467, -0.04208086431026459, 0.07197558134794235, 0.027133505791425705, -0.008265226148068905, 0.05018041655421257, -0.032600704580545425, 0.03574848547577858, 0.015159050934016705, -0.05364113673567772, -0.04266992211341858, 0.04867095500230789, -0.03928283601999283, -0.009443343617022038, -0.0018557641888037324, -0.04741920530796051, -0.028974313288927078, 0.03274796903133392, 0.018960319459438324, -0.025034984573721886, 0.01476327795535326, 0.06030485779047012, -0.011523456312716007, -0.038804225623607635, 0.01301451027393341, -0.006134491413831711, -0.019052360206842422, 0.027115097269415855, -0.024298660457134247, 0.068919837474823, 0.013815261423587799, 0.018739422783255577, 0.03512261062860489, 0.008780652657151222, -0.05964216962456703, -0.07760845124721527, -0.031938012689352036, -0.016613289713859558, -0.020874759182333946, -0.029250433668494225, 0.02400413155555725, -0.012885653413832188, -0.018343647941946983, -0.01637398451566696, -0.012793613597750664, 0.046498801559209824, 0.030483774840831757, -0.0032766377553343773, 0.007754402235150337, -0.021703122183680534, -0.02947133034467697, 0.05043812841176987, -0.029195209965109825, 0.014385911636054516, 0.03727635368704796, -0.00352284568361938, 0.04068185016512871, 0.040902744978666306, 0.028477294370532036, -0.033981308341026306, -0.0411972738802433, 0.051837142556905746, -0.05566602572798729, 0.08688612282276154, 0.01308814249932766, -0.01584015041589737, -0.0002157196431653574, 0.0413813553750515, -0.015453580766916275, -0.02540314570069313, 0.020083211362361908, -0.05846405029296875, 0.028477294370532036, 0.008845080621540546, -0.04528386890888214, 0.007643953897058964, -0.025697674602270126, 0.014303075149655342, -0.05610781908035278, 0.0037506455555558205, -0.016125475987792015, -0.07893383502960205, -0.0480082631111145, -0.033281803131103516, -0.03482808172702789, -0.009125803597271442, 0.03090716153383255, -0.004873538389801979, -0.001262103789485991, -0.006387602537870407, -0.0021249824203550816, 0.025808123871684074, -0.009411129169166088, -0.024206621572375298, 0.010722704231739044, -0.0120296785607934, -0.061593424528837204, -0.015379948541522026, 0.010464991442859173, 0.0023067621514201164, -0.14299394190311432, -0.018260812386870384, 0.021500634029507637, -0.042301759123802185, -0.04289081692695618, 0.03869377821683884, 0.03534350544214249, -0.07366912066936493, 0.0013667996972799301, 0.007528903428465128, 0.026323549449443817, -0.008361868560314178, 0.001691242097876966, 0.03858332708477974, -0.0027704155072569847, -0.054009296000003815, 0.016235923394560814, 0.011449824087321758, 0.021555857732892036, -0.03022606112062931, 0.03788382187485695, 0.056071002036333084, 0.004590514115989208, -0.04694059491157532, -0.03208527714014053, 0.05912674218416214, 0.0008151326328516006, 0.02006480284035206, 0.005867574363946915, -0.024261845275759697, 0.02122451178729534, -0.03155144304037094, 0.057322751730680466, 0.0021606481168419123, 0.023507114499807358, 0.027170320972800255, 0.011532659642398357, -0.03895149007439613, 0.06299243867397308, 0.017441652715206146, 0.016999859362840652, 0.0483396090567112, -0.018223995342850685, -0.030465366318821907, -0.03101760894060135, -0.006622305605560541, 0.07996468245983124, -0.03633754327893257, -0.06593772768974304, -0.040865931659936905, 0.010989622212946415, 0.0344599187374115, 0.007676167879253626, 0.07967015355825424, 0.06527504324913025, 0.04060821607708931, -0.03839924931526184, -0.03160666674375534, 0.0020766612142324448, -0.040240056812763214, -0.046351537108421326, 0.013309039175510406, 0.022347405552864075, 0.0036816152278333902, -0.05938445404171944, 0.037552475929260254, -0.0549296997487545, -0.004572106059640646, -0.05938445404171944, -0.01847250573337078, 0.047124676406383514, -0.007326414342969656, 0.00929147657006979, 0.07249100506305695, 0.012002065777778625, -0.013253815472126007, -0.04079229757189751, 0.024427518248558044, -0.07392683625221252, -0.04521023482084274, 0.01722995936870575, 0.032048460096120834, -0.034570369869470596, 0.015545620582997799, -0.011606292799115181, -0.004374219104647636, 0.02615787647664547, -0.015131439082324505, 0.02674693614244461, -0.023764826357364655, -0.058132708072662354, 0.02258671075105667, -0.014330687932670116, 0.04068185016512871, 0.0015692885499447584, 0.01865658536553383, 0.0345335528254509, -0.026433998718857765, -0.07149697095155716, 0.02877182327210903, -0.04675651341676712, -0.0345335528254509, 0.0025081003550440073, 0.08460351824760437, 0.03571166843175888, 0.051837142556905746, 0.040276870131492615, -0.03155144304037094, -0.05426701158285141, 0.020745903253555298, -0.04403211921453476, 0.014487156644463539, 0.012379431165754795, 0.023709602653980255, -0.003465320449322462, 0.0002216159919044003, 0.068919837474823, 0.025624042376875877, -0.01729438826441765, -0.030041981488466263, 0.0483396090567112, -0.03179074823856354, 0.0003405494207981974, 0.004555998835712671, 0.013474712148308754, -0.005043813027441502, 0.024574782699346542, 0.05551875755190849, -0.02144540846347809, -0.04001915827393532, 0.03650321438908577, -0.0005807172856293619, -0.051837142556905746, 0.029232025146484375, -0.02474045567214489, 0.015103827230632305, 0.009185629896819592, -0.011937637813389301, 0.009342098608613014, 0.001503709820099175, -0.029011128470301628, -0.03377882018685341, 0.057948626577854156, 0.015637660399079323, 0.05551875755190849, 0.04491570591926575, 0.025568818673491478, 0.036190278828144073, -0.01065827626734972, 0.021721530705690384, -0.09321849793195724, 0.025771306827664375, 0.043627142906188965, 0.007860248908400536, 0.024942943826317787, 0.020432965829968452, 0.004763090051710606, 0.038914673030376434, -0.025936979800462723, 0.04068185016512871, 0.00771298399195075, 0.022513078525662422, 0.006244940217584372, -0.053935665637254715, -0.006571683567017317, 0.08762244880199432, -0.04171270132064819, 0.01444113627076149, 0.029084760695695877, 0.019567785784602165, 0.007510495372116566, -0.0340917594730854, -0.04719831049442291, 0.03968781232833862, 0.035987790673971176, -0.055261045694351196, 0.005752523895353079, -0.05165306478738785, -0.027777787297964096, 0.05894266068935394, -0.03285841643810272, 0.05095355585217476, -0.026268325746059418, 0.024961352348327637, -0.044253017753362656, -0.04524705186486244, -0.013916506431996822, 0.051947593688964844, -0.034312654286623, -0.030741488561034203, -0.005563841201364994, -0.014054566621780396, 0.0005833059549331665, 0.047124676406383514, -0.015232683159410954, -0.04885503649711609, -0.0036217891611158848, -0.0341469831764698, -0.025660859420895576, 0.027207138016819954, 0.01912599243223667, 0.0027036862447857857, -0.04263310506939888, 0.03243502974510193, -0.05018041655421257, 0.015996618196368217, -0.042301759123802185, 0.0022722468711435795, 0.023175768554210663, 0.0414181724190712, -0.023875275626778603, -0.05415656045079231, -0.08526621013879776, -0.034036532044410706, 0.06461235135793686, -0.0019857713486999273, -0.002390749054029584, 0.02135336957871914, -0.00997717771679163, 0.015619252808392048, 0.0275384820997715, 0.020359333604574203, -0.0010607654694467783, -0.005080629140138626, 0.0682939663529396, 0.0010791735257953405, 0.07098154723644257, 0.044989340007305145, -0.007271190173923969, 0.028569335117936134, 0.018739422783255577, -0.000740925082936883, 0.01166151650249958, 0.019659826532006264, -0.06766808778047562, 0.054561540484428406, 0.004698661621659994, 0.03571166843175888, -0.009572199545800686, 0.0077267903834581375, -0.008996947668492794, -0.016097862273454666, -0.0015117633156478405, 0.06729992479085922, 0.0022239256650209427, -0.08857966214418411, 0.0004078539495822042, -0.07127607613801956, -0.006438225042074919, 0.048597320914268494, -0.02818276546895504, 0.014514768496155739, -0.1032324954867363, -0.02608424425125122, 0.021611081436276436, 0.027704155072569847, 0.011449824087321758, 0.03215891122817993, 0.06115163117647171, -0.016834186390042305, 0.04970180615782738, -0.022421037778258324, -0.0008749588741920888, -0.056807324290275574, 0.052647098898887634, -0.014266259036958218, 0.013898097909986973, 0.0411236435174942, -0.05010678619146347, -0.023065319284796715, -0.014404320158064365, -0.023875275626778603, -0.007570321671664715, -0.013170978985726833, -0.00077256397344172, 0.037442028522491455, 0.0120572904124856, -0.06358149647712708, 0.05110082030296326, -0.004337402991950512, 0.09690011292695999, -0.026562854647636414, -0.035987790673971176, 0.027740972116589546, -0.004240760579705238, 0.049223195761442184, -0.01722995936870575, -0.038067903369665146, -0.04417938366532326, -0.027722563594579697, 0.012517492286860943, 0.01777299866080284, 0.011366987600922585, -0.01645682007074356, 0.002731298329308629, -0.010133646428585052, -0.021095655858516693, -0.04885503649711609, 0.06556957215070724, 0.04992270469665527, -0.03101760894060135, 0.05069584399461746, -0.016696125268936157, 0.047051042318344116, 0.05010678619146347, -0.012305798940360546, 0.01845409721136093, -0.02144540846347809, -0.01650284044444561, -0.016015026718378067, -0.04995952174067497, -0.03534350544214249, -0.05415656045079231, -0.008486123755574226, 0.04241221025586128, 0.0005217539146542549, 0.04038732126355171, -0.00997717771679163, -0.05577647313475609, 0.0481187142431736, -0.0483396090567112, 0.03523305803537369, 0.03928283601999283, -0.06464916467666626, 0.03285841643810272, 0.036135055124759674, 0.01306053064763546, -0.0019558581989258528, 0.015195867046713829, 0.037552475929260254, 0.03355792537331581, -0.008343460969626904, -0.03101760894060135, -0.02194242738187313, 0.058169521391391754, -0.03847287967801094, 0.06958252936601639, 0.021537449210882187, -0.02685738354921341, -0.016797369346022606, 0.01128415111452341, -0.006995069328695536, -0.021647898480296135, -0.003412397112697363, -0.048376426100730896, 0.002982108388096094, -0.013290631584823132, -0.016824981197714806, -0.014293871819972992, -0.033226579427719116, 0.01918121613562107, -0.08033284544944763, -0.0013760037254542112, 0.024574782699346542, 0.033244986087083817, 0.03026287816464901, -0.040240056812763214, 0.00990354549139738, 0.02950814738869667, 0.05975261703133583, 0.05279436334967613, 0.004526085685938597, 0.025274289771914482, 0.007805024739354849, -0.030041981488466263, -0.044289831072092056, 0.011965249665081501, -0.012020474299788475, 0.04395848885178566, 0.002715191338211298, 0.06998750567436218, -0.08629706501960754, -0.006401408463716507, 0.010372951626777649, 0.029931532219052315, 0.025053393095731735, -0.0068017845042049885, 0.04035050421953201, -0.027225544676184654, 0.031882788985967636, -0.008725428022444248, 0.035398732870817184, -0.016935430467128754, 0.030115613713860512, -0.020911574363708496, -0.03565644472837448, -0.024537965655326843, 0.039430100470781326, -0.007984503172338009, 0.0011361234355717897, -0.04392167180776596, -0.023912090808153152, -0.003106362884864211, 0.024188213050365448, 0.10441061109304428, -0.0008116811513900757, 0.008453909307718277, -0.034699223935604095, -0.0064658368937671185, -0.025955388322472572, -0.01650284044444561, -0.02956337109208107, 0.005987226963043213, -0.014321483671665192, 0.00410039909183979, 0.010050809942185879, -0.003723033471032977, 0.005260108038783073, 0.022365814074873924, 0.029986757785081863, 0.02621310204267502, 0.012324207462370396, -0.040203239768743515, -0.0012149331159889698, -0.01989913173019886, -0.08673885464668274, -0.005793942138552666, -0.04734557494521141, -0.023691194131970406, -0.017717773094773293, 0.06376557797193527, 0.029729044064879417, -0.043627142906188965, 0.05043812841176987, 0.02144540846347809, 0.021519042551517487, 0.00317309214733541, -0.04042413830757141, -0.034754447638988495, -0.0551505982875824, 0.0022998591884970665, 0.0413445420563221, -0.05629189684987068, -0.08408809453248978, -0.03096238523721695, -0.015407560393214226, -0.03318976238369942, -0.007202160079032183, 0.016180699691176414, 0.03168030083179474, 0.019107583910226822, -0.0309807937592268, 0.01411899458616972, 0.04896548390388489, -0.08048011362552643, -0.0155180087313056, 0.005099037196487188, -0.010363747365772724, -0.0753258466720581, -0.02470363862812519, -0.004215449560433626, 0.04995952174067497, -0.05135853588581085, -0.010547827929258347, 0.008067339658737183, 0.03574848547577858, 0.014229442924261093, -0.06354468315839767, 0.006686734035611153, 0.008532143197953701, -0.005932002793997526, 0.03630072623491287, 0.04403211921453476, 0.009793097153306007, 0.0007530053844675422, -0.011431415565311909, -0.06752082705497742, -0.001640619826503098, -0.03935646638274193, 0.053236156702041626, -0.018076730892062187, 0.05573965609073639, 0.023194177076220512, 0.0103545431047678, -0.03241662308573723, -0.004555998835712671, 0.00300741964019835, -0.05279436334967613, -0.012140126898884773, 0.03232458233833313, 0.008398684673011303, 0.0016682319110259414, -0.038288798183202744, 0.018039915710687637, 0.04554158076643944, -0.00993115734308958, 0.008780652657151222, 0.05029086396098137, 0.011118478141725063, -0.013483916409313679, -0.01063066441565752, 0.023120544850826263, 0.038914673030376434, 0.02608424425125122, -0.02063545398414135, 0.03569326177239418, 0.012572715990245342, -0.034570369869470596, -0.00028834526892751455, 0.03968781232833862, 0.0008047781302593648, -0.00787865649908781, 0.011670720763504505, 0.016613289713859558, -0.022255364805459976, 0.036153461784124374, -0.03026287816464901, -0.04881821945309639, 0.033981308341026306, -0.003856491995975375, 0.07856567203998566, 0.03534350544214249, 0.04867095500230789, -0.04579929634928703, 0.04679333046078682, -0.024188213050365448, 0.006511857267469168, 0.017690161243081093, 0.06052575632929802, -0.010934397578239441, 0.007441464811563492, 0.022163324058055878, -0.022476261481642723, 0.023820051923394203, -0.01648443192243576, 0.02278919890522957, -0.02205287665128708, -0.0020053298212587833, 0.0063185724429786205, -0.027170320972800255, -0.11376191675662994, -0.016861798241734505, 0.021095655858516693, 0.05857450142502785, -0.021776754409074783, -0.05205804109573364, -0.025752900168299675, 0.004512279760092497, -0.030594224110245705, -0.033373843878507614, 0.05566602572798729, 0.014882929623126984, 0.00014884656411595643, 0.02619469352066517, 0.005766329821199179, -0.0171563271433115, -0.04955454170703888, -0.018177974969148636, -0.01644761674106121, 0.0309807937592268, 0.040166422724723816, -0.00387259921990335, -0.048486873507499695, 0.053935665637254715, 0.0482291616499424, 0.05301526188850403, -0.0410868264734745, 0.059458088129758835, 0.00024865285377018154, -0.0037621506489813328, -0.016797369346022606, 0.03219572454690933, -0.031128058210015297, -0.03173552453517914, 0.019457336515188217, -0.05205804109573364, -0.04741920530796051, 0.023875275626778603, -0.07249100506305695, 0.051947593688964844, 0.023120544850826263, -0.05824315547943115, -0.009461751207709312, -0.0240593571215868, 0.037423618137836456, -0.0240225400775671, 0.026433998718857765, -0.009153416380286217, 0.025605633854866028, 0.04068185016512871, -0.04546795040369034, 0.008937121368944645, 0.04410575330257416, -0.01411899458616972, 0.030759897083044052, 0.004705564584583044, 0.025826532393693924, -0.018049119040369987, -0.05857450142502785, -0.05014359951019287, 0.01304212212562561, -0.05021723359823227, -0.0411236435174942, -0.015969006344676018, -0.08644432574510574, -0.045615214854478836, -0.04241221025586128, 0.049849070608615875, 0.014616012573242188, -0.0018557641888037324, -0.002089316723868251 ]
730,246
mmengine.registry.registry
__len__
null
def __len__(self): return len(self._module_dict)
(self)
[ 0.02496761828660965, -0.03564004972577095, -0.0038552938494831324, 0.03472620248794556, 0.04220017045736313, 0.03932807594537735, -0.014197273179888725, 0.008608116768300533, -0.002604873152449727, -0.01276122685521841, 0.005434128455817699, -0.05049007013440132, 0.022764593362808228, 0.004597794730216265, -0.014148316346108913, -0.015927055850625038, 0.023890582844614983, 0.029536854475736618, -0.00115862803068012, -0.041482146829366684, -0.05150182917714119, 0.06266382336616516, 0.045725010335445404, -0.031299274414777756, -0.050718534737825394, 0.03906697779893875, 0.05554886907339096, -0.00957907922565937, 0.047911714762449265, -0.012989688664674759, -0.09693310409784317, -0.027056410908699036, 0.01620447263121605, 0.027676522731781006, 0.011512845754623413, 0.00025230247410945594, 0.010607157833874226, -0.008289901539683342, -0.007376054301857948, -0.013283425010740757, 0.03381235525012016, -0.02044733613729477, 0.007832977920770645, -0.023955857381224632, 0.014850021339952946, 0.00360847357660532, 0.0034962825011461973, 0.018440136685967445, -0.02415168285369873, -0.03159300982952118, 0.017836343497037888, 0.030254878103733063, 0.018097443506121635, 0.021116403862833977, -0.016742991283535957, 0.08407396823167801, 0.03612961247563362, 0.03036910854279995, -0.03870796784758568, 0.039295438677072525, -0.022944098338484764, 0.007673870772123337, 0.03377971798181534, -0.06893020868301392, 0.018652278929948807, -0.004134751856327057, -0.04311401769518852, 0.03036910854279995, 0.0353136770427227, 0.012646995484828949, -0.018211673945188522, 0.006698828190565109, -0.02181810699403286, 0.05391699820756912, -0.004116393160074949, -0.026077289134263992, -0.008844737894833088, 0.004752822685986757, 0.03981763869524002, -0.04383204132318497, 0.005576916970312595, -0.02455965057015419, -0.005466765724122524, 0.042167533189058304, 0.02524503506720066, -0.01907656528055668, -0.007347496692091227, 0.004765061661601067, -0.018717553466558456, 0.016024967655539513, -0.05662590265274048, 0.08074495196342468, 0.04037247598171234, 0.0107377078384161, 0.005071037448942661, -0.05806194990873337, -0.019256070256233215, -0.045039623975753784, 0.00523014459758997, -0.06250064074993134, 0.0034310074988752604, -0.005923689808696508, -0.007196548394858837, 0.029912184923887253, 0.0024049689527601004, 0.0036737483460456133, -0.02278091199696064, -0.022389262914657593, -0.023433659225702286, 0.00030776055064052343, -0.007653472479432821, 0.0006252103485167027, 0.0212795902043581, 0.009766744449734688, 0.03488938882946968, -0.031772516667842865, 0.02044733613729477, -0.026664763689041138, 0.04582292214035988, 0.023498933762311935, 0.00641325069591403, 0.1135781854391098, -0.01873387210071087, -0.05917162075638771, 0.1218680813908577, 0.03459565341472626, -0.02948789857327938, -0.014148316346108913, 0.019647719338536263, -0.04246126860380173, 0.08107132464647293, 0.004304058384150267, -0.02455965057015419, 0.030874988064169884, 0.04755270481109619, -0.02038206160068512, 0.04190643131732941, 0.014646037481725216, -0.044713251292705536, 0.04670413210988045, -0.013601640239357948, 0.021573327481746674, -0.0009592338465154171, 0.04507226124405861, -0.017624201253056526, 0.018081124871969223, -0.015233510173857212, 0.05877997353672981, -0.02757861092686653, -0.00694360863417387, 0.015029526315629482, -0.06458943337202072, 0.021459097042679787, 0.00032917887438088655, -0.08120187371969223, 0.016024967655539513, -0.007478046230971813, -0.023482615128159523, -0.013968810439109802, -0.09719420224428177, -0.03528103977441788, -0.0013014166615903378, -0.018913378939032555, -0.03975236415863037, -0.052285127341747284, -0.014923455193638802, 0.008130794391036034, -0.06514427065849304, -0.052285127341747284, 0.059824369847774506, 0.007514763157814741, -0.041971705853939056, 0.018374860286712646, 0.002060236409306526, -0.0013299743877723813, 0.06406722962856293, -0.0318867489695549, -0.003116872627288103, 0.003622752381488681, 0.005018001422286034, -0.006405091378837824, -0.03443246707320213, -0.08981814980506897, -0.007796260993927717, 0.03400817885994911, 0.04177588224411011, 0.007196548394858837, 0.0071720704436302185, 0.01840749755501747, 0.034987300634384155, -0.043734125792980194, -0.019272388890385628, 0.021867062896490097, -0.005462686065584421, -0.01662060059607029, -0.014131997711956501, -0.031968340277671814, 0.007657552137970924, -0.009660673327744007, 0.019207114353775978, -0.05891052260994911, -0.0391322523355484, -0.02149173431098461, -0.003520760452374816, -0.012132956646382809, 0.0024355666246265173, -0.00057064468273893, 0.006490764673799276, -0.02025151252746582, -0.010541883297264576, -0.03420400246977806, -0.07963527739048004, 0.05319897457957268, 0.04869501292705536, 0.027382785454392433, -0.02010464295744896, 0.03828367963433266, -0.039230164140462875, -0.01579650491476059, -0.019337665289640427, 0.06808163225650787, 0.04951094835996628, -0.005956327077001333, -0.027186961844563484, -0.04109049588441849, -0.03244158253073692, -0.007506603840738535, 0.07637153565883636, -0.013552684336900711, -0.03864269331097603, 0.049413036555051804, 0.053460076451301575, -0.01488265860825777, 0.053394801914691925, 0.04794435203075409, -0.02209552563726902, 0.008395973592996597, 0.03036910854279995, -0.009497486054897308, -0.034791477024555206, -0.016873540356755257, 0.017542606219649315, 0.01357716228812933, 0.029569491744041443, -0.043211929500103, -0.03828367963433266, -0.008224627003073692, 0.02230766788125038, 0.009587238542735577, -0.009823859669268131, 0.005238303914666176, -0.05874733626842499, -0.04977204650640488, -0.04451742395758629, 0.009611716493964195, -0.0710190013051033, -0.011618917807936668, 0.017265189439058304, -0.014784745872020721, -0.02839454635977745, 0.01860332302749157, -0.03446510434150696, -0.020153600722551346, 0.02162228338420391, 0.004712025634944439, 0.05042479559779167, 0.08015747368335724, 0.033485982567071915, -0.03338807076215744, 0.02764388546347618, 0.0152171915397048, -0.01984354481101036, -0.04180851951241493, -0.02689322456717491, -0.029112568125128746, -0.020626842975616455, 0.04376676306128502, 0.0034595653414726257, 0.008253185078501701, 0.03674972057342529, 0.05966118350625038, -0.040796760469675064, -0.04164533317089081, 0.0004184217832516879, -0.03639071062207222, 0.04184115678071976, -0.03387762978672981, 0.020284149795770645, -0.030287515372037888, 0.015502769500017166, 0.02934103086590767, 0.022666679695248604, 0.01640845648944378, 0.020006731152534485, 0.03475883975625038, 0.005776821170002222, -0.03678235784173012, 0.03433455526828766, 0.043668851256370544, 0.036423347890377045, -0.05169765651226044, -0.007832977920770645, -0.09360408782958984, -0.02044733613729477, -0.0355747751891613, -0.021377502009272575, 0.07911308109760284, 0.010019684210419655, 0.017150958999991417, 0.040731485933065414, 0.003794098738580942, 0.06357767432928085, 0.039393350481987, 0.04575764760375023, 0.08635858446359634, -0.002176507143303752, -0.016775628551840782, 0.01723255217075348, -0.02661580592393875, 0.08622803539037704, -0.051208093762397766, 0.04752006754279137, 0.020284149795770645, -0.009587238542735577, 0.01549461018294096, -0.035672686994075775, 0.08466143906116486, -0.020741073414683342, 0.013087600469589233, -0.043668851256370544, -0.08028802275657654, -0.04500698670744896, 0.055712055414915085, -0.0031903067138046026, -0.021361183375120163, 0.009032403118908405, 0.0077677033841609955, -0.03825104236602783, -0.03590114787220955, -0.032457903027534485, 0.02522871643304825, -0.038348954170942307, -0.055842604488134384, 0.005776821170002222, -0.007498444523662329, -0.04206962138414383, 0.044778525829315186, 0.02059420570731163, 0.045790284872055054, -0.03426928073167801, -0.0029496056959033012, 0.011015125550329685, 0.035803236067295074, 0.03550950065255165, 0.036488622426986694, -0.011447571218013763, 0.006866094656288624, 0.047976989299058914, -0.004520281217992306, 0.06840800493955612, 0.05267677828669548, 0.03391026705503464, -0.059824369847774506, 0.006507083307951689, -0.03298010304570198, -0.03330647572875023, -0.01063979510217905, -0.03812049329280853, 0.04167797043919563, -0.05799667537212372, -0.021181678399443626, -0.049837324768304825, -0.016506370157003403, -0.03988291323184967, 0.010321580804884434, 0.029797954484820366, 0.0036819076631218195, 0.04755270481109619, -0.06168470159173012, -0.05009842291474342, 0.0097830630838871, 0.01327526569366455, -0.04164533317089081, -0.027758115902543068, -0.03278427571058273, 0.02462492510676384, -0.013756667263805866, -0.035444226115942, 0.002927167573943734, 0.017868980765342712, 0.0012789784232154489, 0.006470366381108761, -0.10143706947565079, 0.011227268725633621, -0.028639325872063637, 0.01832590438425541, -0.0002659438760019839, 0.0062827011570334435, -0.024918662384152412, -0.010729548521339893, 0.1072465255856514, -0.03459565341472626, 0.03141350671648979, 0.051208093762397766, -0.020708436146378517, -0.007514763157814741, 0.04363621398806572, -0.0005035850335843861, -0.023498933762311935, -0.021671239286661148, 0.023515252396464348, 0.03776148334145546, -0.07806868106126785, -0.07565351575613022, -0.01347924955189228, -0.054276011884212494, 0.018848102539777756, -0.02263404242694378, 0.09053616970777512, 0.025342946872115135, 0.04298346862196922, 0.014850021339952946, 0.024249594658613205, 0.06109722703695297, -0.02203025110065937, 0.032262079417705536, -0.05199139192700386, 0.030548613518476486, 0.005177109036594629, -0.005870653782039881, -0.055646780878305435, 0.05597315728664398, 0.02818240225315094, -0.018782828003168106, -0.011015125550329685, -0.05861678719520569, -0.007722826674580574, -0.03763093054294586, -0.04330984130501747, 0.035411588847637177, 0.04425632581114769, 0.013471090234816074, 0.025636684149503708, 0.037924669682979584, 0.06295756250619888, -0.009105836972594261, 0.009187430143356323, 0.0022479014005512, 0.03590114787220955, -0.03534631431102753, -0.09634563326835632, -0.018521729856729507, 0.022389262914657593, -0.03058125264942646, -0.0062827011570334435, -0.03144614398479462, -0.06475261598825455, -0.003926688339561224, -0.030059052631258965, -0.04670413210988045, -0.055026669055223465, 0.06462206691503525, -0.030613889917731285, -0.00774730509147048, 0.017950573936104774, 0.0040837558917701244, 0.0231236033141613, -0.02181810699403286, 0.012287984602153301, 0.06383877247571945, 0.040666211396455765, 0.02798657864332199, -0.0040184808894991875, -0.06925658136606216, -0.013071281835436821, 0.036553896963596344, -0.0011433291947469115, 0.057702939957380295, -0.01549461018294096, -0.0396544523537159, 0.01729782670736313, -0.004385651554912329, 0.03234367072582245, -0.006764102727174759, -0.019043928012251854, -0.03141350671648979, -0.027513334527611732, -0.029177842661738396, 0.03296378254890442, -0.032670047134160995, -0.009995206259191036, -0.052154578268527985, -0.01303048525005579, 0.016710354015231133, 0.06184788793325424, -0.0060052829794585705, 0.03278427571058273, 0.0019470254192128778, -0.013218150474131107, 0.0016114719910547137, -0.022356625646352768, 0.05966118350625038, 0.03603170067071915, -0.012026885524392128, -0.02079002931714058, -0.01922343298792839, 0.03825104236602783, -0.0285903699696064, 0.010011524893343449, -0.007898252457380295, -0.0030373188201338053, 0.025065530091524124, 0.008771303109824657, 0.016539007425308228, 0.058388322591781616, 0.024592287838459015, -0.006556039676070213, 0.022111844271421432, -0.008187909610569477, 0.04843391478061676, 0.019810907542705536, -0.02735014818608761, 0.032457903027534485, -0.08381286263465881, -0.040535662323236465, 0.0005584056489169598, -0.050522707402706146, -0.030467020347714424, 0.01737941987812519, 0.07898253202438354, 0.04986996203660965, -0.01272043026983738, 0.004638591781258583, 0.017428375780582428, -0.014662356115877628, 0.01467867475003004, 0.0018185155931860209, -0.03945862874388695, -0.007167990785092115, 0.0714106485247612, 0.020757392048835754, -0.04275500401854515, 0.06325129419565201, -0.04027456045150757, -0.019517170265316963, 0.04350566491484642, 0.0007557600038126111, -0.030140647664666176, -0.0038369353860616684, -0.012973370030522346, -0.023988494649529457, 0.010672432370483875, 0.032376307994127274, -0.05603843182325363, 0.0862933099269867, 0.012524605728685856, 0.028345588594675064, -0.04905402660369873, 0.017689475789666176, 0.011986088007688522, 0.016432935371994972, -0.02770916000008583, -0.005499403458088636, 0.0012534804409369826, -0.022797230631113052, -0.022536130622029305, -0.013968810439109802, 0.018309585750102997, 0.0013024365762248635, 0.03665180876851082, -0.020675798878073692, -0.01702040806412697, -0.0351831279695034, -0.007412771228700876, 0.06155415251851082, 0.016506370157003403, -0.025342946872115135, 0.03746774420142174, 0.02914520539343357, -0.08975287526845932, 0.008910012431442738, 0.009301661513745785, 0.040731485933065414, 0.0029781635385006666, -0.011349658481776714, -0.02338470332324505, -0.03364916890859604, 0.00410415418446064, -0.0005283180507831275, 0.005336216185241938, -0.0861627608537674, 0.020479973405599594, 0.0036859873216599226, -0.05786612629890442, 0.03769620507955551, 0.029373668134212494, -0.05561414361000061, 0.006596836261451244, 0.006731465458869934, 0.05326424911618233, 0.044158414006233215, 0.007412771228700876, -0.0006711067399010062, 0.010827460326254368, 0.0251634418964386, -0.0037431027740240097, 0.022454537451267242, 0.06945240497589111, 0.025734595954418182, 0.017199914902448654, -0.03234367072582245, -0.06840800493955612, 0.0028761716093868017, -0.10424388200044632, -0.016432935371994972, -0.03319224342703819, 0.029879547655582428, 0.007686109747737646, 0.08400868624448776, 0.06122777983546257, -0.030140647664666176, 0.06148887798190117, -0.010199190117418766, 0.03152773529291153, -0.04112313315272331, 0.015682274475693703, -0.026909543201327324, 0.043962590396404266, 0.017461013048887253, -0.03867533057928085, -0.00841229222714901, -0.027611248195171356, 0.06919130682945251, -0.05600579455494881, 0.01778738759458065, -0.02188338153064251, -0.009040562435984612, -0.0007649392355233431, 0.03413872793316841, 0.06354503333568573, 0.014996889047324657, -0.013805624097585678, -0.05548359453678131, -0.015592521987855434, -0.030662845820188522, 0.025816190987825394, 0.006947688292711973, -0.0012983569176867604, 0.04014401137828827, -0.0712800994515419, -0.01269595231860876, -0.029651084914803505, 0.008583638817071915, -0.009097677655518055, -0.008196068927645683, -0.08074495196342468, -0.005809458903968334, -0.0089916056022048, -0.04455006122589111, -0.06762471050024033, -0.0019980212673544884, -0.05505931004881859, 0.03270268440246582, -0.05675645172595978, 0.0926249623298645, -0.02976531721651554, 0.04115577042102814, 0.003843054873868823, 0.022682998329401016, -0.02194865792989731, -0.008706028573215008, 0.018440136685967445, 0.01888074167072773, -0.008102236315608025, -0.03665180876851082, 0.040046099573373795, -0.03475883975625038, 0.05022897198796272, 0.036423347890377045, 0.0013381337048485875, -0.0152171915397048, 0.03537895157933235, -0.06749416142702103, -0.010900894179940224, 0.025016574189066887, 0.06710251420736313, -0.05917162075638771, 0.008934490382671356, 0.062011078000068665, -0.05091435834765434, -0.03351861983537674, -0.054896119982004166, 0.03495466336607933, 0.01757524535059929, 0.011121196672320366, -0.012181912548840046, 0.0038144970312714577, 0.015927055850625038, 0.008836578577756882, -0.021801788359880447, 0.009603557176887989, 0.014148316346108913, 0.009415891952812672, -0.011537323705852032, -0.01997409388422966, 0.017901618033647537, -0.06644976139068604, 0.011586279608309269, -0.054961394518613815, -0.013046803884208202, -0.029438942670822144, 0.08067967742681503, 0.007722826674580574, -0.07134537398815155, -0.006037920713424683, -0.039295438677072525, 0.00516487006098032, 0.047650616616010666, 0.0105745205655694, 0.010868256911635399, 0.013919854536652565, 0.052970513701438904, 0.03678235784173012, 0.06116250529885292, 0.010492926463484764, -0.0010097197955474257, -0.005336216185241938, -0.003490162780508399, -0.004834416322410107, 0.02387426421046257, -0.01361795887351036, -0.05662590265274048, -0.08596693724393845, 0.018162718042731285, 0.012744908221065998, 0.009481167420744896, 0.01217375323176384, 0.02038206160068512, 0.012614358216524124, -0.0046549104154109955, 0.07780758291482925, -0.002374371513724327, 0.017069363966584206, 0.013707711361348629, 0.04644303396344185, -0.014841861091554165, -0.006955847609788179, 0.017526287585496902, 0.017771068960428238, -0.017689475789666176, 0.032115209847688675, 0.029504217207431793, 0.01909288391470909, -0.03322488069534302, 0.024608606472611427, 0.01990881934762001, -0.026713719591498375, -0.029993778094649315, -0.021328546106815338, -0.018897060304880142, -0.03364916890859604, -0.04960886016488075, 0.006152151618152857, 0.030254878103733063, 0.025261353701353073, 0.04425632581114769, -0.01729782670736313, -0.024722836911678314 ]
730,247
mmengine.registry.registry
__repr__
null
def __repr__(self): table = Table(title=f'Registry of {self._name}') table.add_column('Names', justify='left', style='cyan') table.add_column('Objects', justify='left', style='green') for name, obj in sorted(self._module_dict.items()): table.add_row(name, str(obj)) console = Console() with console.capture() as capture: console.print(table, end='') return capture.get()
(self)
[ 0.04561691731214523, -0.07153480499982834, -0.0039272247813642025, -0.05668863654136658, 0.04863647744059563, -0.02708616852760315, -0.010343789122998714, -0.0006683921092189848, 0.0003867125487886369, -0.016463788226246834, -0.017829779535531998, 0.01115259900689125, -0.005724581424146891, 0.03781638666987419, -0.049930572509765625, -0.02642114646732807, 0.02728387713432312, -0.04202220216393471, -0.018566695973277092, -0.015762818977236748, -0.0032262555323541164, 0.04637180641293526, 0.08533850312232971, -0.040224846452474594, -0.013677885755896568, 0.03846343606710434, -0.012518590316176414, -0.020543789491057396, 0.0036216741427779198, -0.02334766648709774, -0.04036863520741463, -0.059025198221206665, -0.026582907885313034, 0.01313867885619402, -0.019339559599757195, -0.021550308912992477, -0.014486696571111679, -0.009552951902151108, 0.014262027107179165, -0.00392048479989171, 0.05471154302358627, -0.007589339278638363, 0.023275772109627724, -0.04637180641293526, -0.02435418590903282, -0.0022354626562446356, 0.07980264723300934, 0.014504670165479183, -0.0015479736030101776, -0.044969867914915085, 0.010721233673393726, 0.04439471289515495, -0.028452159836888313, 0.01569991186261177, -0.03573145344853401, -0.03222660720348358, -0.00025415749405510724, -0.027158062905073166, 0.040224846452474594, 0.014603524468839169, -0.03695365786552429, 0.016005462035536766, -0.0007386013166978955, 0.005126960575580597, 0.013776740059256554, -0.033628545701503754, -0.04320845752954483, -0.016409868374466896, 0.006717621348798275, 0.02332969196140766, -0.028865551576018333, -0.0038306168280541897, 0.016850220039486885, 0.006052599288523197, -0.027373744174838066, -0.027194010093808174, -0.01271629985421896, -0.07016881555318832, 0.03756475821137428, -0.04076405242085457, -0.009525991044938564, 0.023006167262792587, 0.014441762119531631, 0.01630202680826187, 0.005908810533583164, -0.04479013383388519, 0.032370395958423615, 0.024677710607647896, -0.03325110301375389, 0.0004639427352230996, -0.003513832576572895, 0.004996652249246836, -0.029063260182738304, 0.04094379022717476, -0.03742096945643425, -0.07124722748994827, -0.007005198393017054, -0.009373215958476067, 0.010550484992563725, -0.007728634402155876, 0.008735154755413532, -0.0031004406046122313, -0.016373921185731888, 0.022826431319117546, -0.03138184919953346, -0.00661427341401577, -0.0204539205878973, 0.05021815001964569, -0.020921234041452408, 0.057551365345716476, -0.026493040844798088, 0.08030590415000916, 0.034617092460393906, -0.03181321546435356, 0.06240423023700714, -0.0363425575196743, -0.03156158700585365, -0.01280616782605648, 0.05499912053346634, -0.04500581696629524, -0.020957181230187416, 0.017029955983161926, 0.04985867813229561, 0.007939823903143406, 0.012195066548883915, 0.07786150276660919, -0.06333885341882706, -0.024911366403102875, 0.03803206980228424, -0.0487443171441555, 0.05938467010855675, -0.015879647806286812, -0.04975083842873573, 0.02710414119064808, 0.07994643598794937, -0.0012356828665360808, 0.03878696262836456, -0.00032015418400987983, 0.0363425575196743, 0.09324687719345093, 0.012356827966868877, -0.03386220335960388, -0.02996193803846836, 0.04795348271727562, -0.01738044060766697, -0.04270520061254501, 0.009759647771716118, 0.09173709154129028, 0.015160704962909222, -0.02726590447127819, -0.003940704744309187, -0.007625286467373371, 0.03183118999004364, 0.02358132228255272, 0.002137731295078993, 0.057767048478126526, 0.011727753095328808, -0.03675594925880432, 0.028182554990053177, -0.03655823692679405, -0.004354096949100494, 0.016661498695611954, 0.008995771408081055, -0.0060570924542844296, -0.030644934624433517, 0.04173462465405464, 0.029207048937678337, -0.05855788663029671, -0.0013805947965011, 0.005437004379928112, -0.0208852868527174, -0.10022062063217163, -0.06927013397216797, 0.05230308324098587, -0.030537093058228493, 0.05683242529630661, -0.005913304165005684, 0.07455436140298843, -0.0019478854956105351, -0.009148546494543552, 0.02147841453552246, -0.03742096945643425, -0.08735154569149017, 0.02935083769261837, 0.01819823868572712, -0.06808387488126755, 0.02106502279639244, 0.0008969933842308819, 0.056149426847696304, 0.0009582158527337015, -0.025702202692627907, 0.020759472623467445, 0.03281973674893379, 0.045149605721235275, 0.016994008794426918, -0.05852193757891655, -0.03828370198607445, -0.012662379071116447, -0.035443875938653946, 0.00011893447663169354, -0.011206519789993763, 0.012231013737618923, -0.021604228764772415, 0.04155489057302475, 0.03120211511850357, -0.03799612447619438, 0.02395876683294773, -0.02525286376476288, 0.025270838290452957, -0.014927049167454243, -0.01779383234679699, 0.006690660957247019, -0.026151541620492935, 0.02108299545943737, 0.018944140523672104, -0.002588193863630295, -0.023221850395202637, -0.035246167331933975, -0.054855331778526306, -0.03767260164022446, 0.0038306168280541897, -0.002965638879686594, 0.0245878417044878, -0.043927401304244995, -0.10288070887327194, -0.030465198680758476, -0.011098678223788738, -0.020004581660032272, 0.006317709572613239, -0.01733550615608692, 0.026115594431757927, -0.040584318339824677, -0.06175718083977699, 0.007683700416237116, -0.028236476704478264, 0.01944740116596222, -0.0430646687746048, 0.036001056432724, 0.024713655933737755, 0.0384993851184845, -0.004736035130918026, 0.04978678375482559, 0.044143084436655045, -0.015430308878421783, 0.01738044060766697, -0.03418572619557381, -0.00403955951333046, -0.0008346475660800934, -0.026816563680768013, -0.04234572872519493, -0.019105903804302216, -0.045796651393175125, 0.029458679258823395, -0.017677005380392075, -0.0059447577223181725, -0.060247402638196945, -0.04256141185760498, -0.0037137886974960566, 0.027571454644203186, 0.013704845681786537, -0.009786607697606087, -0.006582819391041994, 0.009319295175373554, 0.04737832769751549, 0.054028548300266266, -0.00424625538289547, -0.05205145478248596, 0.04270520061254501, 0.022377092391252518, -0.014378855004906654, 0.07692687213420868, 0.05061357095837593, -0.07185832411050797, -0.005450484808534384, -0.025324758142232895, -0.026600882411003113, 0.024677710607647896, -0.007297269068658352, -0.05154819414019585, -0.06380616873502731, 0.003282422898337245, -0.02395876683294773, -0.01043365616351366, -0.010074185207486153, 0.01676934026181698, -0.03434748947620392, -0.007018678355962038, -0.0067490749061107635, 0.016670484095811844, 0.0004501817165873945, 0.056329164654016495, 0.049319472163915634, -0.03355665132403374, 0.009382203221321106, 0.018926167860627174, 0.01592458225786686, -0.026133568957448006, 0.03490466997027397, -0.040224846452474594, 0.02893744595348835, -0.0268704853951931, -0.05187172070145607, 0.07491383701562881, 0.030231542885303497, -0.07663929462432861, -0.012168105691671371, 0.04425092414021492, 0.02007647603750229, -0.006169427651911974, 0.0029004847165197134, -0.006218854803591967, 0.04367577284574509, 0.0826784148812294, 0.07038449496030807, -0.03226255625486374, -0.020813392475247383, -0.030231542885303497, -0.0004743337049148977, 0.02586396597325802, 0.03914643079042435, -0.01187154185026884, 0.020004581660032272, 0.0018490308430045843, 0.02255682833492756, 0.07929938286542892, -0.05866572633385658, 0.0042979298159480095, -0.009534978307783604, 0.029476651921868324, 0.009669779799878597, -0.03921832516789436, -0.053633127361536026, 0.07412299513816833, 0.049714889377355576, 0.07491383701562881, 0.030698854476213455, 0.018090397119522095, -0.015133745037019253, -0.07498572766780853, -0.031489692628383636, 0.06934202462434769, -0.004017092753201723, -0.032370395958423615, -0.04115947335958481, -0.015331453643739223, -0.00909462571144104, -0.0026308810338377953, 0.0287217628210783, 0.013156652450561523, -0.04097973555326462, -0.006852422840893269, 0.004208061844110489, 0.02421039715409279, 0.025486519560217857, -0.0062952423468232155, 0.0220895167440176, -0.030321409925818443, 0.018135331571102142, -0.05162008851766586, 0.0413392074406147, 0.03310731425881386, 0.023114008828997612, -0.054064493626356125, 0.010271894745528698, -0.11208317428827286, -0.04554502293467522, -0.014342907816171646, 0.04112352430820465, 0.057120002806186676, 0.02395876683294773, -0.015780793502926826, 0.04608422890305519, 0.01798255555331707, -0.03549779951572418, -0.030339384451508522, 0.05248282104730606, 0.028577974066138268, -0.022610750049352646, -0.0028488105162978172, -0.12150132656097412, 0.0702766552567482, 0.004318149760365486, -0.007661233656108379, -0.0002106277534039691, -0.010514537803828716, 0.0007105176337063313, -0.017865726724267006, 0.04076405242085457, -0.02435418590903282, -0.055322643369436264, -0.053201764822006226, -0.0012064757756888866, 0.016877181828022003, 0.06891065835952759, -0.02435418590903282, -0.0483129508793354, 0.019285639747977257, -0.0007122026290744543, -0.0541723370552063, -0.0036576210986822844, 0.023814978078007698, -0.01923171803355217, -0.028829604387283325, -0.046228017657995224, -0.01283312775194645, -0.051368460059165955, 0.04112352430820465, -0.033988017588853836, 0.010074185207486153, -0.05913304165005684, 0.014936035498976707, -0.025127049535512924, -0.07272105664014816, -0.024336211383342743, 0.027787137776613235, -0.033161234110593796, -0.026834538206458092, 0.012590484693646431, 0.02787700481712818, -0.008335242047905922, -0.03472493588924408, 0.022071542218327522, 0.009957357309758663, 0.05604158714413643, 0.014971982687711716, 0.04173462465405464, -0.02541462518274784, 0.04320845752954483, 0.04529339447617531, 0.011736740358173847, -0.04259735718369484, -0.010568458586931229, 0.007921850308775902, -0.02645709365606308, 0.05162008851766586, -0.1079133078455925, 0.0287217628210783, -0.039757534861564636, -0.02005850337445736, 0.058989252895116806, 0.06887471675872803, -0.05625727027654648, 0.028038766235113144, 0.022179383784532547, -0.018135331571102142, 0.022628722712397575, -0.011799647472798824, -0.0007093942840583622, 0.035012513399124146, 0.005625727120786905, 0.017650043591856956, -0.003778942860662937, 0.0070815859362483025, -0.03452722355723381, -0.0009492291137576103, -0.03201092407107353, 0.005504405591636896, -0.021226784214377403, -0.00640308391302824, 0.030339384451508522, -0.014172159135341644, 0.018944140523672104, 0.001343524199910462, 0.030680881813168526, -0.030033832415938377, -0.06315912306308746, 0.03389814868569374, 0.011476123705506325, -0.005670661106705666, 0.0027993833646178246, 0.027787137776613235, 0.05481938272714615, -0.03059101291000843, -0.0227365642786026, -0.004459691699594259, 0.030555065721273422, -0.006731101311743259, -0.0005448238225653768, -0.09288740158081055, -0.04637180641293526, -0.06661004573106766, -0.03675594925880432, 0.029278943315148354, -0.02627735771238804, -0.025917885825037956, 0.03098643198609352, 0.04173462465405464, -0.008020704612135887, 0.038751013576984406, -0.04148299619555473, -0.012356827966868877, 0.033790308982133865, -0.10101145505905151, 0.038139913231134415, -0.0012008590856567025, -0.01635594666004181, 0.034437358379364014, 0.005369603633880615, -0.041662730276584625, 0.0031341409776359797, 0.04256141185760498, 0.02460581623017788, 0.001603017677552998, 0.010011278092861176, 0.019788898527622223, -0.008946343325078487, 0.05456775426864624, -0.005481938365846872, 0.02895541861653328, -0.007144493516534567, 0.017290573567152023, -0.03982942923903465, -0.002178171882405877, 0.007108546327799559, -0.034005992114543915, -0.036486342549324036, 0.009238414466381073, 0.020921234041452408, -0.03161550685763359, 0.04115947335958481, 0.00003721090251929127, 0.026439119130373, -0.016706431284546852, -0.04241762310266495, -0.031759295612573624, 0.05100898817181587, 0.004194581415504217, 0.02832634374499321, -0.0298001766204834, 0.05007436126470566, 0.021244758740067482, 0.013812687247991562, -0.012788194231688976, -0.012168105691671371, -0.04694696143269539, 0.06100229173898697, -0.024120528250932693, 0.03864317387342453, -0.004731541965156794, -0.0012154625728726387, 0.03454519808292389, -0.019788898527622223, 0.00868123397231102, -0.05226713791489601, 0.012617445550858974, -0.03767260164022446, 0.04482607915997505, -0.006012158468365669, 0.010361762717366219, -0.03706149756908417, 0.029728282243013382, -0.012042290531098843, 0.039973217993974686, -0.06524405628442764, -0.025091102346777916, 0.11438378691673279, 0.049714889377355576, 0.003084713825955987, 0.009256388060748577, -0.013408281840384007, 0.014549603685736656, 0.029063260182738304, 0.033826254308223724, 0.02625938318669796, 0.06714925169944763, 0.016203172504901886, -0.02047189511358738, 0.05248282104730606, -0.036054980009794235, -0.010182026773691177, -0.011817621067166328, -0.009108105674386024, 0.04834889993071556, 0.0019883259665220976, -0.010092158801853657, -0.008568898774683475, 0.02359929494559765, 0.06747277826070786, 0.02748158574104309, -0.05108088254928589, -0.043927401304244995, -0.009795594960451126, -0.019968634471297264, -0.04878026619553566, -0.02563030831515789, 0.003561013378202915, -0.07455436140298843, 0.023024141788482666, 0.03409586101770401, -0.02151436172425747, 0.016868194565176964, -0.010146079584956169, -0.036288633942604065, -0.024911366403102875, 0.04863647744059563, -0.022700617089867592, -0.03623471409082413, 0.020939206704497337, -0.005117973778396845, 0.0413392074406147, -0.03202889859676361, 0.05622132122516632, 0.026780616492033005, -0.01615823805332184, 0.04069215804338455, -0.022844405844807625, 0.05291418731212616, -0.023401586338877678, -0.02564828284084797, 0.008038678206503391, -0.046839118003845215, -0.00589083693921566, -0.031076300889253616, -0.02376105822622776, -0.005396564025431871, -0.057767048478126526, 0.010056211613118649, -0.037313129752874374, -0.01086502242833376, -0.004551806021481752, 0.0326399989426136, 0.07980264723300934, -0.03059101291000843, 0.016832247376441956, 0.0012682599481195211, 0.021208811551332474, -0.020202290266752243, -0.001938898698426783, 0.0896521583199501, -0.027427665889263153, 0.005001145415008068, -0.015223613008856773, -0.00879806187003851, -0.04259735718369484, -0.02875771000981331, -0.01986079290509224, 0.013597005046904087, 0.015088810585439205, -0.0327298678457737, 0.022233303636312485, -0.007063612341880798, -0.005580793134868145, -0.06351859122514725, 0.03601903095841408, -0.0012851101346313953, 0.03458114713430405, -0.027355771511793137, -0.041015684604644775, 0.049067843705415726, -0.0724334791302681, -0.04752211645245552, -0.004275462590157986, 0.024318238720297813, 0.019717004150152206, 0.020543789491057396, -0.008694713935256004, -0.02917110174894333, -0.01944740116596222, -0.040009163320064545, 0.043100617825984955, -0.028865551576018333, -0.04011700674891472, -0.009229427203536034, -0.03982942923903465, 0.05420828238129616, 0.022790484130382538, 0.022197356447577477, 0.05607753247022629, -0.0491756834089756, -0.00403955951333046, 0.030069779604673386, -0.0003510462702251971, 0.0031453745905309916, -0.04137515649199486, -0.027643349021673203, 0.04856458306312561, -0.0400451123714447, 0.04626396670937538, 0.08512282371520996, -0.03078872337937355, -0.019519295543432236, -0.02645709365606308, -0.03781638666987419, -0.008640793152153492, -0.01022696029394865, 0.05205145478248596, -0.042273834347724915, 0.010990837588906288, -0.017524229362607002, -0.07210996001958847, -0.05471154302358627, -0.04612017795443535, 0.03080669604241848, 0.002502819523215294, -0.016185197979211807, 0.057371631264686584, 0.06693357229232788, -0.08756722509860992, 0.023617269471287727, 0.03163348138332367, 0.03990132361650467, 0.020579736679792404, 0.037313129752874374, 0.01569092459976673, 0.021352600306272507, 0.04216599091887474, 0.03497656434774399, 0.020507842302322388, -0.019770925864577293, 0.006528898607939482, 0.03846343606710434, 0.11826608330011368, 0.014729339629411697, -0.014612511731684208, -0.00858687236905098, -0.018908193334937096, 0.010146079584956169, 0.020004581660032272, -0.03828370198607445, -0.023850925266742706, -0.00677603529766202, 0.03907453641295433, 0.03821180760860443, 0.01862061768770218, 0.07707066088914871, 0.13343577086925507, -0.04529339447617531, 0.011628898791968822, -0.02917110174894333, 0.010586432181298733, 0.020220264792442322, 0.015070836991071701, -0.06639435887336731, 0.022413039579987526, 0.03125603497028351, -0.022610750049352646, 0.01759612374007702, -0.010748193599283695, 0.0454731285572052, -0.031291984021663666, 0.01964510977268219, 0.009750660508871078, 0.03943400830030441, 0.0021938986610621214, 0.0029251982923597097, 0.02147841453552246, -0.0231679305434227, 0.024480000138282776, 0.023455506190657616, 0.07412299513816833, 0.027140088379383087, 0.0208852868527174, -0.002059096936136484, 0.02192775346338749, 0.040584318339824677, -0.03675594925880432, 0.0014951762277632952, 0.01541233528405428, 0.018980087712407112, -0.015439295209944248, 0.007710660807788372, -0.00795330386608839, -0.006533392239362001, 0.023437533527612686, -0.0003325110301375389, 0.03788828104734421, -0.018458854407072067, -0.0463358610868454 ]
730,248
mmengine.registry.registry
_add_child
Add a child for a registry. Args: registry (:obj:`Registry`): The ``registry`` will be added as a child of the ``self``.
def _add_child(self, registry: 'Registry') -> None: """Add a child for a registry. Args: registry (:obj:`Registry`): The ``registry`` will be added as a child of the ``self``. """ assert isinstance(registry, Registry) assert registry.scope is not None assert registry.scope not in self.children, \ f'scope {registry.scope} exists in {self.name} registry' self.children[registry.scope] = registry
(self, registry: mmengine.registry.registry.Registry) -> NoneType
[ 0.03978492319583893, -0.004400155041366816, -0.04787798225879669, 0.04096665233373642, 0.010492333211004734, 0.06517422199249268, 0.022972121834754944, 0.06825388222932816, 0.004923876374959946, 0.029024014249444008, 0.06324047595262527, 0.01935531012713909, 0.03942682221531868, -0.037922799587249756, -0.02168296091258526, 0.01634727045893669, 0.03640087693929672, 0.02705446258187294, -0.059587858617305756, -0.006620375905185938, -0.04891647398471832, -0.0074529582634568214, 0.06735862791538239, -0.03745727241039276, -0.060089197009801865, 0.09124390780925751, -0.021199526265263557, 0.044225361198186874, -0.03853157162666321, -0.021557627245783806, -0.027699043974280357, -0.07949822396039963, -0.052604906260967255, -0.0035384767688810825, -0.015514686703681946, 0.024565666913986206, -0.08623050898313522, 0.03504009544849396, -0.05736763775348663, 0.05629333481192589, 0.030724989250302315, 0.0724436491727829, 0.0002915158693213016, -0.03342864662408829, 0.03543400391936302, 0.03654411435127258, 0.07469968497753143, 0.029328398406505585, 0.02076980657875538, -0.034073226153850555, -0.006691995542496443, -0.005563980434089899, -0.002927468391135335, -0.0002403187390882522, -0.04555033519864082, 0.040035590529441833, 0.05074278637766838, -0.0069516184739768505, 0.0127573162317276, 0.012828935869038105, 0.00036089777131564915, -0.025049101561307907, -0.031351663172245026, 0.0020310990512371063, 0.014234479516744614, -0.010089470073580742, -0.009489652700722218, -0.04297201335430145, 0.002021027496084571, 0.06495936214923859, -0.04132475331425667, -0.06818225979804993, -0.007054571993649006, 0.00034998689079657197, 0.011056340299546719, 0.0433301143348217, -0.02153972163796425, -0.03006250411272049, 0.07949822396039963, 0.00611903565004468, -0.01807510294020176, 0.004561299923807383, 0.015998121351003647, 0.03235434368252754, -0.030742894858121872, 0.0693281814455986, 0.0017412618035450578, -0.00022591081506107002, 0.042542293667793274, -0.009212125092744827, 0.007041143253445625, 0.008827167563140392, 0.03860319033265114, 0.015917548909783363, 0.07283756136894226, -0.03641878068447113, 0.00010603120608720928, 0.03595324978232384, -0.027699043974280357, 0.030098313465714455, -0.06202293932437897, 0.003276615869253874, 0.02970440313220024, -0.020214751362800598, 0.016427842900156975, -0.05095764622092247, -0.00718438345938921, -0.03172766789793968, -0.009489652700722218, 0.02522815205156803, 0.0009137148153968155, 0.009686607867479324, -0.01222911849617958, 0.03853157162666321, -0.04794960469007492, 0.027806473895907402, 0.0037197647616267204, -0.05024144425988197, 0.01908673532307148, -0.004682159051299095, 0.00427929637953639, 0.021718772128224373, 0.0642789676785469, -0.00042076761019416153, 0.012452931143343449, 0.016794895753264427, -0.020035700872540474, 0.03294520825147629, 0.031351663172245026, -0.03529076650738716, 0.017672240734100342, 0.01764538325369358, -0.02474471740424633, -0.0551116056740284, 0.04612329229712486, -0.00010882886272156611, 0.05951623618602753, -0.016329364851117134, -0.0271977037191391, -0.030152028426527977, -0.010080518200993538, -0.024583572521805763, -0.007752867415547371, 0.03210367262363434, -0.008451162837445736, -0.01177254132926464, -0.09518300741910934, 0.058406125754117966, -0.06291818618774414, -0.02517443709075451, -0.06886264681816101, 0.018263105303049088, 0.01374209113419056, 0.03434180095791817, 0.01093995850533247, 0.06270332634449005, -0.0008734285365790129, 0.018889781087636948, 0.03196043521165848, -0.010438618250191212, 0.025192342698574066, -0.010716145858168602, 0.017009755596518517, -0.006221989169716835, -0.016356222331523895, 0.04558614268898964, -0.009722418151795864, -0.024135947227478027, -0.018782351166009903, 0.09718836843967438, 0.028200384229421616, -0.03824509307742119, 0.004337487742304802, 0.021969441324472427, -0.014995441772043705, 0.012927413918077946, 0.05461026728153229, -0.015147634781897068, 0.00020604745077434927, 0.04157542064785957, 0.04250648245215416, -0.017323093488812447, 0.018853969871997833, -0.02084142528474331, 0.02250659093260765, -0.027591614052653313, -0.017699098214507103, 0.04576519504189491, 0.0536792054772377, 0.00506711658090353, 0.018818160519003868, 0.04444022476673126, 0.03795861080288887, -0.04991915449500084, 0.015156586654484272, -0.03500428423285484, 0.015631070360541344, -0.01629355549812317, 0.015998121351003647, 0.05403730645775795, -0.004086817614734173, 0.03480733186006546, 0.030796609818935394, -0.018182532861828804, 0.03242596611380577, 0.016794895753264427, -0.04698273539543152, 0.010796718299388885, -0.02460147812962532, -0.04555033519864082, -0.0275558028370142, 0.004012959077954292, -0.01545201987028122, 0.052604906260967255, -0.021826202049851418, -0.03179929032921791, -0.09246144443750381, -0.03838833048939705, 0.057009536772966385, -0.03856738284230232, 0.045263852924108505, 0.04075179249048233, -0.007323147263377905, -0.036329254508018494, -0.048271894454956055, -0.04028626158833504, 0.05124412477016449, -0.06456544995307922, 0.046373963356018066, 0.061629027128219604, -0.01937321573495865, 0.004377773962914944, 0.0033795698545873165, -0.04433279484510422, 0.037922799587249756, -0.038889672607183456, -0.02936420775949955, 0.02991926297545433, 0.012255975976586342, 0.048271894454956055, 0.021575530990958214, 0.013357133604586124, -0.00048623280599713326, 0.038280900567770004, -0.01632041297852993, 0.02929258905351162, -0.02293631248176098, 0.031638145446777344, 0.013965903781354427, -0.006678566802293062, -0.019409025087952614, -0.03097565844655037, -0.017627477645874023, 0.005778840277343988, -0.012193308211863041, -0.001006037462502718, -0.032819874584674835, -0.011593490839004517, 0.01673222705721855, -0.025263963267207146, 0.024386616423726082, 0.04762731492519379, 0.046875305473804474, 0.06152159720659256, -0.06392087042331696, -0.018191484734416008, 0.006275704130530357, -0.012748363427817822, -0.018110912293195724, -0.008666022680699825, 0.11115427315235138, 0.0010217044036835432, 0.02005360648036003, -0.018621206283569336, -0.016884420067071915, -0.043795641511678696, 0.01985665038228035, 0.018137769773602486, -0.060912828892469406, -0.05145898461341858, 0.04028626158833504, -0.005613218992948532, 0.003683954942971468, 0.04444022476673126, -0.018997211009263992, -0.012811031192541122, -0.00005098729889141396, 0.047913793474435806, -0.04802122339606285, -0.04551452398300171, -0.05317786708474159, 0.0233481265604496, -0.025604156777262688, 0.04655301198363304, 0.04222000390291214, 0.010223758406937122, -0.07591722160577774, 0.05618590489029884, -0.013401896692812443, 0.01643679477274418, -0.001721118576824665, 0.023240696638822556, 0.020089415833353996, 0.007730485871434212, -0.03287358954548836, 0.027770662680268288, 0.040035590529441833, 0.016472604125738144, -0.0946100503206253, 0.01992827095091343, 0.008437734097242355, 0.07498615980148315, -0.0021933631505817175, 0.03312426060438156, -0.0002677357697393745, 0.009811942465603352, 0.03745727241039276, -0.033034734427928925, -0.015022299252450466, -0.015058109536767006, -0.003757813014090061, -0.016132410615682602, -0.03529076650738716, -0.06166483834385872, 0.0536792054772377, 0.013813711702823639, 0.03647249564528465, -0.014413529075682163, 0.03280197083950043, 0.024171756580471992, -0.009964135475456715, -0.04311525449156761, 0.035702578723430634, -0.01951645500957966, 0.04558614268898964, -0.008692880161106586, -0.0127573162317276, 0.00370633602142334, 0.005528170149773359, -0.0012981129111722112, -0.04522804170846939, 0.02866591326892376, -0.038066040724515915, 0.007220193278044462, 0.020680280402302742, -0.05643657594919205, 0.026929127052426338, -0.007126192096620798, 0.015640022233128548, -0.02216639742255211, -0.05418054759502411, -0.052533283829689026, -0.03213948383927345, -0.046373963356018066, -0.00120075442828238, 0.006803901866078377, -0.02084142528474331, -0.01068928837776184, -0.008236302062869072, -0.03878224268555641, 0.013697328977286816, 0.001356304157525301, -0.014341909438371658, -0.004321820568293333, -0.08386704325675964, -0.05919394642114639, -0.03333912044763565, 0.04436860233545303, 0.00975822750478983, -0.055326465517282486, 0.05285557731986046, 0.02789599820971489, 0.06338372081518173, 0.05235423520207405, 0.004632920026779175, 0.030796609818935394, 0.031566523015499115, 0.012837888672947884, -0.022112680599093437, -0.055541325360536575, -0.01598021760582924, 0.033733028918504715, -0.017197757959365845, -0.02139648050069809, 0.029131444171071053, -0.027699043974280357, 0.0450131818652153, -0.014986488968133926, -0.0024910338688641787, -0.055398087948560715, 0.014547816477715969, 0.024905862286686897, -0.022130586206912994, 0.05221099406480789, -0.08300760388374329, -0.07520101964473724, 0.003227377310395241, -0.012157498858869076, -0.03181719407439232, 0.00693818973377347, 0.01538039930164814, -0.012435026466846466, -0.04830770567059517, -0.04336592182517052, 0.059372998774051666, 0.023366032168269157, -0.0536792054772377, 0.004010721109807491, -0.002533558290451765, -0.058549366891384125, -0.002898372709751129, -0.06857617199420929, -0.017367854714393616, 0.014037524349987507, -0.042040951550006866, -0.03860319033265114, 0.07914012670516968, -0.0023321269545704126, -0.004158437252044678, 0.0005307155661284924, -0.01174568384885788, -0.015657927840948105, -0.03928358107805252, 0.07785096019506454, 0.01331237144768238, 0.012085878290235996, -0.03308844938874245, 0.012354454025626183, 0.03382255509495735, -0.050850216299295425, -0.04662463441491127, 0.050921835005283356, -0.01874653995037079, 0.006736758165061474, 0.036669451743364334, -0.051566414535045624, -0.037779562175273895, 0.0008275469881482422, -0.03964168205857277, 0.05317786708474159, -0.0009567987290211022, -0.05403730645775795, 0.00010050582932308316, -0.015675831586122513, -0.028827058151364326, 0.045192234218120575, 0.03709917142987251, 0.05880003795027733, 0.013187036849558353, -0.04375983402132988, 0.028612198308110237, -0.030366888269782066, 0.01334818173199892, 0.01579221524298191, -0.011844160966575146, -0.07086800783872604, 0.008442210033535957, -0.04035788029432297, 0.052604906260967255, 0.01145920343697071, -0.02195153571665287, 0.04927457496523857, 0.012354454025626183, -0.0052775004878640175, -0.09647216647863388, 0.00818258710205555, 0.04544290155172348, -0.04920295625925064, 0.05779735743999481, 0.018406344577670097, 0.0669289082288742, 0.043580781668424606, 0.049811724573373795, -0.09905049204826355, 0.029937168583273888, -0.013195988722145557, 0.021092096343636513, -0.039749111980199814, -0.08802100270986557, -0.012963224202394485, -0.00769019965082407, 0.012936366721987724, 0.03439551591873169, -0.015783261507749557, -0.017054516822099686, 0.008357161656022072, 0.030886134132742882, -0.007108286954462528, 0.06026824936270714, 0.031065184623003006, -0.004474013112485409, -0.009319555014371872, -0.029274683445692062, 0.021718772128224373, 0.05675886571407318, 0.023097457364201546, 0.007828963920474052, 0.0027461801655590534, 0.01894349604845047, -0.018182532861828804, -0.056651435792446136, 0.006392086856067181, -0.013697328977286816, 0.009176314808428288, -0.0033639029134064913, -0.04895228520035744, -0.023616701364517212, 0.03102937340736389, -0.007054571993649006, 0.03235434368252754, 0.011656158603727818, -0.017636429518461227, 0.0029229922220110893, -0.04698273539543152, 0.0003866362094413489, -0.02621292695403099, -0.040930841118097305, 0.019964080303907394, 0.01244397833943367, 0.005989224184304476, 0.029346304014325142, -0.014673152007162571, 0.09009798616170883, -0.07384023815393448, 0.06116349622607231, -0.008137824945151806, -0.03573838993906975, 0.004071150440722704, -0.009042027406394482, 0.013518279418349266, -0.005129783879965544, 0.04465508460998535, -0.021432291716337204, -0.03396579623222351, 0.004391202703118324, 0.013133320957422256, 0.05557713657617569, -0.024494046345353127, -0.050921835005283356, -0.03677688166499138, 0.00905098021030426, -0.021289050579071045, 0.04057274013757706, -0.03720660135149956, -0.02866591326892376, -0.020930951461195946, 0.0035384767688810825, -0.08444000780582428, 0.04977591335773468, -0.05264071375131607, 0.009453842416405678, 0.014037524349987507, -0.07273013144731522, -0.003415379673242569, 0.04300782084465027, 0.06997276097536087, 0.0012634219601750374, 0.015845930203795433, -0.003178138518705964, -0.01747528463602066, 0.03208576887845993, 0.06649918854236603, 0.021092096343636513, -0.010259567759931087, 0.012130641378462315, -0.07541587948799133, -0.058048028498888016, 0.008715261705219746, -0.009955182671546936, 0.002452985616400838, -0.021915726363658905, 0.014413529075682163, 0.0389971025288105, -0.003554143477231264, -0.029596973210573196, -0.0029588020406663418, 0.015801167115569115, 0.044082123786211014, -0.0029901359230279922, -0.008478020317852497, -0.06238103657960892, -0.003003564663231373, -0.055541325360536575, -0.04590843245387077, -0.04229162260890007, 0.03147700056433678, -0.021271146833896637, 0.08336570113897324, -0.025622062385082245, -0.0649951696395874, 0.04035788029432297, 0.025980163365602493, 0.05471769720315933, -0.05353596433997154, 0.03027736395597458, -0.06109187752008438, -0.0587284155189991, -0.02187991701066494, 0.00424796249717474, 0.006060844287276268, -0.0038831480778753757, -0.019409025087952614, 0.011101103387773037, -0.033177975565195084, 0.03264082595705986, 0.004075626842677593, -0.00343552278354764, -0.048486754298210144, -0.0637776255607605, -0.023956896737217903, -0.013016939163208008, 0.008070681244134903, 0.018549585714936256, 0.043724022805690765, 0.005778840277343988, -0.022882597520947456, -0.052461665123701096, -0.04297201335430145, 0.034216463565826416, -0.015523639507591724, -0.0018643586663529277, -0.011127960868179798, 0.00451877573505044, 0.018039293587207794, -0.03396579623222351, -0.02936420775949955, -0.021844105795025826, -0.040429502725601196, -0.02202315628528595, 0.012435026466846466, -0.011602443642914295, 0.009167362935841084, -0.00560874305665493, -0.09067094326019287, 0.01443143468350172, -0.027949713170528412, -0.011584538035094738, -0.004615014884620905, 0.016938135027885437, -0.021217431873083115, -0.017251472920179367, -0.03518333658576012, -0.05718858540058136, -0.013509326614439487, -0.03495056927204132, -0.031136803328990936, 0.01764538325369358, -0.007681247312575579, -0.008249730803072453, -0.08572916686534882, 0.015076014213263988, 0.026857508346438408, -0.03853157162666321, 0.04336592182517052, 0.08988312631845474, 0.0015118538867682219, 0.002609654562547803, 0.016938135027885437, -0.03838833048939705, 0.04465508460998535, 0.04633815214037895, -0.026750078424811363, 0.011199580505490303, 0.033106353133916855, -0.02866591326892376, -0.008486972190439701, 0.03810185194015503, -0.011808350682258606, -0.042363241314888, -0.0006731163011863828, 0.010877290740609169, -0.04494156315922737, -0.01786024309694767, -0.011208533309400082, -0.03165604919195175, 0.026606837287545204, -0.043580781668424606, 0.052676524966955185, 0.08486972749233246, 0.051279935985803604, -0.08050090074539185, 0.012139593251049519, 0.0018900971626862884, 0.043795641511678696, 0.019444836303591728, 0.09704513102769852, 0.005196927580982447, 0.019194165244698524, -0.024708908051252365, -0.06478030979633331, 0.036955930292606354, -0.04913133382797241, 0.047985415905714035, 0.011414441280066967, -0.04214838147163391, 0.08415352553129196, 0.0034109035041183233, -0.02796761877834797, -0.005107402801513672, 0.038209281861782074, 0.016669560223817825, 0.0033616647124290466, 0.006463706959038973, -0.05016982555389404, 0.030116219073534012, -0.03147700056433678, -0.05221099406480789, 0.03341073915362358, 0.025711586698889732, 0.005841508042067289, -0.001018347218632698, 0.0302057433873415, 0.008142300881445408, -0.04522804170846939, -0.025478823110461235, -0.014270288869738579, 0.049596864730119705, -0.015076014213263988, -0.014467244036495686, -0.027215607464313507, 0.0006311514298431575, 0.04132475331425667, 0.08257788419723511, -0.033518169075250626, 0.03810185194015503, -0.0003133376012556255, 0.01362570933997631, -0.016186125576496124, 0.03437760844826698, -0.03781536966562271, -0.013679424300789833, 0.033518169075250626, -0.03516542911529541, 0.030850324779748917, 0.003413141705095768, -0.04490575194358826, 0.03230062872171402, 0.048343513160943985, -0.0048477803356945515, -0.02929258905351162, 0.02440452203154564, 0.03210367262363434, 0.03341073915362358, -0.03294520825147629, 0.0315307155251503, -0.00978508498519659, -0.040429502725601196, -0.0009114766726270318, -0.007475339807569981, 0.06399248540401459, 0.035971157252788544, 0.00844668596982956, -0.001589069259352982, 0.0741267204284668, 0.0020545993465930223, -0.01118167582899332, 0.004404631443321705, 0.029937168583273888, 0.037922799587249756, 0.0017323092324659228, -0.016204029321670532, -0.04336592182517052, 0.001697618281468749, -0.012578265741467476, 0.02091304585337639, 0.026678457856178284, -0.004964162595570087, -0.007233622018247843 ]
730,249
mmengine.registry.registry
_get_root_registry
Return the root registry.
def _get_root_registry(self) -> 'Registry': """Return the root registry.""" root = self while root.parent is not None: root = root.parent return root
(self) -> mmengine.registry.registry.Registry
[ 0.03736418858170509, -0.04172452539205551, -0.004861066583544016, 0.006881710607558489, -0.00499843480065465, 0.06030026823282242, 0.003968172241002321, 0.03786048665642738, 0.05824417248368263, 0.02259930595755577, 0.01822124421596527, -0.04828275367617607, -0.001966361189261079, 0.02100406214594841, -0.0016894089058041573, -0.006965904030948877, -0.027810441330075264, 0.01493326760828495, -0.033606499433517456, -0.02040141262114048, -0.055195484310388565, -0.026906467974185944, 0.09521841257810593, -0.0131341852247715, -0.0635262057185173, 0.04906265065073967, -0.009234696626663208, 0.011920026503503323, -0.005578926764428616, -0.048708152025938034, -0.08607234060764313, -0.03544989228248596, 0.03335835039615631, -0.0038596070371568203, 0.0073248338885605335, -0.002049447037279606, -0.04470231384038925, 0.05345843732357025, -0.04051922634243965, 0.008317431434988976, 0.014268581755459309, 0.0025656858924776316, 0.01663486286997795, -0.02937023527920246, 0.023272855207324028, 0.023024706169962883, 0.11464495211839676, 0.014410381205379963, 0.04938169941306114, -0.0035604985896497965, -0.0034918144810944796, 0.033092476427555084, -0.06458970159292221, 0.004320455715060234, -0.04487956315279007, 0.03284432739019394, -0.009030859917402267, -0.02438952587544918, 0.03842768445611, -0.0035206174943596125, 0.020472312346100807, 0.011290790513157845, 0.03344697505235672, 0.03075278177857399, -0.015792926773428917, -0.022244807332754135, -0.04211447387933731, -0.0108476672321558, -0.031284529715776443, 0.07029713690280914, -0.08841203153133392, -0.043745167553424835, 0.020720461383461952, -0.004424589686095715, 0.02984881028532982, -0.03367739915847778, 0.006536073982715607, -0.0376477874815464, 0.05693252757191658, -0.0039039193652570248, -0.062250010669231415, 0.03282660245895386, -0.01512824185192585, 0.061292864382267, 0.03610571473836899, 0.013462096452713013, 0.042752571403980255, 0.06678760051727295, 0.02506307326257229, -0.03871128335595131, -0.005383952520787716, 0.022439781576395035, 0.015872688964009285, 0.05282033979892731, 0.01772494614124298, -0.00916379690170288, -0.035290367901325226, -0.009784170426428318, -0.029813360422849655, -0.020667286589741707, -0.057287026196718216, 0.05133144557476044, -0.033074751496315, 0.012425187043845654, 0.028005415573716164, 0.02807631529867649, -0.004985141102224588, 0.005609945394098759, 0.017140023410320282, 0.049417149275541306, -0.052536740899086, -0.010980604216456413, 0.013905220665037632, 0.07175058126449585, -0.024105926975607872, -0.022439781576395035, -0.031780827790498734, 0.011725052259862423, 0.041334573179483414, -0.032897502183914185, -0.009128347039222717, 0.047928255051374435, -0.00940308440476656, 0.021571259945631027, 0.06182461231946945, 0.053281188011169434, 0.0224752314388752, 0.020560937002301216, 0.009013134986162186, -0.0392075814306736, 0.08245644718408585, 0.039065781980752945, -0.021571259945631027, -0.05324573814868927, 0.0464039109647274, 0.0033588772639632225, 0.04700655862689018, -0.01532321609556675, -0.049700748175382614, -0.000958808814175427, -0.026995092630386353, 0.008219944313168526, 0.010980604216456413, 0.05611718073487282, -0.04239807277917862, 0.010502031072974205, 0.0013493115548044443, 0.04750285670161247, -0.025346674025058746, -0.020277338102459908, -0.002822697628289461, -0.029990609735250473, 0.027633192017674446, 0.05434468388557434, -0.058173272758722305, 0.013515271246433258, 0.025860697031021118, 0.00666901096701622, 0.02337920479476452, -0.0925242230296135, -0.03644248843193054, 0.0016052154824137688, 0.020915437489748, -0.09606920927762985, -0.031125005334615707, 0.0028559318743646145, 0.0013703599106520414, -0.04909810051321983, 0.019568340852856636, 0.02687101811170578, -0.04438326507806778, -0.017973095178604126, -0.08252734690904617, -0.0003456364502198994, -0.06423520296812057, 0.023645078763365746, 0.004816754255443811, 0.006017619278281927, -0.035272642970085144, 0.12060053646564484, 0.010776767507195473, -0.04668750986456871, -0.04292982071638107, -0.02318423055112362, 0.05781877413392067, -0.026250645518302917, 0.007085547316819429, 0.0201887134462595, 0.03793138638138771, -0.00009637939365347847, -0.029724735766649246, 0.01209727581590414, 0.06349075585603714, 0.017592009156942368, 0.02846626378595829, -0.023255130276083946, 0.02469084970653057, 0.0177072212100029, -0.03151495382189751, 0.02896256186068058, -0.05345843732357025, 0.008242100477218628, 0.02637472003698349, 0.02079136297106743, -0.0008801543735899031, -0.0023972990456968546, -0.02458450011909008, -0.014171094633638859, -0.02190803363919258, 0.0306464321911335, -0.014738292433321476, 0.013754558749496937, -0.038959432393312454, 0.019922839477658272, -0.01812375709414482, -0.04555311053991318, -0.06969448924064636, -0.02577207237482071, 0.012017513625323772, -0.015473878011107445, -0.03633613884449005, 0.013284847140312195, 0.03470544517040253, -0.04370971769094467, -0.09791260212659836, -0.04002292826771736, -0.03144405409693718, -0.06008756905794144, 0.016891874372959137, -0.00846809335052967, 0.06983628869056702, -0.04487956315279007, -0.005273171700537205, -0.06302990764379501, 0.02467312477529049, -0.05803147330880165, -0.029086636379361153, -0.0064252931624650955, 0.062356360256671906, 0.040554676204919815, -0.013107597827911377, -0.02268793061375618, 0.03296840190887451, 0.013852045871317387, 0.014844642952084541, 0.04282347112894058, 0.004781304392963648, 0.0004481087962631136, 0.02557709813117981, -0.015677714720368385, 0.006177143659442663, -0.05274944007396698, 0.010333643294870853, 0.01672348752617836, 0.043248869478702545, -0.0555499829351902, -0.013320297002792358, 0.03931393101811409, 0.027349593117833138, 0.0065936800092458725, 0.03860493376851082, 0.06866644322872162, 0.051012396812438965, 0.07430297881364822, -0.06157646328210831, -0.01512824185192585, 0.002995515940710902, 0.008986547589302063, -0.021269936114549637, -0.006123968865722418, 0.12223123013973236, 0.02846626378595829, -0.014720567502081394, 0.00595115078613162, -0.0046217795461416245, -0.04750285670161247, 0.0188238937407732, 0.03094775602221489, -0.06558230519294739, -0.049807097762823105, -0.01323167234659195, 0.027987690642476082, 0.02171305939555168, 0.039172131568193436, -0.024549050256609917, -0.030203308910131454, 0.010289330966770649, -0.02697736769914627, 0.008671930059790611, -0.029919710010290146, 0.008490249514579773, -0.0001678330881986767, -0.07104158401489258, -0.0051446654833853245, 0.03562714159488678, -0.03775413706898689, -0.058669570833444595, -0.017583146691322327, 0.013763421215116978, 0.014516730792820454, -0.016244912520051003, -0.029086636379361153, -0.0037532574497163296, 0.00791418831795454, 0.004595192149281502, 0.037470538169145584, 0.029299335554242134, 0.03231257572770119, -0.0072051906026899815, 0.0239818524569273, -0.03800228610634804, 0.0030575532000511885, 0.0750119760632515, -0.0318162776529789, -0.045127712190151215, -0.11010736972093582, 0.0521467924118042, -0.03736418858170509, 0.019267017021775246, 0.05274944007396698, -0.03435094654560089, 0.057889673858881, 0.011920026503503323, -0.019922839477658272, 0.02656969428062439, 0.029210710898041725, 0.01812375709414482, 0.029671560972929, -0.009385359473526478, -0.018593469634652138, -0.04307162016630173, -0.056684378534555435, 0.010723592713475227, -0.010510893538594246, 0.010032319463789463, 0.0160056259483099, 0.06366800516843796, -0.009181521832942963, -0.010439993813633919, -0.052784889936447144, 0.06260450929403305, -0.007169740740209818, -0.032897502183914185, -0.0173172727227211, -0.030912306159734726, 0.03387237340211868, 0.056471679359674454, -0.003655770095065236, 0.01149462815374136, -0.06785109639167786, 0.010989466682076454, -0.016147425398230553, 0.01333802193403244, -0.010484306141734123, -0.0050560408271849155, 0.006926022935658693, -0.02896256186068058, 0.062462709844112396, -0.005304190330207348, 0.0441705659031868, 0.05824417248368263, -0.0061505562625825405, -0.07614637166261673, -0.0050649032928049564, -0.09989779442548752, -0.04218537360429764, -0.017281822860240936, 0.06483785063028336, 0.046722959727048874, -0.05243039131164551, 0.011725052259862423, 0.006429724395275116, -0.026516519486904144, -0.007732507772743702, -0.01124647818505764, 0.06948179006576538, 0.041866324841976166, -0.012903761118650436, -0.005778332706540823, -0.07621727138757706, 0.015039617195725441, 0.026498794555664062, -0.007019078824669123, -0.036974236369132996, 0.02309560589492321, -0.06292355805635452, 0.04555311053991318, -0.011379415169358253, -0.006779791787266731, -0.006855123210698366, -0.011982063762843609, -0.022971531376242638, -0.0072849527932703495, 0.04317796975374222, -0.022049833089113235, -0.006186006125062704, 0.06994263827800751, 0.009872795082628727, -0.024655399844050407, 0.009128347039222717, 0.04537586122751236, -0.021624434739351273, 0.0051845465786755085, -0.04346156865358353, 0.05317483842372894, -0.030504632741212845, 0.02348555438220501, -0.06044206768274307, 0.0006430831854231656, -0.0959274098277092, -0.025311224162578583, -0.05686162784695625, -0.015340941026806831, -0.007803407497704029, 0.020879987627267838, -0.04760920628905296, 0.030735056847333908, 0.05168594419956207, 0.05274944007396698, -0.004229615442454815, -0.027597742155194283, -0.004045718815177679, -0.028590338304638863, 0.041972674429416656, 0.035184018313884735, 0.04137002304196358, -0.03761233761906624, 0.03644248843193054, -0.015881551429629326, 0.03401417285203934, -0.02687101811170578, -0.023255130276083946, -0.007555258460342884, -0.05335208773612976, 0.014862367883324623, -0.02885621227324009, -0.03452819585800171, 0.008698517456650734, -0.03782503679394722, 0.04147637262940407, 0.014100194908678532, -0.01671462506055832, 0.005928994622081518, -0.0006724401609972119, 0.05742882564663887, 0.014357206411659718, -0.014268581755459309, 0.08933372795581818, -0.019532890990376472, 0.004697110969573259, -0.03186945244669914, -0.06030026823282242, 0.02805859036743641, -0.007745801471173763, -0.03015013411641121, -0.04080282524228096, -0.031125005334615707, 0.024105926975607872, 0.003564929822459817, 0.013798871077597141, -0.011707327328622341, -0.015589090064167976, 0.06540504842996597, 0.019373366609215736, -0.025417573750019073, -0.021925758570432663, 0.035095393657684326, -0.06614950299263, 0.011308515444397926, -0.01632467471063137, 0.045234061777591705, 0.04487956315279007, -0.020915437489748, -0.047042008489370346, -0.031213629990816116, -0.015677714720368385, -0.02488582395017147, -0.01681211218237877, -0.0230069812387228, -0.06618495285511017, -0.07288497686386108, 0.023556454107165337, 0.062356360256671906, -0.017343860119581223, -0.07692626863718033, -0.0551600344479084, 0.022847454994916916, -0.057889673858881, 0.004134343937039375, -0.00865420512855053, -0.020826812833547592, 0.038463134318590164, -0.08614324033260345, 0.027704091742634773, 0.027207791805267334, -0.008645342662930489, 0.016360124573111534, 0.008525699377059937, 0.006965904030948877, -0.002197893336415291, 0.023414654657244682, -0.001424642512574792, -0.012434049509465694, 0.027934515848755836, 0.008897922933101654, -0.025417573750019073, -0.06267540901899338, -0.013346884399652481, 0.033305175602436066, 0.04541131108999252, 0.024531325325369835, -0.0194088164716959, -0.025630272924900055, -0.008601030334830284, -0.009456259198486805, -0.016776662319898605, 0.0063455309718847275, 0.03732873871922493, 0.014038157649338245, 0.024159101769328117, -0.010998329147696495, 0.026037946343421936, 0.05824417248368263, -0.020667286589741707, 0.01671462506055832, 0.01482691802084446, -0.013072147965431213, 0.036282964050769806, -0.03445729613304138, 0.025896146893501282, 0.02049003727734089, -0.009367634542286396, -0.04059012606739998, 0.034971319139003754, -0.061257414519786835, -0.035875290632247925, 0.015190279111266136, -0.03942028060555458, -0.03272024914622307, -0.031089555472135544, -0.011556665413081646, -0.006101812701672316, 0.04987799748778343, -0.0065537989139556885, 0.026693768799304962, -0.030681882053613663, 0.02020643837749958, -0.01248722430318594, -0.0073248338885605335, -0.012460636906325817, 0.04289437085390091, -0.027987690642476082, 0.05562088266015053, -0.013816596008837223, 0.03493586927652359, -0.017175473272800446, 0.01427744422107935, 0.0046217795461416245, -0.007183034438639879, -0.0010313703678548336, 0.019958289340138435, 0.0605129674077034, -0.02906891144812107, 0.023024706169962883, 0.008623186498880386, -0.05551453307271004, -0.03016785904765129, 0.029689285904169083, -0.006775360554456711, 0.07125428318977356, -0.04381606727838516, 0.007311540190130472, 0.07430297881364822, -0.029015736654400826, 0.006983628962188959, 0.030203308910131454, -0.0038596070371568203, -0.0015841671265661716, -0.021748509258031845, -0.047431956976652145, 0.03938483074307442, -0.04994889721274376, 0.009190384298563004, -0.046829309314489365, 0.013072147965431213, 0.025842972099781036, -0.007705920375883579, 0.06437700241804123, -0.060264818370342255, -0.012886036187410355, 0.04420601576566696, 0.01447241846472025, 0.02667604386806488, -0.005348502658307552, 0.04927534982562065, -0.06377435475587845, -0.045340411365032196, -0.02430090121924877, 0.01900114305317402, -0.02956521138548851, 0.01932019181549549, 0.010174118913710117, 0.009456259198486805, 0.0034342084545642138, 0.008406056091189384, -0.019958289340138435, 0.022315707057714462, -0.024921273812651634, -0.02656969428062439, -0.00915493443608284, -0.013772283680737019, -0.06774474680423737, 0.02924616076052189, -0.014623080380260944, -0.00915493443608284, -0.02160670980811119, -0.012141588144004345, -0.005042747128754854, -0.026339270174503326, -0.00930559728294611, 0.02447815053164959, 0.036176614463329315, -0.005414971150457859, -0.019532890990376472, -0.03640703856945038, -0.02010008879005909, 0.005804920103400946, -0.03532581776380539, 0.03435094654560089, 0.047538306564092636, 0.031302254647016525, -0.04760920628905296, -0.011078091338276863, -0.08458344638347626, 0.0037333169020712376, 0.030132409185171127, 0.03357104957103729, -0.007896463386714458, -0.050586998462677, 0.021943483501672745, -0.01713116094470024, -0.014454693533480167, -0.036867886781692505, 0.011530078016221523, -0.03566259145736694, -0.0277749914675951, -0.007058959919959307, 0.037789586931467056, -0.026941917836666107, -0.0657595545053482, -0.058775920420885086, -0.0000028820347779401345, 0.014977579936385155, 0.031231354922056198, 0.019976014271378517, 0.010333643294870853, 0.006744341924786568, -0.0020760344341397285, -0.04243352264165878, 0.04147637262940407, 0.015199141576886177, 0.021961208432912827, -0.04686475917696953, 0.04612031206488609, 0.0024947861675173044, 0.03055780753493309, 0.0022233729250729084, 0.03321655094623566, -0.02598477154970169, 0.010962879285216331, 0.023450104519724846, -0.02577207237482071, 0.016953911632299423, -0.03344697505235672, -0.06210821121931076, 0.020419137552380562, -0.02031278796494007, 0.04838910326361656, 0.0639161542057991, -0.0024859237018972635, -0.04590761289000511, 0.037293288856744766, -0.04807005450129509, 0.0239818524569273, 0.003826372791081667, 0.037186939269304276, -0.010395681485533714, 0.013754558749496937, 0.02380460314452648, -0.07791886478662491, 0.016953911632299423, -0.02846626378595829, 0.08543424308300018, 0.04760920628905296, -0.009296734817326069, 0.08734853565692902, -0.0036114577669650316, -0.030610982328653336, 0.0023263993207365274, -0.009172659367322922, 0.0609029158949852, -0.030203308910131454, -0.018894793465733528, -0.030983205884695053, 0.03605253994464874, 0.03679698705673218, -0.00046112557174637914, 0.053600236773490906, -0.05282033979892731, 0.05324573814868927, 0.03016785904765129, 0.03582211583852768, -0.015589090064167976, -0.04289437085390091, 0.005481439642608166, -0.012274525128304958, 0.019142942503094673, 0.00427614338696003, -0.019639240577816963, -0.011317377910017967, -0.026516519486904144, -0.008609892800450325, 0.03672608733177185, 0.0005799380596727133, 0.08004585653543472, 0.08174744993448257, 0.029512036591768265, -0.01701594889163971, -0.005689707584679127, 0.05551453307271004, -0.03192262724041939, 0.005875819828361273, -0.019089767709374428, 0.053990185260772705, 0.024336351081728935, -0.032082151621580124, 0.05466373637318611, 0.026906467974185944, -0.02329058013856411, -0.07543737441301346, 0.0445605143904686, -0.007333696354180574, -0.03224167600274086, 0.03195807710289955, 0.008197788149118423, -0.030504632741212845, 0.0034497177693992853, 0.01850484311580658, 0.002201216761022806, 0.022333431988954544, 0.03633613884449005, 0.0036181046161800623, 0.030735056847333908, 0.0336596742272377, -0.020631836727261543, -0.021376285701990128, -0.01427744422107935, 0.009376497007906437, 0.04505681246519089, 0.05030339956283569, -0.014295169152319431, -0.08387444913387299, -0.020738186314702034, 0.01409133244305849, 0.011024916544556618, 0.02547074854373932, 0.0063854120671749115, -0.045730359852313995 ]
730,250
mmengine.registry.registry
_register_module
Register a module. Args: module (type): Module to be registered. Typically a class or a function, but generally all ``Callable`` are acceptable. module_name (str or list of str, optional): The module name to be registered. If not specified, the class name will be used. Defaults to None. force (bool): Whether to override an existing class with the same name. Defaults to False.
def _register_module(self, module: Type, module_name: Optional[Union[str, List[str]]] = None, force: bool = False) -> None: """Register a module. Args: module (type): Module to be registered. Typically a class or a function, but generally all ``Callable`` are acceptable. module_name (str or list of str, optional): The module name to be registered. If not specified, the class name will be used. Defaults to None. force (bool): Whether to override an existing class with the same name. Defaults to False. """ if not callable(module): raise TypeError(f'module must be Callable, but got {type(module)}') if module_name is None: module_name = module.__name__ if isinstance(module_name, str): module_name = [module_name] for name in module_name: if not force and name in self._module_dict: existed_module = self.module_dict[name] raise KeyError(f'{name} is already registered in {self.name} ' f'at {existed_module.__module__}') self._module_dict[name] = module
(self, module: Type, module_name: Union[str, List[str], NoneType] = None, force: bool = False) -> NoneType
[ 0.019821153953671455, -0.013049716129899025, 0.01580001972615719, 0.028375545516610146, -0.025739047676324844, -0.007918977178633213, -0.05879959464073181, 0.061568863689899445, 0.025549370795488358, -0.07063538581132889, 0.029817083850502968, -0.02463892661035061, 0.028565222397446632, 0.03307951241731644, 0.017791619524359703, -0.036778196692466736, 0.01342906802892685, 0.033515769988298416, -0.03362957388162613, -0.0448014959692955, 0.0067003085277974606, 0.07219072431325912, 0.06722120940685272, -0.007971138693392277, -0.02860315702855587, 0.015553440898656845, 0.06278279423713684, 0.03730928897857666, -0.037973158061504364, -0.02875489741563797, 0.005562251899391413, -0.0364367812871933, 0.03469175845384598, -0.01650182157754898, 0.013438552618026733, -0.047532834112644196, -0.016615627333521843, 0.07397368550300598, -0.03465382382273674, 0.014140353538095951, -0.006586502771824598, -0.026782266795635223, -0.04305647686123848, -0.0114279855042696, -0.0036038460675626993, 0.04051481559872627, -0.007221917621791363, 0.07981570810079575, -0.006714534014463425, 0.0035422013606876135, -0.018512388691306114, -0.05261615291237831, -0.00021220014605205506, -0.030784431844949722, 0.014510221779346466, 0.029589472338557243, 0.010508056730031967, 0.007146047428250313, 0.010583926923573017, 0.014282611198723316, 0.06873862445354462, -0.010868441313505173, -0.002355540171265602, -0.030556820333003998, -0.02479066699743271, 0.018844321370124817, -0.05052971467375755, -0.045029107481241226, 0.04464975744485855, 0.04851914942264557, -0.015069766901433468, -0.028375545516610146, 0.07670501619577408, -0.012879007495939732, 0.01756400801241398, 0.04795011878013611, -0.06570380181074142, -0.03397098928689957, -0.042108096182346344, 0.03110688179731369, 0.03846631571650505, 0.02063675969839096, 0.003928666468709707, -0.00408752029761672, -0.08785797655582428, 0.00042706759995780885, -0.11077084392309189, 0.004338840954005718, 0.005026416853070259, -0.06805578619241714, -0.03450208529829979, -0.012992813251912594, 0.029248055070638657, 0.041197650134563446, 0.01452919002622366, 0.0033145900815725327, -0.010868441313505173, -0.06521064788103104, -0.06938351690769196, 0.010877924971282482, -0.016056083142757416, 0.01141850184649229, -0.02111095003783703, -0.015771567821502686, 0.00010817465226864442, -0.04658445343375206, -0.01217720564454794, 0.018464969471096992, 0.002379249781370163, 0.021490303799510002, 0.017573490738868713, -0.014111902564764023, 0.02152823843061924, 0.008288846351206303, 0.015420667827129364, -0.036057427525520325, 0.0404389463365078, -0.03279499709606171, 0.053109310567379, 0.014301578514277935, -0.025245890021324158, -0.012272044084966183, 0.05056764930486679, -0.0003384533047210425, 0.039604369550943375, -0.007994848303496838, 0.00814184732735157, 0.013229908421635628, 0.03495730832219124, -0.054323237389326096, 0.04810186102986336, -0.009038066491484642, -0.029418764635920525, 0.04066655784845352, 0.020845403894782066, -0.01811406761407852, -0.0751117393374443, 0.05030210316181183, -0.005676057655364275, 0.011133987456560135, -0.0035896203480660915, 0.002586707938462496, -0.012528106570243835, 0.07989157736301422, 0.00893374439328909, -0.0944586992263794, -0.04715348035097122, 0.034862469881772995, -0.04256331920623779, -0.02505621314048767, 0.0015766826691105962, 0.0045854197815060616, 0.06687979400157928, 0.0710526704788208, -0.11198477447032928, 0.02198346145451069, 0.05231267213821411, 0.034122731536626816, -0.034141700714826584, 0.018796902149915695, -0.01134263165295124, -0.013685131445527077, -0.028128966689109802, 0.012347914278507233, -0.013523906469345093, -0.04810186102986336, 0.0333450585603714, -0.03949056565761566, 0.0015553440898656845, 0.011655597016215324, 0.028546253219246864, -0.024259574711322784, 0.01710878498852253, 0.026194270700216293, 0.027825484052300453, 0.05303344130516052, -0.00884839054197073, -0.03275706246495247, -0.01267984788864851, 0.030139533802866936, 0.0679040476679802, 0.02490447275340557, -0.047419026494026184, -0.007449529133737087, -0.01217720564454794, 0.03049991838634014, -0.013751517981290817, 0.03789728507399559, 0.03903534263372421, -0.009659255854785442, 0.01630266197025776, 0.01926160790026188, 0.02063675969839096, -0.015923310071229935, 0.02682020142674446, 0.009388967417180538, -0.03366750851273537, 0.02283700369298458, -0.04840534180402756, 0.053905948996543884, -0.056257933378219604, 0.026934007182717323, 0.006150247994810343, 0.07503587007522583, 0.04009753093123436, -0.018446002155542374, 0.04870882257819176, 0.02078850194811821, 0.05914101004600525, -0.06873862445354462, 0.0059937648475170135, -0.034274473786354065, -0.05527161806821823, 0.05140222609043121, -0.017820069566369057, -0.019726315513253212, 0.06942145526409149, -0.020143602043390274, -0.011133987456560135, -0.07579457014799118, -0.013666163198649883, 0.12048226594924927, -0.035905685275793076, -0.027901355177164078, 0.00835997425019741, -0.0367402620613575, -0.02209726721048355, -0.01874000020325184, 0.008028041571378708, 0.06077222526073456, 0.08186420798301697, 0.046205099672079086, -0.049467530101537704, -0.01848393678665161, 0.01710878498852253, -0.03125862404704094, 0.06483129411935806, -0.012224624864757061, -0.04256331920623779, -0.015420667827129364, 0.038105931133031845, 0.04305647686123848, -0.010498572140932083, -0.02638394571840763, -0.061682671308517456, -0.044763561338186264, -0.042373642325401306, -0.012148754671216011, 0.015724148601293564, 0.027939289808273315, -0.03034817799925804, -0.01128572877496481, -0.004540371708571911, -0.005846765823662281, -0.042677123099565506, -0.045067042112350464, 0.010887408629059792, 0.06376910954713821, -0.006690824870020151, 0.055233683437108994, -0.0290394127368927, -0.0005874031921848655, 0.02551143616437912, -0.017971811816096306, -0.008094428107142448, -0.029380828142166138, -0.014225708320736885, 0.03713858127593994, 0.008663455955684185, 0.007606011815369129, 0.10113529860973358, -0.015164604410529137, 0.04377724602818489, 0.009872641414403915, 0.000024357819711440243, -0.03137242794036865, 0.006847307551652193, 0.0018398582469671965, -0.01202546525746584, 0.05489226430654526, 0.0029873987659811974, -0.08998234570026398, 0.02154720574617386, -0.03497627377510071, -0.04544639587402344, 0.002470531268045306, 0.005396285094320774, 0.11539894342422485, 0.024373380467295647, 0.01811406761407852, -0.02862212434411049, 0.013628228567540646, -0.010356315411627293, 0.04628096893429756, -0.015363764949142933, 0.0383145734667778, -0.06179647520184517, 0.045067042112350464, 0.020010828971862793, -0.0463189035654068, -0.00541525287553668, 0.034274473786354065, -0.05394388362765312, -0.016729433089494705, 0.021186821162700653, -0.07120440900325775, 0.01333423051983118, -0.04423246905207634, -0.08740275353193283, 0.09096866101026535, -0.03249151632189751, 0.04840534180402756, -0.0202194731682539, 0.007425819523632526, 0.06722120940685272, 0.05762360244989395, 0.08133311569690704, 0.030784431844949722, 0.00020923645934090018, 0.004580677952617407, -0.0010657425737008452, 0.0028688511811196804, -0.03565910831093788, 0.027028845623135567, 0.03949056565761566, 0.028565222397446632, 0.008952712640166283, 0.009920060634613037, 0.027066780254244804, -0.017687296494841576, -0.03067062608897686, 0.05398182198405266, 0.021755849942564964, 0.03112584911286831, -0.03949056565761566, -0.02847038395702839, 0.035184916108846664, -0.06536238640546799, -0.01601814664900303, -0.027692710980772972, -0.0008991832728497684, 0.007871558889746666, -0.032225970178842545, -0.04085623472929001, -0.031144816428422928, 0.009412677027285099, -0.04138732701539993, -0.011314179748296738, 0.0014024176634848118, 0.031637974083423615, -0.003426024690270424, 0.01068824902176857, -0.025473501533269882, -0.01778213493525982, 0.03660748898983002, 0.005045384634286165, 0.002904415363445878, 0.011446952819824219, -0.06775230914354324, -0.069117970764637, 0.02240074798464775, 0.015610343776643276, -0.0205229539424181, -0.010574443265795708, 0.02609943225979805, 0.02873593010008335, -0.02331119403243065, 0.012395333498716354, 0.037385161966085434, -0.04248744621872902, 0.006031700409948826, -0.000134921952849254, -0.036512650549411774, -0.033553704619407654, 0.0005053090280853212, 0.03565910831093788, 0.05223679915070534, -0.0006265239208005369, -0.03873186185956001, -0.08110550045967102, 0.08110550045967102, -0.029248055070638657, 0.033269189298152924, -0.05474052578210831, -0.028489351272583008, -0.02507518045604229, 0.02725645713508129, 0.026592589914798737, 0.009768319316208363, -0.021490303799510002, -0.005187641363590956, -0.012964362278580666, -0.0352228544652462, 0.019233157858252525, -0.0006122982013039291, 0.010953795164823532, -0.04719141498208046, 0.02181275188922882, -0.08634056150913239, 0.05185744911432266, 0.01517408899962902, -0.040590688586235046, 0.03433137387037277, -0.0056238966062664986, -0.005178157705813646, 0.0506814569234848, 0.03689200431108475, -0.00880571361631155, 0.04719141498208046, -0.023121517151594162, 0.00825091078877449, 0.027104714885354042, -0.07203898578882217, -0.08550599217414856, -0.026137366890907288, -0.031334493309259415, 0.0030964624602347612, -0.009939027950167656, 0.010498572140932083, -0.005102287512272596, 0.0021208159159868956, -0.002365024061873555, -0.037233419716358185, 0.01076411921530962, -0.026478784158825874, 0.019802184775471687, 0.044004857540130615, 0.039869919419288635, -0.05288169905543327, 0.03622813522815704, -0.04605335742235184, 0.08709926903247833, 0.0003710538730956614, -0.030765464529395103, 0.0191572867333889, -0.08763036131858826, 0.00953596644103527, 0.01872103102505207, 0.0010390693787485361, 0.0074827224016189575, 0.03903534263372421, -0.02976018190383911, 0.007838364690542221, -0.02490447275340557, 0.007250369060784578, 0.006880500819534063, -0.015212023630738258, -0.002475273096933961, 0.0268581360578537, 0.02183171920478344, -0.020978176966309547, 0.004511920269578695, 0.05295756831765175, -0.0228559710085392, -0.0022464764770120382, -0.019033998250961304, 0.0006170400884002447, -0.09089279174804688, 0.038105931133031845, -0.021035080775618553, -0.024676861241459846, -0.0046636611223220825, -0.005216092802584171, 0.03343989700078964, 0.01576208509504795, 0.03933882340788841, 0.04832947254180908, -0.0401354655623436, 0.021623076871037483, 0.009668739512562752, 0.06471748650074005, 0.0038409412372857332, 0.032093197107315063, -0.04438420757651329, -0.05337485671043396, 0.05470259115099907, -0.04658445343375206, 0.00023946608416736126, 0.06357943266630173, -0.034748662263154984, -0.0005136073450557888, 0.04100797325372696, 0.06999048590660095, 0.03108791448175907, 0.00954545009881258, -0.008535425178706646, 0.030120566487312317, -0.05496813729405403, 0.007923719473183155, 0.004073294345289469, -0.055499229580163956, -0.04848121479153633, 0.00331696099601686, 0.08649230748414993, -0.029399797320365906, -0.0038670215290039778, -0.016425950452685356, 0.002143339952453971, -0.010299412533640862, 0.004367292392998934, -0.021642044186592102, 0.030272306874394417, 0.005088061559945345, 0.001275571878068149, 0.040742427110672, -0.04184255003929138, -0.003086978569626808, 0.022343846037983894, 0.0017971810884773731, 0.03846631571650505, -0.021452367305755615, 0.018180454149842262, -0.016027631238102913, -0.012243593111634254, -0.003838570322841406, -0.024714795872569084, -0.03376234695315361, 0.060241132974624634, -0.028261739760637283, -0.06672805547714233, -0.0392250195145607, -0.03068959340453148, 0.05106080695986748, -0.008170298300683498, 0.020295344293117523, -0.0036370393354445696, 0.02065572887659073, -0.006690824870020151, 0.02993088960647583, 0.005391543265432119, 0.013599776662886143, 0.031068947166204453, -0.05231267213821411, -0.07613599300384521, 0.008910034783184528, 0.0008339821361005306, 0.017488136887550354, 0.052274733781814575, -0.008691907860338688, -0.024297509342432022, -0.01619833894073963, 0.016700981184840202, 0.03332609310746193, 0.01726052537560463, -0.011902175843715668, 0.006572277285158634, 0.025682145729660988, -0.0038196025416254997, -0.06555206328630447, -0.0583823062479496, -0.033705443143844604, -0.015297378413379192, -0.031049977988004684, -0.02094024233520031, 0.013561842031776905, -0.042411576956510544, 0.030613724142313004, 0.010441669262945652, 0.009474321268498898, 0.04260125383734703, -0.012916943058371544, 0.043701376765966415, -0.01754504069685936, -0.02048501931130886, 0.0016371419187635183, -0.03630400821566582, -0.015487054362893105, -0.00383145734667778, 0.0052919634617865086, 0.012148754671216011, 0.05428530275821686, -0.04347376525402069, 0.004632839001715183, -0.004931578878313303, 0.018512388691306114, 0.05178157612681389, 0.03345886617898941, 0.02477169968187809, -0.06065841764211655, -0.08520250767469406, -0.05356453359127045, 0.027958258986473083, -0.012309979647397995, -0.03417963534593582, -0.03416066616773605, -0.03249151632189751, 0.019052965566515923, 0.04218396544456482, -0.04172874242067337, 0.012215141206979752, -0.01763039454817772, -0.0016027630772441626, 0.07628773152828217, -0.050984937697649, 0.02357674017548561, -0.003205526154488325, -0.053905948996543884, 0.007312013767659664, 0.03639884665608406, 0.04009753093123436, 0.009739868342876434, -0.032377712428569794, 0.010669280774891376, -0.07613599300384521, -0.0053298985585570335, 0.02094024233520031, -0.01976425014436245, -0.02198346145451069, 0.019052965566515923, -0.00825091078877449, 0.0057803792878985405, -0.0346158891916275, 0.03744206205010414, 0.01534479670226574, -0.045332588255405426, 0.018180454149842262, -0.03571601212024689, -0.028565222397446632, 0.05011242628097534, 0.02004876546561718, 0.000018523056496633217, 0.029418764635920525, 0.03287087008357048, -0.04537052661180496, 0.016037113964557648, -0.02843244932591915, -0.07712230831384659, -0.02372848056256771, 0.029437731951475143, -0.05265408754348755, -0.04700173810124397, -0.021869655698537827, 0.007226659916341305, -0.07613599300384521, -0.0051544480957090855, -0.020143602043390274, -0.01769678108394146, -0.007710333913564682, 0.013969644904136658, 0.034274473786354065, -0.0063351821154356, 0.030765464529395103, -0.0015292635653167963, 0.025321761146187782, 0.004251115955412388, -0.004402856808155775, 0.010308896191418171, -0.010545991361141205, 0.008502231910824776, -0.05504400655627251, -0.0330415777862072, 0.06289659440517426, -0.036929938942193985, 0.018882256001234055, 0.04097003862261772, -0.018815869465470314, -0.03389512002468109, -0.05735805630683899, -0.021717913448810577, -0.01208236813545227, 0.05709250643849373, -0.02372848056256771, 0.06558999419212341, -0.020257407799363136, 0.01571466587483883, -0.004191841930150986, 0.03505214303731918, -0.008502231910824776, -0.012651395983994007, -0.015581891871988773, -0.010204575024545193, -0.04984688013792038, 0.03895947337150574, -0.007667656522244215, 0.02078850194811821, 0.050643522292375565, -0.043284088373184204, 0.04320821538567543, 0.029001476243138313, 0.06722120940685272, -0.035033177584409714, 0.0017580604180693626, -0.010991730727255344, 0.018616709858179092, -0.029817083850502968, 0.046546515077352524, -0.027977226302027702, -0.009142388589680195, -0.009265678003430367, -0.009758835658431053, 0.04115971550345421, 0.050036557018756866, -0.02744613215327263, 0.0004045435634907335, 0.0707491859793663, 0.05090906843543053, 0.017810586839914322, -0.01754504069685936, 0.00040069076931104064, 0.011115020141005516, -0.007591786328703165, -0.03611433133482933, -0.0016430693212896585, -0.006994306575506926, -0.02905838005244732, 0.03336402773857117, -0.049771010875701904, 0.016075050458312035, 0.006814114283770323, -0.009607095271348953, -0.006140763871371746, -0.026137366890907288, 0.046356841921806335, 0.015458602458238602, -0.06881449371576309, -0.05238854140043259, -0.020276375114917755, -0.02905838005244732, 0.006041184067726135, 0.013609260320663452, 0.006875758990645409, -0.022590424865484238, -0.0032482033129781485, -0.00630198884755373, 0.023064615204930305, -0.04229777306318283, -0.002417184878140688, 0.03859908878803253, 0.03188455477356911, -0.0017865118570625782, 0.011740950867533684, 0.0630483403801918, -0.09772112965583801, 0.06646250933408737, 0.0515919029712677, -0.00501693319529295, 0.026308076456189156, 0.05383007973432541, 0.024866538122296333, 0.028527285903692245, -0.03160003945231438, 0.004907869268208742, -0.016169888898730278, -0.007193466182798147, 0.06551412492990494, -0.024980343878269196, 0.01210133545100689, 0.002068655099719763, 0.02405093051493168, 0.052122995257377625, 0.01194959506392479, 0.03763173893094063, -0.007160272914916277, 0.0021302998065948486, 0.056561414152383804, 0.019953927025198936, -0.05842024087905884, 0.05633380264043808, -0.004497694782912731, -0.06012732535600662, -0.018408065661787987, -0.02682020142674446, 0.01815200410783291, -0.06490716338157654, -0.005310930777341127, -0.001177770085632801, -0.007226659916341305, -0.023178420960903168 ]
730,251
mmengine.registry.registry
_search_child
Depth-first search for the corresponding registry in its children. Note that the method only search for the corresponding registry from the current registry. Therefore, if we want to search from the root registry, :meth:`_get_root_registry` should be called to get the root registry first. Args: scope (str): The scope name used for searching for its corresponding registry. Returns: Registry or None: Return the corresponding registry if ``scope`` exists, otherwise return None.
def _search_child(self, scope: str) -> Optional['Registry']: """Depth-first search for the corresponding registry in its children. Note that the method only search for the corresponding registry from the current registry. Therefore, if we want to search from the root registry, :meth:`_get_root_registry` should be called to get the root registry first. Args: scope (str): The scope name used for searching for its corresponding registry. Returns: Registry or None: Return the corresponding registry if ``scope`` exists, otherwise return None. """ if self._scope == scope: return self for child in self._children.values(): registry = child._search_child(scope) if registry is not None: return registry return None
(self, scope: str) -> Optional[mmengine.registry.registry.Registry]
[ 0.07053475081920624, -0.06426342576742172, -0.05334146320819855, 0.0022416450083255768, 0.00015592975250910968, 0.0325544998049736, 0.047211069613695145, 0.03625387325882912, 0.06909023225307465, -0.013529142364859581, 0.05320053547620773, -0.009037043899297714, 0.010287784971296787, -0.041432999074459076, 0.008248724974691868, -0.007249013055115938, -0.009547910653054714, 0.041115909814834595, -0.055842943489551544, -0.02312990091741085, -0.009398173540830612, 0.009618374519050121, 0.0498182475566864, -0.05619526654481888, -0.05816826596856117, 0.037874553352594376, 0.05601910501718521, 0.02684689126908779, -0.05975371226668358, 0.02783339098095894, 0.009961888194084167, -0.0037588290870189667, -0.021702999249100685, 0.011344749480485916, -0.017756998538970947, 0.02409878559410572, -0.056653283536434174, 0.06799803674221039, -0.0670819953083992, 0.01870826631784439, -0.05277774855494499, 0.020469874143600464, -0.002825177274644375, -0.0386144258081913, 0.006205260753631592, 0.023905007168650627, 0.048937443643808365, 0.03614817559719086, 0.04590747877955437, -0.00022543066006619483, 0.034210409969091415, 0.038473498076200485, -0.06750478595495224, -0.03442180156707764, -0.010411097668111324, 0.022742347791790962, -0.020663650706410408, -0.04308890923857689, 0.04826803505420685, -0.002836187370121479, 0.04784524813294411, -0.034474652260541916, 0.0009523688349872828, 0.06412249803543091, -0.05136846378445625, -0.01860257051885128, 0.0005813303287141025, -0.035020750015974045, -0.07814489305019379, 0.05175601691007614, -0.07363517582416534, -0.03382285684347153, 0.0034219217486679554, -0.001518285134807229, -0.009900231845676899, 0.01810932159423828, -0.005663566756993532, -0.020293714478611946, 0.07511492818593979, 0.0040693124756217, 0.01374934334307909, 0.035566847771406174, -0.04220810532569885, -0.030264409258961678, -0.024574419483542442, 0.04523807018995285, 0.031250908970832825, 0.04622456803917885, 0.03553161397576332, -0.048761285841464996, -0.05052288994193077, 0.01967715099453926, 0.06690583378076553, 0.041115909814834595, 0.07356470823287964, -0.0024376236833631992, 0.0027260868810117245, 0.0330125167965889, -0.039706625044345856, -0.004862035624682903, -0.07405795902013779, 0.03213171288371086, 0.042137641459703445, 0.03128614276647568, 0.002389179542660713, 0.014603722840547562, -0.009116316214203835, 0.019483374431729317, 0.04513237252831459, 0.02809763327240944, -0.060845907777547836, -0.04023510590195656, 0.024556802585721016, 0.023253213614225388, -0.019853312522172928, 0.004884055815637112, -0.03207886591553688, 0.024292562156915665, 0.04037603363394737, -0.04125683754682541, -0.030669579282402992, 0.04745769500732422, 0.019430525600910187, -0.00518793286755681, 0.019483374431729317, 0.025842776522040367, 0.00029094042838551104, 0.015731152147054672, 0.009732878766953945, -0.009776919148862362, 0.08582549542188644, 0.012692378833889961, -0.004020868334919214, -0.029242677614092827, 0.04118637368083, 0.01972999982535839, 0.04921930283308029, -0.006579602602869272, -0.0599651038646698, 0.013784575276076794, 0.028978437185287476, -0.03646526485681534, -0.013978351838886738, -0.020029472187161446, -0.02707590162754059, 0.009847383946180344, -0.024715347215533257, -0.004001050256192684, -0.02173823118209839, -0.008658299222588539, -0.035073596984148026, -0.029189828783273697, 0.013863847590982914, 0.06630688905715942, -0.03273066133260727, 0.031620848923921585, 0.019342444837093353, -0.01727255806326866, 0.03769839182496071, -0.07236681878566742, 0.01542287040501833, -0.015898503363132477, -0.02216101624071598, -0.04308890923857689, 0.009591950103640556, 0.03646526485681534, -0.06359401345252991, 0.024398257955908775, 0.032114095985889435, 0.06281890720129013, -0.02830902487039566, 0.02771008014678955, -0.003939393907785416, -0.036641426384449005, -0.039706625044345856, 0.033505767583847046, 0.03790978342294693, -0.04129207134246826, -0.03521452471613884, 0.09139217436313629, -0.00028626114362850785, -0.031902704387903214, -0.016603147611021996, -0.03040533885359764, 0.029207445681095123, 0.026195097714662552, 0.012868539430201054, 0.010860308073461056, 0.012251976877450943, 0.009591950103640556, 0.012022968381643295, 0.03843826800584793, 0.06546132266521454, -0.01113335695117712, 0.0081386249512434, 0.019818080589175224, 0.029418839141726494, 0.024926740676164627, -0.006614834535866976, 0.04411064088344574, 0.010358249768614769, -0.01967715099453926, 0.023394141346216202, -0.0005895878421142697, -0.045097142457962036, 0.06443958729505539, -0.0021898976992815733, 0.023605534806847572, -0.030916204676032066, 0.0031466707587242126, -0.1250036358833313, -0.024186864495277405, -0.022037705406546593, -0.02841472253203392, 0.006086352281272411, 0.021544454619288445, -0.06676490604877472, -0.011150972917675972, 0.035619694739580154, 0.0018177583115175366, -0.012956620194017887, -0.04858512431383133, 0.02933075837790966, -0.014577298425137997, -0.04788048192858696, -0.02679404430091381, -0.014409946277737617, -0.01174991950392723, 0.017756998538970947, -0.020593186840415, 0.04245473071932793, 0.021597303450107574, 0.0558781772851944, -0.032660193741321564, 0.05749885365366936, -0.0503467321395874, -0.049465928226709366, 0.03576062247157097, 0.053024373948574066, 0.029524534940719604, 0.013943119905889034, -0.008455714210867882, 0.008495350368320942, 0.013564374297857285, 0.007200568914413452, -0.005509426351636648, 0.04594271257519722, -0.020293714478611946, 0.06081067770719528, -0.02977116033434868, -0.02194962464272976, -0.01653268188238144, -0.0045669665560126305, -0.03315344452857971, 0.023640766739845276, -0.0523197315633297, 0.0012111049145460129, 0.011071700602769852, 0.01520266942679882, 0.011327133513987064, -0.00580889917910099, 0.03903721272945404, 0.0548916757106781, 0.026353642344474792, -0.0823022797703743, 0.020557954907417297, -0.00017189430946018547, -0.028326641768217087, -0.007028812076896429, 0.02221386507153511, 0.016911428421735764, 0.03590155392885208, 0.007341497577726841, -0.006328573450446129, 0.011767535470426083, -0.05062858760356903, 0.05105137452483177, 0.029365990310907364, -0.006804207339882851, -0.016999509185552597, -0.007438385859131813, -0.005324457306414843, -0.0027040669228881598, 0.03650049865245819, -0.008649490773677826, 0.011388789862394333, -0.00388214155100286, -0.015942543745040894, 0.0005004064878448844, -0.008292765356600285, 0.029189828783273697, 0.006517946254462004, -0.03359384834766388, -0.009406981989741325, -0.02357030287384987, -0.0023429375141859055, -0.014110472984611988, -0.020293714478611946, 0.051896944642066956, 0.017880311235785484, -0.019870927557349205, -0.007552890572696924, 0.07335332036018372, 0.034915052354335785, -0.013661262579262257, 0.030528651550412178, 0.07173264026641846, 0.0014467198634520173, -0.04432203248143196, 0.007667394820600748, -0.06916069239377975, -0.003961414098739624, 0.028925588354468346, -0.03963616117835045, -0.025948472321033478, -0.09096939116716385, 0.018162168562412262, -0.050452426075935364, -0.016330096870660782, 0.02992970496416092, -0.032818738371133804, 0.04414587467908859, 0.029912088066339493, -0.03798024728894234, -0.01854972168803215, -0.004725511185824871, -0.013123972341418266, 0.04442773014307022, 0.03945999965071678, 0.025913240388035774, 0.007777495309710503, -0.04869081825017929, 0.07708792388439178, -0.01415451243519783, 0.03382285684347153, 0.0019289597403258085, 0.029524534940719604, 0.032378338277339935, 0.001687839743681252, -0.01603943295776844, 0.010622491128742695, 0.019976625218987465, -0.0053817094303667545, 0.027322525158524513, -0.004936903715133667, -0.014216168783605099, 0.05651235580444336, -0.000526555348187685, 0.005852939561009407, -0.03487981855869293, 0.01488558016717434, -0.026177480816841125, -0.0035342241171747446, -0.020628418773412704, -0.011697070673108101, -0.0294893030077219, 0.012146281078457832, 0.06345308572053909, -0.002018141094595194, 0.009724071249365807, 0.05908429995179176, 0.060951605439186096, -0.09667699784040451, -0.02087504416704178, -0.052918676286935806, -0.047633856534957886, -0.06355878710746765, 0.03306536376476288, -0.005619526375085115, -0.06475667655467987, 0.020047089084982872, 0.028538035228848457, -0.019289597868919373, 0.005421345587819815, -0.014277825132012367, 0.03299489989876747, 0.011926080100238323, 0.010067584924399853, 0.06775140762329102, -0.03635957092046738, -0.0019135456532239914, 0.0012364279245957732, -0.03299489989876747, -0.023041820153594017, 0.027428222820162773, -0.02954214997589588, 0.04530853405594826, -0.03051103465259075, 0.04696444422006607, -0.020469874143600464, -0.024768196046352386, -0.024838659912347794, -0.020099936053156853, 0.05010010674595833, -0.03068719618022442, -0.0054565779864788055, 0.02776292711496353, 0.005760455038398504, -0.02022324874997139, 0.010499178431928158, -0.00983857549726963, -0.04125683754682541, -0.01514982059597969, -0.010014736093580723, 0.046717818826436996, -0.003961414098739624, -0.008455714210867882, 0.010261361487209797, -0.02593085542321205, -0.05918999761343002, -0.023112284019589424, -0.07483306527137756, -0.05288344621658325, 0.04583701491355896, -0.011926080100238323, -0.035179294645786285, 0.0660955011844635, 0.05376424640417099, -0.009424597956240177, 0.004117756616324186, -0.03537306934595108, -0.09731117635965347, -0.033505767583847046, 0.062255192548036575, 0.030317258089780807, 0.02399308793246746, -0.025226213037967682, 0.017519181594252586, 0.019377678632736206, -0.016700034961104393, -0.04347646236419678, 0.014180936850607395, -0.00905466079711914, -0.013123972341418266, 0.005901383701711893, 0.0034505478106439114, -0.04847942665219307, 0.011608990840613842, -0.02765723131597042, 0.03262496367096901, 0.0005403179093264043, -0.01891965977847576, -0.05112183839082718, 0.023799311369657516, -0.01734302192926407, 0.03667666018009186, 0.05633619427680969, 0.1056964248418808, -0.028590882197022438, -0.05182648077607155, 0.010701763443648815, -0.07948371022939682, 0.031250908970832825, 0.02168538235127926, -0.0025763504672795534, -0.0844162106513977, -0.055243998765945435, 0.045696087181568146, 0.05379948019981384, -0.025737078860402107, -0.0015645272796973586, 0.05246065929532051, 0.02771008014678955, -0.025261444970965385, -0.08927824348211288, 0.006315361242741346, 0.07891999930143356, -0.06292460858821869, 0.055455390363931656, -0.05298914015293121, 0.06310076266527176, 0.030017783865332603, -0.01729017309844494, -0.06764571368694305, 0.020522722974419594, -0.0421728752553463, -0.006804207339882851, -0.03278350830078125, -0.013617223128676414, -0.018849195912480354, -0.029189828783273697, 0.0030475803650915623, 0.025261444970965385, -0.013009468093514442, -0.023411758244037628, -0.0665535181760788, -0.005368497688323259, 0.0021965038031339645, 0.02781577594578266, 0.026987820863723755, 0.008772803470492363, 0.023746462538838387, -0.018461642786860466, -0.025860391557216644, 0.045378997921943665, 0.005901383701711893, 0.033946167677640915, 0.011873231269419193, 0.023041820153594017, -0.005632738582789898, 0.007852363400161266, 0.020593186840415, 0.02334129437804222, 0.05827396363019943, -0.05182648077607155, -0.06412249803543091, -0.016576722264289856, 0.003045378252863884, 0.04770432040095329, 0.05608956888318062, 0.02603655308485031, -0.014841539785265923, 0.012657146900892258, -0.0706404447555542, -0.015537374652922153, 0.013317749835550785, 0.006650066934525967, -0.013194437138736248, -0.009847383946180344, 0.024574419483542442, 0.009151549078524113, 0.019219134002923965, 0.050064872950315475, -0.04957162216305733, 0.051896944642066956, -0.029313141480088234, 0.014022392220795155, 0.026723578572273254, -0.015889696776866913, -0.019183900207281113, 0.02485627681016922, 0.006522350013256073, -0.04759862273931503, -0.008979791775345802, 0.03639480099081993, -0.04308890923857689, 0.04048173129558563, -0.031673695892095566, -0.06126869469881058, -0.008988600224256516, 0.01207581628113985, -0.017413485795259476, 0.027058284729719162, 0.00788759533315897, -0.011327133513987064, -0.03628910705447197, 0.028115248307585716, -0.07106322795152664, 0.01167064718902111, 0.00274370308034122, 0.047810014337301254, -0.02404593676328659, -0.002840591361746192, -0.02830902487039566, -0.0003556244191713631, 0.02349983900785446, -0.04298321157693863, 0.03155038133263588, -0.011476869694888592, -0.027428222820162773, 0.06059928238391876, 0.06151532009243965, 0.013097548857331276, -0.016946660354733467, -0.010314209386706352, -0.10506224632263184, -0.009530294686555862, -0.002582956338301301, 0.005632738582789898, 0.04118637368083, -0.014929619617760181, 0.056547585874795914, -0.00804613996297121, 0.028590882197022438, -0.02615986578166485, 0.033893320709466934, 0.027269678190350533, -0.04016464203596115, -0.004260886926203966, -0.03910767659544945, 0.016946660354733467, -0.052390195429325104, 0.011247861199080944, 0.0060951607301831245, -0.0198356956243515, 0.04210240766406059, 0.007301861420273781, 0.06436911970376968, -0.11774581670761108, -0.04544946178793907, 0.05806256830692291, 0.013414638116955757, 0.04150346294045448, -0.038579195737838745, 0.03731083869934082, -0.028819892555475235, -0.06690583378076553, -0.01784507930278778, -0.008948964066803455, -0.022724730893969536, 0.0037522229831665754, 0.01666480302810669, 0.049148838967084885, -0.00748242624104023, 0.06697630137205124, -0.03310059756040573, 0.01229601725935936, -0.010323017835617065, -0.013960735872387886, -0.030528651550412178, -0.01988854445517063, -0.033999018371105194, 0.037874553352594376, 0.017598453909158707, -0.018937276676297188, -0.021984856575727463, 0.007249013055115938, -0.027921471744775772, -0.029365990310907364, -0.030969051644206047, -0.022619035094976425, 0.02069888263940811, -0.015916120260953903, 0.0054081338457763195, -0.030810507014393806, -0.034051865339279175, -0.020364178344607353, -0.06711722910404205, -0.004289513453841209, 0.06158578395843506, -0.01763368770480156, 0.059401389211416245, -0.0017726171063259244, -0.03458034619688988, -0.024627266451716423, -0.008618663065135479, 0.03110998123884201, -0.01773938350379467, -0.05510307103395462, 0.03019394539296627, -0.0751853883266449, 0.012727610766887665, 0.00580889917910099, 0.04146822914481163, -0.025472838431596756, 0.0036068905610591173, 0.0022944931406527758, 0.03780408948659897, 0.005764859262853861, -0.05446889251470566, -0.025490455329418182, -0.02459203451871872, -0.003278791205957532, 0.0009507173090241849, 0.048620354384183884, -0.018215017393231392, -0.016779307276010513, -0.011608990840613842, -0.017246132716536522, 0.04118637368083, 0.046400729566812515, -0.01469180267304182, -0.04333553463220596, 0.048620354384183884, -0.0548916757106781, -0.023535070940852165, -0.017510375007987022, -0.05446889251470566, -0.03095143660902977, 0.012058200314640999, -0.02427494525909424, 0.017360636964440346, -0.01337059773504734, 0.026494570076465607, -0.09399935603141785, 0.021967239677906036, -0.005342073272913694, 0.049465928226709366, 0.03273066133260727, 0.04449819400906563, 0.005483001936227083, 0.03801548108458519, -0.007398749701678753, 0.08793942630290985, 0.010499178431928158, 0.10280738770961761, -0.00039113181992433965, -0.005126276519149542, 0.016726458445191383, -0.06338262557983398, 0.028943205252289772, -0.06151532009243965, 0.08251367509365082, 0.02448633871972561, -0.026617882773280144, 0.032924436032772064, -0.021051203832030296, -0.023112284019589424, -0.03045818582177162, 0.007165336981415749, 0.01763368770480156, 0.01469180267304182, -0.014498026110231876, -0.028590882197022438, 0.0513332299888134, -0.009864999912679195, -0.041538696736097336, 0.06665921211242676, -0.0057428390718996525, 0.049959175288677216, -0.038790587335824966, -0.04058742895722389, -0.010446329601109028, -0.016330096870660782, -0.008143029175698757, 0.010560834780335426, 0.02291850745677948, -0.021932007744908333, 0.0019421718316152692, -0.00020795220916625112, 0.025279061868786812, -0.04379355162382126, 0.024345409125089645, 0.011820383369922638, 0.046612124890089035, 0.04523807018995285, 0.026336025446653366, -0.005183528643101454, -0.008314785547554493, 0.007037620060145855, -0.04953639209270477, -0.007799515500664711, -0.005518234334886074, 0.021597303450107574, 0.009935463778674603, -0.04023510590195656, 0.021104052662849426, 0.020628418773412704, -0.04978301748633385, -0.05936615914106369, 0.020663650706410408, 0.05446889251470566, -0.019078204408288002, -0.00021304436086211354, 0.05193217843770981, 0.005883767735213041, -0.004699086770415306, -0.05210833624005318, 0.022125784307718277, -0.009671222418546677, 0.04090451821684837, -0.012657146900892258, 0.07106322795152664, 0.06951301544904709, -0.00201483815908432, 0.013722918927669525, -0.09026474505662918, 0.04809187352657318, 0.02760438248515129, 0.04308890923857689, -0.0332767590880394, -0.049148838967084885, -0.057287462055683136, 0.022407641634345055, -0.027375373989343643, -0.016004201024770737, 0.010190896689891815, -0.02496197260916233 ]
730,252
mmengine.registry.registry
build
Build an instance. Build an instance by calling :attr:`build_func`. Args: cfg (dict): Config dict needs to be built. Returns: Any: The constructed object. Examples: >>> from mmengine import Registry >>> MODELS = Registry('models') >>> @MODELS.register_module() >>> class ResNet: >>> def __init__(self, depth, stages=4): >>> self.depth = depth >>> self.stages = stages >>> cfg = dict(type='ResNet', depth=50) >>> model = MODELS.build(cfg)
def build(self, cfg: dict, *args, **kwargs) -> Any: """Build an instance. Build an instance by calling :attr:`build_func`. Args: cfg (dict): Config dict needs to be built. Returns: Any: The constructed object. Examples: >>> from mmengine import Registry >>> MODELS = Registry('models') >>> @MODELS.register_module() >>> class ResNet: >>> def __init__(self, depth, stages=4): >>> self.depth = depth >>> self.stages = stages >>> cfg = dict(type='ResNet', depth=50) >>> model = MODELS.build(cfg) """ return self.build_func(cfg, *args, **kwargs, registry=self)
(self, cfg: dict, *args, **kwargs) -> Any
[ 0.06651382893323898, -0.04346486181020737, 0.006439592223614454, -0.01659029722213745, -0.02152254804968834, 0.013480212539434433, -0.0503719188272953, -0.020015206187963486, 0.012325855903327465, -0.029746145009994507, -0.008152046240866184, 0.0517456978559494, -0.01466318964958191, 0.03230290114879608, 0.011705746874213219, -0.01640903390944004, 0.0025734517257660627, -0.004164269659668207, -0.007059700787067413, -0.010551391169428825, 0.011534024961292744, 0.01337527111172676, -0.0011776105966418982, 0.05590520054101944, 0.102117620408535, 0.02220943756401539, 0.039534326642751694, 0.028238803148269653, -0.018164420500397682, -0.026273535564541817, 0.01571260392665863, -0.012879184447228909, 0.0616292804479599, 0.021484386175870895, -0.008657673373818398, -0.010665872134268284, -0.009125140495598316, 0.04712827503681183, -0.11768712103366852, -0.03443989157676697, 0.04304509609937668, -0.041366029530763626, 0.013823657296597958, 0.0015645823441445827, 0.014472386799752712, -0.05136409401893616, 0.027284789830446243, 0.015912948176264763, -0.03487873822450638, -0.05231810733675957, -0.012602520175278187, 0.015588582493364811, -0.006296489853411913, -0.004712827503681183, -0.048044126480817795, 0.03304703161120415, -0.02932637929916382, 0.04888365790247917, 0.07906865328550339, 0.030623838305473328, -0.05163121968507767, -0.007260043639689684, 0.02232391946017742, 0.0056620710529387, -0.008266528137028217, 0.021560708060860634, -0.11425267159938812, -0.018469704315066338, 0.006310800090432167, 0.03814146667718887, 0.0017613476375117898, -0.010341507382690907, 0.06426236033439636, 0.0113241421058774, 0.006119997706264257, -0.0371302105486393, -0.06964299827814102, -0.033886563032865524, 0.06151479855179787, 0.0076130288653075695, -0.04128970950841904, -0.019471418112516403, -0.031291648745536804, -0.03323783352971077, 0.020415890961885452, -0.008958187885582447, -0.057507943361997604, -0.044495195150375366, 0.02856316789984703, -0.006258329376578331, -0.03358127921819687, 0.03274174779653549, -0.030986363068223, -0.0359281525015831, -0.028009841218590736, -0.003348587779328227, 0.03108176402747631, 0.06113319471478462, 0.04689931124448776, 0.003928150981664658, -0.020587613806128502, 0.006716256029903889, -0.12821942567825317, 0.021026460453867912, -0.013699635863304138, -0.03375300392508507, -0.0342109277844429, -0.005895804148167372, -0.031806815415620804, 0.023831261321902275, 0.008018484339118004, 0.030433034524321556, 0.012440337799489498, 0.009435194544494152, 0.02049221284687519, -0.020091528072953224, -0.033638522028923035, -0.03587091341614723, -0.03663412481546402, -0.0003312216140329838, -0.052737873047590256, 0.03783617913722992, -0.048311252146959305, 0.041633155196905136, 0.03495505824685097, 0.04403727129101753, 0.016647538170218468, -0.0673915222287178, 0.04399910941720009, -0.05514198914170265, 0.046212419867515564, 0.014214803464710712, 0.02430826798081398, -0.019061192870140076, 0.03348587825894356, -0.03976328670978546, 0.014958933927118778, -0.047357235103845596, -0.03211209923028946, 0.03426817059516907, 0.0020344341173768044, 0.04399910941720009, 0.01884176954627037, -0.02518595941364765, -0.00516121368855238, -0.048998139798641205, -0.0161609910428524, -0.012573899701237679, 0.021198183298110962, 0.019595440477132797, 0.032932549715042114, -0.025414923205971718, 0.04079362377524376, 0.06285041570663452, -0.039190880954265594, -0.0061104572378098965, 0.032493703067302704, 0.024689873680472374, 0.03758813813328743, 0.007140791974961758, -0.032512784004211426, 0.042930614203214645, 0.015006634406745434, -0.0428924523293972, 0.01450100727379322, -0.022438401356339455, -0.0006779459654353559, -0.07204710692167282, -0.007574868388473988, 0.010923456400632858, -0.030795559287071228, -0.04010673239827156, 0.01571260392665863, -0.013174928724765778, -0.11700022965669632, 0.020606694743037224, -0.01918521337211132, 0.036863088607788086, 0.016180071979761124, 0.032264743000268936, 0.021579788997769356, 0.004154729191213846, -0.04487680271267891, -0.002659312915056944, 0.009931282140314579, 0.03211209923028946, -0.037092048674821854, 0.030318552628159523, 0.0037182681262493134, -0.034687936305999756, -0.012096893042325974, -0.01866050623357296, 0.009959902614355087, -0.03356219828128815, -0.0538063682615757, 0.014252963475883007, -0.045182086527347565, 0.06441500037908554, -0.0038446749094873667, 0.09334069490432739, 0.034497134387493134, 0.011782068759202957, 0.02690318413078785, 0.02411746419966221, -0.018183499574661255, -0.018689127638936043, 0.03056659735739231, 0.007531937677413225, 0.050219278782606125, -0.04312141612172127, -0.007360215298831463, -0.03775985911488533, 0.00264738779515028, 0.07315376400947571, 0.011543565429747105, -0.020034287124872208, -0.025472164154052734, 0.043808307498693466, 0.00989312119781971, -0.01874636858701706, 0.03405828773975372, -0.004133264068514109, 0.016781099140644073, -0.03304703161120415, -0.0640333965420723, -0.024060223251581192, -0.03602355346083641, -0.011934710666537285, -0.017820974811911583, -0.060637105256319046, -0.01995796523988247, -0.044304393231868744, 0.059072524309158325, -0.005848103668540716, 0.021904153749346733, -0.020358651876449585, 0.0072171129286289215, 0.05086800828576088, 0.0167620200663805, -0.020244169980287552, 0.09418022632598877, 0.00024372067127842456, -0.01980532333254814, -0.01743936911225319, 0.008724454790353775, -0.010017143562436104, -0.008924797177314758, 0.03783617913722992, 0.0217896718531847, -0.029364539310336113, 0.0004346724599599838, 0.007784751243889332, 0.0027928748168051243, 0.04556369036436081, -0.03100544400513172, 0.026788702234625816, -0.0070740110240876675, -0.06666647642850876, 0.03934352099895477, -0.038332268595695496, 0.02848684787750244, -0.004302601329982281, 0.035184022039175034, 0.0803661122918129, 0.029727064073085785, -0.01380457729101181, -0.0037516586016863585, 0.011782068759202957, 0.014567787759006023, 0.009301632642745972, 0.052737873047590256, 0.0336957611143589, 0.03751181438565254, -0.008171127177774906, -0.014815831556916237, -0.06189640611410141, 0.0033128124196082354, -0.05182202160358429, 0.0037349634803831577, 0.03325691446661949, 0.00025504958466626704, -0.03125348687171936, 0.004302601329982281, 0.023583216592669487, 0.015149736776947975, -0.030318552628159523, 0.0035155401565134525, 0.026349857449531555, 0.00403786264359951, -0.00825221836566925, 0.042930614203214645, 0.023392414674162865, 0.015741225332021713, -0.0041189538314938545, 0.06296490132808685, -0.0527760349214077, -0.022972648963332176, 0.010942536406219006, 0.014739510603249073, -0.032760828733444214, 0.039114560931921005, -0.03375300392508507, -0.01410032156854868, 0.0034249089658260345, -0.005022882018238306, 0.043617501854896545, 0.008199747651815414, -0.019309235736727715, 0.00705016078427434, 0.044304393231868744, -0.0037468886002898216, 0.01580800674855709, 0.08654811978340149, 0.04174763709306717, -0.016695238649845123, -0.015025714412331581, 0.01812625862658024, -0.046059779822826385, 0.05197466164827347, -0.00662085460498929, 0.0013713946100324392, 0.07281032204627991, 0.010847135446965694, 0.017343968152999878, 0.02161794900894165, -0.04228188470005989, 0.00959737692028284, 0.0258728489279747, 0.02039681188762188, -0.006196318659931421, -0.028257884085178375, 0.022362079471349716, 0.09616457670927048, 0.015540882013738155, -0.0051564439199864864, 0.003236491233110428, 0.032417383044958115, -0.004951330833137035, -0.01450100727379322, -0.05735529959201813, 0.07261952012777328, 0.00731251435354352, -0.069108746945858, 0.01901349239051342, 0.02249564230442047, 0.02196139469742775, 0.047357235103845596, -0.04304509609937668, 0.010875754989683628, -0.04651770368218422, 0.000443914468633011, -0.07067333161830902, 0.025319522246718407, 0.012755162082612514, 0.01769695244729519, -0.0010786316124722362, -0.011219200678169727, -0.02932637929916382, -0.010932995937764645, -0.05808034911751747, 0.012898264452815056, -0.00755101814866066, -0.07861072570085526, 0.01683834008872509, -0.0011424312833696604, 0.012764702551066875, -0.022152196615934372, 0.0025329061318188906, 0.05739346146583557, -0.009611687622964382, 0.01615145057439804, -0.025376763194799423, -0.012860103510320187, 0.03505045920610428, 0.03186405450105667, 0.05960677191615105, -0.03817962482571602, -0.017935456708073616, -0.030490275472402573, 0.0023838416673243046, -0.040144894272089005, 0.04712827503681183, 0.05769874528050423, -0.01197287067770958, 0.08494537323713303, -0.028544088825583458, -0.02064485475420952, 0.021484386175870895, 0.006468212231993675, -0.022552883252501488, -0.010436909273266792, 0.04159499332308769, -0.031635090708732605, 0.04045017808675766, 0.005280465353280306, -0.007636879105120897, 0.034249089658260345, 0.03636699914932251, -0.00271416874602437, -0.017305808141827583, 0.0017124544829130173, -0.04705195128917694, 0.05227994546294212, 0.02014876715838909, 0.0006534993299283087, -0.011696207337081432, 0.028238803148269653, 0.00854796264320612, -0.002004621084779501, 0.014396065846085548, 0.03262726590037346, 0.012392637319862843, -0.12676933407783508, 0.014882612973451614, -0.02743743173778057, 0.001316538779065013, 0.1177634447813034, -0.025414923205971718, -0.002707013627514243, -0.07078780978918076, 0.04983767122030258, 0.027380190789699554, 0.08525066077709198, -0.013203548267483711, 0.008781695738434792, 0.08280838280916214, 0.006644704844802618, 0.041976600885391235, -0.012468958273530006, -0.0009259894723072648, -0.07731326669454575, 0.035451147705316544, -0.025815609842538834, 0.04178579896688461, 0.01379503682255745, -0.06498740613460541, 0.0062630996108055115, -0.032684508711099625, -0.0027308641001582146, 0.012135053053498268, -0.02709398791193962, -0.0068402779288589954, 0.030986363068223, 0.010370127856731415, -0.0831136703491211, -0.0037826639600098133, 0.024174705147743225, -0.011057018302381039, 0.008032795041799545, -0.009950362145900726, 0.03907639905810356, 0.05701185390353203, 0.04724275693297386, 0.025891929864883423, 0.03827502578496933, -0.0987594947218895, -0.0359281525015831, -0.0428924523293972, 0.0030599988531321287, 0.055065665394067764, -0.021026460453867912, -0.04445703700184822, -0.0011507789604365826, 0.017467990517616272, -0.07300112396478653, 0.012564359232783318, 0.07223790884017944, 0.0071264817379415035, -0.03550838679075241, -0.046059779822826385, 0.060980550944805145, 0.010990236885845661, -0.00920623168349266, 0.017162704840302467, -0.026349857449531555, -0.012249534949660301, 0.02282000705599785, -0.014682269655168056, -0.024174705147743225, -0.07742774486541748, 0.007360215298831463, 0.031978536397218704, -0.025567565113306046, 0.07437490671873093, -0.05937780812382698, -0.021427147090435028, 0.0507153645157814, -0.03220750018954277, 0.012640681117773056, 0.039801448583602905, -0.04514392465353012, 0.023735858500003815, 0.06223984807729721, 0.0021143327467143536, -0.02335425466299057, 0.011438623070716858, -0.018603265285491943, 0.013432512059807777, -0.04800596460700035, -0.037454575300216675, -0.028315125033259392, 0.007999404333531857, -0.05456957966089249, 0.028410525992512703, -0.01293642446398735, -0.043274059891700745, -0.05796586722135544, 0.004491019062697887, -0.00990266166627407, -0.019232915714383125, -0.060980550944805145, -0.05838563293218613, -0.07147470116615295, 0.004750987980514765, 0.01771603338420391, -0.028162483125925064, 0.01909935288131237, -0.006086606997996569, -0.09303540736436844, -0.00876738503575325, 0.028086161240935326, 0.031119924038648605, 0.047433558851480484, -0.021808750927448273, 0.009950362145900726, 0.07983186095952988, 0.06800208985805511, 0.005604830104857683, 0.03718745335936546, 0.032684508711099625, -0.006296489853411913, -0.07223790884017944, -0.026693301275372505, 0.060980550944805145, -0.02222851850092411, -0.04842573031783104, -0.007059700787067413, 0.024002982303500175, -0.013174928724765778, 0.0032484163530170918, -0.002208541613072157, -0.06082791090011597, 0.019500039517879486, 0.01944279856979847, 0.0033986736088991165, -0.009158531203866005, 0.07635924965143204, 0.024327347055077553, -0.013890438713133335, -0.027361111715435982, -0.013985839672386646, -0.011810689233243465, -0.043960947543382645, -0.00034702246193774045, 0.06277409940958023, 0.06548349559307098, 0.010684953071177006, -0.0223048385232687, -0.01908981241285801, 0.002692703390493989, 0.005452187731862068, 0.053081318736076355, -0.001906834775581956, 0.02829604409635067, -0.04625058174133301, 0.00516598392277956, 0.0025782219599932432, 0.00838101003319025, -0.05193650349974632, -0.006177238188683987, -0.0014393681194633245, 0.007431766018271446, -0.016819261014461517, -0.008309458382427692, 0.01830752193927765, 0.04514392465353012, 0.006954759359359741, 0.04350301995873451, -0.012182754464447498, -0.029975108802318573, 0.00302899326197803, -0.013985839672386646, -0.05659208819270134, 0.0017291497206315398, -0.03732101246714592, -0.025205040350556374, -0.037092048674821854, -0.005604830104857683, 0.014834912493824959, -0.03505045920610428, 0.0657506212592125, 0.10524678230285645, 0.001271223183721304, 0.02631169557571411, -0.007966013625264168, -0.03688216581940651, -0.08555594086647034, -0.001011850661598146, 0.02680778317153454, -0.021160023286938667, -0.10715480893850327, -0.01866050623357296, 0.0003705746785271913, -0.04342669993638992, -0.00377550907433033, 0.009969442151486874, -0.016886040568351746, 0.0074079157784581184, 0.00047879558405838907, 0.018765447661280632, 0.024880675598978996, -0.06014101952314377, -0.022934487089514732, 0.022686444222927094, 0.014376985840499401, -0.057240817695856094, -0.028181562200188637, 0.019767163321375847, 0.057851385325193405, -0.022075874730944633, 0.024098385125398636, 0.029536262154579163, -0.016685698181390762, -0.021846912801265717, -0.029631663113832474, 0.013012746348977089, -0.027551913633942604, -0.06216352805495262, 0.029822466894984245, 0.030757399275898933, 0.0024196170270442963, 0.014710890129208565, 0.04850205406546593, -0.026960425078868866, 0.02039681188762188, -0.05769874528050423, 0.05808034911751747, 0.023335173726081848, 0.03482149913907051, -0.007231423165649176, -0.045716334134340286, -0.02152254804968834, -0.008190207183361053, -0.04636506363749504, 0.002823880407959223, 0.004688976798206568, 0.006344190798699856, 0.011390922591090202, 0.00289543136022985, -0.0296125840395689, 0.037817101925611496, -0.019748082384467125, -0.022610122337937355, 0.03201669827103615, 0.04125155135989189, -0.00043944251956418157, 0.011829769238829613, -0.006930909119546413, 0.052394427359104156, 0.018946710973978043, -0.024079304188489914, -0.03930536285042763, 0.03255094587802887, -0.059950217604637146, -0.04346486181020737, 0.0028167252894490957, -0.035584706813097, -0.011658046394586563, -0.04247268661856651, 0.0038566000293940306, 0.00781337171792984, -0.01354699395596981, 0.007861072197556496, -0.020816577598452568, -0.04850205406546593, 0.017572931945323944, -0.009444735012948513, 0.05502750724554062, 0.02900201454758644, 0.03999225050210953, -0.011514944955706596, 0.025815609842538834, 0.013394351117312908, 0.02110278233885765, 0.0037397334817796946, 0.009826340712606907, -0.025376763194799423, 0.008877096697688103, 0.025567565113306046, -0.024079304188489914, -0.033524040132761, -0.02171334996819496, 0.03569918870925903, -0.025033317506313324, 0.01812625862658024, -0.055065665394067764, -0.04644138365983963, -0.024060223251581192, -0.023583216592669487, 0.024441828951239586, 0.028505926951766014, -0.012488038279116154, -0.050562724471092224, -0.020606694743037224, 0.014424686320126057, -0.0034702245611697435, -0.001068495330400765, 0.025662966072559357, -0.00820451695472002, -0.023029889911413193, 0.041175227612257004, 0.09486711770296097, 0.036500561982393265, 0.011295521631836891, 0.04895998165011406, 0.01718178577721119, 0.030242232605814934, 0.04663218557834625, -0.05231810733675957, -0.04346486181020737, 0.01615145057439804, 0.013470673002302647, 0.02917373739182949, -0.06422419846057892, 0.019166134297847748, -0.011906090192496777, 0.012592979706823826, 0.0011954983929172158, 0.06800208985805511, -0.04499128460884094, -0.022266678512096405, -0.028620408847928047, -0.05964493378996849, -0.055599913001060486, -0.032493703067302704, -0.030242232605814934, 0.03651964291930199, -0.021770590916275978, -0.02829604409635067, 0.008605202659964561, -0.047624360769987106, 0.06338466703891754, -0.0005995379178784788, 0.017038684338331223, 0.031043604016304016, 0.005657300818711519, 0.04575449228286743, -0.01323216874152422, 0.00359186134301126, 0.00021793249470647424, 0.022438401356339455, 0.05762242525815964, 0.06559798121452332, 0.03323783352971077, 0.05269971489906311, -0.02196139469742775, -0.0027618694584816694, -0.04273981228470802, -0.04766252264380455, -0.04705195128917694, 0.03257002681493759, -0.09135634452104568, -0.031825896352529526, -0.015865247696638107, -0.009816800244152546, 0.012192294001579285, 0.03356219828128815, 0.00031422823667526245 ]
730,253
mmengine.registry.registry
get
Get the registry record. If `key`` represents the whole object name with its module information, for example, `mmengine.model.BaseModel`, ``get`` will directly return the class object :class:`BaseModel`. Otherwise, it will first parse ``key`` and check whether it contains a scope name. The logic to search for ``key``: - ``key`` does not contain a scope name, i.e., it is purely a module name like "ResNet": :meth:`get` will search for ``ResNet`` from the current registry to its parent or ancestors until finding it. - ``key`` contains a scope name and it is equal to the scope of the current registry (e.g., "mmcls"), e.g., "mmcls.ResNet": :meth:`get` will only search for ``ResNet`` in the current registry. - ``key`` contains a scope name and it is not equal to the scope of the current registry (e.g., "mmdet"), e.g., "mmcls.FCNet": If the scope exists in its children, :meth:`get` will get "FCNet" from them. If not, :meth:`get` will first get the root registry and root registry call its own :meth:`get` method. Args: key (str): Name of the registered item, e.g., the class name in string format. Returns: Type or None: Return the corresponding class if ``key`` exists, otherwise return None. Examples: >>> # define a registry >>> MODELS = Registry('models') >>> # register `ResNet` to `MODELS` >>> @MODELS.register_module() >>> class ResNet: >>> pass >>> resnet_cls = MODELS.get('ResNet') >>> # hierarchical registry >>> DETECTORS = Registry('detector', parent=MODELS, scope='det') >>> # `ResNet` does not exist in `DETECTORS` but `get` method >>> # will try to search from its parents or ancestors >>> resnet_cls = DETECTORS.get('ResNet') >>> CLASSIFIER = Registry('classifier', parent=MODELS, scope='cls') >>> @CLASSIFIER.register_module() >>> class MobileNet: >>> pass >>> # `get` from its sibling registries >>> mobilenet_cls = DETECTORS.get('cls.MobileNet')
def get(self, key: str) -> Optional[Type]: """Get the registry record. If `key`` represents the whole object name with its module information, for example, `mmengine.model.BaseModel`, ``get`` will directly return the class object :class:`BaseModel`. Otherwise, it will first parse ``key`` and check whether it contains a scope name. The logic to search for ``key``: - ``key`` does not contain a scope name, i.e., it is purely a module name like "ResNet": :meth:`get` will search for ``ResNet`` from the current registry to its parent or ancestors until finding it. - ``key`` contains a scope name and it is equal to the scope of the current registry (e.g., "mmcls"), e.g., "mmcls.ResNet": :meth:`get` will only search for ``ResNet`` in the current registry. - ``key`` contains a scope name and it is not equal to the scope of the current registry (e.g., "mmdet"), e.g., "mmcls.FCNet": If the scope exists in its children, :meth:`get` will get "FCNet" from them. If not, :meth:`get` will first get the root registry and root registry call its own :meth:`get` method. Args: key (str): Name of the registered item, e.g., the class name in string format. Returns: Type or None: Return the corresponding class if ``key`` exists, otherwise return None. Examples: >>> # define a registry >>> MODELS = Registry('models') >>> # register `ResNet` to `MODELS` >>> @MODELS.register_module() >>> class ResNet: >>> pass >>> resnet_cls = MODELS.get('ResNet') >>> # hierarchical registry >>> DETECTORS = Registry('detector', parent=MODELS, scope='det') >>> # `ResNet` does not exist in `DETECTORS` but `get` method >>> # will try to search from its parents or ancestors >>> resnet_cls = DETECTORS.get('ResNet') >>> CLASSIFIER = Registry('classifier', parent=MODELS, scope='cls') >>> @CLASSIFIER.register_module() >>> class MobileNet: >>> pass >>> # `get` from its sibling registries >>> mobilenet_cls = DETECTORS.get('cls.MobileNet') """ # Avoid circular import from ..logging import print_log if not isinstance(key, str): raise TypeError( 'The key argument of `Registry.get` must be a str, ' f'got {type(key)}') scope, real_key = self.split_scope_key(key) obj_cls = None registry_name = self.name scope_name = self.scope # lazy import the modules to register them into the registry self.import_from_location() if scope is None or scope == self._scope: # get from self if real_key in self._module_dict: obj_cls = self._module_dict[real_key] elif scope is None: # try to get the target from its parent or ancestors parent = self.parent while parent is not None: if real_key in parent._module_dict: obj_cls = parent._module_dict[real_key] registry_name = parent.name scope_name = parent.scope break parent = parent.parent else: # import the registry to add the nodes into the registry tree try: import_module(f'{scope}.registry') print_log( f'Registry node of {scope} has been automatically ' 'imported.', logger='current', level=logging.DEBUG) except (ImportError, AttributeError, ModuleNotFoundError): print_log( f'Cannot auto import {scope}.registry, please check ' f'whether the package "{scope}" is installed correctly ' 'or import the registry manually.', logger='current', level=logging.DEBUG) # get from self._children if scope in self._children: obj_cls = self._children[scope].get(real_key) registry_name = self._children[scope].name scope_name = scope else: root = self._get_root_registry() if scope != root._scope and scope not in root._children: # If not skip directly, `root.get(key)` will recursively # call itself until RecursionError is thrown. pass else: obj_cls = root.get(key) if obj_cls is None: # Actually, it's strange to implement this `try ... except` to # get the object by its name in `Registry.get`. However, If we # want to build the model using a configuration like # `dict(type='mmengine.model.BaseModel')`, which can # be dumped by lazy import config, we need this code snippet # for `Registry.get` to work. try: obj_cls = get_object_from_string(key) except Exception: raise RuntimeError(f'Failed to get {key}') if obj_cls is not None: # For some rare cases (e.g. obj_cls is a partial function), obj_cls # doesn't have `__name__`. Use default value to prevent error cls_name = getattr(obj_cls, '__name__', str(obj_cls)) print_log( f'Get class `{cls_name}` from "{registry_name}"' f' registry in "{scope_name}"', logger='current', level=logging.DEBUG) return obj_cls
(self, key: str) -> Optional[Type]
[ 0.09342510253190994, -0.048335615545511246, -0.04714800789952278, 0.019130373373627663, 0.03198622167110443, 0.004661358427256346, 0.027928562834858894, -0.020624779164791107, 0.034420814365148544, -0.021634245291352272, 0.01802193932235241, -0.009634464047849178, 0.042555924504995346, 0.01029259618371725, 0.0021414041984826326, 0.0009061690652742982, -0.022564537823200226, 0.05039413273334503, -0.009555289521813393, -0.09033732116222382, -0.022069700062274933, 0.022327015176415443, 0.07093973457813263, -0.05284852162003517, 0.010134248062968254, 0.032322708517313004, 0.059024080634117126, 0.04314972832798958, -0.010896296240389347, -0.023791732266545296, -0.03434164077043533, -0.032481059432029724, 0.008298405446112156, 0.01784379780292511, -0.022485364228487015, -0.017210407182574272, -0.023712556809186935, 0.04742511361837387, -0.07818414270877838, -0.02155507169663906, -0.038161780685186386, 0.036340780556201935, 0.02497933804988861, -0.06512046605348587, 0.03723148629069328, 0.017160924151539803, 0.05059206858277321, 0.04995867609977722, 0.017507309094071388, -0.030818408355116844, -0.004923621658235788, -0.0026251068338751793, -0.07774868607521057, -0.029749561101198196, -0.02321772091090679, -0.027334759011864662, -0.02691909670829773, -0.0029319054447114468, 0.049048177897930145, 0.02462305687367916, 0.053442325443029404, -0.023732351139187813, -0.043862294405698776, 0.06646642088890076, -0.03313424065709114, -0.027730628848075867, -0.053086042404174805, -0.03426246717572212, -0.0221884623169899, 0.03093716874718666, -0.05082958936691284, -0.061043012887239456, 0.028779681771993637, -0.0014498705277219415, 0.033787425607442856, -0.03909207135438919, -0.015626931563019753, -0.07386916875839233, 0.041685014963150024, 0.014825296588242054, 0.03513338044285774, 0.0038869394920766354, -0.0238313190639019, -0.0634974017739296, -0.004473320674151182, 0.02602839097380638, 0.012578739784657955, -0.0048790862783789635, 0.004421362653374672, -0.04564370587468147, -0.07232528179883957, 0.016200941056013107, -0.006838638335466385, 0.021000854671001434, 0.02988811582326889, -0.05589671432971954, 0.026622194796800613, -0.0001393273560097441, -0.011678137816488743, -0.010312389582395554, -0.011925555765628815, 0.006027106661349535, -0.031095515936613083, 0.029591213911771774, -0.023356275632977486, -0.0023220195434987545, -0.05051289498806, 0.07481925189495087, -0.01705205999314785, 0.023435449227690697, -0.04311014339327812, 0.007813465781509876, 0.028997410088777542, 0.054392412304878235, 0.008704171516001225, -0.03950773552060127, -0.03469792380928993, 0.03568759560585022, 0.034321848303079605, 0.002210681326687336, -0.025652315467596054, 0.0358855314552784, -0.021277962252497673, 0.03095696121454239, 0.06294318288564682, 0.01375645026564598, 0.013202233240008354, 0.00550258019939065, 0.06424955278635025, -0.056925974786281586, 0.04849396273493767, 0.010638981126248837, -0.053442325443029404, 0.028997410088777542, 0.05637175589799881, 0.02955162711441517, -0.025909630581736565, -0.005393716040998697, -0.048691894859075546, 0.034321848303079605, 0.0025607780553400517, 0.005015166476368904, 0.010302492417395115, -0.004765274003148079, -0.0046811518259346485, -0.057559363543987274, 0.01341996155679226, 0.029927702620625496, -0.046237509697675705, -0.05138380452990532, -0.013786140829324722, 0.000056480930652469397, 0.04885024204850197, 0.07588810473680496, -0.04829602688550949, 0.01748751662671566, -0.0054481481201946735, 0.04964198172092438, -0.00026566526503302157, -0.030818408355116844, -0.03453957661986351, 0.014567982405424118, -0.019466862082481384, -0.07121684402227402, -0.004272911697626114, 0.014775813557207584, -0.02683992311358452, -0.05371943488717079, 0.010827018879354, 0.07137519121170044, -0.057638537138700485, -0.025276239961385727, -0.03600429370999336, -0.005576805677264929, -0.021515484899282455, 0.04314972832798958, -0.024860577657818794, -0.017814109101891518, -0.016270218417048454, 0.06919791549444199, 0.06614971905946732, -0.027235792949795723, -0.05134421959519386, -0.02367297001183033, -0.002179754199460149, 0.030264191329479218, -0.008511184714734554, -0.010450943373143673, 0.016982782632112503, 0.025098098441958427, -0.01319233700633049, 0.031689319759607315, 0.06765402853488922, 0.0010657537495717406, -0.006615961901843548, -0.0017814108869060874, 0.005388767924159765, 0.05470910668373108, -0.055619604885578156, 0.11060582101345062, -0.002135218819603324, 0.037746116518974304, 0.040101535618305206, 0.030363157391548157, -0.06670393794775009, -0.02858174778521061, 0.05653010308742523, 0.02216866798698902, 0.011737518012523651, -0.006700084079056978, -0.06777278333902359, -0.01727968454360962, -0.04303096979856491, 0.031075721606612206, 0.03649912774562836, -0.02891823649406433, -0.02254474349319935, -0.012380804866552353, 0.04611874744296074, -0.021495690569281578, 0.017091646790504456, 0.028858855366706848, -0.0046836258843541145, 0.0010521457297727466, -0.050987936556339264, -0.06662476807832718, -0.07121684402227402, -0.026523228734731674, 0.012776674702763557, -0.035727184265851974, 0.07569016516208649, -0.01034207921475172, 0.023514622822403908, -0.011381235904991627, 0.03735024854540825, -0.03545007482171059, 0.01223235484212637, 0.0836867243051529, 0.04857313632965088, 0.048612721264362335, 0.04164542630314827, 0.008491391316056252, -0.049483634531497955, -0.0010088476119562984, -0.007887691259384155, 0.013123059645295143, 0.01705205999314785, 0.014112732373178005, 0.013231923803687096, -0.03550945594906807, 0.027572281658649445, 0.015587344765663147, 0.010955676436424255, 0.005428354721516371, -0.045722879469394684, -0.06955419480800629, -0.0321049802005291, -0.03147159144282341, 0.032401882112026215, -0.021337343379855156, -0.049998264759778976, 0.015537860803306103, 0.06187433749437332, 0.058707382529973984, -0.07818414270877838, -0.012380804866552353, 0.03901289775967598, 0.03293630853295326, 0.006898018531501293, -0.015735795721411705, 0.04279344528913498, 0.060963839292526245, -0.01991221494972706, 0.014686742797493935, -0.013043886050581932, -0.03556883707642555, 0.03325300291180611, -0.023178134113550186, 0.003456431906670332, -0.02216866798698902, -0.026978477835655212, -0.014132525771856308, 0.03841909393668175, -0.001241420628502965, 0.007976762019097805, -0.01910068280994892, -0.02858174778521061, -0.04433733597397804, 0.0043867239728569984, 0.009476115927100182, 0.012875641696155071, -0.017032267525792122, -0.030264191329479218, 0.0310361348092556, 0.05656969174742699, -0.042199645191431046, -0.08123233169317245, -0.006566478405147791, 0.03891393169760704, -0.016834331676363945, -0.01302409265190363, 0.03857744112610817, 0.04805850610136986, 0.0012692551827058196, 0.024761609733104706, -0.01789328269660473, 0.05827192962169647, -0.021277962252497673, -0.0361032597720623, 0.08131150901317596, -0.03325300291180611, 0.04307055473327637, 0.06702063232660294, 0.029294312000274658, 0.012341218069195747, -0.03750859573483467, 0.005799482110887766, 0.03893372416496277, 0.032382089644670486, 0.04952321946620941, 0.007021727506071329, 0.07477966696023941, -0.0012432762887328863, 0.02104044146835804, 0.024227187037467957, -0.023296894505620003, -0.0035207606852054596, 0.02410842664539814, -0.0110051603987813, -0.04698966071009636, -0.026523228734731674, -0.04504990205168724, 0.04552494361996651, 0.027136825025081635, 0.028462987393140793, 0.009876933880150318, 0.03426246717572212, -0.006244834512472153, 0.01384552102535963, -0.005962777882814407, 0.04235799238085747, -0.010322285816073418, -0.04643544182181358, -0.013835623860359192, -0.025137687101960182, -0.032659199088811874, 0.06337863951921463, -0.008159851655364037, 0.005304645746946335, -0.011955246329307556, -0.0281462911516428, -0.07426504045724869, 0.038795169442892075, -0.02226763591170311, -0.007269145920872688, -0.05696555972099304, -0.011777104809880257, 0.0044856914319098, -0.005096814129501581, -0.037389833480119705, 0.04683130979537964, 0.041407905519008636, -0.11131838709115982, -0.001983056543394923, -0.07521512359380722, -0.03067985363304615, -0.021198788657784462, 0.04556453227996826, 0.07462131977081299, -0.08210324496030807, 0.01481540035456419, 0.02709723822772503, -0.030561093240976334, 0.026008598506450653, -0.023455243557691574, 0.052650585770606995, 0.05550084263086319, -0.00718997186049819, -0.006086486857384443, -0.017190614715218544, 0.03382701426744461, 0.04358518496155739, -0.017754727974534035, -0.017299478873610497, 0.044574856758117676, -0.011222888715565205, 0.03566780313849449, -0.010678567923605442, 0.0011337937321513891, -0.020644571632146835, 0.0048048608005046844, 0.0037632302846759558, 0.001263069803826511, 0.03709293156862259, -0.026186740025877953, -0.0077590337023139, -0.016814539209008217, 0.0038226107135415077, -0.026958683505654335, 0.02104044146835804, 0.03919103741645813, -0.015834763646125793, 0.0645662471652031, 0.006041951943188906, 0.044851966202259064, 0.012034419924020767, 0.05882614478468895, -0.030026668682694435, -0.026345087215304375, -0.054471585899591446, -0.023653177544474602, -0.04069533944129944, -0.06369533389806747, -0.01824956387281418, -0.019001714885234833, -0.02891823649406433, 0.08063852787017822, 0.01835842803120613, 0.017249995842576027, 0.01214328408241272, -0.04061616584658623, -0.0249001644551754, -0.021436311304569244, 0.008110367693006992, -0.02822546474635601, 0.05249223858118057, -0.029234930872917175, 0.035727184265851974, -0.003436638507992029, 0.021851973608136177, -0.0440206415951252, 0.001179566141217947, -0.016299908980727196, -0.01932830736041069, -0.0017245046328753233, -0.07731322944164276, -0.01196514256298542, 0.0015228588599711657, -0.0341041199862957, 0.017576586455106735, -0.060013752430677414, -0.03946814686059952, -0.0007317392155528069, 0.032223742455244064, -0.032045602798461914, 0.011638551019132137, 0.008491391316056252, 0.0829741582274437, -0.014459118247032166, -0.027651455253362656, -0.022465569898486137, -0.041249558329582214, 0.022683298215270042, 0.04987950250506401, 0.013637689873576164, -0.0634974017739296, 0.01753699965775013, 0.02638467401266098, 0.055936299264431, -0.021614450961351395, -0.026859717443585396, 0.03172890469431877, 0.03903269022703171, -0.0034316901583224535, -0.0631411150097847, 0.033094655722379684, 0.049048177897930145, -0.04754387587308884, 0.028720300644636154, -0.06508087366819382, 0.011935452930629253, 0.05269017443060875, -0.02252495102584362, -0.048335615545511246, -0.07521512359380722, 0.03351031616330147, 0.07371082156896591, -0.0089713828638196, -0.03978484123945236, -0.08400341868400574, 0.042555924504995346, -0.016982782632112503, 0.03341135010123253, -0.01179689820855856, -0.0011164745083078742, -0.0319664292037487, 0.03145179897546768, 0.004710841923952103, 0.027849389240145683, 0.027215998619794846, -0.03929000720381737, 0.0418829470872879, -0.02955162711441517, 0.05831151455640793, -0.010896296240389347, -0.02331668883562088, -0.0050250631757080555, 0.009436529129743576, 0.013231923803687096, -0.01486488338559866, 0.02155507169663906, 0.011529686860740185, 0.017913075163960457, 0.030105842277407646, -0.01700257696211338, -0.051146283745765686, -0.03893372416496277, 0.024167807772755623, 0.06238896772265434, -0.015428997576236725, 0.0010267854668200016, 0.002401193371042609, 0.008204386569559574, -0.007368113379925489, -0.03853785619139671, -0.014063249342143536, 0.009233646094799042, 0.005908345803618431, -0.05740101635456085, 0.035826150327920914, 0.013538721948862076, 0.035628218203783035, 0.09540444612503052, -0.01310326624661684, 0.008753654547035694, 0.032659199088811874, -0.011153611354529858, 0.022208254784345627, -0.0028378863353282213, 0.05783647298812866, 0.02021901309490204, 0.005576805677264929, -0.05459034442901611, -0.0046811518259346485, 0.021654037758708, -0.03596470504999161, 0.024266773834824562, -0.011460409499704838, -0.029393278062343597, 0.004391672555357218, 0.024306360632181168, -0.022722885012626648, -0.0031422108877450228, 0.0093820970505476, 0.018595950677990913, -0.06531839817762375, 0.03982442989945412, -0.036697063595056534, -0.011945349164307117, -0.021099822595715523, 0.02656281553208828, -0.012875641696155071, -0.004837025422602892, -0.030917374417185783, 0.043268490582704544, 0.024425121024250984, 0.028443193063139915, 0.012044316157698631, -0.015765486285090446, 0.011114024557173252, 0.025058511644601822, 0.04520824924111366, 0.028027530759572983, 0.031174689531326294, -0.029650593176484108, -0.05831151455640793, -0.03956711292266846, 0.019625209271907806, -0.00743244169279933, 0.010460840538144112, -0.03885455057024956, 0.008768499828875065, 0.022762471809983253, 0.028977615758776665, 0.01727968454360962, 0.06702063232660294, -0.0067248260602355, 0.029056789353489876, -0.013311097398400307, -0.06674352288246155, 0.023019786924123764, -0.00946127064526081, -0.011549480259418488, -0.041685014963150024, 0.0028378863353282213, -0.00970374047756195, -0.021337343379855156, 0.04726676642894745, -0.03192684054374695, -0.028462987393140793, 0.030620472505688667, 0.0830533355474472, 0.014528394676744938, -0.028106704354286194, 0.07074180245399475, -0.016428567469120026, -0.052571412175893784, 0.0006773072527721524, 0.0060666934587061405, -0.023277102038264275, -0.0072493525221943855, 0.012588636949658394, 0.05514456331729889, -0.04216005653142929, 0.020703952759504318, -0.014736226759850979, 0.03157055750489235, -0.00003131386256427504, 0.019061096012592316, -0.056925974786281586, -0.024345947429537773, -0.058430276811122894, 0.018239667639136314, 0.0391712449491024, -0.011994833126664162, -0.03372804448008537, -0.028364019468426704, -0.013182439841330051, -0.008892209269106388, -0.02866092137992382, 0.009906623512506485, 0.030521506443619728, 0.013558516278862953, 0.014132525771856308, -0.024227187037467957, 0.025652315467596054, -0.04362477362155914, -0.029234930872917175, 0.04314972832798958, -0.023376068100333214, 0.016675984486937523, 0.03164973109960556, 0.005245265085250139, -0.03560842201113701, -0.014092938974499702, -0.01705205999314785, 0.038339920341968536, 0.01060929149389267, -0.014310667291283607, 0.04679172486066818, -0.060805488377809525, 0.0015438894042745233, -0.03358948975801468, 0.050710827112197876, -0.0747004970908165, 0.0065615298226475716, 0.01574569195508957, -0.008664584718644619, 0.054036129266023636, -0.01986273005604744, -0.03412391245365143, -0.00008010163583094254, -0.003837455762550235, -0.02464284934103489, 0.05189843475818634, -0.010530116967856884, -0.0008826643461361527, -0.049562808126211166, -0.019357997924089432, 0.021337343379855156, -0.002179754199460149, -0.00670998077839613, -0.005636185873299837, -0.003646943951025605, -0.03075902722775936, -0.00912478193640709, -0.020981060341000557, -0.04006195068359375, 0.024662643671035767, 0.0005610206862911582, 0.006729774177074432, -0.06717897951602936, 0.00863984227180481, -0.02400945872068405, -0.10617208480834961, 0.04892941936850548, 0.0099709527567029, 0.009743327274918556, 0.05217554420232773, 0.01010950654745102, 0.019397584721446037, 0.010223318822681904, -0.01572589948773384, 0.09777966141700745, -0.009609721601009369, 0.0562925823032856, 0.001653990475460887, -0.004228376783430576, 0.006081538740545511, -0.10458861291408539, 0.024326154962182045, -0.014320563524961472, 0.029135964810848236, -0.014271080493927002, -0.038874343037605286, 0.0018531620735302567, -0.0480189174413681, -0.0337478369474411, -0.006893070414662361, 0.009347458370029926, 0.003545502433553338, -0.011183300986886024, -0.022821852937340736, -0.06745608896017075, 0.011895866133272648, 0.0348166860640049, -0.021990526467561722, 0.049483634531497955, -0.04172459989786148, -0.010490530170500278, 0.03329258784651756, 0.016141561791300774, 0.04465403035283089, -0.0901789739727974, -0.005418458022177219, -0.04047761112451553, -0.005631237756460905, 0.02683992311358452, -0.03277795761823654, -0.008862518705427647, 0.02640446648001671, 0.000841221772134304, 0.05075041577219963, -0.009362303651869297, 0.10062991827726364, 0.04231840372085571, 0.026602402329444885, -0.0014548188773915172, 0.004728161264210939, 0.018833471462130547, 0.05918242782354355, 0.028443193063139915, -0.06717897951602936, 0.01748751662671566, 0.044139400124549866, -0.10070909559726715, 0.012262044474482536, -0.01748751662671566, -0.013231923803687096, 0.009253439493477345, -0.010069919750094414, 0.03853785619139671, -0.015092508867383003, 0.008753654547035694, 0.003743436885997653, 0.011984935961663723, 0.026226326823234558, -0.015270649455487728, 0.02683992311358452, -0.01850687898695469, 0.04520824924111366, 0.011935452930629253, 0.0573614276945591, 0.01902150921523571, 0.015161785297095776, -0.021337343379855156, -0.044574856758117676, 0.017576586455106735, 0.058865729719400406, 0.02121858298778534, 0.0019645001739263535, -0.09128741174936295, -0.03313424065709114, -0.019645003601908684, -0.00006769206811441109, -0.010985367000102997, -0.004663832485675812, -0.06745608896017075 ]
730,254
mmengine.registry.registry
import_from_location
import modules from the pre-defined locations in self._location.
def import_from_location(self) -> None: """import modules from the pre-defined locations in self._location.""" if not self._imported: # Avoid circular import from ..logging import print_log # avoid BC breaking if len(self._locations) == 0 and self.scope in MODULE2PACKAGE: print_log( f'The "{self.name}" registry in {self.scope} did not ' 'set import location. Fallback to call ' f'`{self.scope}.utils.register_all_modules` ' 'instead.', logger='current', level=logging.DEBUG) try: module = import_module(f'{self.scope}.utils') except (ImportError, AttributeError, ModuleNotFoundError): if self.scope in MODULE2PACKAGE: print_log( f'{self.scope} is not installed and its ' 'modules will not be registered. If you ' 'want to use modules defined in ' f'{self.scope}, Please install {self.scope} by ' f'`pip install {MODULE2PACKAGE[self.scope]}.', logger='current', level=logging.WARNING) else: print_log( f'Failed to import {self.scope} and register ' 'its modules, please make sure you ' 'have registered the module manually.', logger='current', level=logging.WARNING) else: # The import errors triggered during the registration # may be more complex, here just throwing # the error to avoid causing more implicit registry errors # like `xxx`` not found in `yyy` registry. module.register_all_modules(False) # type: ignore for loc in self._locations: import_module(loc) print_log( f"Modules of {self.scope}'s {self.name} registry have " f'been automatically imported from {loc}', logger='current', level=logging.DEBUG) self._imported = True
(self) -> NoneType
[ 0.0662558302283287, -0.06116208806633949, -0.039374254643917084, 0.03567478805780411, 0.01810695230960846, 0.012251008301973343, 0.00799847673624754, 0.017725851386785507, -0.03426192328333855, -0.005163455847650766, -0.0037622121162712574, -0.0423487052321434, 0.028182895854115486, 0.01469563227146864, -0.02725338004529476, 0.02050510048866272, -0.03712483122944832, 0.08380507677793503, -0.01905505731701851, -0.06417372077703476, -0.0230705626308918, -0.01566232740879059, 0.04573214054107666, -0.044876985251903534, -0.031157342717051506, 0.07309705764055252, 0.019873030483722687, 0.002839668421074748, -0.03191954642534256, -0.08774621784687042, 0.009392749518156052, -0.03481963276863098, 0.02716042846441269, 0.012780831195414066, 0.024093030020594597, -0.07778181880712509, 0.024260342121124268, -0.0015488044591620564, -0.020356379449367523, -0.002911705756559968, -0.020691003650426865, 0.02145320735871792, 0.05458112061023712, -0.03097144141793251, 0.022178228944540024, 0.04870658740401268, -0.022475672885775566, 0.039671700447797775, 0.030711175873875618, -0.012827306985855103, -0.017000829800963402, 0.013468672521412373, 0.006492662243545055, 0.009313740767538548, 0.05800173804163933, 0.055101651698350906, 0.04167945310473442, -0.02613796293735504, -0.0002377525088377297, -0.002749040722846985, 0.014398187398910522, 0.018172018229961395, -0.015020962804555893, 0.010038762353360653, 0.02530139870941639, -0.014212284237146378, 0.01190708763897419, -0.02080254629254341, -0.02253144420683384, 0.038017164915800095, -0.0423487052321434, -0.03238430246710777, 0.0009486862691119313, -0.059600502252578735, 0.10365951806306839, 0.011079818941652775, -0.04272051155567169, -0.027792498469352722, 0.02901945821940899, -0.046661652624607086, 0.0007662689313292503, 0.025412941351532936, 0.011302902363240719, 0.0044593485072255135, 0.0006721555255353451, 0.005609623156487942, 0.005753697827458382, 0.042608968913555145, 0.0404524952173233, -0.035451702773571014, -0.024167390540242195, 0.010921801440417767, -0.023628272116184235, 0.01320840884000063, 0.02729056030511856, -0.03586069121956825, 0.013952020555734634, -0.020858317613601685, -0.059637684375047684, 0.013319950550794601, 0.0019426863873377442, -0.0663301944732666, -0.05450676009058952, -0.027179019525647163, 0.0027304503601044416, -0.05855944752693176, -0.0023133305367082357, -0.0033811109606176615, -0.00930444523692131, -0.01914800889790058, -0.04346412420272827, -0.030748356133699417, 0.01774444244801998, 0.019371092319488525, -0.027755318209528923, -0.05606834590435028, 0.032644566148519516, 0.0028373445384204388, 0.046327028423547745, 0.0007848592358641326, -0.002653765492141247, 0.03402024880051613, 0.03996914625167847, 0.036529939621686935, 0.08819238841533661, 0.022438492625951767, -0.011721184477210045, 0.012511271983385086, 0.04725654423236847, -0.09994145482778549, 0.06320702284574509, -0.02431611344218254, -0.02546871080994606, -0.013952020555734634, -0.006762221921235323, 0.0005977943656034768, -0.06019539386034012, 0.03738509491086006, -0.024502016603946686, 0.07718692719936371, 0.0003137113235425204, -0.03385293856263161, -0.015727393329143524, -0.02175065129995346, 0.022921839728951454, 0.03418756276369095, -0.008305217139422894, 0.09250533580780029, -0.06603274494409561, -0.05785301327705383, 0.009639070369303226, 0.017623605206608772, 0.013338540680706501, 0.012241712771356106, -0.08618463575839996, -0.028591882437467575, -0.0033625205978751183, 0.021434616297483444, 0.016675500199198723, -0.038147296756505966, -0.012251008301973343, -0.061422351747751236, 0.02742069400846958, 0.0085375951603055, -0.036325447261333466, 0.028164304792881012, -0.009411339648067951, -0.040712758898735046, -0.028666242957115173, 0.013041095808148384, -0.019240960478782654, 0.032514434307813644, 0.05123486742377281, -0.0008191351080313325, 0.003715736325830221, 0.0194268636405468, -0.01905505731701851, -0.007468653377145529, -0.008542243391275406, 0.0462154857814312, -0.018506644293665886, -0.0008702584309503436, -0.05275927111506462, -0.019612766802310944, -0.008714203722774982, 0.08358199149370193, 0.02587769739329815, -0.020449331030249596, 0.02063523419201374, 0.02952139638364315, -0.012083695270121098, 0.07949212193489075, 0.09934656322002411, 0.02742069400846958, -0.016917172819375992, 0.014714222401380539, -0.046327028423547745, 0.015904001891613007, -0.02178783155977726, 0.10023889690637589, -0.05870816856622696, 0.006604204420000315, 0.0006001181318424642, 0.048929668962955475, -0.021676290780305862, 0.07198164612054825, 0.026770032942295074, -0.011758364737033844, -0.029874613508582115, -0.014416777528822422, -0.06357882916927338, -0.0850692167878151, -0.037069059908390045, 0.021899374201893806, -0.045955222100019455, 0.00020885041158180684, 0.05201566219329834, 0.006167332176119089, 0.03550747409462929, 0.02505972422659397, 0.08328454941511154, 0.06082746386528015, -0.02799699269235134, -0.07387785613536835, 0.00880715437233448, 0.011470215395092964, -0.07555098086595535, -0.04469108209013939, -0.0029419150669127703, 0.006088323425501585, 0.07339450716972351, -0.047851432114839554, -0.0010724279563874006, 0.012362550012767315, 0.02914959192276001, -0.01731686480343342, 0.02567320503294468, 0.05086306110024452, 0.02431611344218254, 0.04123328626155853, -0.008170437067747116, 0.010457043536007404, -0.021267304196953773, -0.03320227563381195, -0.0286104716360569, -0.027792498469352722, -0.03837037831544876, -0.019129419699311256, 0.026732852682471275, -0.050416894257068634, -0.008272683247923851, 0.07956648617982864, -0.04402182996273041, -0.004310626070946455, -0.026695670560002327, -0.05606834590435028, 0.043687205761671066, 0.0388537272810936, 0.024613557383418083, -0.007659203838557005, -0.03234712406992912, 0.04911557212471962, 0.021880783140659332, -0.03171505406498909, -0.0996440127491951, -0.017344750463962555, 0.015002372674643993, 0.010866031050682068, 0.013171227648854256, 0.031101573258638382, 0.04677319526672363, 0.0812767967581749, -0.027476463466882706, 0.03253302723169327, 0.005042619071900845, 0.019408274441957474, 0.04019222781062126, -0.026361046358942986, -0.017632899805903435, 0.012260302901268005, 0.05086306110024452, 0.022271180525422096, -0.0005858849617652595, 0.07075468450784683, -0.03249584510922432, -0.03952297940850258, -0.049598921090364456, -0.0007366406498476863, 0.012083695270121098, 0.01616426557302475, 0.0060511427000164986, -0.010708012618124485, 0.03900245204567909, 0.018748318776488304, 0.04465389996767044, -0.01860889047384262, -0.06696226447820663, 0.034131791442632675, 0.004278093110769987, -0.014574795961380005, -0.03381575644016266, -0.0096948416903615, 0.007445415481925011, 0.047851432114839554, 0.05937742069363594, -0.07688948512077332, 0.0377197191119194, -0.019278140738606453, -0.04848350211977959, 0.00576764065772295, -0.014546910300850868, 0.016424531117081642, 0.06346728652715683, -0.0922822505235672, 0.04309231787919998, -0.02729056030511856, 0.013663871213793755, 0.028145715594291687, 0.010466339066624641, 0.016508186236023903, 0.004800945054739714, 0.09302586317062378, 0.01666620373725891, -0.007896230556070805, -0.0016917173052206635, -0.00915572326630354, 0.03234712406992912, 0.033016372472047806, -0.03262597694993019, -0.01976148970425129, -0.05874535068869591, -0.027216199785470963, 0.010038762353360653, 0.011981448158621788, 0.05011944845318794, -0.033722806721925735, -0.01827426441013813, -0.05026817321777344, 0.028164304792881012, -0.006520547904074192, -0.0031440844759345055, 0.0037900975439697504, -0.020114704966545105, 0.018246380612254143, -0.007487243507057428, -0.020040344446897507, -0.002804811578243971, 0.03292342275381088, -0.015374178066849709, -0.007645261008292437, -0.019371092319488525, 0.04982200637459755, -0.053651608526706696, -0.02347954921424389, -0.0022354836110025644, 0.003241683589294553, -0.0020170474890619516, -0.0013942725490778685, 0.021862193942070007, 0.008467881940305233, 0.030543863773345947, 0.010457043536007404, -0.01976148970425129, -0.04725654423236847, 0.0003413062950130552, -0.03519143909215927, 0.026825804263353348, -0.019296731799840927, -0.02968871034681797, -0.046066764742136, -0.011962858028709888, -0.02070959471166134, -0.0030650757253170013, -0.016591843217611313, -0.010475634597241879, 0.04681037738919258, 0.05934023857116699, -0.008918697014451027, -0.05309389904141426, -0.030822718515992165, 0.09429000318050385, 0.03411320224404335, -0.014955896884202957, -0.00011829531285911798, 0.02063523419201374, -0.015364883467555046, 0.03167787194252014, -0.0014709575334563851, -0.04134482890367508, 0.0114981010556221, 0.025914879515767097, -0.04093584045767784, -0.012167351320385933, 0.05101178586483002, 0.008965172804892063, -0.038519103080034256, -0.04695909842848778, 0.02017047628760338, -0.001852058689109981, 0.0042897118255496025, 0.03734791278839111, -0.024650737643241882, 0.03357408195734024, 0.00373665033839643, 0.010401273146271706, -0.0002561975852586329, -0.004092189949005842, -0.05610552802681923, -0.010512814857065678, -0.02199232578277588, -0.02282888814806938, -0.00733852107077837, 0.0017474882770329714, -0.009318388067185879, -0.018385807052254677, 0.02083972655236721, -0.03494976460933685, 0.017623605206608772, 0.013050391338765621, -0.020951269194483757, -0.05212720111012459, -0.05268491059541702, 0.006525195669382811, 0.023126333951950073, 0.013440786860883236, 0.007124732714146376, -0.05785301327705383, -0.0062928167171776295, -0.06659045815467834, 0.005400482099503279, -0.02729056030511856, 0.03441064432263374, -0.03212403878569603, 0.022921839728951454, 0.054134953767061234, -0.05458112061023712, 0.03452218696475029, 0.012873782776296139, -0.0387050062417984, -0.021676290780305862, 0.011330788023769855, -0.033090732991695404, 0.0516810342669487, 0.01604343019425869, -0.005442310590296984, -0.005934953223913908, -0.059935130178928375, 0.05606834590435028, -0.03654852882027626, -0.002883820328861475, -0.04543469473719597, -0.033834345638751984, 0.021192941814661026, 0.020895497873425484, -0.05829918384552002, 0.016861403360962868, 0.02286607027053833, 0.038147296756505966, 0.02104422077536583, -0.04539751261472702, -0.0028094591107219458, 0.020151885226368904, -0.035581834614276886, -0.048223238438367844, 0.030357960611581802, 0.02269875630736351, 0.015002372674643993, -0.04759116843342781, 0.03792421147227287, 0.025282807648181915, 0.04048967361450195, 0.007161913439631462, -0.018543824553489685, -0.027030296623706818, -0.05792737752199173, 0.008709555491805077, 0.005804821383208036, 0.032272759824991226, 0.03608377277851105, -0.0443192757666111, -0.015866821631789207, -0.0553990937769413, 0.02442765422165394, 0.02137884497642517, -0.01728897914290428, -0.004171198699623346, 0.056663237512111664, -0.05673759803175926, 0.013050391338765621, -0.018627481535077095, 0.009388101287186146, 0.020319199189543724, 0.006683213170617819, 0.017670080065727234, 0.020895497873425484, 0.025524482131004333, -0.00627422658726573, 0.012929554097354412, 0.054767023772001266, -0.004680108278989792, 0.029131000861525536, 0.06361600756645203, 0.0020449331495910883, 0.04643857106566429, 0.010921801440417767, -0.013914840295910835, 0.05279645323753357, -0.0033857584930956364, 0.010689422488212585, -0.006162684410810471, 0.00957400444895029, 0.010698718018829823, 0.01761430874466896, -0.01190708763897419, 0.008402816019952297, -0.0248924121260643, -0.05603116378188133, 0.04089866206049919, -0.002904734341427684, 0.04316667839884758, -0.02336800843477249, -0.019092239439487457, 0.026472587138414383, -0.033053554594516754, -0.04617830738425255, -0.013347835280001163, 0.03900245204567909, 0.06082746386528015, -0.0424974262714386, 0.03178941458463669, -0.0026630605570971966, -0.00058007548796013, -0.046327028423547745, -0.03699469938874245, 0.07477018982172012, 0.045174431055784225, 0.03409460932016373, -0.030822718515992165, -0.05796455591917038, 0.029335493221879005, -0.02634245529770851, -0.001590632600709796, 0.03956015780568123, -0.03552606329321861, -0.00864448957145214, -0.052238743752241135, -0.03402024880051613, -0.037942804396152496, -0.021508976817131042, -0.03344395011663437, 0.09808242321014404, -0.017549242824316025, 0.00731993094086647, 0.014184399507939816, 0.06026975437998772, -0.09510798007249832, -0.008700260892510414, 0.027346331626176834, -0.0285732913762331, -0.014481844380497932, 0.013961315155029297, 0.0535028837621212, 0.007389644626528025, 0.015857527032494545, -0.06718534231185913, -0.04495134577155113, -0.08083062618970871, -0.026565538719296455, -0.06502886861562729, 0.03762676939368248, 0.0034647672437131405, -0.03465231880545616, -0.008333101868629456, -0.021062809973955154, -0.013961315155029297, 0.039671700447797775, 0.025022543966770172, -0.0007784688496030867, 0.03113875351846218, 0.0009661146905273199, 0.013886954635381699, 0.017465587705373764, -0.0028931153938174248, -0.03621390461921692, 0.03792421147227287, -0.015597262419760227, 0.01637805439531803, 0.05792737752199173, 0.05621706694364548, -0.029800251126289368, 0.01806977204978466, 0.010763783939182758, 0.07629459351301193, -0.0572209432721138, 0.01506743859499693, -0.016610434278845787, -0.05710940435528755, -0.0022982258815318346, 0.01285519264638424, -0.001993809826672077, -0.002525957068428397, 0.016545366495847702, -0.0016289750346913934, -0.04874376952648163, 0.024873821064829826, -0.02013329602777958, 0.030172057449817657, -0.0003218445635866374, -0.026286683976650238, 0.02874060533940792, -0.011749070137739182, -0.0681520402431488, 0.0038807252421975136, -0.004752145614475012, -0.02864765375852585, -0.017725851386785507, -0.008830392733216286, -0.024576377123594284, 0.06770587712526321, -0.012297484092414379, -0.05246182903647423, 0.020895497873425484, -0.030153466388583183, 0.015151094645261765, 0.03212403878569603, 0.0031069039832800627, -0.020207656547427177, -0.004045714158564806, 0.026807213202118874, 0.04885530844330788, 0.006580966524779797, -0.0021076754201203585, 0.03725496307015419, -0.061756979674100876, -0.0047219363041222095, -0.025933468714356422, 0.005442310590296984, -0.033183686435222626, 0.00030935421818867326, 0.03084130771458149, 0.031938135623931885, -0.028703423216938972, -0.00021059325081296265, 0.028257256373763084, -0.03348113223910332, -0.02154615893959999, -0.03550747409462929, 0.00009120866161538288, 0.048892490565776825, -0.007826516404747963, -0.007947353646159172, 0.06833794713020325, 0.004215350840240717, 0.019501226022839546, -0.026156552135944366, -0.030450912192463875, -0.06685072183609009, -0.039337076246738434, 0.03184518590569496, 0.03312791511416435, 0.0035042716190218925, -0.010168894194066525, -0.012325368821620941, 0.048148877918720245, -0.016777746379375458, -0.010010876692831516, 0.004378015641123056, 0.0008917534723877907, 0.02745787426829338, 0.024632148444652557, -0.009313740767538548, -0.03982042521238327, 0.041567910462617874, 0.035544656217098236, -0.045211609452962875, 0.021062809973955154, 0.030859898775815964, -0.000967857544310391, -0.00942992977797985, -0.014268055558204651, -0.030320780351758003, 0.023386597633361816, -0.02939126454293728, 0.02901945821940899, -0.038928087800741196, 0.10871607810258865, -0.018841270357370377, 0.008579423651099205, 0.047479625791311264, -0.0175678338855505, 0.05432085692882538, 0.043724387884140015, 0.00562356598675251, 0.038519103080034256, -0.025784745812416077, 0.06755714863538742, -0.02505972422659397, -0.0849948525428772, -0.007296693045645952, -0.02043073996901512, 0.055510636419057846, -0.005214579403400421, -0.021471796557307243, 0.012390435673296452, 0.014593386091291904, 0.007268807385116816, -0.06963926553726196, 0.056626055389642715, -0.09191044420003891, 0.05792737752199173, 0.04866940528154373, -0.02786686085164547, 0.03271893039345741, -0.040712758898735046, 0.0022006267681717873, -0.03258879482746124, 0.0059163630940020084, 0.000074361203587614, 0.024297522380948067, -0.036325447261333466, -0.012585633434355259, -0.017716556787490845, -0.015076733194291592, -0.014323826879262924, 0.06231468543410301, 0.039374254643917084, -0.03586069121956825, -0.02691875584423542, 0.010698718018829823, 0.0267886221408844, -0.026677081361413002, 0.00998299103230238, -0.05246182903647423, 0.061831340193748474, 0.05800173804163933, -0.05718376487493515, 0.025561662390828133, 0.10834427177906036, 0.002907058224081993, -0.018469464033842087, 0.039634522050619125, -0.06272367388010025, -0.029409855604171753, -0.010661536827683449, -0.023423777893185616, 0.03006051667034626, 0.04022940993309021, -0.06328137964010239, -0.0370318777859211, 0.08149987459182739, 0.01646171137690544, 0.04171663522720337, 0.04008068889379501, -0.005925658158957958, -0.006585613824427128, -0.029539987444877625, -0.02587769739329815, 0.05621706694364548, -0.000824944581836462, -0.022847479209303856, -0.05803891643881798, -0.08611027151346207, -0.008384225890040398, 0.011340083554387093, 0.027736729010939598, 0.015169684775173664, -0.051866937428712845, -0.04034095257520676 ]
730,255
mmengine.registry.registry
infer_scope
Infer the scope of registry. The name of the package where registry is defined will be returned. Returns: str: The inferred scope name. Examples: >>> # in mmdet/models/backbone/resnet.py >>> MODELS = Registry('models') >>> @MODELS.register_module() >>> class ResNet: >>> pass >>> # The scope of ``ResNet`` will be ``mmdet``.
@staticmethod def infer_scope() -> str: """Infer the scope of registry. The name of the package where registry is defined will be returned. Returns: str: The inferred scope name. Examples: >>> # in mmdet/models/backbone/resnet.py >>> MODELS = Registry('models') >>> @MODELS.register_module() >>> class ResNet: >>> pass >>> # The scope of ``ResNet`` will be ``mmdet``. """ from ..logging import print_log # `sys._getframe` returns the frame object that many calls below the # top of the stack. The call stack for `infer_scope` can be listed as # follow: # frame-0: `infer_scope` itself # frame-1: `__init__` of `Registry` which calls the `infer_scope` # frame-2: Where the `Registry(...)` is called module = inspect.getmodule(sys._getframe(2)) if module is not None: filename = module.__name__ split_filename = filename.split('.') scope = split_filename[0] else: # use "mmengine" to handle some cases which can not infer the scope # like initializing Registry in interactive mode scope = 'mmengine' print_log( 'set scope as "mmengine" when scope can not be inferred. You ' 'can silence this warning by passing a "scope" argument to ' 'Registry like `Registry(name, scope="toy")`', logger='current', level=logging.WARNING) return scope
() -> str
[ 0.08910863101482391, -0.017618540674448013, 0.010836546309292316, -0.02101411484181881, 0.04902072995901108, 0.013966698199510574, 0.04133263975381851, -0.019531412050127983, 0.014909404329955578, -0.027256112545728683, -0.014058222994208336, -0.04528651386499405, -0.025901542976498604, -0.004287940915673971, -0.031173376366496086, -0.028299495577812195, 0.008205206133425236, 0.03719571605324745, -0.010561971925199032, -0.057184748351573944, 0.004182687494903803, 0.028958475217223167, -0.00848435703665018, -0.05092444643378258, -0.02053818479180336, 0.03770825266838074, 0.027988310903310776, -0.005395391955971718, -0.02134360373020172, -0.03551165759563446, -0.06307895481586456, -0.06948569416999817, 0.033150315284729004, 0.010168415494263172, -0.005363358650356531, -0.043272968381643295, 0.0006235133041627705, 0.06501927971839905, -0.10477769374847412, -0.09328216314315796, -0.043272968381643295, 0.027127977460622787, 0.06714265793561935, -0.011294171214103699, 0.002010115422308445, 0.024217484518885612, 0.05864914879202843, -0.011440611444413662, 0.04298008605837822, 0.03465132415294647, 0.03023982234299183, -0.023265626281499863, -0.017572779208421707, -0.004942344035953283, -0.01751786284148693, 0.013811105862259865, 0.010388074442744255, -0.01887243241071701, -0.004580820444971323, 0.00622826861217618, 0.018890736624598503, -0.0031759135890752077, 0.008969439193606377, 0.03693944588303566, -0.053926464170217514, 0.013454158790409565, -0.032289981842041016, -0.009582655504345894, -0.06296912580728531, 0.016044313088059425, -0.07461109012365341, -0.055830180644989014, 0.019769376143813133, 0.003230828559026122, 0.052279017865657806, -0.07091348618268967, -0.0598938874900341, -0.04532312601804733, 0.04371228814125061, -0.015504316426813602, 0.010159262455999851, 0.008850457146763802, -0.012996533885598183, -0.010214177891612053, 0.03950214013457298, 0.012685349211096764, -0.0036838767118752003, 0.031960491091012955, 0.03573131561279297, -0.07073043286800385, -0.06113862618803978, 0.022862916812300682, 0.027365941554307938, 0.08149375766515732, -0.02405274100601673, -0.028482545167207718, 0.002288122195750475, -0.0031324392184615135, -0.018259216099977493, -0.038733333349227905, -0.0024734600447118282, 0.018195148557424545, -0.07263415306806564, 0.036335378885269165, -0.04869123920798302, 0.039062824100255966, -0.018588704988360405, 0.033955734223127365, -0.014296187087893486, -0.002535239327698946, -0.06677655875682831, -0.03159439191222191, 0.015641603618860245, 0.026066288352012634, 0.0274574663490057, -0.037927914410829544, -0.016382955014705658, 0.005207766313105822, 0.08456899970769882, 0.0024322739336639643, -0.046860743314027786, 0.07109653204679489, -0.013362633995711803, -0.010909766890108585, 0.03891638293862343, 0.0046174307353794575, 0.025096124038100243, 0.022094108164310455, 0.03876994177699089, -0.07841852307319641, 0.057916950434446335, -0.0389896035194397, -0.06663011759519577, 0.012575519271194935, 0.044700756669044495, 0.033553022891283035, -0.04371228814125061, 0.005024716258049011, -0.041845180094242096, 0.046201761811971664, -0.027640515938401222, 0.04711701348423958, -0.04389533773064613, 0.015952788293361664, -0.019549716264009476, -0.007180127315223217, -0.0033841326367110014, 0.028134750202298164, -0.031228292733430862, -0.055281031876802444, -0.02500459924340248, -0.003720486769452691, 0.008960286155343056, 0.0675087571144104, -0.011431458406150341, 0.03536521643400192, -0.017728371545672417, 0.03465132415294647, 0.01357314083725214, -0.05198613554239273, -0.03516386076807976, 0.003514555748552084, -0.04298008605837822, -0.04488380625844002, 0.019714461639523506, -0.007692666724324226, 0.009637570939958096, -0.061175234615802765, -0.025608664378523827, 0.04535973444581032, -0.06725248694419861, -0.017417186871170998, -0.0052581047639250755, -0.03080727718770504, 0.0031850661616772413, 0.05224240571260452, -0.004285653121769428, 0.030917108058929443, -0.028866950422525406, 0.08024901896715164, 0.06011354550719261, -0.012246030382812023, -0.0724877119064331, 0.005409121047705412, -0.011889083310961723, 0.010653496719896793, 0.013756190426647663, -0.02555374801158905, 0.03990485146641731, 0.013390091247856617, -0.014982623979449272, 0.06520233303308487, 0.08310459554195404, 0.009381300769746304, 0.0004593405465129763, -0.03234489634633064, -0.006859790533781052, 0.05908846855163574, -0.04671430215239525, 0.023869691416621208, 0.015806348994374275, 0.06381115317344666, 0.011358238756656647, 0.06761858612298965, -0.011111121624708176, 0.046384815126657486, 0.03269268944859505, 0.026414083316922188, -0.05700169876217842, -0.009985364973545074, -0.015074148774147034, -0.04305330663919449, 0.011998913250863552, 0.03391912207007408, 0.0076102945022284985, -0.0020284203346818686, 0.0337543785572052, 0.040161121636629105, 0.06263963133096695, 0.006058947648853064, 0.02476663514971733, 0.015138216316699982, 0.02220393717288971, 0.006452504545450211, -0.047007184475660324, -0.086033396422863, -0.041112978011369705, -0.04107636958360672, 0.017417186871170998, -0.01956802047789097, 0.060150157660245895, -0.030679142102599144, -0.007262500002980232, -0.04400516673922539, 0.03741537407040596, 0.009838925674557686, 0.023595117032527924, 0.03344319388270378, 0.022075803950428963, -0.002789221005514264, 0.0012550350511446595, 0.05993049591779709, -0.012474842369556427, 0.047409892082214355, -0.0035809113178402185, -0.0027663398068398237, 0.01504669152200222, -0.015550078824162483, 0.012163657695055008, -0.04506685584783554, -0.016209058463573456, -0.003045490710064769, -0.0034321832936257124, 0.019476495683193207, -0.018048707395792007, -0.05755085125565529, -0.03615232929587364, 0.027805261313915253, 0.023704946041107178, 0.0075462269596755505, -0.022258853539824486, 0.012273487634956837, -0.017618540674448013, 0.03913604095578194, -0.028464240953326225, -0.018680229783058167, -0.0073997871950268745, 0.0033589634113013744, -0.01031485479325056, -0.04363906756043434, 0.04034417122602463, 0.07230465859174728, -0.00477759912610054, 0.0034550644923001528, -0.013307718560099602, -0.05081461742520332, -0.016977867111563683, 0.010561971925199032, -0.03637199103832245, -0.006919281557202339, 0.0076102945022284985, -0.034980811178684235, -0.011248408816754818, 0.07944360375404358, -0.0011011587921530008, -0.0015536349965259433, -0.01656600460410118, -0.08471543341875076, 0.02952592819929123, -0.0046014138497412205, 0.021526653319597244, -0.01568736508488655, 0.022350378334522247, 0.030551007017493248, 0.02339376136660576, 0.00019034316937904805, -0.018131081014871597, -0.0004267347976565361, 0.018121927976608276, -0.008452323265373707, 0.00423989025875926, 0.045176684856414795, 0.01806701347231865, 0.05626950040459633, 0.02769543044269085, -0.010809089057147503, 0.039062824100255966, -0.059747446328401566, -0.048288531601428986, 0.028372716158628464, -0.01357314083725214, 0.06593453139066696, 0.037287238985300064, -0.040161121636629105, 0.009427063167095184, 0.026377473026514053, 0.010735869407653809, -0.014946014620363712, 0.009006048552691936, 0.07805242389440536, 0.021233774721622467, 0.06860705465078354, 0.03309540078043938, -0.0011412010062485933, -0.011404001154005527, 0.022862916812300682, -0.007930631749331951, 0.01949480175971985, 0.015659907832741737, -0.026871707290410995, -0.05853931978344917, -0.02412595972418785, 0.016273126006126404, 0.012950771488249302, 0.010031127370893955, 0.028482545167207718, 0.0157514326274395, -0.01815853826701641, 0.006850637961179018, -0.05246206745505333, 0.06051625683903694, -0.058942027390003204, -0.053450535982847214, 0.014277882874011993, -0.047739382833242416, 0.0356580950319767, -0.001498720026575029, 0.015312113799154758, 0.028226274996995926, 0.011175189167261124, -0.024784939363598824, -0.005578442011028528, -0.011413153260946274, -0.01903717592358589, -0.02436392568051815, 0.016300583258271217, -0.02053818479180336, 0.05132715776562691, -0.0045533631928265095, -0.0007493600132875144, -0.010973834432661533, 0.016977867111563683, -0.026652047410607338, -0.010900613851845264, -0.001951768295839429, -0.043822117149829865, 0.012694502249360085, 0.052022747695446014, 0.09408758580684662, -0.07746666669845581, -0.014058222994208336, -0.024473754689097404, 0.020556489005684853, 0.02507781982421875, -0.07494057714939117, 0.0375618152320385, 0.05550069361925125, -0.021947668865323067, -0.033315058797597885, 0.004372601397335529, 0.009083844721317291, 0.040087901055812836, 0.02866559475660324, -0.030825583264231682, -0.0007625167490914464, -0.02546222321689129, -0.01782904751598835, -0.015431095845997334, -0.03477945923805237, -0.0016199905658140779, 0.0413692481815815, -0.03781808540225029, -0.01489109918475151, 0.07230465859174728, -0.010021975263953209, -0.025901542976498604, -0.07717378437519073, -0.024656804278492928, -0.06827756762504578, 0.01989751122891903, 0.021471738815307617, -0.03986824303865433, 0.056489162147045135, -0.016977867111563683, 0.044700756669044495, 0.01372873317450285, 0.04224788770079613, 0.004587685223668814, -0.006466233171522617, -0.047007184475660324, -0.025755103677511215, -0.05414612218737602, -0.051620036363601685, -0.06410402804613113, 0.02293613739311695, 0.009655876085162163, 0.07373245060443878, -0.0024597314186394215, 0.05820982903242111, -0.01464398205280304, 0.004317686427384615, -0.011852473020553589, 0.024711720645427704, 0.05747763067483902, -0.02714628167450428, 0.04488380625844002, -0.051400378346443176, 0.03774486482143402, -0.024327315390110016, 0.0408933199942112, -0.07841852307319641, 0.01123010367155075, -0.008987744338810444, -0.035529959946870804, -0.016254819929599762, -0.07783276587724686, 0.009445368312299252, 0.022350378334522247, -0.038660112768411636, 0.013042296282947063, 0.008022156544029713, 0.014186358079314232, -0.018909042701125145, 0.004974377807229757, -0.07739344239234924, 0.015129064209759235, -0.047153621912002563, 0.08742457628250122, -0.08420290052890778, -0.02180122770369053, -0.024235790595412254, -0.0281713604927063, -0.0015742280520498753, 0.009033506736159325, 0.025993067771196365, -0.04898412153124809, 0.01791142113506794, 0.026560522615909576, 0.020904283970594406, 0.007784191519021988, -0.017527015879750252, 0.027329331263899803, 0.02412595972418785, -0.005033868830651045, 0.02610289864242077, 0.02793339639902115, 0.04298008605837822, -0.05908846855163574, 0.004004213958978653, -0.023100880905985832, 0.06454335153102875, 0.035548266023397446, 0.007459278218448162, -0.018735144287347794, -0.05692848190665245, 0.06183421611785889, 0.0023281644098460674, 0.011879930272698402, -0.0015536349965259433, -0.017975488677620888, -0.019549716264009476, 0.009367572143673897, 0.014698897488415241, 0.05901524797081947, 0.014762964099645615, -0.020172085613012314, 0.008145715110003948, -0.05451222509145737, -0.02213071845471859, 0.029397794976830482, -0.04371228814125061, 0.04338279739022255, -0.009591808542609215, 0.013536530546844006, 0.008864185772836208, 0.03241811692714691, 0.041845180094242096, 0.03662826120853424, 0.004029383417218924, -0.028372716158628464, -0.004642599727958441, -0.002494053216651082, 0.018213452771306038, -0.024180876091122627, 0.005569289438426495, -0.01956802047789097, -0.011468068696558475, 0.004818785469979048, 0.03979502245783806, 0.01750871166586876, 0.017975488677620888, 0.005006411578506231, 0.03723232448101044, -0.0018877008697018027, -0.02150834910571575, -0.01742633804678917, -0.029727283865213394, 0.012273487634956837, 0.013152126222848892, 0.04528651386499405, -0.026139508932828903, -0.01822260580956936, 0.06505589187145233, -0.021856144070625305, 0.05546408146619797, -0.007656056899577379, 0.025370698422193527, 0.037305545061826706, -0.017151763662695885, 0.06699621677398682, 0.05367019400000572, 0.06838739663362503, -0.025187648832798004, -0.00348481023684144, 0.057441018521785736, 0.01885412633419037, -0.007061145268380642, -0.05092444643378258, -0.029471013695001602, 0.011312476359307766, -0.02842763066291809, -0.03159439191222191, -0.010406379587948322, 0.031795747578144073, 0.03177744150161743, -0.029416099190711975, -0.018103623762726784, -0.053780023008584976, -0.012566367164254189, -0.04261398687958717, -0.011770100332796574, -0.0007259067497216165, -0.03278421610593796, -0.04847158119082451, -0.0003941290488000959, -0.022570038214325905, 0.020410049706697464, 0.04177195951342583, -0.011468068696558475, -0.005102512426674366, -0.03302218019962311, 0.07278059422969818, 0.05403629317879677, 0.016382955014705658, 0.015778889879584312, -0.03516386076807976, -0.010882309637963772, -0.00015230313874781132, -0.0473000630736351, -0.003910400904715061, 0.0012870687060058117, -0.04810548201203346, 0.08303137868642807, 0.018185995519161224, -0.01998903602361679, 0.10294719785451889, 0.05041190981864929, 0.014396864920854568, 0.039831630885601044, -0.017307355999946594, 0.022405292838811874, -0.022716477513313293, -0.012548062019050121, -0.029727283865213394, -0.045652613043785095, 0.017234137281775475, 0.018963957205414772, 0.029324574396014214, -0.009701638482511044, -0.027018146589398384, -0.019787680357694626, 0.03009338304400444, 0.05308443680405617, -0.03800113499164581, 0.07937037944793701, -0.058466099202632904, -0.06985179334878922, 0.013628056272864342, 0.024730024859309196, -0.018506333231925964, -0.013097211718559265, -0.01949480175971985, 0.000009921154742187355, -0.018048707395792007, 0.03183235600590706, -0.04499363526701927, -0.023540200665593147, 0.006704198196530342, 0.00237735896371305, 0.01822260580956936, -0.068460613489151, -0.05096105858683586, 0.012840941548347473, 0.015806348994374275, 0.012108742259442806, 0.0036815886851400137, -0.012310097925364971, -0.02372325025498867, 0.04909395053982735, -0.001399186672642827, 0.01270365435630083, 0.07175551354885101, 0.0057797967456281185, -0.05773390084505081, 0.023906301707029343, 0.0848618745803833, -0.04649464413523674, -0.028958475217223167, 0.005958270281553268, -0.008250968530774117, -0.0052260709926486015, -0.005363358650356531, 0.03990485146641731, -0.104118712246418, 0.025736799463629723, -0.04330957680940628, 0.01767345517873764, -0.01352737843990326, -0.02928796410560608, 0.015064996667206287, -0.02410765551030636, 0.004267347976565361, -0.0043977708555758, -0.0035809113178402185, -0.02840932458639145, -0.020043950527906418, 0.01815853826701641, -0.01006773766130209, 0.07300025224685669, -0.03064253181219101, -0.015183978714048862, 0.021160554140806198, 0.030184907838702202, 0.029910333454608917, 0.052901387214660645, 0.007660632953047752, -0.03942892327904701, -0.02626764215528965, 0.03781808540225029, -0.014396864920854568, 0.01767345517873764, -0.02149004302918911, -0.004379465710371733, 0.0374336801469326, -0.009655876085162163, -0.01768260821700096, 0.01357314083725214, -0.06296912580728531, 0.02077614888548851, -0.045176684856414795, 0.017179220914840698, -0.03357132896780968, 0.04433465749025345, -0.06366471201181412, -0.11641965806484222, 0.028537459671497345, 0.009774858132004738, 0.04744650050997734, 0.057843729853630066, 0.004855395294725895, -0.013179583474993706, -0.011486373841762543, -0.0029699825681746006, 0.003093541134148836, 0.011550440452992916, 0.06783824414014816, -0.03000185824930668, 0.012474842369556427, 0.004624295048415661, -0.06838739663362503, 0.017206678166985512, -0.036738090217113495, 0.055610522627830505, 0.014936861582100391, 0.00006185080565046519, -0.0031644729897379875, -0.03759842365980148, -0.0389896035194397, -0.026725267991423607, -0.03582284227013588, 0.063005730509758, 0.0017332525458186865, -0.0005683123599737883, -0.07120636105537415, -0.005926236510276794, 0.03990485146641731, -0.041112978011369705, 0.0025970186106860638, -0.05692848190665245, -0.007518769707530737, 0.016575157642364502, -0.041442468762397766, 0.04005129262804985, -0.02436392568051815, 0.0413692481815815, -0.04173534736037254, -0.07329312711954117, 0.03639029711484909, 0.0073036858811974525, -0.0024322739336639643, 0.020757844671607018, 0.013628056272864342, 0.01504669152200222, 0.011577898636460304, 0.08325103670358658, 0.04521329328417778, 0.014058222994208336, 0.03686622530221939, 0.022789698094129562, -0.02548052929341793, -0.01918361708521843, -0.0009959051385521889, -0.07182873040437698, 0.07739344239234924, 0.025297479704022408, -0.016016855835914612, 0.003130151191726327, 0.0034436238929629326, -0.028592374175786972, -0.013499921187758446, -0.006919281557202339, 0.0427970364689827, -0.0801025852560997, 0.047812603414058685, 0.010461295023560524, -0.0017298203893005848, -0.0040408237837255, -0.04759294167160988, 0.026468997821211815, 0.0021965974010527134, 0.07944360375404358, 0.03811096400022507, 0.0073997871950268745, -0.02061140537261963, -0.024730024859309196, -0.043272968381643295, 0.028464240953326225, 0.024418840184807777, 0.026706961914896965, 0.011019596830010414, -0.01806701347231865, -0.06900976598262787, 0.03320522978901863, -0.039831630885601044, 0.002624476095661521, 0.010259940288960934, -0.02110563963651657, -0.0641772523522377 ]
730,256
mmengine.registry.registry
register_module
Register a module. A record will be added to ``self._module_dict``, whose key is the class name or the specified name, and value is the class itself. It can be used as a decorator or a normal function. Args: name (str or list of str, optional): The module name to be registered. If not specified, the class name will be used. force (bool): Whether to override an existing class with the same name. Defaults to False. module (type, optional): Module class or function to be registered. Defaults to None. Examples: >>> backbones = Registry('backbone') >>> # as a decorator >>> @backbones.register_module() >>> class ResNet: >>> pass >>> backbones = Registry('backbone') >>> @backbones.register_module(name='mnet') >>> class MobileNet: >>> pass >>> # as a normal function >>> class ResNet: >>> pass >>> backbones.register_module(module=ResNet)
def register_module( self, name: Optional[Union[str, List[str]]] = None, force: bool = False, module: Optional[Type] = None) -> Union[type, Callable]: """Register a module. A record will be added to ``self._module_dict``, whose key is the class name or the specified name, and value is the class itself. It can be used as a decorator or a normal function. Args: name (str or list of str, optional): The module name to be registered. If not specified, the class name will be used. force (bool): Whether to override an existing class with the same name. Defaults to False. module (type, optional): Module class or function to be registered. Defaults to None. Examples: >>> backbones = Registry('backbone') >>> # as a decorator >>> @backbones.register_module() >>> class ResNet: >>> pass >>> backbones = Registry('backbone') >>> @backbones.register_module(name='mnet') >>> class MobileNet: >>> pass >>> # as a normal function >>> class ResNet: >>> pass >>> backbones.register_module(module=ResNet) """ if not isinstance(force, bool): raise TypeError(f'force must be a boolean, but got {type(force)}') # raise the error ahead of time if not (name is None or isinstance(name, str) or is_seq_of(name, str)): raise TypeError( 'name must be None, an instance of str, or a sequence of str, ' f'but got {type(name)}') # use it as a normal method: x.register_module(module=SomeClass) if module is not None: self._register_module(module=module, module_name=name, force=force) return module # use it as a decorator: @x.register_module() def _register(module): self._register_module(module=module, module_name=name, force=force) return module return _register
(self, name: Union[str, List[str], NoneType] = None, force: bool = False, module: Optional[Type] = None) -> Union[type, collections.abc.Callable]
[ 0.02238526940345764, -0.004282211884856224, 0.008550061844289303, 0.02186824381351471, -0.024529965594410896, -0.003932741470634937, -0.07337925583124161, 0.042702436447143555, 0.007688353769481182, -0.06771112978458405, 0.04036625102162361, -0.011834128759801388, 0.02479805238544941, 0.04335350543260574, 0.022710802033543587, -0.03682367131114006, 0.01699480414390564, 0.04212796315550804, -0.03925560414791107, -0.03408535197377205, 0.018344813957810402, 0.06648559123277664, 0.0456513948738575, -0.0005493391072377563, -0.040327951312065125, 0.005692062433809042, 0.06100895255804062, 0.036134302616119385, -0.06303875148296356, -0.012025618925690651, 0.018115025013685226, -0.042702436447143555, 0.03592366352677345, -0.02211718074977398, 0.020221423357725143, -0.059936605393886566, -0.016832036897540092, 0.07973674684762955, -0.06985582411289215, -0.019819293171167374, 0.005926638841629028, -0.027000196278095245, -0.020432062447071075, -0.014773511327803135, 0.002130334498360753, 0.04247264936566353, 0.022557610645890236, 0.06610260903835297, -0.03173001855611801, 0.019780995324254036, 0.009014426730573177, -0.047757793217897415, -0.010761779733002186, -0.04519181698560715, 0.025219332426786423, 0.010072413831949234, 0.009603261016309261, 0.002879542065784335, 0.04591948166489601, 0.008248464204370975, 0.05783020704984665, -0.015194791369140148, 0.01649692840874195, -0.006070256698876619, -0.028666164726018906, 0.023515064269304276, -0.05966851860284805, -0.05005568265914917, 0.029183190315961838, 0.05641317367553711, -0.018612900748848915, -0.03617260232567787, 0.083260178565979, 0.0034803443122655153, 0.024683156982064247, 0.05740892514586449, -0.058366380631923676, -0.034927912056446075, -0.026847003027796745, 0.02066185139119625, 0.041898176074028015, 0.033664073795080185, -0.0006118727615103126, 0.005984086077660322, -0.07575374096632004, -0.004468915518373251, -0.1436946541070938, -0.013452225364744663, 0.023457616567611694, -0.07636651396751404, -0.042051367461681366, -0.037608783692121506, 0.03471727296710014, 0.03990667313337326, -0.006697388831526041, -0.028474673628807068, -0.007673991844058037, -0.019043754786252975, -0.05986000970005989, 0.004174498375505209, -0.02767041325569153, 0.01494585257023573, -0.03383641690015793, -0.005289931781589985, -0.01462031900882721, -0.04637905955314636, -0.019206522032618523, 0.025889549404382706, -0.00937825907021761, 0.022749101743102074, 0.011077740229666233, -0.012542644515633583, 0.016640545800328255, 0.003822633996605873, 0.005926638841629028, -0.027459774166345596, 0.03586621582508087, -0.0404045470058918, 0.036996014416217804, 0.016889484599232674, -0.017971407622098923, -0.019110776484012604, 0.046647146344184875, -0.00868410523980856, 0.04875354468822479, -0.0067979213781654835, 0.006079831160604954, 0.006979838013648987, 0.038661982864141464, -0.04986419156193733, 0.05576210469007492, -0.016736291348934174, -0.04423436149954796, 0.022289523854851723, 0.039676882326602936, -0.010981994681060314, -0.04147689789533615, 0.029681066051125526, -0.020566105842590332, -0.004660406149923801, -0.004425829742103815, 0.006759623531252146, -0.00931602530181408, 0.08425592631101608, -0.00022515123418997973, -0.10470714420080185, -0.027861904352903366, 0.013394777663052082, -0.04051944240927696, -0.029508724808692932, 0.0008922272245399654, 0.004583809990435839, 0.07023880630731583, 0.08877511322498322, -0.08816234022378922, 0.012485196813941002, 0.030542774125933647, 0.051740799099206924, -0.04005986452102661, 0.03389386087656021, -0.002111185574904084, -0.009861773811280727, -0.03171086683869362, 0.00703249778598547, 0.0010436245938763022, -0.024012940004467964, 0.03264917433261871, -0.03822155296802521, 0.00048740379861555994, 0.02596614509820938, 0.011929873377084732, -0.02211718074977398, 0.012561793439090252, 0.02556401491165161, 0.03111724741756916, 0.04446415230631828, -0.018890561535954475, -0.025085289031267166, -0.02600444294512272, 0.02362995781004429, 0.08433252573013306, 0.03994496911764145, -0.02655976638197899, -0.022595908492803574, -0.010876674205064774, 0.021121429279446602, -0.021753348410129547, 0.02424272894859314, 0.04212796315550804, -0.012791582383215427, 0.030274687334895134, 0.042204562574625015, 0.023706555366516113, -0.020891640335321426, 0.02510443702340126, -0.006850581616163254, -0.0419364757835865, 0.044923730194568634, -0.01078092958778143, 0.039179008454084396, -0.010484118945896626, 0.03653643652796745, 0.008052186109125614, 0.06391961127519608, 0.025678910315036774, -0.035636428743600845, 0.05641317367553711, 0.027708711102604866, 0.030925756320357323, -0.05338761955499649, 0.01828736625611782, -0.01921609602868557, -0.03960028663277626, 0.0669451653957367, -0.008162293583154678, -0.005988873075693846, 0.06135363504290581, -0.006941539701074362, 0.004444979131221771, -0.06150683015584946, -0.0015319259837269783, 0.12439239025115967, -0.019934186711907387, -0.016832036897540092, -0.0004248700861353427, -0.05112802982330322, -0.03190235793590546, -0.06020469218492508, 0.006592068821191788, 0.05116632953286171, 0.07498777657747269, 0.03747474029660225, -0.056451473385095596, -0.027364028617739677, 0.026444872841238976, -0.00948357954621315, 0.05641317367553711, -0.009689431637525558, -0.030983204022049904, -0.00700856139883399, 0.05051526054739952, 0.07039199769496918, -0.008736765012145042, 0.0006289274315349758, -0.03956199064850807, -0.02318952977657318, -0.048255667090415955, -0.002427145140245557, 0.01631501130759716, 0.00923942867666483, -0.04637905955314636, 0.011652211658656597, 0.010867100208997726, -0.005648977123200893, -0.052506763488054276, -0.009751666337251663, -0.015386281535029411, 0.04875354468822479, -0.011489445343613625, 0.04591948166489601, -0.0044737025164067745, -0.019053328782320023, 0.02504698932170868, -0.007908567786216736, 0.007855908013880253, -0.04454074800014496, -0.01785651221871376, -0.00439471285790205, -0.0013811270473524928, 0.011259656399488449, 0.07016221433877945, -0.004174498375505209, 0.025276778265833855, -0.014649041928350925, -0.0049500358290970325, -0.03377896919846535, 0.017435232177376747, -0.015807561576366425, 0.013978824950754642, 0.031347036361694336, -0.008071335032582283, -0.09543898701667786, 0.009679857641458511, -0.024721456691622734, -0.017971407622098923, -0.007731439080089331, 0.0048590777441859245, 0.10876674205064774, 0.00804739911109209, 0.007764949928969145, -0.013576693832874298, -0.008909107185900211, -0.0205086600035429, 0.025583164766430855, 0.01597990281879902, 0.03163427114486694, -0.07448989897966385, 0.045727990567684174, 0.007142604794353247, -0.05338761955499649, -0.003243374638259411, 0.03297470882534981, -0.02763211540877819, 0.014084144495427608, 0.021581007167696953, -0.06828559935092926, 0.015472452156245708, -0.04948120936751366, -0.09689431637525558, 0.10593268275260925, -0.025640610605478287, 0.057140838354825974, -0.013749036006629467, -0.012312855571508408, 0.06621750444173813, 0.04714502394199371, 0.0774005576968193, 0.045076921582221985, -0.007664417382329702, 0.01255221851170063, 0.023361871019005775, -0.00003214576281607151, -0.023112934082746506, 0.01452457346022129, 0.03282151371240616, 0.022998038679361343, -0.01591288112103939, 0.006941539701074362, 0.01597990281879902, -0.0035880578216165304, -0.042702436447143555, 0.042549245059490204, 0.024472517892718315, 0.033261943608522415, -0.04645565524697304, -0.0205086600035429, 0.036344945430755615, -0.06491536647081375, -0.01668841950595379, -0.030332135036587715, 0.025085289031267166, -0.002198553178459406, -0.03713005781173706, -0.025142734870314598, -0.035636428743600845, 0.01942673698067665, -0.029125742614269257, 0.00599844753742218, 0.009033575654029846, 0.05687275156378746, 0.0202022735029459, 0.0026114550419151783, -0.030083196237683296, -0.02600444294512272, 0.03035128302872181, 0.00823410227894783, 0.003827421460300684, 0.02202143706381321, -0.05813658982515335, -0.08463890850543976, -0.0016779376892372966, 0.017004378139972687, -0.015146918594837189, -0.00217102630995214, 0.012188386172056198, 0.01409371942281723, -0.03060022182762623, 0.039830077439546585, 0.04557479918003082, -0.026578916236758232, 0.001630065031349659, -0.005581955425441265, -0.014907554723322392, -0.02834063023328781, -0.005309081170707941, 0.03345343470573425, 0.0663323923945427, -0.023649107664823532, -0.026483170688152313, -0.0792771726846695, 0.04722161963582039, -0.021389516070485115, 0.048255667090415955, -0.05817488953471184, -0.00883729849010706, -0.02470230683684349, 0.010790503583848476, 0.03111724741756916, -0.021102281287312508, -0.037206653505563736, 0.0044042873196303844, 0.008463891223073006, -0.029278935864567757, 0.01358626876026392, -0.049979086965322495, -0.0014014729531481862, -0.023668257519602776, 0.036096006631851196, -0.10562629997730255, 0.017751192674040794, 0.03799176588654518, -0.04362159222364426, 0.05388549715280533, -0.01207349169999361, -0.011489445343613625, 0.05415358394384384, 0.039868373423814774, -0.017530977725982666, 0.056451473385095596, -0.025085289031267166, -0.0018454920500516891, 0.003219438251107931, -0.07219201326370239, -0.07146434485912323, -0.01585543341934681, -0.022653356194496155, 0.04247264936566353, 0.008961766958236694, -0.0034276843070983887, -0.018708646297454834, 0.013777759857475758, 0.014725638553500175, -0.04277903214097023, 0.04021305590867996, 0.0032242254819720984, 0.048523757606744766, 0.054574862122535706, 0.026789555326104164, -0.059936605393886566, 0.03291726112365723, -0.04733651503920555, 0.06709835678339005, -0.011077740229666233, -0.035176850855350494, 0.027440624311566353, -0.0931411013007164, 0.014744787476956844, 0.009608048014342785, 0.0007300584693439305, 0.006764410529285669, 0.038815174251794815, -0.04055774211883545, 0.00858835969120264, -0.025832101702690125, -0.011077740229666233, -0.023764001205563545, -0.0013559939106926322, 0.00972773041576147, 0.03155767545104027, 0.0034276843070983887, 0.012427750043570995, -0.006371854804456234, 0.06503026187419891, -0.003379811765626073, 0.014084144495427608, -0.04764289781451225, 0.030983204022049904, -0.09605176001787186, 0.0323810875415802, -0.001527138752862811, -0.0032337999437004328, -0.016583098098635674, -0.017004378139972687, 0.016602247953414917, -0.008626658469438553, 0.05909404531121254, 0.05729403346776962, -0.04231945425271988, 0.009225066751241684, -0.011508594267070293, 0.06744304299354553, -0.003111724741756916, 0.011767106130719185, -0.02899169921875, -0.050438664853572845, 0.04672374203801155, -0.02500869147479534, -0.012370302341878414, 0.04044284671545029, -0.053655706346035004, -0.018928861245512962, 0.027842754498124123, 0.05032376945018768, 0.05419188365340233, 0.021044833585619926, -0.0033295454923063517, 0.03843219205737114, -0.05928553640842438, 0.012188386172056198, 0.012102215550839901, -0.04373648762702942, -0.027210835367441177, -0.009201130829751492, 0.07981334626674652, -0.04860035330057144, 0.004653225187212229, -0.006697388831526041, 0.002080068225041032, -0.01921609602868557, -0.006146852858364582, -0.020566105842590332, 0.02818743884563446, 0.012849029153585434, -0.014706489630043507, 0.030217239633202553, -0.03318534791469574, -0.01406499557197094, 0.013729887083172798, -0.00040990987326949835, 0.050438664853572845, -0.05020887404680252, 0.019666099920868874, -0.010790503583848476, 0.02384059876203537, -0.03354917839169502, -0.025889549404382706, -0.01610437221825123, 0.04599607735872269, -0.03218959644436836, -0.06943454593420029, -0.01613309606909752, -0.010168158449232578, 0.03667047992348671, -0.017511829733848572, 0.012102215550839901, 0.007922929711639881, 0.027459774166345596, -0.012437324039638042, 0.019158650189638138, 0.010924546979367733, 0.021427815780043602, 0.03870027884840965, -0.06962603330612183, -0.07085157930850983, 0.007798460777848959, -0.013260734267532825, 0.019350139424204826, 0.07602182775735855, 0.002271559089422226, -0.01884268969297409, -0.003379811765626073, 0.021983137354254723, 0.01887141354382038, 0.022136330604553223, -0.007812822237610817, -0.009277726523578167, 0.018737370148301125, -0.00820537842810154, -0.04388967901468277, -0.06763453036546707, -0.06005150079727173, -0.030178941786289215, -0.022806547582149506, -0.01353839598596096, 0.01989588886499405, -0.031940657645463943, 0.04228115826845169, 0.01970439776778221, -0.017875662073493004, 0.02125547267496586, -0.01212136447429657, 0.06246428191661835, -0.012102215550839901, -0.01846928335726261, 0.0022990857250988483, -0.024817200377583504, 0.024836350232362747, -0.024529965594410896, -0.009469217620790005, 0.006869730539619923, 0.02948957495391369, -0.029412979260087013, -0.0033415136858820915, 0.01169051043689251, 0.008674531243741512, 0.09275811910629272, 0.04059603810310364, 0.02418528124690056, -0.06120044365525246, -0.1030220240354538, -0.018919285386800766, 0.019541630521416664, -0.03257257491350174, -0.04722161963582039, -0.012006470002233982, -0.032706618309020996, 0.008463891223073006, 0.04817907139658928, -0.0626174733042717, 0.01942673698067665, -0.0036096007097512484, 0.011144761927425861, 0.052813149988651276, -0.028359780088067055, 0.029068294912576675, -0.011949023231863976, -0.08992405235767365, 0.027364028617739677, 0.042242858558893204, 0.03630664572119713, -0.0115660410374403, -0.0360768586397171, 0.0018466889159753919, -0.0663323923945427, -0.012351153418421745, 0.023151231929659843, -0.011757532134652138, -0.027153387665748596, -0.013835206627845764, -0.028244884684681892, 0.0021961594466120005, -0.057906802743673325, 0.03768537938594818, 0.021427815780043602, -0.047910984605550766, 0.019225671887397766, -0.0462641641497612, -0.02106398157775402, 0.05978341028094292, 0.003219438251107931, 0.032898109406232834, 0.01600862666964531, 0.019484184682369232, -0.04216626286506653, 0.014026697725057602, -0.009928795509040356, -0.09337089210748672, 0.004808811470866203, 0.037800274789333344, -0.04737481102347374, -0.02939382940530777, -0.020642703399062157, 0.01307881809771061, -0.0650685578584671, 0.00012140214676037431, -0.04059603810310364, -0.020566105842590332, -0.0035976325161755085, 0.020776746794581413, 0.014007547870278358, -0.019235245883464813, 0.04400457441806793, -0.00361199420876801, 0.01625756546854973, -0.005749509669840336, -0.00935911014676094, 0.012427750043570995, -0.000520017056260258, 0.03870027884840965, -0.05055355653166771, -0.039121560752391815, 0.06855368614196777, -0.0260618906468153, 0.007262286730110645, 0.06254088133573532, -0.007080370560288429, -0.03282151371240616, -0.04576629027724266, -0.014361806213855743, 0.0008485433645546436, 0.0342385470867157, -0.0413237027823925, 0.06870687752962112, -0.020240571349859238, -0.022136330604553223, 0.01151816826313734, 0.024434220045804977, -0.016353309154510498, -0.010771354660391808, -0.04415776580572128, -0.03596196323633194, -0.05530252680182457, 0.03211299702525139, -0.0005301900091581047, 0.011020292527973652, 0.0348513163626194, -0.02661721408367157, 0.019991634413599968, 0.03806836158037186, 0.08371975272893906, -0.03757048398256302, -0.004722640383988619, 0.00037490297108888626, 0.025985294952988625, -0.036996014416217804, 0.04140029847621918, -0.0288385059684515, 0.006592068821191788, -0.0022871175315231085, -0.003219438251107931, 0.05863446742296219, 0.026176786050200462, -0.007712290156632662, -0.004373169969767332, 0.08218783140182495, 0.05874936282634735, 0.026655511930584908, -0.03234278783202171, 0.014792660251259804, 0.02948957495391369, -0.006998986937105656, -0.034525781869888306, -0.017511829733848572, -0.013682014308869839, -0.024319324642419815, 0.01934056542813778, -0.038872621953487396, 0.012025618925690651, 0.008243677206337452, -0.023802300915122032, 0.0005472446791827679, -0.011001143604516983, 0.042357753962278366, 0.015271387062966824, -0.05200888589024544, -0.05698764696717262, -0.01575968787074089, -0.010283052921295166, 0.0034516206942498684, 0.01634373515844345, 0.0008886367431841791, -0.0026952323969453573, 0.009536239318549633, -0.012705410830676556, 0.03102150186896324, -0.0379343181848526, -0.028053395450115204, 0.04304711893200874, 0.02772786095738411, -0.007908567786216736, 0.027057642117142677, 0.06522174924612045, -0.0734175518155098, 0.04691523313522339, 0.05005568265914917, -0.021983137354254723, 0.032553426921367645, 0.02010652795433998, 0.008119207806885242, 0.018459707498550415, -0.03266832232475281, 0.02242356725037098, -0.022538460791110992, -0.002948957495391369, 0.06583452224731445, -0.03305130451917648, 0.02238526940345764, 0.008416018448770046, 0.03653643652796745, 0.04059603810310364, 0.016611821949481964, 0.03339598700404167, 0.0018083907198160887, 0.028264034539461136, 0.038815174251794815, 0.006735687144100666, -0.04978759586811066, 0.047910984605550766, -0.0038872621953487396, -0.06794092059135437, -0.012791582383215427, -0.014897980727255344, 0.007310159504413605, -0.06828559935092926, -0.0075303735211491585, -0.013069244101643562, -0.0032242254819720984, -0.0026665087789297104 ]
730,257
mmengine.registry.registry
split_scope_key
Split scope and key. The first scope will be split from key. Return: tuple[str | None, str]: The former element is the first scope of the key, which can be ``None``. The latter is the remaining key. Examples: >>> Registry.split_scope_key('mmdet.ResNet') 'mmdet', 'ResNet' >>> Registry.split_scope_key('ResNet') None, 'ResNet'
@staticmethod def split_scope_key(key: str) -> Tuple[Optional[str], str]: """Split scope and key. The first scope will be split from key. Return: tuple[str | None, str]: The former element is the first scope of the key, which can be ``None``. The latter is the remaining key. Examples: >>> Registry.split_scope_key('mmdet.ResNet') 'mmdet', 'ResNet' >>> Registry.split_scope_key('ResNet') None, 'ResNet' """ split_index = key.find('.') if split_index != -1: return key[:split_index], key[split_index + 1:] else: return None, key
(key: str) -> Tuple[Optional[str], str]
[ 0.022588547319173813, 0.01369541883468628, -0.03121488355100155, -0.0007514694007113576, 0.0015018271515145898, -0.03171289712190628, 0.052931904792785645, 0.0069766598753631115, 0.08551633358001709, -0.03806259110569954, 0.022819768637418747, -0.009408930316567421, -0.018693357706069946, -0.04830747842788696, -0.024954119697213173, -0.015776410698890686, 0.046742286533117294, 0.033651601523160934, -0.04848533868789673, 0.014460228383541107, 0.010333816520869732, 0.04378976672887802, 0.005175800994038582, -0.07025571912527084, 0.002098778495565057, 0.040090225636959076, 0.04909007251262665, 0.011400992050766945, 0.044430073350667953, -0.03920091316103935, 0.015456258319318295, -0.026946181431412697, 0.007621411699801683, 0.004624427296221256, -0.02920503541827202, -0.041157402098178864, 0.027195189148187637, 0.03352709859609604, -0.03422076255083084, -0.024954119697213173, -0.04169099032878876, 0.004433224909007549, 0.006371926981955767, -0.04692015051841736, -0.01958267018198967, 0.019671602174639702, 0.025701142847537994, 0.01786629669368267, 0.0102448845282197, 0.04229572415351868, 0.036675263196229935, -0.013473090715706348, -0.03519900515675545, -0.060224272310733795, -0.054746102541685104, 0.007483568042516708, 0.05012167617678642, 0.013570914976298809, -0.019440380856394768, 0.016123242676258087, 0.019920609891414642, -0.04450121894478798, -0.019618242979049683, 0.05552870035171509, 0.0008448472945019603, -0.037422288209199905, 0.010938548482954502, -0.010725113563239574, -0.04677785933017731, -0.015420686453580856, -0.020009540021419525, -0.03969892859458923, -0.0654534325003624, -0.0050335112027823925, -0.01695919781923294, -0.03902304917573929, -0.008928701281547546, 0.018533281981945038, 0.04752488061785698, -0.016345571726560593, -0.051117707043886185, -0.010831831023097038, -0.016478968784213066, -0.023033205419778824, 0.04521266743540764, 0.040445949882268906, 0.0033126906491816044, 0.018097518011927605, 0.028973814100027084, 0.059121523052453995, -0.07441770285367966, 0.027070684358477592, -0.02120121940970421, 0.05431923270225525, -0.0026412594597786665, -0.009649044834077358, 0.009093225002288818, -0.0016196611104533076, -0.07292366027832031, -0.021361296996474266, -0.03902304917573929, 0.022837555035948753, -0.07029129564762115, 0.05691602826118469, 0.0007737022242508829, -0.03841831907629967, -0.03256664052605629, 0.016932517290115356, -0.03014770708978176, -0.019547097384929657, -0.06705419719219208, -0.07512915879487991, 0.007901545614004135, 0.04403877630829811, 0.04058824107050896, 0.04926793649792671, -0.027444196864962578, 0.01735938899219036, 0.05944167450070381, 0.008266163989901543, -0.007034465204924345, 0.03169511258602142, -0.08096304535865784, 0.025078624486923218, -0.017252670601010323, 0.012779426760971546, 0.02934732660651207, 0.0453905314207077, -0.022819768637418747, 0.037173278629779816, 0.0431850366294384, 0.01862221211194992, -0.048343051224946976, -0.016825800761580467, 0.006736545357853174, 0.014549159444868565, -0.0134108392521739, 0.08622778207063675, -0.05118885263800621, 0.00596284307539463, 0.01185454148799181, 0.020952211692929268, -0.015420686453580856, 0.002650152426213026, 0.00291916960850358, -0.019262518733739853, -0.01316183153539896, 0.007230114191770554, 0.011561067774891853, -0.017483891919255257, -0.034558698534965515, -0.004224236588925123, -0.010253777727484703, -0.013304120860993862, 0.012975075282156467, -0.023869158700108528, -0.023033205419778824, -0.014006678014993668, 0.05915709584951401, -0.03454091399908066, 0.0025901237968355417, -0.038382746279239655, 0.031286027282476425, -0.05122442543506622, 0.055706560611724854, 0.01303732767701149, 0.03916534036397934, -0.029880914837121964, 0.02673274651169777, 0.012085762806236744, 0.05382121726870537, 0.05204259231686592, -0.010582823306322098, -0.002607910195365548, -0.043718624860048294, -0.0342385470867157, -0.026092441752552986, -0.008021602407097816, -0.024794043973088264, 0.043718624860048294, 0.052327170968055725, -0.0161588154733181, 0.020045112818479538, 0.01791965588927269, -0.01566080003976822, 0.03720885142683983, 0.04161984473466873, 0.001008258550427854, 0.007434655912220478, 0.019404808059334755, -0.04716915637254715, 0.007630304899066687, -0.016452288255095482, 0.005905037745833397, -0.013597594574093819, -0.02915167808532715, 0.019849464297294617, 0.02481183037161827, -0.06474198400974274, -0.009133243933320045, -0.014887098222970963, -0.003074799431487918, -0.03155282139778137, 0.061896178871393204, 0.0015462927985936403, 0.021023357287049294, 0.006069560535252094, 0.01610545627772808, -0.007434655912220478, -0.00939114484935999, -0.015669694170355797, -0.016336677595973015, 0.018817860633134842, -0.004993491806089878, -0.013197403401136398, -0.017306029796600342, -0.02491854876279831, 0.07676549255847931, 0.07356396317481995, 0.020756563171744347, 0.04656442254781723, -0.05563541501760483, 0.11269373446702957, 0.007327938452363014, 0.012797213159501553, -0.028280150145292282, -0.019066868349909782, -0.01826648786664009, 0.003048120066523552, 0.00017313810531049967, 0.04706243798136711, -0.03229984641075134, -0.0028724807780236006, -0.03592824190855026, 0.03487885370850563, -0.039592210203409195, 0.0032081962563097477, -0.032193128019571304, 0.09889159351587296, -0.03263778239488602, -0.014993815682828426, 0.029080532491207123, -0.040339235216379166, 0.04386091232299805, -0.011134197935461998, -0.007621411699801683, -0.005833892617374659, -0.04030366241931915, 0.01826648786664009, -0.003421631408855319, -0.047098010778427124, 0.05873022601008415, 0.005807213485240936, 0.050655264407396317, 0.013464197516441345, -0.0062696561217308044, -0.08309739828109741, 0.03199747949838638, 0.020098472014069557, 0.005362556781619787, -0.019351448863744736, 0.008821983821690083, -0.020667633041739464, -0.025861220434308052, -0.01117866300046444, 0.01851549558341503, 0.0481296144425869, 0.013828815892338753, 0.031232669949531555, -0.006109579931944609, -0.0250252652913332, 0.04670671373605728, -0.023922517895698547, -0.012165800668299198, 0.004717804957181215, -0.016772441565990448, 0.011685571633279324, 0.025754502043128014, 0.046742286533117294, -0.013988892547786236, -0.01947595365345478, 0.0046110874973237514, -0.09718411415815353, 0.05022839456796646, 0.021272365003824234, 0.04322060942649841, -0.009195495396852493, -0.12578441202640533, 0.031446103006601334, 0.014735914766788483, -0.0231043491512537, 0.010413854382932186, 0.01746610552072525, 0.06210961565375328, -0.017439426854252815, 0.01301064807921648, 0.03160618245601654, -0.0616116002202034, 0.08950044959783554, 0.0038107058499008417, 0.015989845618605614, 0.100670225918293, 0.0009243296226486564, -0.018497709184885025, 0.026145799085497856, -0.0027101810555905104, 0.015482937917113304, 0.01105415914207697, 0.0007898210315033793, 0.016123242676258087, -0.05784091353416443, -0.015883129090070724, 0.01195236574858427, 0.021681448444724083, 0.003563921432942152, 0.005055743735283613, 0.018604425713419914, 0.06232304871082306, -0.003294904250651598, 0.07954014837741852, 0.0022810876835137606, 0.01625663973391056, -0.020205190405249596, 0.02098778448998928, -0.021165646612644196, -0.00288137374445796, 0.004093062598258257, 0.0006164050428196788, -0.001838654512539506, 0.033011294901371, -0.03735114261507988, -0.0030948088970035315, -0.048343051224946976, 0.013979999348521233, -0.008866449818015099, 0.02139686793088913, 0.0015273949829861522, -0.015669694170355797, 0.03434526547789574, -0.029774196445941925, 0.054390378296375275, -0.1025911346077919, -0.0054114689119160175, -0.002596793696284294, 0.02114786207675934, -0.009782441891729832, 0.021254578605294228, 0.03105480782687664, 0.009702404029667377, -0.006758778356015682, -0.02486518956720829, -0.0013962212251499295, 0.024438319727778435, -0.000627521425485611, 0.052469462156295776, 0.00611402653157711, -0.05193587392568588, -0.034060683101415634, 0.026448165997862816, 0.018462136387825012, 0.0880064070224762, -0.0036950951907783747, -0.019600456580519676, -0.018444349989295006, 0.029471829533576965, -0.03240656107664108, -0.006189617794007063, 0.014460228383541107, 0.01566080003976822, -0.02506083808839321, -0.012921717017889023, 0.01671908237040043, 0.04823633283376694, -0.01384660229086876, -0.05734289810061455, 0.015474044717848301, 0.04147755354642868, 0.020205190405249596, -0.0191202275454998, -0.0008592986268922687, 0.007327938452363014, 0.008661908097565174, 0.0759117528796196, 0.06193175166845322, -0.06075785681605339, 0.029578547924757004, 0.02758648619055748, -0.07669434696435928, 0.02687503583729267, 0.04595969244837761, 0.03912976756691933, 0.009053205139935017, -0.017323816195130348, 0.031428318470716476, -0.04243801161646843, -0.020276334136724472, -0.00933778565376997, -0.10856731981039047, 0.013152938336133957, -0.015296182595193386, 0.06339022517204285, -0.03816930949687958, -0.030485646799206734, 0.0353412963449955, 0.04435892775654793, -0.0008315075538121164, 0.011774502694606781, 0.03432747721672058, -0.042153432965278625, -0.06200289726257324, -0.023744655773043633, -0.05869465321302414, -0.0015418463153764606, -0.022072747349739075, 0.0841645747423172, 0.0009154364815913141, 0.022962059825658798, 0.06698305159807205, -0.00736351078376174, -0.0210411436855793, -0.048094041645526886, -0.10123938322067261, -0.04041038081049919, 0.02808450162410736, -0.025718929246068, 0.03498556837439537, 0.0010599498637020588, -0.030574578791856766, 0.03347373753786087, -0.013241869397461414, -0.05485282093286514, 0.015714159235358238, -0.046528853476047516, -0.05517297238111496, -0.0012961735483258963, -0.02305098995566368, 0.016229961067438126, 0.09455174952745438, 0.03397175297141075, -0.025736715644598007, -0.0376712940633297, 0.03245992213487625, -0.0015418463153764606, 0.010511678643524647, 0.005469274241477251, 0.011507709510624409, -0.048556484282016754, 0.07121618092060089, -0.01515389233827591, -0.06040213257074356, -0.026590457186102867, 0.000835954153444618, 0.04083725064992905, 0.0003176514583174139, 0.06527556478977203, -0.015367327257990837, -0.02808450162410736, 0.059477247297763824, 0.05410579964518547, -0.019315876066684723, 0.029827555641531944, 0.07320824265480042, 0.06943755596876144, 0.01089408341795206, -0.017145952209830284, -0.04503480717539787, 0.05552870035171509, -0.020471982657909393, 0.021610304713249207, -0.009022079408168793, -0.0180797316133976, 0.013232976198196411, 0.00832841545343399, 0.01942259445786476, 0.026768319308757782, 0.04137083515524864, 0.07690778374671936, 0.01621217466890812, 0.020454196259379387, -0.01666572317481041, -0.045283813029527664, -0.04161984473466873, -0.0440032035112381, 0.039236485958099365, -0.008808644488453865, -0.020756563171744347, -0.06751663982868195, 0.012957288883626461, -0.0726035088300705, 0.021361296996474266, -0.03338480740785599, 0.039841219782829285, -0.018853433430194855, 0.022375112399458885, 0.026359234005212784, 0.03966335579752922, 0.03891633450984955, 0.03402511402964592, 0.0051268888637423515, -0.017804045230150223, 0.006287442520260811, -0.005562652368098497, 0.03998350724577904, -0.02475847117602825, -0.0090398658066988, 0.026714960113167763, -0.05517297238111496, -0.031125951558351517, -0.02753312885761261, -0.08018045127391815, -0.0191202275454998, -0.045426104217767715, 0.04464351013302803, -0.02269526571035385, -0.054141368716955185, 0.0019653814379125834, 0.010404961183667183, -0.02516755647957325, 0.013722098432481289, 0.03608831763267517, -0.03375831991434097, -0.007350171450525522, 0.06641388684511185, 0.019191373139619827, 0.028867097571492195, -0.06296335160732269, -0.04670671373605728, -0.016336677595973015, -0.02618137188255787, -0.004393205977976322, -0.0011160876601934433, 0.04169099032878876, 0.025096410885453224, 0.001717485603876412, 0.05150900408625603, -0.005300304852426052, -0.06943755596876144, -0.028920456767082214, -0.03165953978896141, 0.06890396773815155, -0.012654922902584076, -0.02169923484325409, -0.032086409628391266, -0.0049356864765286446, 0.04023251682519913, 0.05261175334453583, 0.00847959890961647, 0.00830173585563898, -0.053429920226335526, 0.019369235262274742, 0.026163585484027863, 0.025345418602228165, 0.01446912158280611, -0.05072641000151634, -0.019298089668154716, -0.06506213545799255, -0.03578595072031021, -0.030218852683901787, -0.0522560253739357, -0.018960151821374893, -0.007163415662944317, -0.006438625510782003, -0.0151272127404809, 0.05029954016208649, -0.03338480740785599, -0.056702591478824615, -0.006967766676098108, 0.016799120232462883, 0.045888546854257584, 0.07719235867261887, -0.020365266129374504, 0.0019842793699353933, 0.06780121475458145, 0.019671602174639702, -0.040090225636959076, 0.03856060653924942, 0.023495648056268692, -0.0013228529132902622, -0.03608831763267517, 0.03859617933630943, 0.02486518956720829, 0.03567923605442047, 0.02335335686802864, 0.022944273427128792, -0.059975262731313705, 0.0682280883193016, 0.02995205856859684, -0.009106564335525036, -0.013481983914971352, -0.0005813883035443723, -0.007950457744300365, 0.047489311546087265, 0.07100274413824081, 0.00376846338622272, 0.047738317400217056, -0.05627572163939476, -0.014913777820765972, 0.019191373139619827, -0.02109450288116932, -0.040908392518758774, 0.03381167724728584, -0.017083700746297836, 0.0663071721792221, 0.06897511333227158, 0.05805434659123421, -0.046528853476047516, 0.02200160175561905, 0.026163585484027863, 0.008221697993576527, -0.03567923605442047, -0.03528793528676033, -0.030432287603616714, -0.005482614040374756, 0.0034038452431559563, -0.014006678014993668, 0.044928088784217834, 0.018248701468110085, -0.04425220936536789, -0.02205496095120907, -0.022713052108883858, -0.03498556837439537, 0.02324664033949375, -0.051615722477436066, 0.02813786081969738, -0.016799120232462883, -0.03192633390426636, -0.005620457697659731, -0.06470640748739243, 0.029133891686797142, -0.07833068072795868, -0.02824457921087742, 0.019155800342559814, 0.032193128019571304, -0.0654534325003624, 0.048200760036706924, 0.044572364538908005, 0.040801677852869034, -0.049659233540296555, -0.03306465595960617, 0.02893824316561222, -0.01977831870317459, -0.0060784537345170975, -0.009978091344237328, -0.004084169398993254, -0.017546143382787704, 0.012565991841256618, -0.04279373586177826, 0.005100209731608629, 0.045639537274837494, -0.032033052295446396, -0.027497556060552597, 0.03247770667076111, 0.007754808757454157, -0.006265209522098303, -0.00704780500382185, 0.004949026275426149, -0.008488492108881474, -0.06591587513685226, -0.030592365190386772, -0.023175494745373726, 0.02084549516439438, -0.029667478054761887, -0.0006430844077840447, 0.06965098530054092, -0.06790793687105179, -0.05054854601621628, -0.025683356449007988, -0.018639998510479927, 0.021805953234434128, -0.03283343464136124, 0.047240301966667175, -0.04549724981188774, 0.0025256488006561995, -0.03197969123721123, -0.03407847136259079, -0.010653968900442123, 0.04571068286895752, 0.0442877821624279, 0.013224082998931408, 0.03235320374369621, 0.020809922367334366, -0.018284274265170097, 0.06310564279556274, -0.07996701449155807, 0.027817707508802414, 0.04901892691850662, 0.024527249857783318, 0.016585685312747955, 0.016630152240395546, -0.009075438603758812, 0.046635568141937256, -0.02577228844165802, 0.0069544268772006035, -0.005598224699497223, -0.054746102541685104, -0.023744655773043633, 0.0005583217716775835, -0.013170724734663963, -0.05204259231686592, -0.014148968271911144, -0.05442595109343529, -0.00792822428047657, -0.037279997020959854, -0.06694747507572174, -0.02541656233370304, -0.027266334742307663, 0.024384960532188416, -0.027141829952597618, -0.039378777146339417, 0.02346007525920868, -0.012139121070504189, -0.04062381386756897, 0.004926793742924929, -0.0654534325003624, 0.05289633199572563, -0.019138013944029808, -0.08188793063163757, -0.006465305108577013, 0.04304274544119835, 0.04521266743540764, 0.003330476814880967, -0.04389648512005806, 0.07217663526535034, 0.0048956675454974174, -0.0030014310032129288, 0.01341973152011633, 0.04788060858845711, 0.036266181617975235, -0.06538228690624237, 0.01105415914207697, -0.026803892105817795, 0.02406480722129345, -0.04247358441352844, 0.05289633199572563, 0.05819663777947426, -0.0018019702984020114, -0.032086409628391266, -0.01459362544119358, 0.00493124034255743, 0.010102595202624798, 0.02280198410153389, 0.01797301322221756, -0.0036306199617683887, 0.023993661627173424, -0.04521266743540764, -0.0210411436855793, 0.0017975236987695098, -0.01155217457562685, -0.01751946471631527, -0.04549724981188774, -0.013428624719381332, 0.054995112121105194, 0.06285663694143295, -0.0470268689095974, -0.048343051224946976, -0.04684900492429733, 0.012432594783604145, 0.0420822873711586, -0.027710990980267525, 0.03247770667076111, 0.005553759168833494, 0.02920503541827202, 0.024527249857783318, 0.003937433008104563, -0.007697003427892923, -0.026892822235822678, 0.008906468749046326, -0.019315876066684723 ]
730,258
mmengine.registry.registry
switch_scope_and_registry
Temporarily switch default scope to the target scope, and get the corresponding registry. If the registry of the corresponding scope exists, yield the registry, otherwise yield the current itself. Args: scope (str, optional): The target scope. Examples: >>> from mmengine.registry import Registry, DefaultScope, MODELS >>> import time >>> # External Registry >>> MMDET_MODELS = Registry('mmdet_model', scope='mmdet', >>> parent=MODELS) >>> MMCLS_MODELS = Registry('mmcls_model', scope='mmcls', >>> parent=MODELS) >>> # Local Registry >>> CUSTOM_MODELS = Registry('custom_model', scope='custom', >>> parent=MODELS) >>> >>> # Initiate DefaultScope >>> DefaultScope.get_instance(f'scope_{time.time()}', >>> scope_name='custom') >>> # Check default scope >>> DefaultScope.get_current_instance().scope_name custom >>> # Switch to mmcls scope and get `MMCLS_MODELS` registry. >>> with CUSTOM_MODELS.switch_scope_and_registry(scope='mmcls') as registry: >>> DefaultScope.get_current_instance().scope_name mmcls >>> registry.scope mmcls >>> # Nested switch scope >>> with CUSTOM_MODELS.switch_scope_and_registry(scope='mmdet') as mmdet_registry: >>> DefaultScope.get_current_instance().scope_name mmdet >>> mmdet_registry.scope mmdet >>> with CUSTOM_MODELS.switch_scope_and_registry(scope='mmcls') as mmcls_registry: >>> DefaultScope.get_current_instance().scope_name mmcls >>> mmcls_registry.scope mmcls >>> >>> # Check switch back to original scope. >>> DefaultScope.get_current_instance().scope_name custom
@contextmanager def switch_scope_and_registry(self, scope: Optional[str]) -> Generator: """Temporarily switch default scope to the target scope, and get the corresponding registry. If the registry of the corresponding scope exists, yield the registry, otherwise yield the current itself. Args: scope (str, optional): The target scope. Examples: >>> from mmengine.registry import Registry, DefaultScope, MODELS >>> import time >>> # External Registry >>> MMDET_MODELS = Registry('mmdet_model', scope='mmdet', >>> parent=MODELS) >>> MMCLS_MODELS = Registry('mmcls_model', scope='mmcls', >>> parent=MODELS) >>> # Local Registry >>> CUSTOM_MODELS = Registry('custom_model', scope='custom', >>> parent=MODELS) >>> >>> # Initiate DefaultScope >>> DefaultScope.get_instance(f'scope_{time.time()}', >>> scope_name='custom') >>> # Check default scope >>> DefaultScope.get_current_instance().scope_name custom >>> # Switch to mmcls scope and get `MMCLS_MODELS` registry. >>> with CUSTOM_MODELS.switch_scope_and_registry(scope='mmcls') as registry: >>> DefaultScope.get_current_instance().scope_name mmcls >>> registry.scope mmcls >>> # Nested switch scope >>> with CUSTOM_MODELS.switch_scope_and_registry(scope='mmdet') as mmdet_registry: >>> DefaultScope.get_current_instance().scope_name mmdet >>> mmdet_registry.scope mmdet >>> with CUSTOM_MODELS.switch_scope_and_registry(scope='mmcls') as mmcls_registry: >>> DefaultScope.get_current_instance().scope_name mmcls >>> mmcls_registry.scope mmcls >>> >>> # Check switch back to original scope. >>> DefaultScope.get_current_instance().scope_name custom """ # noqa: E501 from ..logging import print_log # Switch to the given scope temporarily. If the corresponding registry # can be found in root registry, return the registry under the scope, # otherwise return the registry itself. with DefaultScope.overwrite_default_scope(scope): # Get the global default scope default_scope = DefaultScope.get_current_instance() # Get registry by scope if default_scope is not None: scope_name = default_scope.scope_name try: import_module(f'{scope_name}.registry') except (ImportError, AttributeError, ModuleNotFoundError): if scope in MODULE2PACKAGE: print_log( f'{scope} is not installed and its ' 'modules will not be registered. If you ' 'want to use modules defined in ' f'{scope}, Please install {scope} by ' f'`pip install {MODULE2PACKAGE[scope]}.', logger='current', level=logging.WARNING) else: print_log( f'Failed to import `{scope}.registry` ' f'make sure the registry.py exists in `{scope}` ' 'package.', logger='current', level=logging.WARNING) root = self._get_root_registry() registry = root._search_child(scope_name) if registry is None: # if `default_scope` can not be found, fallback to argument # `registry` print_log( f'Failed to search registry with scope "{scope_name}" ' f'in the "{root.name}" registry tree. ' f'As a workaround, the current "{self.name}" registry ' f'in "{self.scope}" is used to build instance. This ' 'may cause unexpected failure when running the built ' f'modules. Please check whether "{scope_name}" is a ' 'correct scope, or whether the registry is ' 'initialized.', logger='current', level=logging.WARNING) registry = self # If there is no built default scope, just return current registry. else: registry = self yield registry
(self, scope: Optional[str]) -> Generator
[ 0.09494201838970184, -0.02673974819481373, -0.011121666058897972, -0.02556590549647808, -0.015359438955783844, 0.010922709479928017, 0.0033374945633113384, -0.007878676056861877, 0.05431511253118515, -0.004317355342209339, 0.019268933683633804, -0.04345209151506424, -0.0006170758861117065, 0.03461842238903046, -0.014533769339323044, 0.01358872652053833, -0.01986580155789852, 0.018373629078269005, -0.0028873556293547153, -0.020532306283712387, 0.01157926581799984, 0.011808065697550774, 0.019955333322286606, -0.04032847285270691, -0.04066669940948486, 0.04428770765662193, -0.007754327729344368, 0.016045838594436646, -0.029803676530718803, -0.003663285868242383, -0.02075115777552128, -0.06752581894397736, 0.01692124642431736, 0.021845418959856033, 0.024909349158406258, -0.0446060374379158, -0.07803072035312653, 0.08033861964941025, -0.08276588469743729, -0.012554152868688107, -0.016682498157024384, 0.0005872324109077454, 0.007381284609436989, -0.019597211852669716, -0.011519579216837883, 0.024014044553041458, 0.05745862424373627, 0.011678744107484818, 0.05538947880268097, -0.023039158433675766, 0.07707573473453522, -0.019169455394148827, -0.03829911723732948, 0.004755059257149696, -0.016195055097341537, -0.03227073699235916, -0.02477007918059826, -0.024571122601628304, 0.05682196468114853, -0.010833179578185081, 0.0673268660902977, -0.01000253576785326, -0.017756864428520203, 0.050813477486371994, -0.06509855389595032, -0.03197230398654938, -0.039632126688957214, -0.03573257848620415, -0.0362100750207901, 0.09494201838970184, -0.09804574400186539, -0.051211390644311905, 0.010783440433442593, -0.025625592097640038, -0.006809284910559654, -0.00935592781752348, -0.0631885677576065, -0.036229971796274185, 0.06549646705389023, -0.040169309824705124, 0.008565075695514679, 0.027834009379148483, -0.009972692467272282, 0.009505144320428371, 0.0011010996531695127, 0.0415818989276886, 0.016304481774568558, 0.02936597354710102, 0.07245994359254837, -0.08682459592819214, -0.03889598697423935, 0.04699351638555527, 0.07464846223592758, 0.021984688937664032, 0.046157896518707275, -0.04066669940948486, -0.011042083613574505, 0.018333837389945984, -0.03264875337481499, -0.02727692946791649, -0.0718630701303482, 0.01166879665106535, -0.014772516675293446, 0.02914712019264698, -0.013598673976957798, -0.006162676494568586, -0.016841664910316467, 0.024073731154203415, 0.03036075457930565, -0.00678441533818841, -0.11396225541830063, -0.056702591478824615, 0.02172604575753212, 0.030141903087496758, -0.01506100408732891, -0.03306656330823898, -0.017329107969999313, 0.027455991134047508, 0.035294875502586365, -0.03326551988720894, -0.03692631796002388, 0.036090701818466187, 0.011987126432359219, -0.0006466084741987288, 0.04627727344632149, 0.02811254747211933, 0.035613205283880234, 0.027635052800178528, 0.05530989542603493, -0.0003344955330248922, 0.046595603227615356, -0.003009216394275427, -0.023397279903292656, 0.011350465938448906, 0.06645146012306213, 0.005332033149898052, -0.06004505977034569, 0.019845906645059586, -0.025605695322155952, 0.030639294534921646, -0.01806524582207203, -0.031713660806417465, -0.02668006159365177, 0.010813283734023571, -0.0021163993515074253, -0.02610308676958084, 0.025008827447891235, 0.05475281551480293, -0.029047643765807152, -0.04898307844996452, 0.009495196864008904, 0.02373550459742546, 0.01806524582207203, 0.09533993154764175, -0.05602613836526871, 0.05109201744198799, -0.033643536269664764, 0.02136792428791523, 0.01832388900220394, -0.028709417209029198, -0.006993319373577833, -0.009336031973361969, -0.006481006741523743, -0.023496758192777634, 0.04241751506924629, 0.04237772524356842, -0.07918467372655869, -0.04631706327199936, 0.04607831686735153, 0.022780515253543854, -0.04894328862428665, 0.01387721300125122, 0.028510460630059242, -0.0359315350651741, -0.024431852623820305, 0.05602613836526871, 0.0014013994950801134, -0.014593455940485, -0.026660164818167686, 0.05033598467707634, 0.013220656663179398, -0.04357146471738815, -0.06824206560850143, 0.007122640963643789, -0.02284020185470581, 0.0013404691126197577, 0.010256205685436726, -0.009236553683876991, 0.011390257626771927, 0.01321070920675993, -0.010111961513757706, 0.027575364336371422, 0.062074415385723114, 0.012434778735041618, 0.0006845345487818122, -0.003466816386207938, -0.02351665310561657, 0.016085630282759666, -0.006028380710631609, 0.07942342013120651, -0.01627463847398758, 0.0000101712603282067, 0.0163144301623106, 0.03817974403500557, -0.013429560698568821, 0.05439469590783119, 0.020810846239328384, 0.025904130190610886, -0.018303994089365005, 0.025148095563054085, -0.0754442885518074, -0.012852586805820465, -0.011897596530616283, 0.0446060374379158, 0.022919783368706703, 0.02717745304107666, 0.015966255217790604, 0.017289316281676292, 0.024531330913305283, 0.0199652798473835, 0.00844072736799717, -0.022820305079221725, -0.027834009379148483, -0.015618082135915756, 0.004765007179230452, -0.049022872000932693, 0.004466572310775518, -0.05889111012220383, 0.017906080931425095, 0.04679455980658531, 0.06159691885113716, -0.027217242866754532, 0.02656068652868271, -0.05805549398064613, 0.039850980043411255, -0.048744332045316696, 0.010942605324089527, 0.02445174939930439, 0.010962501168251038, 0.038199640810489655, -0.0003935607383027673, 0.038955673575401306, 0.01882128044962883, -0.0009624518570490181, 0.011141561903059483, -0.007172380108386278, -0.02383498288691044, 0.004016433376818895, 0.0446060374379158, -0.038378700613975525, -0.029266495257616043, 0.016543230041861534, -0.019119715318083763, 0.005630467552691698, -0.05288262665271759, -0.055588435381650925, -0.013638464733958244, -0.001488442998379469, 0.010236309841275215, -0.024471644312143326, 0.018313942477107048, 0.0647006407380104, -0.057100504636764526, 0.03543414548039436, -0.049460574984550476, -0.016463646665215492, 0.0047326767817139626, -0.029306286945939064, 0.012215926311910152, 0.0010041083442047238, 0.027873799204826355, 0.08037840574979782, -0.014394499361515045, 0.02731672115623951, 0.0060731456615030766, -0.014125908724963665, 0.02727692946791649, -0.0026311990804970264, -0.06334773451089859, -0.0225815586745739, -0.013011752627789974, 0.049022872000932693, -0.013976691290736198, 0.028848687186837196, -0.00958970095962286, 0.0021785732824355364, -0.01724952459335327, -0.054116155952215195, 0.048028089106082916, 0.0066451458260416985, -0.001374043058604002, 0.02717745304107666, 0.022501975297927856, 0.03839859738945961, 0.06314878165721893, -0.03392207622528076, -0.09088330715894699, 0.013727995567023754, 0.017478324472904205, 0.011400205083191395, 0.0021114253904670477, 0.016941143199801445, 0.043929584324359894, 0.06107963249087334, 0.05602613836526871, 0.027217242866754532, 0.07974174618721008, -0.04850558564066887, -0.00614775437861681, 0.03288750350475311, -0.004329789895564318, 0.035115815699100494, 0.056702591478824615, -0.04297459498047829, 0.03420061618089676, -0.05948797985911369, 0.04858516529202461, -0.0013926952378824353, 0.021387819200754166, 0.0652577206492424, -0.031037207692861557, 0.0643027275800705, 0.02502872236073017, 0.0018614863511174917, -0.006401423830538988, -0.005933876149356365, -0.01910976693034172, 0.06092046573758125, -0.004215389955788851, -0.010475057177245617, -0.058493196964263916, -0.0451631173491478, 0.020054811611771584, 0.03525508567690849, 0.005749841686338186, 0.017935924232006073, 0.010266153141856194, 0.0013727995101362467, -0.009007753804326057, -0.052325546741485596, 0.06235295534133911, -0.03294719010591507, -0.02032340131700039, -0.03143512085080147, -0.03595143184065819, 0.005998537410050631, 0.06338752806186676, 0.02445174939930439, 0.004682937636971474, 0.012285561300814152, -0.0359315350651741, -0.0009033866808749735, 0.05439469590783119, -0.013369874097406864, 0.007202223874628544, -0.020353246480226517, 0.009117179550230503, 0.03656819835305214, -0.018443264067173004, -0.008798849768936634, 0.01910976693034172, 0.06330794841051102, -0.062034621834754944, 0.013966742902994156, -0.011380309239029884, -0.04591915011405945, -0.024789974093437195, 0.03756297752261162, 0.05220617353916168, -0.10878939181566238, 0.02592402696609497, 0.002480738330632448, 0.003374798921868205, 0.03817974403500557, -0.025008827447891235, 0.02900785207748413, 0.005262398160994053, -0.015140586532652378, -0.013698152266442776, -0.0010930170537903905, 0.07815009355545044, 0.024014044553041458, 0.019418150186538696, 0.014344760216772556, 0.0007504388922825456, -0.07054995745420456, 0.06036338955163956, -0.012116448022425175, 0.007266884669661522, -0.02297946996986866, 0.0047003463841974735, -0.009539961814880371, 0.03975149989128113, 0.07842863351106644, -0.012524308636784554, -0.023815087974071503, -0.0378614142537117, 0.009728970937430859, -0.05873194709420204, -0.03093772940337658, 0.016105525195598602, -0.012574047781527042, 0.014484030194580555, -0.04022899642586708, 0.03559330850839615, -0.0015717559726908803, 0.027336617931723595, 0.01921919360756874, -0.014782465063035488, -0.00844072736799717, -0.08097527921199799, -0.06155712902545929, -0.044765204191207886, -0.012016969732940197, 0.012852586805820465, -0.033106353133916855, 0.07719510793685913, 0.06971434503793716, 0.05861257389187813, 0.04082586616277695, -0.02477007918059826, -0.03495664894580841, 0.018920758739113808, 0.05610572174191475, 0.020930219441652298, 0.01781655102968216, -0.06796352565288544, 0.034976545721292496, -0.04878412187099457, -0.005719998385757208, -0.009171892888844013, -0.02502872236073017, -0.004093529190868139, -0.035115815699100494, 0.014185595326125622, -0.0744892954826355, -0.03702579811215401, 0.02878899872303009, -0.019845906645059586, 0.016035890206694603, 0.058135077357292175, -0.04036826640367508, -0.012275613844394684, -0.001165138790383935, -0.050137028098106384, 0.0043471986427903175, 0.002498147077858448, 0.10552650690078735, -0.04313376173377037, -0.0036284683737903833, -0.014891890808939934, -0.04269605502486229, -0.007316623814404011, 0.03810016065835953, 0.008644658140838146, -0.040169309824705124, 0.042895011603832245, 0.020492514595389366, 0.014493977651000023, -0.017179889604449272, 0.05188784375786781, 0.0018627297831699252, 0.04062690958380699, 0.01671234332025051, -0.00024123470939230174, 0.035792265087366104, 0.017010776326060295, -0.06020422279834747, 0.02383498288691044, -0.026978496462106705, 0.026719851419329643, 0.023059053346514702, -0.02405383624136448, -0.050495147705078125, -0.04770975932478905, -0.022422391921281815, -0.0072370413690805435, -0.028371190652251244, -0.02075115777552128, -0.036548301577568054, -0.012882431037724018, -0.018811333924531937, 0.06446189433336258, 0.025824548676609993, -0.031096894294023514, -0.0918383002281189, 0.057060711085796356, -0.046913933008909225, -0.020810846239328384, 0.06641166657209396, -0.04408875107765198, -0.014852099120616913, -0.02032340131700039, -0.015329594723880291, -0.01857258565723896, -0.020412933081388474, 0.013170917518436909, 0.011718535795807838, 0.0035289900843054056, -0.04603852331638336, 0.012434778735041618, -0.00930121447890997, -0.010226362384855747, 0.03843838721513748, 0.03342468664050102, 0.015856830403208733, -0.03268854692578316, -0.03268854692578316, 0.018632272258400917, 0.036329448223114014, 0.01810503751039505, -0.003344955388456583, 0.03187282383441925, -0.03396186605095863, -0.015220168977975845, -0.03857765719294548, -0.01799561083316803, 0.0142850736156106, -0.009888135828077793, 0.017289316281676292, 0.001347930054180324, -0.004394450690597296, 0.0631885677576065, -0.019736479967832565, 0.036727361381053925, -0.023994149640202522, 0.005361876450479031, 0.017508167773485184, -0.0023078948725014925, 0.017935924232006073, 0.028530355542898178, 0.014911786653101444, -0.031236164271831512, 0.003282781457528472, 0.03861744701862335, -0.03237021714448929, 0.042934805154800415, -0.05960735306143761, -0.03334510326385498, -0.004028868395835161, 0.02186531387269497, -0.0016463646898046136, -0.03000263310968876, 0.017657386139035225, 0.01509084738790989, -0.02413341775536537, 0.02656068652868271, -0.08889374881982803, 0.014543716795742512, -0.03935358673334122, -0.006137806922197342, -0.0547926090657711, 0.006655093282461166, 0.02699839137494564, -0.02132813259959221, -0.028152339160442352, 0.00464314641430974, 0.0709080845117569, 0.01197717897593975, -0.002728190505877137, 0.021666359156370163, 0.11674764752388, -0.03390217944979668, -0.014623299241065979, 0.046118106693029404, -0.060681719332933426, -0.02204437553882599, 0.002777929650619626, -0.02548632211983204, 0.05359886959195137, -0.0029122252017259598, -0.040527429431676865, 0.05678217485547066, 0.017269421368837357, -0.0395127534866333, 0.06633207947015762, -0.003678207518532872, -0.03531477227807045, 0.0023203296586871147, -0.025904130190610886, 0.011022187769412994, -0.026142878457903862, -0.0239543579518795, -0.04122377932071686, 0.008982883766293526, -0.004894328769296408, -0.013131125830113888, 0.06879914551973343, -0.005904032848775387, 0.014265177771449089, 0.010012484155595303, 0.06871955841779709, 0.027376407757401466, -0.06589438021183014, 0.0393734835088253, -0.02950524352490902, -0.05618530511856079, -0.02477007918059826, -0.005864241626113653, -0.02584444358944893, -0.021248549222946167, 0.03360374644398689, 0.029246598482131958, 0.008594918996095657, 0.025008827447891235, 0.001432486460544169, 0.016553176566958427, -0.025227678939700127, -0.008336275815963745, 0.019627055153250694, -0.062472328543663025, -0.07425054907798767, 0.06115921586751938, -0.00037708465242758393, -0.007679719477891922, -0.03266865015029907, -0.06012464314699173, -0.017557907849550247, 0.003471790114417672, -0.02383498288691044, -0.017000829800963402, 0.018204515799880028, -0.056981127709150314, -0.02297946996986866, -0.04353167116641998, 0.011231091804802418, -0.003521529259160161, -0.03374301642179489, 0.01577724702656269, 0.020711367949843407, -0.010276100598275661, 0.0007380041060969234, 0.028888477012515068, -0.069117471575737, 0.048664748668670654, -0.020194079726934433, 0.03384249284863472, -0.00368318147957325, -0.019637001678347588, -0.006854049861431122, -0.027933485805988312, 0.010932656936347485, 0.025605695322155952, 0.021348027512431145, -0.04221855849027634, -0.042497098445892334, 0.02731672115623951, 0.0020405470859259367, 0.042895011603832245, -0.019338566809892654, -0.037841517478227615, 0.032111573964357376, -0.015140586532652378, -0.014782465063035488, 0.024789974093437195, -0.002770468592643738, 0.006277076434344053, -0.02914712019264698, 0.03871692717075348, 0.037165068089962006, 0.02735651284456253, 0.029843468219041824, 0.010683962143957615, 0.059169650077819824, -0.040746282786130905, 0.007276832591742277, -0.014464134350419044, -0.014842151664197445, 0.015011264942586422, -0.017448481172323227, -0.017289316281676292, -0.057816747575998306, 0.007033110596239567, -0.028590042144060135, -0.09963739663362503, 0.015190325677394867, 0.02749578282237053, 0.029942946508526802, 0.011609109118580818, 0.013956795446574688, -0.0517684705555439, 0.015757352113723755, -0.007271858397871256, 0.04822704568505287, -0.016324376687407494, 0.07381284236907959, -0.02864973060786724, -0.03525508567690849, 0.0022954600863158703, -0.0736536830663681, 0.0323503203690052, -0.05471302568912506, 0.03684673458337784, 0.005983615294098854, -0.07747364789247513, 0.02596381865441799, -0.0826067179441452, -0.08037840574979782, -0.03575247526168823, -0.006550641264766455, 0.038697030395269394, -0.008769005537033081, 0.016861559823155403, -0.07178349047899246, 0.026043400168418884, -0.03233042359352112, -0.04190022870898247, 0.014673038385808468, 0.01961710676550865, -0.0009332301560789347, 0.031236164271831512, -0.030340859666466713, 0.005570780951529741, -0.02986336499452591, 0.001744599430821836, -0.05622509494423866, -0.0396520234644413, 0.021288340911269188, 0.0547926090657711, -0.02548632211983204, 0.025824548676609993, -0.0005430889432318509, 0.0013255473459139466, -0.02351665310561657, 0.059249233454465866, 0.06163671240210533, 0.010564588010311127, 0.03700590133666992, 0.05948797985911369, -0.02874920889735222, -0.025804651901125908, 0.005277319811284542, -0.043929584324359894, 0.007953284308314323, 0.030281173065304756, -0.0754442885518074, 0.010932656936347485, 0.047948505729436874, -0.02620256505906582, -0.02315853163599968, -0.012593943625688553, 0.05077368766069412, -0.04751080274581909, 0.056304678320884705, 0.011519579216837883, -0.03233042359352112, 0.034976545721292496, -0.03402155265212059, 0.013200760819017887, -0.003601111937314272, 0.04751080274581909, -0.02596381865441799, 0.0571402944624424, 0.02051241137087345, -0.011370361782610416, -0.018443264067173004, -0.02015428990125656, 0.02114907093346119, 0.02387477457523346, 0.042497098445892334, -0.014046326279640198, -0.034936752170324326, 0.035195399075746536, 0.0016103038797155023, 0.02110927924513817, -0.01267352607101202, 0.04098502919077873, -0.006481006741523743 ]
730,259
mmengine.utils.timer
Timer
A flexible Timer class. Examples: >>> import time >>> import mmcv >>> with mmcv.Timer(): >>> # simulate a code block that will run for 1s >>> time.sleep(1) 1.000 >>> with mmcv.Timer(print_tmpl='it takes {:.1f} seconds'): >>> # simulate a code block that will run for 1s >>> time.sleep(1) it takes 1.0 seconds >>> timer = mmcv.Timer() >>> time.sleep(0.5) >>> print(timer.since_start()) 0.500 >>> time.sleep(0.5) >>> print(timer.since_last_check()) 0.500 >>> print(timer.since_start()) 1.000
class Timer: """A flexible Timer class. Examples: >>> import time >>> import mmcv >>> with mmcv.Timer(): >>> # simulate a code block that will run for 1s >>> time.sleep(1) 1.000 >>> with mmcv.Timer(print_tmpl='it takes {:.1f} seconds'): >>> # simulate a code block that will run for 1s >>> time.sleep(1) it takes 1.0 seconds >>> timer = mmcv.Timer() >>> time.sleep(0.5) >>> print(timer.since_start()) 0.500 >>> time.sleep(0.5) >>> print(timer.since_last_check()) 0.500 >>> print(timer.since_start()) 1.000 """ def __init__(self, start=True, print_tmpl=None): self._is_running = False self.print_tmpl = print_tmpl if print_tmpl else '{:.3f}' if start: self.start() @property def is_running(self): """bool: indicate whether the timer is running""" return self._is_running def __enter__(self): self.start() return self def __exit__(self, type, value, traceback): print(self.print_tmpl.format(self.since_last_check())) self._is_running = False def start(self): """Start the timer.""" if not self._is_running: self._t_start = time() self._is_running = True self._t_last = time() def since_start(self): """Total time since the timer is started. Returns: float: Time in seconds. """ if not self._is_running: raise TimerError('timer is not running') self._t_last = time() return self._t_last - self._t_start def since_last_check(self): """Time since the last checking. Either :func:`since_start` or :func:`since_last_check` is a checking operation. Returns: float: Time in seconds. """ if not self._is_running: raise TimerError('timer is not running') dur = time() - self._t_last self._t_last = time() return dur
(start=True, print_tmpl=None)
[ 0.10492081195116043, -0.009160548448562622, -0.0021399641409516335, 0.04088708013296127, 0.03367878124117851, -0.0076187727972865105, -0.031936775892972946, 0.05454280599951744, -0.03373885154724121, -0.048175472766160965, -0.0004414458235260099, 0.029754262417554855, 0.060749951750040054, 0.015277591533958912, -0.0045652566477656364, 0.01924215629696846, 0.054582852870225906, -0.05258054658770561, -0.0637534111738205, -0.06415387243032455, 0.04617316648364067, 0.08561858534812927, 0.054783083498477936, 0.0497773177921772, -0.026330318301916122, 0.0481354258954525, -0.02741156332194805, -0.010186729952692986, -0.02332686074078083, -0.03766337037086487, -0.014026151038706303, 0.00821445882320404, -0.013065043836832047, -0.021364601328969002, -0.00650749308988452, -0.039665672928094864, -0.010952611453831196, 0.0006976783624850214, -0.03365875780582428, 0.010942600667476654, 0.07732903957366943, -0.022666100412607193, 0.011953764595091343, 0.018541350960731506, -0.03544081002473831, 0.03249742090702057, 0.04100722074508667, 0.01733996719121933, 0.0378035306930542, -0.0738450288772583, 0.05298100784420967, -0.009480916894972324, -0.014586796052753925, 0.013455493375658989, -0.05994902923703194, 0.04401067644357681, 0.028813177719712257, 0.016028456389904022, 0.0064974818378686905, -0.005053319036960602, 0.009310721419751644, 0.01657908968627453, -0.005231023300439119, 0.010091620497405529, -0.03189672902226448, -0.003836918156594038, -0.038244038820266724, -0.0029684181790798903, 0.01730993203818798, 0.008429707027971745, 0.03814392164349556, 0.00019585051632020622, 0.0025554425083100796, -0.03013470023870468, 0.01966264098882675, -0.048575934022665024, -0.08954310417175293, -0.011723499745130539, 0.007348461542278528, -0.014696923084557056, -0.017259875312447548, 0.00442759832367301, 0.002021077321842313, 0.027091195806860924, 0.053621742874383926, -0.024167828261852264, 0.0206637941300869, -0.030615253373980522, -0.04188823327422142, 0.03658212348818779, -0.0444912314414978, 0.03752320632338524, 0.04677385836839676, 0.031516291201114655, -0.001879664370790124, -0.047294460237026215, -0.0019397336291149259, -0.012234087102115154, -0.04385049268603325, -0.008720041252672672, 0.04324980080127716, 0.005436259787529707, -0.007728899829089642, -0.0022175535559654236, 0.02256598509848118, 0.024027667939662933, -0.05242036283016205, -0.01591832935810089, 0.04373035579919815, -0.006892937235534191, -0.023547114804387093, -0.03728293254971504, -0.07200291007757187, 0.009325738064944744, 0.012614525854587555, -0.008659971877932549, -0.0653953030705452, 0.021584855392575264, -0.06283234804868698, -0.015547903254628181, 0.01207390334457159, -0.028032278642058372, -0.007708876859396696, -0.013685759156942368, -0.007678842172026634, -0.03413930907845497, -0.004134761169552803, 0.04040652886033058, 0.07304410636425018, -0.045652568340301514, -0.004848082549870014, 0.021364601328969002, 0.04220860078930855, 0.03876463696360588, 0.024768520146608353, -0.0017182285664603114, 0.036201685667037964, 0.07989199459552765, -0.02536921203136444, 0.06427401304244995, 0.001406619674526155, -0.009470905177295208, -0.05650506541132927, -0.012614525854587555, 0.05438262224197388, -0.00510087376460433, -0.027651840820908546, 0.04893634840846062, -0.05005764216184616, 0.014656877145171165, -0.012214064598083496, -0.051299069076776505, 0.08529821783304214, 0.06119045987725258, 0.021725015714764595, 0.00015494403487537056, 0.018721558153629303, 0.00024324883997906, -0.03936532884836197, -0.04020629823207855, -0.007658819202333689, 0.008469752967357635, -0.01173351053148508, -0.033838964998722076, 0.021044231951236725, 0.07072143256664276, -0.03331836685538292, 0.009310721419751644, -0.007829015143215656, -0.00024090240185614675, -0.04529215395450592, -0.03870456665754318, 0.019252168014645576, 0.006122049409896135, -0.0046753836795687675, 0.009460894390940666, -0.008564862422645092, 0.020844001322984695, 0.026910986751317978, -0.03844426944851875, 0.022746192291378975, -0.00522101204842329, -0.0960305780172348, -0.026890965178608894, -0.059868939220905304, 0.002333937445655465, -0.00878511555492878, 0.015407742001116276, 0.013165159150958061, 0.015337660908699036, 0.0045602512545883656, -0.006352314725518227, 0.006747770123183727, 0.028873246163129807, 0.017800496891140938, 0.013305320404469967, -0.02869303897023201, -0.00118636607658118, 0.07636793702840805, 0.01589830592274666, -0.0396256297826767, 0.06235179677605629, -0.0011726001976057887, -0.05718584731221199, 0.056344881653785706, -0.03235726058483124, 0.007844032719731331, 0.017039621248841286, -0.07516655325889587, 0.025349188596010208, -0.028472786769270897, -0.05181967094540596, -0.01748012751340866, 0.08930283039808273, 0.04136763513088226, -0.014436623081564903, 0.038324128836393356, 0.01924215629696846, -0.03025483712553978, 0.022185545414686203, 0.053341422230005264, -0.0393252819776535, -0.047494690865278244, -0.024668404832482338, 0.016128571704030037, 0.024307990446686745, 0.024247922003269196, 0.009330743923783302, 0.02250591479241848, -0.04997754842042923, 0.04849584400653839, -0.015878284350037575, 0.003361370647326112, 0.017219828441739082, 0.008669983595609665, -0.052940960973501205, 0.023066561669111252, 0.05766640231013298, -0.017019597813487053, -0.037983737885951996, -0.008800133131444454, 0.02829257771372795, 0.020443540066480637, 0.005846732296049595, 0.01745009422302246, -0.038103874772787094, 0.02380741387605667, 0.046613674610853195, -0.07224318385124207, 0.03285783529281616, -0.017289908602833748, 0.028372671455144882, 0.0124443294480443, -0.020333413034677505, -0.04256901890039444, 0.026270249858498573, -0.014426612295210361, 0.019622595980763435, 0.01730993203818798, 0.029253685846924782, 0.04469146206974983, 0.015257569029927254, -0.018751591444015503, -0.0009410836501047015, 0.04012620449066162, 0.014626842923462391, -0.024368058890104294, -0.026570595800876617, 0.002301400061696768, 0.024968750774860382, 0.10876524448394775, -0.038864750415086746, -0.013695770874619484, -0.01757023110985756, -0.03632182255387306, -0.005666525103151798, -0.027371518313884735, 0.0033563647884875536, -0.036742307245731354, -0.01933225989341736, 0.0325174443423748, 0.03928523510694504, -0.012984951958060265, -0.039064981043338776, -0.07264364510774612, -0.026830894872546196, -0.06139069050550461, 0.04220860078930855, 0.021925246343016624, -0.007278380915522575, -0.06647654622793198, -0.037363022565841675, 0.026350341737270355, 0.0002541989670135081, 0.05710575729608536, -0.00025998687488026917, -0.07328438758850098, -0.0637534111738205, -0.02120441570878029, -0.020443540066480637, 0.028232509270310402, -0.003894484369084239, -0.06795825064182281, 0.01745009422302246, -0.03712274506688118, 0.013745828531682491, -0.03738304600119591, -0.02222559228539467, 0.056745342910289764, -0.03558097034692764, 0.007583732716739178, 0.0015455296961590648, 0.05958861485123634, -0.01699957437813282, 0.06395363807678223, 0.04268915578722954, -0.03187670558691025, -0.053141191601753235, 0.03231721371412277, 0.042328741401433945, -0.02100418508052826, 0.011242945678532124, 0.008134366944432259, 0.04737455025315285, 0.010872519575059414, -0.053341422230005264, 0.005401219241321087, 0.06111036613583565, -0.015427764505147934, -0.023987621068954468, -0.06663673371076584, -0.027551725506782532, 0.037643346935510635, -0.041928280144929886, -0.021044231951236725, -0.00872504711151123, -0.010542139410972595, 0.019222134724259377, 0.03391905874013901, -0.030374975875020027, 0.10011528432369232, 0.012103937566280365, -0.07812996208667755, -0.0005853615584783256, -0.024227898567914963, -0.02168497070670128, 0.01506735011935234, -0.013785874471068382, 0.11925732344388962, -0.04080699011683464, -0.021644923835992813, -0.013946058228611946, -0.05065833404660225, 0.021104300394654274, 0.01651902124285698, -0.018721558153629303, 0.031716521829366684, -0.06271221488714218, 0.00024105882039293647, -0.05302105471491814, -0.03720283880829811, 0.10067592561244965, -0.021464716643095016, -0.015958376228809357, 0.024047691375017166, -0.010271827690303326, 0.045252107083797455, -0.017580242827534676, 0.007193283177912235, -0.02088404819369316, -0.029013408347964287, -0.019622595980763435, 0.02855287864804268, 0.020844001322984695, 0.0057215881533920765, -0.03476002439856529, 0.01295491773635149, 0.023847460746765137, -0.021785086020827293, -0.014176324009895325, 0.08177416026592255, 0.017800496891140938, -0.039405375719070435, 0.010472058318555355, -0.03856440633535385, -0.01614859513938427, -0.043690308928489685, 0.026810871437191963, 0.03125599026679993, 0.015347672626376152, -0.007308415602892637, -0.01910199597477913, -0.03652205318212509, -0.006262210663408041, -0.05133911594748497, -0.005741611588746309, 0.02318669855594635, -0.009155542589724064, -0.03209695965051651, -0.024768520146608353, 0.08369637280702591, 0.04529215395450592, -0.024708451703190804, -0.013675747439265251, 0.0038469296414405107, -0.015137430280447006, 0.05546386539936066, -0.06907954066991806, -0.010692312382161617, 0.0514192096889019, -0.021785086020827293, -0.060830045491456985, -0.033698804676532745, -0.04405072331428528, -0.0107724042609334, -0.08409683406352997, -0.0462532602250576, -0.04152781888842583, 0.017840543761849403, -0.009916418232023716, -0.04088708013296127, 0.006812844891101122, 0.05081851780414581, 0.029353801161050797, 0.0006041331216692924, 0.02468842826783657, -0.017470115795731544, -0.013966081663966179, -0.0013778365682810545, -0.011242945678532124, -0.03285783529281616, 0.014026151038706303, -0.050418056547641754, 0.016699228435754776, -0.002960909390822053, -0.02857290208339691, -0.04393058642745018, -0.035721130669116974, 0.01526758074760437, 0.007148230914026499, 0.00997648760676384, 0.014116254635155201, 0.02829257771372795, 0.0742054432630539, -0.010166706517338753, -0.019091984257102013, -0.008439717814326286, -0.027551725506782532, 0.005571415182203054, 0.02236575447022915, -0.015617983415722847, 0.03067532181739807, 0.03227716684341431, 0.006657666061073542, 0.012944906018674374, -0.0892227366566658, -0.03758327662944794, 0.007728899829089642, 0.023707298561930656, -0.03419937938451767, -0.022325707599520683, 0.05714580416679382, 0.010702323168516159, -0.01132303848862648, -0.04745464399456978, 0.027711909264326096, 0.05406225100159645, 0.0035015319008380175, -0.042048417031764984, 0.02897336147725582, 0.0073885079473257065, 0.0171697698533535, -0.030294883996248245, -0.03808385133743286, 0.0015042320592328906, -0.021264486014842987, -0.036682240664958954, 0.03816394507884979, 0.000557204126380384, -0.043770402669906616, 0.04236878827214241, 0.019222134724259377, 0.033899035304784775, 0.028532855212688446, 0.011483223177492619, 0.03564104065299034, 0.056945573538541794, -0.03658212348818779, 0.040026091039180756, -0.05434257537126541, -0.0929870754480362, -0.037983737885951996, 0.046133123338222504, -0.000033691139833536, -0.04693404212594032, -0.023887505754828453, -0.03700260818004608, 0.016168618574738503, 0.0000060909978856216185, -0.009230628609657288, 0.008674989454448223, 0.03217704966664314, 0.05414234474301338, 0.045252107083797455, 0.06755778938531876, -0.0378636009991169, -0.03656210005283356, -0.0006307262810878456, -0.027251379564404488, -0.0171397365629673, 0.023066561669111252, 0.0044501242227852345, -0.01512741856276989, -0.005050816107541323, -0.013225228525698185, -0.05618469417095184, -0.07468599826097488, -0.029614100232720375, -0.009440870955586433, -0.05662520229816437, 0.0024678416084498167, 0.054102297872304916, 0.023707298561930656, -0.001593084423802793, -0.010952611453831196, 0.030274860560894012, -0.009415842592716217, -0.010942600667476654, 0.017440082505345345, 0.045452337712049484, 0.06395363807678223, -0.03482009470462799, -0.022285660728812218, -0.0065375277772545815, -0.010782415978610516, 0.016278745606541634, -0.017700381577014923, -0.10195740312337875, -0.06615617871284485, -0.00031176523771137, 0.04657362774014473, 0.03365875780582428, 0.06819853186607361, 0.0023426974657922983, 0.0021161867771297693, 0.043610215187072754, 0.014186335727572441, -0.0027756961062550545, -0.02216552384197712, 0.004224864766001701, 0.02088404819369316, -0.06803834438323975, 0.01589830592274666, -0.008755081333220005, -0.041247494518756866, 0.03814392164349556, 0.04881621152162552, 0.02380741387605667, 0.03313815966248512, -0.0070981732569634914, 0.0008659971645101905, 0.03924519196152687, -0.00011998190893791616, 0.0010430760448798537, -0.055584002286195755, -0.022485891357064247, 0.05554395914077759, 0.035941384732723236, 0.005130907986313105, 0.0037092710845172405, 0.010542139410972595, 0.012254110537469387, 0.03411928936839104, -0.040086157619953156, -0.06046963110566139, 0.038924820721149445, 0.019222134724259377, 0.039064981043338776, 0.008649960160255432, -0.0325775109231472, -0.013075055554509163, 0.017159759998321533, -0.03948546573519707, -0.09771251678466797, 0.006692706607282162, -0.0480152890086174, -0.04401067644357681, -0.010972634889185429, -0.020013045519590378, 0.022806260734796524, -0.038264062255620956, 0.0583471842110157, -0.002740655792877078, -0.0275317020714283, 0.026810871437191963, 0.023106606677174568, 0.02394757606089115, 0.022065408527851105, 0.02406771294772625, 0.06127055361866951, -0.021444693207740784, 0.015287603251636028, -0.02747163362801075, 0.034099265933036804, -0.012904860079288483, -0.003328833030536771, 0.03632182255387306, -0.015678053721785545, -0.012764697894454002, -0.004935683216899633, -0.011092772707343102, -0.01719980500638485, 0.02386748231947422, 0.029554031789302826, 0.06291244179010391, -0.008835173211991787, -0.05550391227006912, 0.008720041252672672, 0.022866331040859222, 0.03928523510694504, -0.02877313271164894, 0.04074691981077194, -0.03936532884836197, -0.011182877235114574, 0.039605606347322464, -0.017239851877093315, 0.0008866459829732776, -0.02877313271164894, -0.01757023110985756, -0.09322734922170639, -0.030955644324421883, 0.020043078809976578, 0.02550937421619892, -0.09066440165042877, -0.005496329162269831, 0.05958861485123634, -0.03345852717757225, 0.05774649232625961, -0.0042298706248402596, -0.0030585217755287886, 0.024768520146608353, -0.05610460415482521, 0.001873407163657248, -0.025949880480766296, -0.019572537392377853, -0.0653953030705452, 0.00011169110803166404, -0.0030435044318437576, 0.07440567761659622, 0.009330743923783302, -0.012544444762170315, 0.0429694801568985, -0.00625720527023077, -0.008479764685034752, -0.07857047021389008, -0.03652205318212509, 0.01774042844772339, -0.06379345804452896, 0.02244584634900093, 0.03379891812801361, -0.0038719584699720144, 0.013936047442257404, -0.014096231199800968, -0.006797827780246735, 0.015457799658179283, -0.03197681903839111, 0.015577937476336956, 0.085938960313797, -0.006587585434317589, 0.018971845507621765, 0.052460405975580215, -0.02570960484445095, -0.010982646606862545, -0.023747345432639122, -0.01966264098882675, 0.0071332138031721115, -0.023086583241820335, -0.05818700045347214, -0.011232934892177582, 0.022746192291378975, 0.04160791262984276, 0.024968750774860382, -0.02352709136903286, -0.050017595291137695, 0.025469327345490456, 0.04292943328619003, 0.02713124081492424, -0.062391843646764755, 0.004267413634806871, -0.05262059345841408, -0.017670346423983574, 0.001804577885195613, 0.018200958147644997, 0.015607972629368305, -0.02957405336201191, 0.04421090707182884, -0.0342194028198719, -0.013685759156942368, 0.019031915813684464, -0.06623627245426178, 0.014536738395690918, -0.016669195145368576, 0.03285783529281616, 0.02596990391612053, -0.01339542493224144, 0.012694617733359337, 0.011443176306784153, -0.0041147381998598576, 0.06147078424692154, -0.008690006099641323, 0.059068016707897186, 0.0788908451795578, 0.040426552295684814, 0.026951033622026443, 0.03397912532091141, -0.0957903042435646, -0.04513197019696236, -0.009065438993275166, 0.019422365352511406, 0.016128571704030037, 0.010021539404988289, 0.04849584400653839, 0.04853588715195656, -0.03796371445059776, -0.01782052032649517, 0.04829561337828636, -0.02687094174325466, -0.03568108752369881, 0.0326976515352726, 0.0030134699773043394, -0.0060519687831401825, 0.03005460649728775, -0.049817364662885666, -0.004657863639295101, -0.018571384251117706, -0.002725638449192047, -0.0172298401594162, -0.011533280834555626, 0.03315817937254906, 0.04785510525107384, -0.014116254635155201, 0.005406225100159645, 0.01935228332877159, 0.014226381666958332, 0.004778001923114061, 0.015497845597565174, -0.007738911081105471, 0.04365026205778122, 0.013625689782202244, 0.039745766669511795, 0.021785086020827293, -0.05530368164181709, -0.037783507257699966, 0.01727989688515663, 0.03249742090702057, -0.0011882432736456394, -0.03419937938451767, -0.02631029672920704, 0.0034740001428872347, -0.022385776042938232, 0.03351859748363495, -0.025609489530324936, 0.085938960313797, 0.06783811748027802, -0.01668921671807766, 0.013825920410454273, -0.05582427978515625, 0.08209452778100967 ]
730,261
mmengine.utils.timer
__exit__
null
def __exit__(self, type, value, traceback): print(self.print_tmpl.format(self.since_last_check())) self._is_running = False
(self, type, value, traceback)
[ 0.06551043689250946, 0.05568386986851692, -0.031153060495853424, 0.041015226393938065, -0.002674712799489498, -0.041086435317993164, -0.023605117574334145, 0.023373695090413094, 0.016947263851761818, -0.06590206921100616, 0.008135398849844933, 0.021807141602039337, 0.02739689126610756, -0.05215912312269211, -0.02275063470005989, 0.013814156875014305, -0.02212757244706154, 0.030565602704882622, -0.033520691096782684, -0.06519000232219696, 0.0012895141262561083, 0.04325824975967407, 0.016698040068149567, 0.016840454190969467, 0.03969790041446686, -0.009604043327271938, -0.011250704526901245, -0.0035648001357913017, -0.020863648504018784, 0.03830936178565025, -0.06615129858255386, -0.029141461476683617, -0.013493725098669529, -0.006341872736811638, 0.02533188834786415, -0.012381115928292274, -0.06946241855621338, 0.00427686981856823, -0.00285273022018373, 0.023658523336052895, 0.0764763131737709, -0.014517325907945633, -0.005175858270376921, 0.002899459796026349, -0.03264840692281723, -0.0038763307966291904, 0.03980470821261406, 0.006551043596118689, -0.04048117622733116, -0.06419310718774796, 0.005781117826700211, 0.03248818963766098, 0.03170491382479668, 0.04827834293246269, 0.0030129458755254745, 0.01599487103521824, 0.036208756268024445, -0.009684151038527489, 0.023177877068519592, -0.06729061156511307, -0.0061327023431658745, 0.04696101322770119, -0.04005393385887146, 0.009452728554606438, 0.0495244637131691, 0.0044949413277208805, 0.0026302083861082792, 0.005798919592052698, -0.008531487546861172, 0.05500740185379982, -0.02223438397049904, -0.019457310438156128, -0.03773970529437065, 0.009862168692052364, 0.007441130932420492, -0.07875493168830872, -0.06540362536907196, -0.006982735823839903, -0.00032682897290214896, -0.028838831931352615, 0.02517167292535305, 0.061344824731349945, 0.016092780977487564, 0.011820361018180847, 0.026115164160728455, -0.028002150356769562, 0.049168430268764496, -0.02771732211112976, -0.04728144407272339, 0.05714361369609833, -0.028073357418179512, -0.01624409481883049, -0.005678757559508085, 0.02002696692943573, 0.034019142389297485, -0.028019951656460762, 0.012309908866882324, -0.03015616163611412, -0.03020956739783287, -0.04332945495843887, 0.09164340049028397, -0.05817611515522003, 0.05461576208472252, -0.03314685449004173, 0.038843415677547455, 0.010609841905534267, -0.016395410522818565, 0.006048143841326237, -0.017169786617159843, -0.01767713576555252, -0.03181172534823418, -0.029141461476683617, -0.06301818788051605, -0.026417793706059456, 0.015621034428477287, -0.01654672436416149, -0.07223949581384659, 0.029212668538093567, 0.005300470627844334, -0.01660013012588024, 0.05247955396771431, -0.03458879515528679, -0.026595812290906906, -0.026613613590598106, -0.03229236975312233, 0.04329385235905647, -0.04272419586777687, 0.036244358867406845, 0.05458015948534012, 0.012078486382961273, -0.043721094727516174, 0.010823463089764118, -0.05322722718119621, -0.004802021663635969, 0.023800937458872795, -0.011980576440691948, 0.003856303635984659, 0.026293182745575905, -0.026862837374210358, 0.010556437075138092, -0.0039319610223174095, -0.00684922281652689, 0.005594199523329735, -0.041442468762397766, 0.06935561448335648, 0.026043957099318504, -0.003084152936935425, 0.08573321998119354, -0.011473226360976696, -0.028162365779280663, 0.002476668218150735, -0.04030315950512886, 0.0011582262814044952, 0.0750521719455719, -0.02029399387538433, 0.04258178174495697, -0.02243020199239254, 0.03451758995652199, -0.0007320969016291201, -0.04272419586777687, -0.017961964011192322, -0.02769952081143856, 0.008162101730704308, -0.056217920035123825, -0.00399871775880456, 0.06981845945119858, -0.010618742555379868, 0.0750521719455719, 0.019386103376746178, 0.0251004658639431, -0.05522102490067482, -0.007628049235790968, 0.019030068069696426, 0.006030342075973749, -0.06476276367902756, 0.08245769888162613, 0.04535885527729988, 0.0251004658639431, 0.010609841905534267, 0.008024138398468494, -0.0048821293748915195, -0.08373942226171494, -0.0504145510494709, 0.016003772616386414, 0.004739715717732906, -0.03667160123586655, -0.003377881832420826, 0.00555859599262476, -0.013974372297525406, 0.02022278681397438, 0.001646661665290594, 0.016626833006739616, 0.013404716737568378, -0.00020082597620785236, 0.033734314143657684, 0.003678286215290427, -0.036173153668642044, 0.011571136303246021, 0.05814050883054733, -0.021913951262831688, -0.007877273485064507, 0.04792230576276779, -0.02741469256579876, -0.07113578915596008, 0.043721094727516174, 0.03766850009560585, 0.045999716967344284, 0.031313274055719376, -0.06248413771390915, 0.024530809372663498, 0.006795817520469427, -0.0032688460778445005, 0.001780174789018929, 0.06956923007965088, 0.01773054152727127, -0.10218203812837601, 0.049061618745326996, -0.015896961092948914, -0.04279540479183197, 0.04699661582708359, 0.009479431435465813, -0.04222574830055237, -0.026684820652008057, -0.029141461476683617, -0.028589608147740364, 0.026613613590598106, 0.018923258408904076, 0.016573427245020866, 0.03298664093017578, -0.06739741563796997, -0.0005885703139938414, 0.004092176910489798, -0.038665398955345154, 0.01723209209740162, -0.01708967797458172, 0.0249580517411232, -0.0249758530408144, 0.021878348663449287, -0.07056613266468048, 0.022145375609397888, -0.008322317153215408, 0.005073498468846083, 0.011001480743288994, -0.013199996203184128, 0.06725500524044037, -0.03298664093017578, 0.03487362340092659, 0.09228426218032837, -0.025865940377116203, -0.01386756170541048, 0.05194550007581711, -0.011998378671705723, 0.007961831986904144, -0.04753066971898079, -0.008727307431399822, -0.03270181268453598, 0.033983536064624786, -0.08388184010982513, 0.09086012095212936, 0.02251921221613884, 0.02721887268126011, 0.03930626064538956, -0.023622920736670494, 0.026756027713418007, 0.009132296778261662, -0.016662435606122017, -0.012470124289393425, -0.021433304995298386, 0.0062350621446967125, 0.03727686032652855, 0.06707698851823807, -0.04308022931218147, -0.05728602781891823, -0.016849353909492493, -0.0737704485654831, 0.030565602704882622, 0.01986675150692463, -0.006208359729498625, -0.08039269596338272, -0.033627502620220184, 0.11044204980134964, 0.02743249386548996, 0.029461894184350967, -0.02262602187693119, -0.05828292295336723, -0.012924069538712502, 0.0058790273033082485, 0.051197826862335205, -0.005371677689254284, 0.00034045844222418964, -0.01741011068224907, -0.0034958182368427515, 0.02275063470005989, 0.036119747906923294, 0.038487378507852554, -0.03777531161904335, -0.041122037917375565, -0.06024111807346344, -0.02259041927754879, 0.006720160134136677, 0.023996757343411446, -0.06540362536907196, -0.05319162458181381, 0.010360617190599442, -0.012203098274767399, 0.03745487704873085, 0.039057034999132156, -0.007272014394402504, 0.018585024401545525, -0.0010452964343130589, 0.04300902411341667, 0.03656478971242905, 0.03503384068608284, -0.03020956739783287, 0.022145375609397888, 0.006893726997077465, 0.0027881988789886236, -0.03579931706190109, -0.043863508850336075, 0.08124718070030212, -0.05190989747643471, -0.02276843599975109, 0.04055238142609596, 0.02230559103190899, 0.021593520417809486, -0.08473632484674454, -0.026221975684165955, 0.056004300713539124, 0.0032799721229821444, -0.018763042986392975, -0.05315602198243141, -0.03816694766283035, 0.03214995563030243, -0.0246732234954834, 0.0744113102555275, 0.02287524752318859, -0.02517167292535305, -0.041050832718610764, 0.02743249386548996, -0.06629370898008347, -0.031099654734134674, -0.012932970188558102, -0.03752608597278595, -0.02024058811366558, 0.025723526254296303, 0.04777989163994789, 0.006818069610744715, 0.0003771745541598648, 0.11378877609968185, 0.020828045904636383, -0.028091158717870712, 0.041300054639577866, -0.04510962963104248, 0.048776790499687195, 0.0016377608990296721, -0.06807388365268707, 0.002383209066465497, -0.0044949413277208805, -0.007196356542408466, -0.010476328432559967, 0.00678691640496254, 0.04058798775076866, 0.009684151038527489, 0.036742810159921646, 0.0053894794546067715, -0.036600396037101746, -0.011624542064964771, 0.010681048966944218, 0.04322264343500137, -0.0034913679119199514, -0.03991151973605156, -0.023249084129929543, 0.04742385819554329, -0.006083747372031212, -0.0015009099151939154, 0.016893859952688217, 0.025972750037908554, 0.017881855368614197, -0.008028588257730007, -0.002641334431245923, 0.041086435317993164, 0.011588938534259796, -0.05290679633617401, -0.04219014197587967, -0.014463920146226883, -0.01356493216007948, -0.021931754425168037, 0.023569514974951744, 0.013600535690784454, 0.004797571338713169, 0.02965771220624447, -0.0247978363186121, 0.018976664170622826, -0.02714766561985016, 0.026257578283548355, 0.041122037917375565, -0.018620628863573074, -0.01370734628289938, -0.03770410269498825, 0.026738226413726807, -0.025990553200244904, 0.08651649951934814, -0.05272877961397171, -0.003026297315955162, 0.043578680604696274, -0.04208333417773247, 0.007071744650602341, -0.06052594259381294, -0.0010669922921806574, -0.023711929097771645, -0.01579905115067959, -0.08331218361854553, -0.02732568420469761, -0.03473120927810669, 0.030761420726776123, 0.00050095230108127, -0.00570546044036746, 0.005456235725432634, 0.026791630312800407, 0.00005764706656918861, -0.033983536064624786, 0.06084637716412544, 0.05272877961397171, 0.04461118206381798, -0.00631962064653635, 0.006693457253277302, -0.06234172359108925, 0.009862168692052364, -0.0001686993782641366, -0.013538229279220104, -0.030921636149287224, -0.030868232250213623, -0.036493584513664246, 0.08445149660110474, 0.0053627765737473965, -0.021308692172169685, -0.041122037917375565, -0.03820255026221275, 0.013297906145453453, 0.024174774065613747, -0.017169786617159843, 0.026506803929805756, 0.026613613590598106, 0.030672412365674973, 0.026221975684165955, 0.028197970241308212, 0.006684556603431702, -0.024530809372663498, -0.016991768032312393, 0.018691835924983025, -0.03795332834124565, 0.0026613613590598106, -0.03003154881298542, -0.007240861188620329, -0.013894264586269855, -0.07968062907457352, -0.06301818788051605, 0.004926634021103382, 0.025509905070066452, -0.03987591713666916, -0.04510962963104248, 0.06636491417884827, -0.02757490798830986, -0.0034802418667823076, -0.00031403396860696375, -0.01751692034304142, 0.0018079900182783604, -0.00373391667380929, -0.04222574830055237, -0.002472217893227935, -0.0028260275721549988, -0.011384217999875546, -0.031064050272107124, 0.046498168259859085, -0.04297342151403427, -0.011909369379281998, 0.014045579358935356, 0.011464325711131096, -0.00556304631754756, -0.011152795515954494, 0.038594190031290054, 0.027094261720776558, 0.013520427979528904, 0.005015642382204533, -0.03695642948150635, -0.00982656516134739, 0.02547430247068405, -0.03791772574186325, 0.02520727552473545, 0.03706324100494385, -0.046213340014219284, -0.04525204375386238, 0.0058478740975260735, -0.0037939976900815964, -0.03206094726920128, -0.06878595799207687, -0.02764611504971981, 0.00006717378710163757, 0.02996034175157547, -0.03503384068608284, -0.003255494637414813, 0.0005763316294178367, 0.02522507682442665, 0.0024121368769556284, 0.03307564929127693, -0.04058798775076866, 0.055897489190101624, 0.02725447714328766, -0.02997814491391182, 0.00033294831519015133, 0.03930626064538956, 0.009452728554606438, 0.04033876210451126, 0.023925550282001495, 0.002040525432676077, -0.07159863412380219, -0.03298664093017578, -0.04486040398478508, 0.02793094329535961, 0.015175990760326385, -0.004118879325687885, 0.06540362536907196, 0.00016828214575070888, -0.031170861795544624, 0.013974372297525406, -0.035817116498947144, 0.024477403610944748, 0.053903695195913315, -0.010155897587537766, 0.05223032832145691, 0.04518083855509758, -0.03439297899603844, 0.025883741676807404, -0.0746961385011673, 0.027112063020467758, 0.03323586285114288, -0.06437112390995026, -0.04671178758144379, -0.05344085022807121, -0.048669978976249695, 0.03036978282034397, -0.010022384114563465, 0.006257314700633287, -0.046391356736421585, -0.02712986432015896, -0.01141092088073492, 0.020917054265737534, 0.030547799542546272, -0.019368302077054977, 0.011250704526901245, 0.0015075855189934373, -0.04510962963104248, 0.05685878545045853, 0.018407007679343224, -0.04005393385887146, 0.08929356932640076, 0.030797025188803673, 0.08729977160692215, 0.06519000232219696, 0.008126498199999332, 0.009577340446412563, 0.06002749502658844, 0.04856317117810249, 0.013440320268273354, 0.009052189067006111, -0.024139171466231346, 0.004161158576607704, 0.0049088322557508945, 0.0026257578283548355, -0.00502009317278862, -0.021753735840320587, -0.031259868294000626, 0.015131485648453236, -0.03777531161904335, 0.012274305336177349, 0.04030315950512886, 0.026150768622756004, 0.03318245708942413, 0.005015642382204533, -0.01599487103521824, -0.006284017115831375, -0.026613613590598106, 0.026809433475136757, -0.08858150243759155, -0.025919346138834953, 0.0035670252982527018, -0.0009351480985060334, -0.006978285498917103, 0.018638430163264275, 0.034072548151016235, -0.041478075087070465, 0.08309856057167053, -0.036315567791461945, -0.05803370103240013, 0.036012936383485794, 0.026346586644649506, 0.04030315950512886, 0.012229801155626774, -0.019528517499566078, 0.04172729700803757, -0.023711929097771645, 0.06301818788051605, -0.00048315056483261287, 0.03174051642417908, 0.007441130932420492, -0.05272877961397171, 0.01011139340698719, 0.0022285564336925745, -0.029533101245760918, 0.04439755901694298, -0.020543217658996582, -0.029123660176992416, 0.04432635381817818, 0.020881451666355133, 0.021273089572787285, -0.017988666892051697, 0.018887655809521675, 0.016760345548391342, -0.005331623833626509, 0.05992068350315094, -0.012452322989702225, 0.059137407690286636, -0.008629397489130497, 0.018059873953461647, 0.015683339908719063, 0.041122037917375565, 0.002992918947711587, 0.0252962838858366, 0.012861763127148151, -0.023444902151823044, -0.04297342151403427, 0.043792299926280975, -0.023391496390104294, -0.05967146158218384, -0.03702763468027115, 0.03298664093017578, -0.00509130023419857, 0.028767624869942665, -0.011580036953091621, -0.06803828477859497, 0.009728655219078064, -0.03941307216882706, 0.015558728016912937, -0.004290221258997917, -0.038344964385032654, -0.053903695195913315, 0.029283875599503517, -0.041406866163015366, 0.043614283204078674, -0.04233255609869957, 0.02793094329535961, 0.04265299066901207, -0.009426025673747063, 0.0124968271702528, -0.03731246292591095, -0.04190531373023987, 0.013048681430518627, 0.023961152881383896, -0.02712986432015896, 0.0251538697630167, -0.02762831375002861, -0.014205794781446457, -0.036404576152563095, -0.03526526317000389, 0.04471799358725548, 0.00556304631754756, -0.001643323921598494, 0.05440214276313782, -0.03546108305454254, -0.046391356736421585, -0.019581923261284828, -0.07875493168830872, -0.002645784756168723, -0.02232339233160019, -0.06034792587161064, -0.05753524973988533, -0.03270181268453598, 0.02718327008187771, -0.00798853486776352, -0.019012266770005226, -0.00877626147121191, -0.012176395393908024, -0.061095599085092545, -0.029426289722323418, 0.06312499940395355, 0.0987640991806984, -0.04005393385887146, 0.026542406529188156, -0.002334254328161478, -0.05504300445318222, -0.0495600663125515, -0.026595812290906906, -0.021593520417809486, -0.03159810230135918, -0.07202587276697159, 0.008335668593645096, -0.031046248972415924, -0.05696559324860573, 0.0038763307966291904, -0.03483802080154419, 0.03542548045516014, -0.011811460368335247, 0.05689438804984093, 0.02250140905380249, -0.015603232197463512, -0.011455425061285496, -0.00869615375995636, -0.017935261130332947, 0.031295474618673325, -0.00739662628620863, 0.03763289749622345, 0.04493161290884018, -0.0026813882868736982, -0.009951177053153515, -0.0508061908185482, -0.04247497022151947, -0.05824732035398483, -0.0030975041445344687, 0.031117456033825874, -0.016626833006739616, -0.01660013012588024, 0.0741976872086525, 0.012167494744062424, -0.05539904162287712, 0.03314685449004173, 0.049061618745326996, -0.012826159596443176, -0.048634376376867294, 0.04486040398478508, 0.024085765704512596, -0.008856370113790035, -0.02782413177192211, -0.04724584147334099, 0.05443774536252022, 0.01597706973552704, 0.008295614272356033, -0.012737151235342026, 0.058745767921209335, 0.07021009176969528, -0.006982735823839903, 0.000605815730523318, 0.0018947735661640763, 0.02547430247068405, -0.02791314199566841, 0.03432177007198334, 0.01992015726864338, -0.04194092005491257, 0.048812393099069595, -0.007080645300447941, -0.02237679809331894, 0.05440214276313782, 0.004205663222819567, -0.003818474942818284, 0.025670120492577553, 0.06600888073444366, 0.006969384383410215, 0.019350500777363777, 0.020721234381198883, 0.002908360678702593, 0.0251538697630167, 0.034072548151016235, 0.012835060246288776, 0.026239776983857155, 0.01765933446586132, 0.05678757652640343, 0.02981792762875557, -0.046391356736421585, 0.03466000407934189 ]
730,262
mmengine.utils.timer
__init__
null
def __init__(self, start=True, print_tmpl=None): self._is_running = False self.print_tmpl = print_tmpl if print_tmpl else '{:.3f}' if start: self.start()
(self, start=True, print_tmpl=None)
[ 0.054289720952510834, 0.0023588447365909815, 0.02122960239648819, -0.020358644425868988, 0.005906184669584036, 0.022027980536222458, -0.00788398552685976, 0.04242291674017906, -0.0923941358923912, 0.00616928655654192, 0.03930198401212692, 0.056938882917165756, 0.005575038958340883, -0.014261938631534576, -0.03781409561634064, -0.003762810956686735, 0.021955400705337524, -0.03189884126186371, -0.04768495634198189, -0.009571466594934464, 0.025076335296034813, 0.06096706539392471, 0.026364626362919807, 0.05708404257893562, 0.004239116329699755, 0.02054009400308132, -0.028360571712255478, -0.012066398747265339, -0.02001389116048813, -0.020921139046549797, 0.03531009331345558, 0.008183376863598824, 0.0010722536826506257, 0.04808414354920387, 0.03396736457943916, -0.013445415534079075, 0.009480741806328297, -0.016511913388967514, -0.09246671944856644, 0.030592402443289757, 0.1077810600399971, -0.021701371297240257, -0.0009730234742164612, -0.004316232167184353, -0.060821905732154846, 0.038285866379737854, 0.0696040689945221, 0.0555235780775547, 0.0005355598405003548, -0.046269647777080536, 0.02366102859377861, 0.008954538032412529, -0.018054235726594925, -0.005384516902267933, -0.06641055643558502, 0.06169286370277405, 0.039374563843011856, 0.011993818916380405, 0.006514040753245354, -0.04590674862265587, -0.026818251237273216, 0.05603163689374924, 0.02944926917552948, 0.01643933355808258, -0.008836595341563225, 0.005030690226703882, -0.04753979668021202, 0.02023163065314293, -0.01977800577878952, 0.056612275540828705, 0.02912265993654728, 0.030610548332333565, -0.04757608473300934, 0.008215130306780338, 0.017364727333188057, 0.021193312481045723, -0.07918460667133331, -0.04797527566552162, -0.05780984088778496, -0.026146886870265007, -0.006763533689081669, 0.041515666991472244, -0.006881475914269686, 0.040172941982746124, 0.04434628039598465, -0.026691235601902008, 0.04587046056985855, -0.0011539059923961759, 0.0058608222752809525, -0.0010552428429946303, -0.07076534628868103, -0.013536140322685242, 0.006559403147548437, 0.013100661337375641, 0.02964886464178562, -0.021284038200974464, 0.013572430238127708, -0.05519696697592735, -0.08448293060064316, -0.018017945811152458, 0.006786215119063854, -0.016239739954471588, -0.018190322443842888, -0.04449144005775452, -0.004182413220405579, -0.03574557229876518, -0.024513840675354004, 0.008664218708872795, -0.0016693363431841135, 0.027507759630680084, -0.01578611508011818, 0.018979627639055252, -0.02556624822318554, 0.03612661361694336, -0.023189259693026543, -0.001714698737487197, -0.029957327991724014, 0.028650891035795212, 0.0045044864527881145, -0.008668754249811172, -0.01428008358925581, -0.030374662950634956, 0.009380944073200226, -0.004091688431799412, -0.0016296441899612546, -0.001076789922080934, 0.0007995123160071671, -0.01956026628613472, 0.10270047187805176, -0.02823355793952942, 0.09232155978679657, 0.01888890378177166, -0.012465587817132473, -0.006445996928960085, 0.01921551302075386, -0.04746721684932709, -0.013681299984455109, 0.04866478219628334, -0.018253829330205917, 0.07254354655742645, -0.003771883435547352, -0.03835844621062279, -0.036725398153066635, -0.008537204004824162, -0.03610847145318985, 0.04285839572548866, -0.026165032759308815, 0.03576371446251869, -0.0359995998442173, 0.03857618570327759, -0.009589611552655697, -0.03200770914554596, 0.023062244057655334, 0.023479579016566277, 0.02387876808643341, -0.03454800322651863, 0.01433451846241951, -0.009122378192842007, 0.015813332051038742, 0.002037905855104327, -0.012120833620429039, 0.020358644425868988, -0.021792097017169, -0.019288092851638794, -0.02500375546514988, 0.061366256326436996, -0.04412854090332985, 0.0023055439814925194, 0.03178996965289116, 0.02743517979979515, -0.008519059047102928, -0.019034063443541527, 0.029703298583626747, 0.021646937355399132, 0.04111647978425026, 0.05410826951265335, 0.025148915126919746, -0.013363762758672237, -0.028487587347626686, 0.017201421782374382, -0.00752562191337347, -0.013463560491800308, -0.033386725932359695, -0.008360289968550205, -0.009167741052806377, 0.025294074788689613, 0.00454304413869977, 0.03186254948377609, 0.01832640916109085, 0.006994882132858038, 0.015368781052529812, -0.008618855848908424, -0.02899564616382122, -0.011503905057907104, 0.02843315154314041, 0.03759635612368584, 0.007956565357744694, -0.07076534628868103, 0.012982718646526337, 0.019269946962594986, -0.007217157632112503, 0.03799554705619812, -0.004307159688323736, -0.06448718905448914, 0.058063872158527374, 0.04140679910778999, 0.0028646355494856834, 0.07181774824857712, -0.026745671406388283, 0.00896814651787281, -0.025584394112229347, -0.08165232092142105, 0.01584962196648121, 0.06993067264556885, 0.017909076064825058, -0.03344115987420082, 0.004245920572429895, 0.01728307455778122, -0.04147937893867493, 0.005770097486674786, 0.0867329090833664, 0.02188282087445259, -0.013663155026733875, 0.003998695407062769, -0.01682944968342781, 0.054398588836193085, 0.045398689806461334, -0.02513076923787594, -0.06710006296634674, -0.010342626832425594, 0.023588448762893677, -0.0752652958035469, -0.027253730222582817, 0.045725300908088684, -0.029177095741033554, -0.04670512676239014, 0.005357299465686083, 0.06993067264556885, -0.08324907720088959, -0.03478388860821724, 0.0011669477680698037, 0.045943040400743484, 0.025275928899645805, -0.06920487433671951, 0.00007527323032263666, -0.011376889422535896, -0.015232694335281849, 0.016775015741586685, -0.05214861407876015, 0.012628892436623573, -0.021592501550912857, 0.010124887339770794, 0.004112101625651121, -0.02732631005346775, -0.061366256326436996, 0.03919311240315437, 0.02645535208284855, 0.01840806193649769, 0.010333554819226265, 0.02856016717851162, 0.018979627639055252, -0.006890548393130302, 0.00486284913495183, 0.05196716636419296, 0.053963109850883484, 0.00007498971535824239, -0.0735233798623085, -0.054289720952510834, -0.00838297139853239, 0.010759960860013962, 0.06942261755466461, -0.017473597079515457, 0.025511814281344414, 0.010651091113686562, -0.026364626362919807, -0.0529107041656971, -0.023189259693026543, -0.02611059695482254, -0.028088398277759552, 0.0024359608069062233, 0.05770097300410271, -0.024350536987185478, 0.005252965725958347, -0.009217639453709126, -0.03278794139623642, -0.04289468377828598, -0.006672808900475502, 0.09311993420124054, 0.010905120521783829, -0.04623335972428322, -0.04655996710062027, 0.050043798983097076, 0.025965437293052673, -0.0114948321133852, 0.02235458977520466, -0.0111137880012393, -0.022971520200371742, -0.03897537291049957, -0.041951145976781845, 0.002006152179092169, 0.01782742328941822, -0.0880393460392952, -0.01539599895477295, 0.010170250199735165, -0.005316473077982664, 0.027816222980618477, 0.009344654157757759, -0.014361735433340073, 0.08549904823303223, -0.05008009076118469, 0.022699344903230667, 0.025838423520326614, 0.011821441352367401, -0.02099371887743473, 0.003086911281570792, 0.06539443880319595, -0.029939183965325356, -0.05211232602596283, 0.020503804087638855, 0.05479777976870537, -0.026146886870265007, 0.02420537732541561, 0.013753879815340042, 0.0906522199511528, 0.017528031021356583, -0.024622710421681404, 0.03042909875512123, 0.0433664545416832, 0.006382489576935768, 0.01876188814640045, -0.07453949749469757, 0.04031810164451599, 0.027725499123334885, -0.020503804087638855, -0.03389478474855423, -0.03589073196053505, -0.016167160123586655, -0.03151779621839523, -0.03545525297522545, -0.06989438831806183, 0.06837020814418793, 0.016902029514312744, -0.025076335296034813, 0.028378717601299286, 0.0011646796483546495, -0.006872403435409069, 0.017809277400374413, -0.0546526201069355, 0.10785364359617233, -0.03197142109274864, -0.028723470866680145, 0.04623335972428322, 0.0013325205072760582, 0.011304309591650963, 0.025366654619574547, -0.05011637881398201, -0.012011963874101639, -0.012746834196150303, -0.007244375068694353, -0.025021899491548538, 0.00945352390408516, 0.06797102093696594, -0.05802758038043976, 0.013590575195848942, 0.018571365624666214, -0.023062244057655334, 0.028632747009396553, 0.011485760100185871, 0.024023927748203278, 0.06553959846496582, 0.007062925491482019, -0.019378816708922386, -0.03222544863820076, -0.0026695772539824247, -0.03977375105023384, 0.017909076064825058, 0.009099697694182396, -0.01450689509510994, 0.012601674534380436, -0.05911627784371376, -0.012855703942477703, -0.020358644425868988, 0.019179223105311394, 0.018852613866329193, -0.05864451080560684, -0.042930975556373596, -0.03688870370388031, 0.03719716891646385, 0.04670512676239014, -0.00960775651037693, 0.029630718752741814, 0.0054752416908741, 0.017101624980568886, -0.012193413451313972, 0.026818251237273216, -0.00056447833776474, 0.023751752451062202, 0.0010405000066384673, -0.04986235126852989, 0.04046326130628586, 0.04118905961513519, 0.01516011357307434, -0.0451083704829216, 0.02279006876051426, 0.003295578295364976, -0.03229802846908569, 0.06132996454834938, -0.07802332937717438, 0.004343449603766203, 0.05632195621728897, 0.04209630563855171, -0.056612275540828705, -0.08288617432117462, -0.008537204004824162, -0.0311186071485281, 0.0039306520484387875, -0.02246345952153206, -0.030302083119750023, -0.018208466470241547, 0.014978663995862007, -0.025856567546725273, 0.09464411437511444, 0.08615227043628693, 0.02745332382619381, 0.06818875670433044, 0.013182313181459904, 0.02676381543278694, -0.02300781011581421, 0.06633797287940979, 0.029594428837299347, -0.08332165330648422, 0.030247647315263748, -0.05780984088778496, 0.050370410084724426, 0.05864451080560684, -0.03719716891646385, 0.00015720906958449632, -0.0031322736758738756, 0.003245679661631584, 0.0023202868178486824, 0.003563216421753168, -0.057483233511447906, 0.03908424451947212, 0.0216832272708416, -0.04732205718755722, 0.03792296722531319, -0.025021899491548538, -0.036507658660411835, -0.027090424671769142, 0.02400578185915947, 0.002024297136813402, 0.00944445189088583, 0.022481605410575867, -0.04884623363614082, 0.05131394788622856, -0.07925718277692795, -0.0008556482498534024, 0.038503605872392654, 0.01321860309690237, -0.04209630563855171, -0.00010050606942968443, 0.032951246947050095, -0.03507420793175697, -0.033386725932359695, -0.026473496109247208, -0.0013971618609502912, 0.06416057795286179, 0.06292672455310822, -0.05719291418790817, -0.04242291674017906, 0.025021899491548538, 0.02854202128946781, -0.0024359608069062233, -0.018743744120001793, -0.007475723512470722, 0.045834168791770935, -0.02979402430355549, -0.012220630422234535, -0.005171313416212797, -0.056938882917165756, -0.03763264790177345, -0.036598384380340576, 0.022917084395885468, 0.062454953789711, -0.038612473756074905, -0.011703499592840672, 0.0375237762928009, -0.03697942942380905, 0.034058090299367905, -0.037269748747348785, -0.02021348476409912, 0.039592303335666656, 0.00978013314306736, -0.043402742594480515, -0.020848559215664864, -0.015024026855826378, -0.008700508624315262, 0.047068025916814804, -0.018598584458231926, 0.019142933189868927, 0.0036720861680805683, 0.029630718752741814, 0.06626539677381516, 0.0459793284535408, 0.032824233174324036, -0.027979528531432152, -0.006464141886681318, -0.0037423979956656694, -0.05900740996003151, 0.021846530959010124, 0.03532823547720909, -0.02498560957610607, -0.02988474816083908, 0.023134823888540268, 0.01005230750888586, -0.02133847214281559, -0.059624336659908295, -0.009898075833916664, -0.005429879296571016, -0.051822006702423096, 0.007806869223713875, 0.028505731374025345, -0.01810866966843605, -0.025820277631282806, 0.013690371997654438, -0.005647618789225817, 0.05697517469525337, 0.05222119390964508, 0.027253730222582817, 0.05109620839357376, 0.08187005668878555, -0.0014459264930337667, 0.0015910861548036337, -0.04274952411651611, -0.011032135225832462, 0.055378418415784836, -0.05008009076118469, -0.055632445961236954, -0.014107706025242805, -0.05222119390964508, 0.02810654230415821, 0.014924229122698307, 0.0314452163875103, -0.10008759796619415, 0.013744806870818138, 0.014016981236636639, 0.018507858738303185, 0.025148915126919746, 0.035727426409721375, -0.020086470991373062, 0.018725598230957985, -0.06985809653997421, -0.02121145837008953, 0.022735634818673134, -0.05980578809976578, 0.07453949749469757, 0.047721244394779205, 0.01888890378177166, 0.04989863932132721, -0.016493769362568855, 0.006700026337057352, 0.012465587817132473, 0.013917184434831142, 0.06241866201162338, -0.00316629558801651, -0.03912053257226944, 0.016139941290020943, 0.003232070943340659, -0.014461533166468143, -0.01244744285941124, -0.008605247363448143, -0.035854440182447433, 0.0044704643078148365, 0.029158949851989746, -0.029050080105662346, 0.011884949170053005, 0.04746721684932709, 0.10153919458389282, -0.00978013314306736, -0.03300568088889122, 0.001261074678041041, -0.02043122425675392, -0.03422139585018158, -0.03930198401212692, -0.02099371887743473, -0.016557276248931885, -0.019360672682523727, -0.030810141935944557, 0.007344172336161137, -0.06031384691596031, 0.005842677317559719, -0.012175268493592739, -0.0014980932464823127, -0.02645535208284855, -0.04075358062982559, 0.01611272431910038, 0.044672891497612, 0.010941410437226295, 0.01823568530380726, 0.0011210183147341013, -0.06847907602787018, 0.0757007747888565, -0.012256920337677002, 0.017700407654047012, 0.000971322413533926, -0.031826261430978775, 0.024404970929026604, 0.0533461831510067, -0.0346931628882885, 0.003082375042140484, 0.01439802534878254, -0.03511049598455429, 0.022046126425266266, 0.030048053711652756, -0.01316416822373867, -0.038612473756074905, 0.00999787263572216, -0.01304622646421194, 0.033168986439704895, -0.002671845257282257, -0.05697517469525337, 0.06474121659994125, -0.014597619883716106, 0.013445415534079075, 0.01395347435027361, 0.028378717601299286, 0.01583147794008255, -0.05011637881398201, 0.029177095741033554, -0.05958804860711098, 0.01804516278207302, -0.0020628550555557013, -0.030683128163218498, -0.02968515455722809, -0.01233857311308384, -0.012129905633628368, -0.053491342812776566, 0.04002778232097626, 0.0017203689785674214, -0.029177095741033554, -0.007512013427913189, -0.02032235451042652, 0.021157022565603256, -0.03385849669575691, 0.016058290377259254, -0.08172489702701569, -0.014642982743680477, -0.015913130715489388, 0.043620482087135315, 0.01266518235206604, -0.015241766348481178, -0.004586138762533665, 0.0019789347425103188, 0.07874912768602371, -0.0719991996884346, 0.009371872060000896, 0.022880794480443, -0.06586620211601257, 0.04634222760796547, 0.0012032376835122705, -0.0639791265130043, -0.008392044343054295, -0.026165032759308815, -0.03344115987420082, 0.03701571747660637, -0.03777780756354332, 0.0049898638390004635, -0.014842577278614044, -0.06797102093696594, -0.011240802705287933, -0.014534112997353077, 0.02333441935479641, 0.01912478730082512, -0.013635937124490738, -0.02021348476409912, 0.035491541028022766, -0.000055887892813188955, -0.06089448556303978, 0.04133421927690506, -0.006559403147548437, 0.030846431851387024, -0.00816523190587759, -0.005470705218613148, -0.08549904823303223, -0.0016670682234689593, 0.023406999185681343, -0.03951972350478172, -0.006042271852493286, 0.011812369339168072, -0.031408924609422684, -0.043620482087135315, 0.03543710708618164, -0.01634860970079899, -0.004640573635697365, -0.014016981236636639, 0.018317336216568947, -0.033296000212430954, -0.05668485537171364, 0.022971520200371742, -0.011531122028827667, 0.00508058862760663, 0.014125850982964039, 0.0108416136354208, 0.04202372580766678, -0.03777780756354332, -0.0006560537149198353, -0.015586520545184612, 0.008682363666594028, 0.04587046056985855, -0.019251802936196327, 0.0691685900092125, 0.06212834268808365, 0.030864577740430832, 0.031608521938323975, -0.05156797543168068, -0.010251902043819427, -0.03345930576324463, 0.03262463957071304, 0.020739689469337463, -0.003989622928202152, 0.006554866675287485, -0.002742157084867358, -0.013926256448030472, -0.0230985339730978, 0.04133421927690506, -0.0037129123229533434, -0.10211983323097229, -0.010977700352668762, 0.008990827947854996, -0.02378804236650467, -0.01310973335057497, 0.03246133401989937, -0.05799129232764244, -0.021919110789895058, -0.010923265479505062, -0.04118905961513519, -0.03543710708618164, -0.010279119946062565, 0.01890704780817032, 0.001981202745810151, -0.03191698342561722, -0.044818051159381866, 0.01482443232089281, 0.019142933189868927, 0.0028238093946129084, 0.019941311329603195, 0.025021899491548538, 0.018634874373674393, 0.016040144488215446, 0.06989438831806183, -0.013463560491800308, -0.009698481298983097, -0.01433451846241951, 0.03186254948377609, 0.041261639446020126, -0.0005123115843161941, -0.0652855634689331, 0.010832540690898895, -0.009961582720279694, -0.07254354655742645, -0.027961382642388344, -0.032497622072696686, 0.03598145395517349, 0.05211232602596283, 0.01434359047561884, 0.04213259741663933, 0.013998836278915405, 0.03814070671796799 ]
730,263
mmengine.utils.timer
since_last_check
Time since the last checking. Either :func:`since_start` or :func:`since_last_check` is a checking operation. Returns: float: Time in seconds.
def since_last_check(self): """Time since the last checking. Either :func:`since_start` or :func:`since_last_check` is a checking operation. Returns: float: Time in seconds. """ if not self._is_running: raise TimerError('timer is not running') dur = time() - self._t_last self._t_last = time() return dur
(self)
[ -0.0036103271413594484, 0.013176778331398964, 0.015293492935597897, 0.091412752866745, 0.02151535078883171, -0.020470738410949707, -0.009305297397077084, 0.06205364316701889, -0.024887433275580406, -0.030825229361653328, 0.0049252561293542385, -0.010739348828792572, 0.021277105435729027, -0.025253964588046074, 0.026994984596967697, -0.0024901179131120443, 0.034105680882930756, -0.018729718402028084, -0.04295739531517029, -0.07858417928218842, 0.052267275750637054, 0.09368523955345154, 0.043433886021375656, 0.04178449884057045, 0.019719351083040237, 0.008741756901144981, 0.0025817505083978176, 0.00046446308260783553, -0.032108087092638016, 0.027892984449863434, -0.03219972178339958, 0.04009845480322838, 0.003587418934330344, -0.023842820897698402, -0.006386796943843365, 0.001889923820272088, -0.0012301686219871044, -0.0025382249150425196, -0.0029528627637773752, -0.043910376727581024, 0.023751188069581985, 0.0048656947910785675, 0.03472878038883209, 0.051937397569417953, -0.01935281977057457, -0.03197980299592018, 0.015284329652786255, 0.0029322453774511814, -0.041051436215639114, -0.004313608165830374, 0.01873888075351715, -0.01618232950568199, -0.03157661855220795, 0.0648026242852211, -0.010235369205474854, -0.03756939619779587, 0.007472644094377756, -0.02409939281642437, -0.024942412972450256, 0.0375327430665493, 0.0559692345559597, -0.004897766280919313, -0.02917584218084812, -0.02501571923494339, 0.045633070170879364, 0.02582208625972271, -0.015027757734060287, -0.010821818374097347, 0.012407063506543636, 0.006854123901575804, -0.013479165732860565, 0.006840378977358341, 0.0362682119011879, -0.021332085132598877, 0.03661641478538513, -0.021038861945271492, -0.0014970487682148814, -0.009859675541520119, -0.015064410865306854, 0.00795371551066637, -0.006336399354040623, 0.026243597269058228, 0.036139924079179764, 0.023054780438542366, 0.037862617522478104, 0.001809745212085545, 0.023274697363376617, 0.015000267885625362, -0.044936660677194595, 0.006272256374359131, -0.03778931498527527, 0.053073640912771225, 0.03254792466759682, 0.008659287355840206, 0.02188188210129738, -0.025327270850539207, -0.05109437555074692, -0.0018578523304313421, -0.03487539291381836, -0.010207879357039928, 0.055346131324768066, 0.06242017447948456, 0.03419731184840202, -0.011389940977096558, 0.051350947469472885, 0.049078457057476044, -0.004242592491209507, -0.04226098582148552, 0.03370249643921852, -0.021258778870105743, 0.012746104039251804, -0.010372818447649479, -0.040025148540735245, 0.014193900860846043, 0.04101478308439255, -0.024942412972450256, -0.014551267959177494, 0.00349120469763875, -0.06835797429084778, 0.027691392228007317, 0.005039796698838472, -0.01048277784138918, 0.020983882248401642, -0.027031637728214264, -0.019920943304896355, -0.03317102789878845, -0.016887901350855827, 0.04108808934688568, 0.04347053915262222, -0.052047356963157654, 0.003378954716026783, 0.006098154000937939, -0.010042940266430378, 0.019975923001766205, 0.025253964588046074, 0.012443716637790203, 0.06110066547989845, 0.05926801264286041, -0.029853923246264458, 0.017556820064783096, 0.02626192383468151, 0.0036378169897943735, 0.02092890255153179, -0.036359842866659164, 0.08452197164297104, 0.0359933115541935, -0.04398368299007416, 0.047355763614177704, -0.0724264606833458, -0.0029597352258861065, -0.006698348093777895, -0.09192589670419693, 0.044130295515060425, -0.0016780232544988394, -0.021588657051324844, 0.048821885138750076, -0.031888168305158615, -0.0017868371214717627, -0.055346131324768066, -0.07895071059465408, -0.023971106857061386, 0.00007667077443329617, -0.04750237613916397, -0.04028172045946121, 0.015760818496346474, 0.04145462065935135, -0.0813698098063469, 0.047099191695451736, -0.04409364238381386, 0.014908635057508945, 0.02679339237511158, -0.029725637286901474, 0.018289880827069283, -0.018289880827069283, -0.003262123093008995, -0.03196147456765175, 0.003305648686364293, 0.021606983616948128, 0.0370929054915905, 0.00703738909214735, 0.01544926781207323, -0.010033776983618736, -0.01345167588442564, -0.06663528084754944, -0.029450740665197372, -0.03590168058872223, -0.015788309276103973, 0.04409364238381386, -0.014303860254585743, 0.03018380142748356, -0.010968430899083614, 0.015641696751117706, 0.010803491808474064, -0.020067553967237473, 0.02404441311955452, 0.014303860254585743, -0.004425858147442341, 0.03559013083577156, 0.08672115951776505, 0.024942412972450256, -0.05692221596837044, 0.01940779946744442, -0.02318306639790535, -0.027306536212563515, -0.014908635057508945, -0.014789513312280178, 0.019774330779910088, 0.008801317773759365, -0.03174155578017235, -0.00856765452772379, -0.021955188363790512, -0.0016218982636928558, -0.05072784796357155, 0.019169554114341736, -0.0016207528533414006, -0.06395960599184036, 0.017703432589769363, -0.0007095804903656244, -0.015101063996553421, 0.01084014493972063, 0.015650860965251923, -0.07579854130744934, -0.022303391247987747, -0.03438057750463486, -0.001980411121621728, 0.018152432516217232, 0.012966022826731205, 0.0076100933365523815, 0.06329984962940216, -0.06923764199018478, 0.002350378083065152, -0.007939971052110195, 0.02221175841987133, 0.034325599670410156, 0.058461643755435944, -0.012324593961238861, -0.033244334161281586, 0.0014386329567059875, 0.03126506879925728, -0.04508327320218086, -0.03716621175408363, 0.00317965354770422, -0.0008281302289105952, 0.021955188363790512, -0.0019781203009188175, -0.03370249643921852, 0.06949421763420105, 0.017584308981895447, -0.03645147755742073, 0.016191493719816208, 0.008957093581557274, 0.03756939619779587, 0.03282282128930092, -0.036304865032434464, -0.015009431168437004, 0.07411250472068787, 0.032474618405103683, 0.005310113076120615, 0.014844493009150028, 0.014395492151379585, 0.044606782495975494, -0.001959793735295534, -0.01957273855805397, -0.040355026721954346, -0.04955494776368141, 0.040574945509433746, 0.018088288605213165, 0.006918266415596008, -0.020305799320340157, 0.04306735470890999, 0.11501732468605042, -0.09280557185411453, 0.0031407098285853863, -0.056042540818452835, -0.024246005341410637, -0.02706829085946083, 0.011884757317602634, 0.046659354120492935, -0.022028494626283646, 0.006198950111865997, 0.05017805099487305, 0.015595880337059498, -0.0027375260833650827, -0.006762491073459387, -0.09801030158996582, -0.004829041659832001, -0.018271554261446, 0.0648026242852211, -0.05094776302576065, 0.023677881807088852, -0.04808882623910904, -0.03339094668626785, 0.030825229361653328, -0.006634205114096403, -0.006299746222794056, -0.019719351083040237, -0.06744164228439331, -0.06890776753425598, 0.01913290098309517, 0.027416495606303215, -0.019316166639328003, 0.011619022116065025, -0.08906695246696472, -0.02851608768105507, -0.05072784796357155, -0.004705337807536125, -0.054869644343853, -0.01743769645690918, 0.05274376645684242, -0.041601233184337616, -0.023476289585232735, 0.009346532635390759, 0.0728662982583046, -0.008957093581557274, 0.04416694864630699, 0.036744698882102966, -0.015027757734060287, -0.021845228970050812, 0.012104676105082035, 0.027673065662384033, -0.028369475156068802, 0.06322654336690903, 0.01902294158935547, 0.024246005341410637, 0.00852183811366558, -0.07777781039476395, 0.028167882934212685, 0.02468584105372429, 0.010180389508605003, -0.01447796169668436, -0.04442351683974266, -0.05952458083629608, 0.06769821792840958, -0.05314694717526436, 0.0035897097550332546, -0.00037426219205372036, 0.034857068210840225, 0.023366330191493034, 0.061870377510786057, 0.007316868752241135, 0.043213967233896255, 0.004352551884949207, -0.020305799320340157, 0.015101063996553421, -0.001970102312043309, -0.0012267323909327388, -0.03494869917631149, -0.05017805099487305, 0.1293853372335434, -0.049628254026174545, -0.02626192383468151, -0.04193111136555672, -0.0733061358332634, -0.011023410595953465, -0.013240920379757881, 0.0033652097918093204, -0.00224843667820096, -0.010510267689824104, 0.024191025644540787, -0.04446016997098923, -0.07000736147165298, 0.08672115951776505, 0.014899471774697304, 0.03153996542096138, 0.038742292672395706, 0.009795532561838627, 0.030806902796030045, -0.036744698882102966, -0.000627111061476171, -0.024869106709957123, -0.06788147985935211, -0.06135723739862442, 0.05494295060634613, 0.027838004752993584, 0.044936660677194595, 0.030806902796030045, 0.04383707046508789, 0.003951658960431814, -0.011142532341182232, -0.036744698882102966, 0.036414824426174164, 0.056738950312137604, -0.09603103995323181, -0.026921678334474564, -0.00837064441293478, -0.003383536357432604, -0.07968377321958542, -0.006620460189878941, 0.02965233288705349, -0.02237669751048088, 0.03152163699269295, -0.03322600573301315, -0.0230181273072958, -0.024355962872505188, -0.04009845480322838, 0.0278196781873703, -0.01876637153327465, -0.019096247851848602, -0.006551736034452915, -0.03833910822868347, 0.06923764199018478, -0.006721256300806999, 0.016191493719816208, -0.016484716907143593, 0.009213664568960667, 0.005278041586279869, -0.005470470525324345, -0.031668249517679214, -0.05131429433822632, 0.02965233288705349, -0.013130961917340755, -0.046256173402071, -0.013827369548380375, -0.0005194427212700248, -0.056738950312137604, -0.008402715437114239, -0.07763119786977768, -0.03289612755179405, 0.041601233184337616, -0.03315269947052002, -0.05267046019434929, 0.0051864092238247395, 0.03419731184840202, 0.01798749342560768, -0.008292756974697113, 0.08437535911798477, -0.022028494626283646, 0.027031637728214264, -0.04783225432038307, 0.021716943010687828, 0.012975186109542847, 0.0006053483230061829, 0.01191224716603756, 0.0362682119011879, -0.015330146066844463, 0.045852988958358765, -0.04108808934688568, -0.026298576965928078, -0.027269883081316948, -0.01248036976903677, 0.009823022410273552, 0.038192495703697205, 0.0022232376504689455, 0.06377633661031723, 0.022450003772974014, -0.04141796752810478, -0.026023678481578827, -0.03282282128930092, -0.009429002180695534, 0.02937743440270424, -0.026170291006565094, 0.006350143812596798, 0.041711192578077316, 0.01854645274579525, 0.004538108129054308, -0.06964083015918732, -0.07682482898235321, 0.030110495164990425, 0.059231359511613846, -0.034637149423360825, -0.05827837809920311, 0.061760418117046356, 0.039658620953559875, -0.03012882173061371, -0.0373678021132946, -0.04753902927041054, -0.008379807695746422, 0.012755267322063446, -0.03230968117713928, 0.03542518988251686, 0.03245628997683525, -0.00930071622133255, -0.023054780438542366, 0.009905491955578327, -0.0038875159807503223, -0.03157661855220795, 0.02426433190703392, 0.08305585384368896, 0.02102053537964821, -0.005823255982249975, 0.02420935221016407, 0.0818096473813057, -0.002790214726701379, -0.03579172119498253, 0.04141796752810478, 0.008091164752840996, -0.09551789611577988, -0.019920943304896355, 0.05659233778715134, -0.07180336117744446, -0.07088703662157059, -0.025803759694099426, -0.011032573878765106, 0.032218046486377716, -0.045962948352098465, -0.057178787887096405, 0.02446592226624489, -0.011609859764575958, 0.012746104039251804, 0.04643943905830383, 0.00941067561507225, 0.03903551772236824, 0.05428319424390793, 0.08254271000623703, 0.023219719529151917, -0.057985153049230576, -0.018784698098897934, 0.017501840367913246, 0.01242539007216692, 0.015513410791754723, -0.011774797923862934, -0.007371848449110985, 0.041161395609378815, 0.027031637728214264, -0.0014157247496768832, -0.04486335441470146, -0.03340927138924599, -0.037606049329042435, 0.007678817957639694, -0.008210287429392338, -0.06476597487926483, 0.03800923004746437, 0.016347268596291542, 0.014303860254585743, -0.020837269723415375, 0.015247676521539688, -0.046549394726753235, -0.01810661517083645, 0.003351464867591858, 0.002003319328650832, 0.06399625539779663, -0.06736833602190018, 0.002037681406363845, -0.04717249795794487, 0.00853558350354433, 0.03245628997683525, -0.02917584218084812, -0.08657454699277878, -0.093392014503479, -0.024447595700621605, 0.07304956763982773, -0.0831291601061821, 0.06593886762857437, 0.009942145086824894, -0.010354491882026196, 0.009621430188417435, -0.015018594451248646, 0.0274348221719265, -0.013424186035990715, 0.06018433719873428, -0.0036813425831496716, -0.02270657569169998, -0.01048277784138918, -0.0004973936011083424, 0.009529797360301018, 0.017749248072504997, 0.0464760884642601, 0.02026914618909359, 0.021698616445064545, -0.017840880900621414, -0.008819644339382648, -0.05384335666894913, 0.07238981127738953, 0.030935188755393028, -0.05600588768720627, -0.05875486880540848, 0.042554210871458054, 0.024869106709957123, -0.016503043472766876, 0.024227678775787354, 0.003090311773121357, 0.060844093561172485, 0.01712614670395851, -0.006808307487517595, -0.0001393818820361048, 0.002579459687694907, -0.002588622970506549, 0.02712327055633068, 0.01277359388768673, -0.022724902257323265, 0.016338104382157326, -0.008228613995015621, -0.015724165365099907, -0.026481840759515762, 0.014597084373235703, -0.04303070157766342, 0.0025061534252017736, -0.01990261673927307, -0.04728245735168457, 0.0370929054915905, -0.0463661327958107, 0.05945127457380295, -0.0022621816024184227, 0.016228144988417625, 0.03260290250182152, 0.012104676105082035, 0.03740445524454117, 0.008700521662831306, 0.014441308565437794, 0.06362972408533096, 0.014377165585756302, -0.005420072469860315, 0.020342452451586723, 0.028131229802966118, 0.011060063727200031, -0.023091433569788933, -0.011060063727200031, 0.00992381852120161, -0.02398943342268467, -0.011197512038052082, 0.048235438764095306, -0.01798749342560768, 0.016484716907143593, 0.04992147907614708, 0.047355763614177704, -0.004535817075520754, -0.07609176635742188, 0.029634006321430206, -0.006817470770329237, 0.07763119786977768, -0.014862818643450737, 0.03348257765173912, 0.014120594598352909, -0.00703738909214735, 0.00606608297675848, 0.002636729972437024, -0.004043291788548231, -0.019829310476779938, -0.005113102961331606, -0.06516915559768677, -0.029340781271457672, 0.007385593373328447, 0.024502575397491455, -0.07235315442085266, -0.013579961843788624, 0.03973192721605301, -0.03564510866999626, 0.021148819476366043, -0.033830780535936356, -0.048125479370355606, 0.03461882099509239, -0.021643636748194695, 0.013094308786094189, 0.004856531508266926, -0.00158982677385211, -0.04130800813436508, -0.02274322882294655, 0.03907217085361481, 0.050801150500774384, 0.033464252948760986, -0.05109437555074692, 0.02096555568277836, 0.032914455980062485, 0.005928633734583855, -0.058791521936655045, -0.054319847375154495, 0.024172699078917503, -0.013983145356178284, 0.004961909260600805, -0.028369475156068802, 0.02382449433207512, -0.008760083466768265, -0.039768580347299576, -0.010253695771098137, -0.021478697657585144, -0.0550895631313324, 0.011444920673966408, 0.08239609748125076, 0.008860879577696323, -0.004006638657301664, 0.006176041904836893, -0.013570798560976982, -0.00999712385237217, -0.00959394033998251, 0.0186839010566473, -0.03568176180124283, -0.002611531177535653, -0.015009431168437004, 0.022175105288624763, 0.014432145282626152, -0.013689921237528324, 0.024172699078917503, -0.06022099032998085, -0.01854645274579525, 0.06989739835262299, 0.04079486429691315, 0.04174784570932388, -0.035022005438804626, -0.006505919620394707, -0.00037998921470716596, -0.05677560344338417, -0.013946492224931717, 0.02037910558283329, 0.06769821792840958, 0.029157515615224838, -0.0012668216368183494, -0.028919270262122154, 0.018399840220808983, 0.02906588278710842, -0.046659354120492935, 0.023329677060246468, -0.024869106709957123, 0.004838204942643642, -0.01367159467190504, 0.003129255725070834, 0.009493144229054451, 0.002529061632230878, -0.0070602972991764545, -0.016338104382157326, -0.015156043693423271, 0.012379573658108711, 0.030275434255599976, 0.016035716980695724, 0.008627216331660748, -0.017941676080226898, -0.07125356793403625, -0.01062022615224123, -0.02554718777537346, -0.011105879209935665, -0.006643368396908045, -0.03185151517391205, 0.06553568691015244, 0.051350947469472885, -0.0359933115541935, -0.014377165585756302, 0.04915176331996918, 0.0077200522646307945, -0.09625095874071121, -0.0027947963681071997, 0.009241154417395592, -0.01544926781207323, -0.006235603243112564, 0.013240920379757881, -0.054906297475099564, -0.008874624036252499, 0.021716943010687828, 0.01379987969994545, -0.0008854006882756948, 0.041161395609378815, 0.01453294139355421, 0.04226098582148552, 0.006139388773590326, -0.0036378169897943735, 0.011014247313141823, 0.004024965222924948, -0.024191025644540787, -0.040135107934474945, -0.0011505626607686281, -0.001964375376701355, -0.03793592378497124, 0.019939269870519638, -0.041967764496803284, -0.006560899317264557, -0.0017925640568137169, 0.04145462065935135, 0.05025135725736618, -0.009749716147780418, 0.00667085824534297, 0.02820453606545925, 0.04031837359070778, 0.08349569141864777, -0.038852252066135406, 0.09236573427915573, 0.0181890856474638, -0.028076250106096268, -0.0373678021132946, -0.06209029629826546, 0.020067553967237473 ]
730,264
mmengine.utils.timer
since_start
Total time since the timer is started. Returns: float: Time in seconds.
def since_start(self): """Total time since the timer is started. Returns: float: Time in seconds. """ if not self._is_running: raise TimerError('timer is not running') self._t_last = time() return self._t_last - self._t_start
(self)
[ -0.027444113045930862, -0.017598815262317657, 0.05555759370326996, 0.040050555020570755, 0.056078214198350906, 0.002742551965638995, 0.006461266428232193, 0.06634186208248138, -0.06094972789287567, -0.007530396804213524, -0.01589750498533249, -0.027090834453701973, 0.021903228014707565, 0.005173661280423403, 0.012838861905038357, 0.0132758105173707, 0.038563068956136703, -0.04875234514474869, -0.06797809898853302, -0.06344126909971237, 0.030828142538666725, 0.07496928423643112, 0.04845484718680382, 0.012076525017619133, -0.0019709186162799597, 0.019671998918056488, 0.006414782255887985, -0.04388083145022392, -0.024915385991334915, -0.006363649852573872, 0.006610014941543341, 0.04440144822001457, -0.00700512807816267, -0.06024317443370819, -0.007888322696089745, 0.005443267989903688, 0.002412515925243497, -0.04008774086833, 0.025752097368240356, -0.0035653174854815006, 0.02121526561677456, -0.02026699297130108, 0.01915137842297554, 0.053995732218027115, -0.006642553489655256, -0.03493732213973999, 0.03882337734103203, 0.001905841170810163, 0.02813207358121872, -0.009631470777094364, 0.045963309705257416, -0.027053646743297577, -0.04689298942685127, 0.04614924639463425, -0.01683647930622101, 0.005475807003676891, 0.014614547602832317, -0.02742551825940609, -0.07363054156303406, 0.07113900780677795, 0.04138929024338722, 0.010774974711239338, 0.005596665199846029, -0.011165440082550049, 0.05102076008915901, -0.003119071712717414, -0.0013108468847349286, -0.005545532796531916, -0.012513473629951477, 0.006628608331084251, -0.006642553489655256, 0.0013503581285476685, 0.023743990808725357, -0.019244346767663956, 0.02937784418463707, 0.009096904657781124, -0.01010560616850853, 0.002162664895877242, -0.009566392749547958, -0.011165440082550049, -0.03536497429013252, 0.011369969695806503, 0.0052015515975654125, 0.06083816662430763, 0.0611356645822525, 0.02506413497030735, -0.009696547873318195, 0.021364014595746994, -0.07191993296146393, 0.02861550822854042, -0.0320553183555603, 0.07437428832054138, 0.017952093854546547, 0.022907281294465065, 0.007232899311929941, -0.013619791716337204, -0.03867463022470474, -0.0198021549731493, -0.05124388635158539, -0.014735406264662743, 0.05195043981075287, 0.08411732316017151, 0.02926628291606903, -0.000043978154280921444, 0.04923577979207039, 0.040757108479738235, 0.017059601843357086, -0.03463982418179512, 0.07597333192825317, 0.029898464679718018, -0.02986127696931362, -0.0100219352170825, -0.033617179840803146, 0.028764255344867706, 0.018705133348703384, -0.058309443295001984, -0.02417164295911789, 0.01551633607596159, -0.07403960078954697, 0.052285123616456985, -0.01451228279620409, 0.019653405994176865, 0.04150085151195526, -0.025677723810076714, -0.01755233108997345, -0.007456022314727306, 0.009966154582798481, 0.00449034757912159, 0.02837379090487957, -0.0451451912522316, 0.03227844089269638, 0.017041008919477463, 0.034732792526483536, 0.027741609141230583, 0.00750715471804142, 0.023632429540157318, 0.07898549735546112, 0.06857309490442276, -0.011462937109172344, 0.025026947259902954, 0.027146615087985992, 0.010644819587469101, 0.01557211671024561, -0.02606818825006485, 0.04693017527461052, 0.040943045169115067, -0.005582720041275024, 0.03893493860960007, -0.08143984526395798, -0.0046228268183767796, 0.008711088448762894, -0.13119624555110931, 0.04521956667304039, -0.006586772855371237, -0.0023346554953604937, 0.0038930291775614023, -0.009947560727596283, -0.021419795230031013, -0.04864078387618065, -0.08136547356843948, -0.031200014054775238, 0.0061684176325798035, -0.028857223689556122, -0.06429657340049744, 0.006191659718751907, 0.036257464438676834, -0.05031420662999153, 0.05102076008915901, -0.05131825804710388, -0.03227844089269638, 0.02093636244535446, -0.015497742220759392, 0.035309191793203354, 0.006730873137712479, 0.020229807123541832, -0.05704507976770401, -0.01565578766167164, 0.020731832832098007, 0.025436006486415863, 0.020545898005366325, 0.04901265725493431, 0.01406603679060936, -0.06054067239165306, -0.030642205849289894, -0.021884635090827942, -0.006861028261482716, 0.011118955910205841, 0.033189527690410614, 0.011137549765408039, 0.007112041115760803, 0.0035327787045389414, -0.0030377248767763376, -0.010291541926562786, -0.010375212877988815, -0.00795340072363615, 0.03726151958107948, 0.0011423425748944283, -0.02134541980922222, 0.040348052978515625, 0.031292982399463654, -0.056301336735486984, 0.006451969500631094, -0.015627896413207054, -0.025436006486415863, 0.008818001486361027, -0.010375212877988815, 0.007158525288105011, -0.006372946780174971, -0.032836247235536575, -0.017292022705078125, -0.05254543572664261, -0.03556950390338898, -0.029749715700745583, 0.012476286850869656, 0.003012158675119281, -0.06920527666807175, -0.023427899926900864, -0.014912044629454613, -0.037689171731472015, -0.010774974711239338, 0.042653653770685196, -0.04243053123354912, 0.009287489578127861, -0.06054067239165306, 0.006805247161537409, -0.0023102513514459133, 0.004639096092432737, -0.02181025967001915, 0.011890589259564877, -0.055483218282461166, 0.02311181090772152, -0.042579278349876404, 0.02093636244535446, 0.029749715700745583, 0.02517569623887539, 0.03175782039761543, -0.012634332291781902, 0.008227655664086342, -0.009854593314230442, -0.047673918306827545, -0.045070819556713104, 0.010951614007353783, 0.031125640496611595, 0.01226246077567339, -0.046186432242393494, -0.0008210224332287908, 0.0431370884180069, -0.0015397801762446761, -0.06344126909971237, 0.022070569917559624, 0.04138929024338722, 0.02186604030430317, 0.03967868164181709, -0.026049595326185226, -0.016520388424396515, 0.05380979925394058, 0.04600049555301666, 0.06236284226179123, -0.02753707952797413, 0.026105375960469246, 0.033022183924913406, -0.0330965593457222, -0.020954955369234085, -0.02387414686381817, 0.0017942796694114804, 0.0656353086233139, -0.0024868901818990707, 0.023204777389764786, -0.01344315242022276, 0.040050555020570755, 0.1554422676563263, -0.06485437601804733, 0.02069464512169361, -0.06299502402544022, 0.00409290986135602, -0.0802498534321785, -0.04745079576969147, 0.055297281593084335, -0.016752809286117554, 0.0027750905137509108, 0.010375212877988815, 0.025101322680711746, -0.027685828506946564, -0.03822838515043259, -0.06946558505296707, -0.01445650216192007, 0.015348994173109531, 0.04101742058992386, -0.03501169756054878, 0.02034136839210987, -0.0606522336602211, -0.012922532856464386, 0.013452449813485146, -0.03317093104124069, 0.0005578071577474475, 0.01861216500401497, -0.07556428015232086, -0.06440813094377518, 0.0056989300064742565, 0.08136547356843948, -0.010616929270327091, 0.006451969500631094, -0.09668657183647156, -0.025789285078644753, -0.06489156931638718, 0.035904187709093094, -0.02045292966067791, 0.015795240178704262, 0.05224793776869774, -0.04652111604809761, -0.058197882026433945, 0.008362459018826485, 0.03811682388186455, -0.02671896293759346, 0.02015543170273304, 0.04886390641331673, -0.009705844335258007, -0.011751137673854828, 0.011267704889178276, 0.02050871029496193, -0.03480716794729233, 0.0782417505979538, 0.029526593163609505, 0.020378554239869118, 0.07225462049245834, -0.020713239908218384, 0.04841766133904457, 0.007228251080960035, 0.019671998918056488, -0.035959966480731964, -0.022144943475723267, -0.041538041085004807, 0.015507038682699203, -0.03761479631066322, -0.017357099801301956, 0.011751137673854828, 0.007720980793237686, 0.03398904949426651, 0.0029587021563202143, -0.00642872741445899, 0.07006058096885681, -0.02080620639026165, -0.009631470777094364, 0.021326826885342598, -0.036852460354566574, -0.026681775227189064, -0.017896313220262527, -0.052582621574401855, 0.13766680657863617, -0.07359335571527481, -0.029898464679718018, -0.01791490614414215, -0.03220406547188759, -0.03186938166618347, -0.02370680496096611, 0.018296074122190475, -0.006107988301664591, -0.025436006486415863, 0.028410978615283966, -0.04350895807147026, -0.06433375924825668, 0.06641624122858047, -0.006191659718751907, 0.02997283823788166, 0.004825031850486994, 0.020359961315989494, 0.004006914794445038, -0.05377260968089104, -0.011091065593063831, -0.01626007817685604, -0.05685914307832718, -0.02861550822854042, 0.009659361094236374, 0.02802051231265068, 0.03822838515043259, 0.03062361292541027, 0.041054606437683105, -0.006340408232063055, -0.027815984562039375, -0.06005723774433136, 0.02896878495812416, 0.04328583553433418, -0.08954664319753647, -0.01714327372610569, -0.011416452936828136, 0.011397860012948513, -0.0616934709250927, -0.021010736003518105, 0.02446914091706276, -0.051281072199344635, -0.020043870434165, -0.023260558024048805, -0.03376592695713043, -0.01708749309182167, -0.028634101152420044, -0.011035284958779812, 0.022089162841439247, -0.03752182796597481, 0.007218954153358936, -0.016399530693888664, 0.10181839764118195, -0.015683678910136223, 0.011983557604253292, -0.0010853997664526105, 0.018342558294534683, -0.011193330399692059, -0.0003152191638946533, -0.09445534646511078, -0.03125579282641411, 0.021382607519626617, -0.000683313759509474, -0.028820035979151726, -0.020062463358044624, 0.008487965911626816, -0.07972923666238785, -0.03612731024622917, -0.09475284069776535, -0.02571490965783596, 0.05187606438994408, -0.022442441433668137, -0.048268914222717285, 0.008413591422140598, 0.02772301621735096, -0.008408943191170692, 0.011193330399692059, 0.07972923666238785, 0.025919439271092415, -0.004578667227178812, 0.01178832445293665, 0.02394852042198181, -0.017812641337513924, 0.014093928039073944, -0.012662222608923912, 0.039046499878168106, -0.025380225852131844, 0.03131157532334328, -0.005080693401396275, -0.016464607790112495, -0.04481050744652748, 0.018956147134304047, 0.024748044088482857, 0.021717291325330734, 0.02300024777650833, 0.06801528483629227, 0.043360210955142975, -0.052582621574401855, -0.032371409237384796, -0.031943757086992264, 0.008534449152648449, 0.03547653555870056, -0.030716581270098686, -0.01067270990461111, 0.07403960078954697, 0.014977122657001019, -0.0288386307656765, -0.04008774086833, -0.059015996754169464, 0.03317093104124069, 0.014465798623859882, -0.04127772897481918, -0.028057700023055077, 0.08359669893980026, 0.009910373948514462, -0.01004982553422451, -0.00729797687381506, -0.03867463022470474, 0.005289871245622635, 0.01501430943608284, -0.039269622415304184, 0.0611356645822525, 0.07935736328363419, 0.012308944948017597, -0.0013352509122341871, -0.02802051231265068, 0.028764255344867706, 0.0027053647208958864, -0.016585465520620346, 0.07403960078954697, 0.019411688670516014, -0.018528494983911514, 0.008915618062019348, 0.041463665664196014, 0.0038047097623348236, -0.017301319167017937, 0.05142981931567192, 0.03160907328128815, -0.08106797188520432, -0.014242676086723804, 0.07392804324626923, -0.07258930802345276, -0.0476367324590683, -0.02666318230330944, -0.020043870434165, -0.002805305179208517, -0.03480716794729233, -0.02262837626039982, 0.024859605357050896, 0.007065557409077883, -0.008752924390137196, 0.09133162349462509, -0.013573307543992996, 0.06165628507733345, 0.05202481523156166, 0.08597667515277863, 0.02560334838926792, -0.03471419960260391, -0.020415741950273514, 0.016576169058680534, -0.004413648974150419, 0.02495257370173931, -0.0265516210347414, -0.011741840280592442, 0.026997866109013557, -0.011630279012024403, 0.010114903561770916, -0.04008774086833, -0.038637444376945496, -0.0037117418833076954, -0.019132785499095917, -0.05708226561546326, -0.052768558263778687, 0.0471532978117466, 0.029824089258909225, 0.02262837626039982, -0.033319681882858276, 0.047264859080314636, -0.06589561700820923, -0.04079429805278778, 0.009050421416759491, 0.030400490388274193, 0.06046629697084427, -0.0501282699406147, -0.018956147134304047, -0.015441961586475372, -0.0008605337352491915, 0.015813833102583885, -0.03434232622385025, -0.09705844521522522, -0.060726605355739594, -0.01773826777935028, 0.054888226091861725, -0.07846487313508987, 0.08054735511541367, 0.03547653555870056, 0.04551706463098526, 0.018779506906867027, -0.0265516210347414, 0.025677723810076714, -0.02346508763730526, 0.034732792526483536, 0.00786508060991764, -0.02848535217344761, -0.010542555712163448, -0.01451228279620409, -0.01608343981206417, 0.04031086340546608, 0.03421217203140259, 0.005638500675559044, 0.01117473654448986, 0.00477389944717288, 0.023539463058114052, -0.030214553698897362, 0.06332970410585403, 0.021494168788194656, -0.036201685667037964, -0.05596665292978287, 0.018165919929742813, 0.03672230616211891, -0.021884635090827942, 0.03138595074415207, -0.01595328561961651, 0.023446494713425636, 0.011834808625280857, 0.0022730641067028046, -0.006675092503428459, 0.011490827426314354, -0.0235766489058733, 0.04864078387618065, -0.018342558294534683, -0.0018884096061810851, 0.009073663502931595, -0.006916808895766735, 0.0020545898005366325, -0.021382607519626617, 0.024933980777859688, -0.045665811747312546, -0.01433564443141222, -0.037391673773527145, -0.031348761171102524, 0.018128732219338417, -0.050872012972831726, 0.036926835775375366, -0.008976046927273273, 0.02164291776716709, 0.015395477414131165, -0.007079502567648888, 0.06076379492878914, 0.00771633256226778, 0.03675949200987816, 0.061210040003061295, 0.0051132324151694775, -0.03967868164181709, 0.044773321598768234, 0.024394767358899117, 0.02194041572511196, -0.014475096017122269, -0.013907992281019688, 0.029303468763828278, -0.009203817695379257, -0.01097020786255598, 0.05154138058423996, -0.04510800540447235, 0.014688922092318535, 0.04414113983511925, 0.047376420348882675, 0.011016691103577614, -0.0566360205411911, -0.0012852806830778718, 0.0360715314745903, 0.05983411520719528, -0.017747564241290092, 0.015702271834015846, -0.004362517036497593, -0.03291062265634537, 0.016576169058680534, 0.013722056522965431, -0.0013573307078331709, -0.011881292797625065, 0.014642437919974327, -0.058197882026433945, -0.01007771585136652, -0.006935402285307646, 0.026272717863321304, -0.0641850084066391, -0.008850540034472942, 0.04745079576969147, -0.03701980039477348, 0.03330108895897865, -0.03941837325692177, -0.01583242602646351, 0.01632515713572502, -0.0023218723945319653, -0.021587137132883072, 0.008678549900650978, -0.0031609071884304285, -0.04540550336241722, -0.06719716638326645, 0.013545417226850986, 0.05875568836927414, 0.03162766620516777, -0.03391467407345772, 0.021196672692894936, 0.034249357879161835, 0.008116094395518303, -0.06076379492878914, -0.05362386256456375, -0.0014944584108889103, -0.04228178411722183, 0.003047021571546793, -0.0243017990142107, 0.0035792626440525055, -0.011593092232942581, -0.027109427377581596, -0.018342558294534683, -0.028596913442015648, -0.057602886110544205, 0.011165440082550049, 0.08188609033823013, 0.007730277720838785, -0.021884635090827942, 0.02712802216410637, 0.0132758105173707, -0.01821240410208702, -0.01235542818903923, 0.0052201454527676105, 0.016334453597664833, -0.02595662698149681, -0.029526593163609505, -0.0013375751441344619, 0.014233379624783993, -0.020620271563529968, 0.06173066049814224, -0.03298499807715416, -0.037094175815582275, 0.03778214007616043, -0.028708474710583687, 0.025807878002524376, -0.05756570026278496, -0.02346508763730526, -0.0058244364336133, -0.03320812061429024, 0.0040371292270720005, -0.0026937436778098345, 0.058606937527656555, 0.03463982418179512, -0.009882483631372452, -0.004292790777981281, 0.011825512163341045, 0.013052687980234623, -0.014577360823750496, 0.0023009544238448143, -0.004383434541523457, 0.01543266512453556, 0.005740765482187271, -0.011035284958779812, -0.007609419524669647, 0.025212883949279785, -0.004281169734895229, -0.01097020786255598, 0.0059081073850393295, 0.057119451463222504, 0.00561525858938694, 0.002791360020637512, 0.053177617490291595, -0.020118245854973793, -0.045777373015880585, -0.03553231433033943, -0.007418835069984198, 0.010031231679022312, 0.015683678910136223, -0.026942085474729538, 0.008329920470714569, 0.0330965593457222, 0.01744076982140541, 0.012030040845274925, 0.02205197699368, -0.0024659724440425634, -0.07645677030086517, -0.010700601153075695, 0.024041488766670227, -0.0531032420694828, -0.032780468463897705, -0.017003821209073067, -0.0531032420694828, -0.012727299705147743, 0.009096904657781124, -0.008892375975847244, 0.0048715160228312016, 0.04674423858523369, 0.020434334874153137, 0.03878619149327278, 0.025640536099672318, 0.009770922362804413, 0.01784982904791832, 0.02991705760359764, -0.021196672692894936, -0.018760913982987404, -0.02305602841079235, 0.024729451164603233, 0.003797737183049321, -0.00842288788408041, -0.03848869353532791, -0.014186895452439785, -0.017059601843357086, 0.003318952629342675, 0.02287009358406067, -0.03701980039477348, 0.005024912767112255, 0.013852210715413094, 0.03629465401172638, 0.06589561700820923, -0.043657708913087845, 0.05544603243470192, 0.039641495794057846, -0.013945179060101509, 0.006712279282510281, -0.0641106367111206, 0.01926294155418873 ]
730,265
mmengine.utils.timer
start
Start the timer.
def start(self): """Start the timer.""" if not self._is_running: self._t_start = time() self._is_running = True self._t_last = time()
(self)
[ 0.02834303118288517, -0.0032234760001301765, 0.014452408999204636, 0.04418178275227547, 0.022761410102248192, 0.01302075944840908, -0.010057789273560047, 0.06549341976642609, -0.08357932418584824, -0.008685036562383175, -0.023957472294569016, 0.03874514251947403, 0.018457401543855667, 0.02254394441843033, 0.025679076090455055, -0.013591607101261616, 0.05375027656555176, -0.035591889172792435, -0.09539496153593063, -0.05088697746396065, 0.04454422742128372, 0.08604393154382706, 0.08082475513219833, 0.05465638265013695, -0.0009859577985480428, 0.06607332825660706, -0.050017114728689194, -0.02301512099802494, -0.03399714082479477, -0.0031962927896529436, 0.02636771649122238, 0.01236836239695549, 0.002994684036821127, -0.036733582615852356, -0.00021463412849698216, -0.04142721742391586, -0.01405372191220522, -0.032565489411354065, 0.0023354911245405674, 0.039941202849149704, 0.08053480088710785, -0.023141976445913315, 0.03013712354004383, 0.04824114218354225, -0.04490666836500168, -0.015548798255622387, 0.07836014777421951, -0.008082475513219833, 0.04751625657081604, -0.032565489411354065, 0.00901123508810997, -0.01926383748650551, -0.038382697850465775, -0.0017805005190894008, -0.08118719607591629, 0.038128986954689026, 0.0347401462495327, 0.006070917937904596, -0.041644684970378876, 0.021003562957048416, 0.019046371802687645, 0.027980588376522064, -0.000777553184889257, 0.012386484071612358, 0.012585828080773354, -0.016445843502879143, -0.01653645560145378, 0.007883132435381413, 0.03390652686357498, 0.01507762260735035, 0.023214465007185936, 0.03176811710000038, -0.004104665480554104, -0.03593621030449867, 0.003812445793300867, 0.008630670607089996, -0.05317036435008049, -0.01048365980386734, -0.04356563091278076, -0.018294302746653557, -0.043529387563467026, 0.03626240789890289, 0.0060165515169501305, 0.07404707372188568, 0.03269234672188759, 0.03852767497301102, 0.034051503986120224, 0.0007401762413792312, -0.05059702321887016, -0.013727523386478424, -0.03334474191069603, 0.06219519302248955, 0.0074663227424025536, 0.028632985427975655, 0.03629865124821663, -0.02187342569231987, -0.03377967327833176, -0.013528179377317429, -0.07647544145584106, -0.0199162345379591, 0.014787668362259865, 0.009147151373326778, 0.008295410312712193, -0.044616714119911194, 0.023649396374821663, -0.0062838527373969555, -0.014669874683022499, 0.0006795803201384842, -0.004541861824691296, 0.03539254516363144, -0.0436018742620945, -0.0021214233711361885, -0.015340393409132957, 0.03220304846763611, -0.014135271310806274, -0.01980750262737274, -0.030173366889357567, 0.015331332571804523, -0.028488008305430412, 0.032311778515577316, -0.023141976445913315, -0.0008834544569253922, 0.00983126275241375, -0.04110101982951164, -0.005391337443143129, 0.011235727928578854, 0.020822342485189438, 0.052626702934503555, 0.0646960511803627, -0.09314781427383423, -0.0015913506504148245, 0.03131506219506264, 0.02645832858979702, 0.05973058193922043, 0.002879155334085226, -0.020949196070432663, 0.05650484189391136, 0.02785373292863369, 0.004152236040681601, 0.05128566175699234, -0.03758532181382179, -0.05219177156686783, 0.028542375192046165, -0.02564283087849617, 0.029883412644267082, 0.04700883850455284, -0.043456897139549255, 0.03809274360537529, -0.04139097407460213, 0.020604876801371574, 0.026240862905979156, -0.0992368534207344, 0.0565410852432251, -0.0016140033258125186, 0.0007311151712201536, 0.007407425902783871, -0.0036334895994514227, 0.0034681251272559166, -0.01915510557591915, -0.03615367412567139, -0.03466765955090523, 0.0002309157425770536, -0.0368785597383976, -0.06654451042413712, -0.012694560922682285, 0.06687070429325104, -0.06639952957630157, 0.06259387731552124, 0.00905654113739729, -0.006437891162931919, 0.021438494324684143, -0.005667699966579676, 0.008064353838562965, -0.012150896713137627, 0.04497915878891945, -0.050270821899175644, 0.0072126127779483795, 0.007122002076357603, 0.01834866963326931, 0.06397116184234619, 0.024627991020679474, 0.01490546204149723, -0.0758955329656601, -0.05751968175172806, -0.030735153704881668, 0.011172301135957241, 0.006582868285477161, 0.041173506528139114, 0.03823772072792053, 0.0388176292181015, 0.019372571259737015, 0.0033186173532158136, -0.019970601424574852, -0.01638241671025753, 0.017551295459270477, 0.05751968175172806, 0.03160501644015312, -0.06186899542808533, 0.03479451313614845, 0.03515695780515671, -0.005441173445433378, 0.06969776004552841, 0.005169341340661049, -0.019771257415413857, 0.02417493797838688, -0.00755693344399333, -0.004077482037246227, 0.018973883241415024, 0.02236272394657135, 0.0023400215432047844, -0.016155889257788658, -0.06596460193395615, -0.017025751993060112, 0.03365281969308853, 0.016346173360943794, -0.0634637400507927, -0.030608298256993294, 0.009939995594322681, -0.033924650400877, -0.009441636502742767, 0.07430078089237213, -0.03129693865776062, -0.049111004918813705, -0.06353623420000076, -0.009568491019308567, 0.028687352314591408, 0.03695105016231537, -0.06513097882270813, -0.023776251822710037, -0.039361294358968735, 0.00681845610961318, -0.019028250128030777, -0.034123994410037994, 0.010193705558776855, 0.018049653619527817, 0.0028836859855800867, 0.04077482223510742, 0.03809274360537529, -0.046392686665058136, -0.07560557872056961, -0.010411171242594719, 0.02350441925227642, 0.04776996746659279, -0.01688077487051487, -0.06498600542545319, -0.002156534930691123, 0.007919376716017723, -0.0007458394393324852, -0.06020175665616989, 0.009559430181980133, 0.02375812828540802, 0.014108087867498398, 0.024120571091771126, -0.0388176292181015, -0.010012484155595303, 0.00021973098046146333, 0.01908261701464653, 0.04048486799001694, -0.012549583800137043, 0.011498499661684036, 0.002881420776247978, 0.021728448569774628, -0.027455046772956848, -0.014633630402386189, 0.04211585968732834, 0.043058209121227264, 0.009192456491291523, 0.023286953568458557, 0.00387134263291955, -0.01826711930334568, 0.1298995167016983, -0.032891687005758286, 0.022163379937410355, -0.029430359601974487, -0.010701125487685204, -0.013963110744953156, -0.04490666836500168, 0.02040553279221058, -0.04726254940032959, -0.011978736147284508, 0.062231436371803284, 0.039759982377290726, 0.0031260696705430746, -0.007815173827111721, -0.05882447585463524, -0.04081106558442116, -0.002845176262781024, 0.10590580105781555, -0.034939490258693695, -0.022815776988863945, -0.0430944561958313, 0.04563155397772789, 0.012477095238864422, -0.027237581089138985, 0.0011275371070951223, 0.0007968079298734665, -0.03588184341788292, -0.014932645484805107, -0.0014916788786649704, 0.04081106558442116, 0.02522602304816246, -0.024519259110093117, -0.08328936994075775, -0.0022913184948265553, -0.06636328250169754, 0.014543019235134125, -0.028071198612451553, 0.036896683275699615, 0.06005677953362465, -0.08916094154119492, -0.04226083680987358, 0.017478806897997856, 0.02056863158941269, -0.04149970784783363, 0.013292591087520123, 0.04581277817487717, -0.03385216370224953, -0.022253990173339844, 0.02703823707997799, 0.03860016539692879, -0.020351165905594826, 0.020441776141524315, -0.00035649651545099914, 0.037730298936367035, 0.0248092133551836, -0.001119608641602099, 0.07295974344015121, 0.0263858400285244, -0.03276483342051506, -0.019390692934393883, -0.018810784444212914, 0.0040865433402359486, 0.05128566175699234, -0.05045204609632492, -0.04374685138463974, -0.04244205728173256, -0.016418661922216415, -0.018330547958612442, 0.000733380438759923, -0.02538912184536457, 0.05987555906176567, -0.013963110744953156, -0.03513883426785469, 0.01680828630924225, 0.008372429758310318, 0.0031781706493347883, 0.003860016353428364, -0.05248172581195831, 0.13649597764015198, -0.09590237587690353, -0.002349082613363862, -0.016029035672545433, -0.059186916798353195, -0.02850612998008728, 0.011081689968705177, -0.026730161160230637, -0.011969675309956074, -0.006089040078222752, 0.015222599729895592, -0.05407647415995598, -0.05741094797849655, 0.07857760787010193, -0.029702192172408104, -0.008902502246201038, 0.027835611253976822, -0.0032076193019747734, 0.02966594696044922, -0.009885628707706928, 0.019716890528798103, -0.003975545056164265, -0.03990495949983597, -0.02589654177427292, 0.009885628707706928, 0.07560557872056961, 0.004482964985072613, -0.031170085072517395, 0.03189497068524361, -0.006505849305540323, 0.012585828080773354, -0.04356563091278076, 0.04291323199868202, 0.025660954415798187, -0.03167750686407089, 0.003613102249801159, -0.03711414709687233, 0.0005592380184680223, -0.01827618107199669, 0.0018665806856006384, 0.044689204543828964, -0.027418801560997963, 0.029883412644267082, -0.01639147847890854, -0.017333829775452614, -0.009532246738672256, 0.0030513156671077013, -0.015440065413713455, 0.05784587934613228, -0.04128224030137062, -0.019227594137191772, -0.002908603986725211, 0.07792521268129349, -0.008897972293198109, -0.026186496019363403, 0.013954049907624722, 0.032474879175424576, -0.013256346806883812, 0.039107583463191986, -0.10706561803817749, -0.015440065413713455, 0.0038486900739371777, -0.0038486900739371777, -0.05875198543071747, -0.02268892154097557, -0.035682499408721924, -0.05896945297718048, -0.04682761803269386, -0.07093006372451782, -0.027998710051178932, 0.042478300631046295, 0.052155524492263794, -0.04334816336631775, 0.03823772072792053, 0.03481263667345047, 0.020423654466867447, -0.02154722809791565, 0.06523971259593964, 0.03377967327833176, 0.014361797831952572, 0.014887340366840363, 0.011643476784229279, -0.003463594475761056, 0.031822483986616135, 0.015122927725315094, 0.034939490258693695, -0.027400679886341095, 0.012141835875809193, -0.01507762260735035, -0.03889011964201927, -0.016355233266949654, -0.001296865870244801, 0.015141050331294537, -0.017732515931129456, 0.0030309283174574375, 0.014425225555896759, 0.05722972750663757, -0.02466423623263836, -0.0234319306910038, 0.0019164165714755654, 0.04331192001700401, 0.02564283087849617, -0.0662183091044426, 0.039687491953372955, 0.09126310795545578, 0.0033503312151879072, 0.03343535214662552, -0.052155524492263794, -0.057302214205265045, 0.05799085646867752, 0.05693977326154709, -0.0479874350130558, -0.03736785799264908, 0.05186557024717331, -0.02899542823433876, -0.008648792281746864, 0.013238225132226944, 0.024464892223477364, 0.016663309186697006, 0.03136942908167839, -0.03267422318458557, 0.03546503186225891, 0.032402392476797104, 0.002774953143671155, 0.03283732384443283, -0.02950284816324711, 0.010211827233433723, -0.0184392798691988, 0.004915631376206875, 0.03348971903324127, 0.023468174040317535, -0.034450192004442215, 0.004761592950671911, 0.0005776432808488607, 0.000410862936405465, 0.03245675563812256, 0.016753921285271645, 0.028723595663905144, -0.02622273936867714, -0.027310069650411606, 0.03744034469127655, -0.06563840061426163, -0.0447254478931427, -0.029520969837903976, -0.002706995001062751, 0.014452408999204636, -0.0012696826597675681, -0.0047706542536616325, -0.05233674868941307, -0.034123994410037994, -0.030825763940811157, 0.053786519914865494, -0.020459899678826332, 0.0334172323346138, 0.02038741111755371, 0.08067978173494339, 0.03225741535425186, 0.0018020205898210406, -0.05563497915863991, -0.0030920905992388725, -0.05722972750663757, 0.009523185901343822, -0.0118428198620677, -0.03532005473971367, 0.010547086596488953, -0.009559430181980133, 0.022417090833187103, -0.04856734350323677, -0.04856734350323677, -0.006881883833557367, -0.015412881970405579, -0.07074884325265884, -0.017469745129346848, 0.04497915878891945, 0.03943378105759621, 0.015032317489385605, -0.0012674173340201378, 0.01711636409163475, -0.031913094222545624, -0.009813140146434307, 0.002752300351858139, 0.023395685479044914, 0.10815294831991196, -0.03638926148414612, -0.03553752228617668, -0.010954835452139378, 0.018375853076577187, 0.036171797662973404, -0.0043946197256445885, -0.09568491578102112, -0.029267260804772377, -0.007325876038521528, 0.05219177156686783, -0.021347884088754654, 0.06842920929193497, -0.030173366889357567, 0.01380907278507948, 0.03416023775935173, -0.026403961703181267, 0.019934356212615967, -0.014977950602769852, 0.019372571259737015, 0.03816523402929306, -0.02596903033554554, -0.007842357270419598, -0.01051990408450365, -0.04733503609895706, 0.018548013642430305, 0.08024484664201736, 0.012658316642045975, 0.028941061347723007, 0.014244004152715206, 0.017397256568074226, -0.01982562430202961, 0.002146341372281313, 0.05534502491354942, -0.03651611879467964, -0.03401526063680649, -0.0019334061071276665, 0.060491710901260376, 0.009332903660833836, -0.0010788338258862495, -0.022888265550136566, 0.012350239790976048, -0.0014146597823128104, 0.0061569977551698685, -0.018647683784365654, 0.02727382443845272, -0.0009967178339138627, 0.022163379937410355, -0.05070575326681137, -0.011643476784229279, -0.027745001018047333, -0.005645047407597303, -0.0425870344042778, -0.02457362599670887, 0.04704508185386658, -0.039687491953372955, 0.012966392561793327, -0.005282604601234198, -0.06176026165485382, -0.04628395289182663, -0.03318164125084877, 0.041644684970378876, 0.021583471447229385, -0.005925940815359354, -0.014026538468897343, 0.013917805626988411, 0.06766808032989502, -0.03325413167476654, 0.05128566175699234, 0.036334894597530365, -0.024428648874163628, -0.013618790544569492, 0.018865149468183517, 0.00983126275241375, 0.013890622183680534, -0.021166661754250526, 0.009151682257652283, 0.031913094222545624, -0.01809495873749256, -0.02138412743806839, 0.012286812998354435, -0.023160098120570183, 0.007552403025329113, 0.07604050636291504, 0.04055735468864441, 0.0011558529222384095, -0.0527716800570488, 0.02531663328409195, 0.0309707410633564, -0.010755491442978382, -0.016753921285271645, 0.05005335807800293, -0.01882890611886978, -0.02229023538529873, -0.020260555669665337, -0.006705192849040031, 0.010882346890866756, -0.027745001018047333, 0.0320943146944046, -0.08278194814920425, 0.0019537934567779303, -0.036081187427043915, -0.023305075243115425, -0.05462013930082321, 0.01490546204149723, 0.02843364141881466, -0.047226302325725555, 0.05349656566977501, -0.005409459583461285, 0.0027772183530032635, -0.01852083019912243, -0.048531096428632736, 0.013736584223806858, -0.033145397901535034, -0.001831469009630382, -0.04396431893110275, -0.04704508185386658, -0.0019220797112211585, 0.04342065379023552, 0.03283732384443283, -0.036896683275699615, 0.014506774954497814, 0.02596903033554554, 0.07027766853570938, -0.04642893001437187, -0.020622998476028442, 0.004396884702146053, -0.10068662464618683, 0.014633630402386189, 0.0005552737857215106, 0.020604876801371574, 0.005395867861807346, -0.03271046653389931, -0.02515353448688984, -0.004041237756609917, -0.014751424081623554, 0.027455046772956848, 0.07248856872320175, -0.007624891586601734, 0.025081045925617218, 0.0053324406035244465, -0.0014758219476789236, -0.018955761566758156, -0.008087006397545338, 0.029774680733680725, 0.031242573633790016, -0.022489579394459724, -0.04425427317619324, -0.002124821301549673, 0.02089483104646206, -0.05161186307668686, 0.009550369344651699, 0.03744034469127655, -0.05150312930345535, 0.005862513091415167, 0.0010946906404569745, 0.0029312565457075834, -0.10315123200416565, -0.019191348925232887, -0.036588605493307114, -0.03022773377597332, 0.009101846255362034, 0.022235868498682976, 0.03318164125084877, -0.010673942044377327, 0.028614863753318787, 0.005540844984352589, -0.052300501614809036, 0.004249642603099346, -0.03579123318195343, 0.018883273005485535, -0.017641905695199966, 0.003662938019260764, 0.015548798255622387, 0.007044983096420765, 0.03376154974102974, 0.014352736994624138, 0.007905784994363785, 0.04700883850455284, 0.004451251123100519, 0.07517064362764359, 0.012477095238864422, 0.0250629223883152, 0.06654451042413712, -0.014198699034750462, -0.10083159804344177, -0.08024484664201736, -0.019227594137191772, -0.008132311515510082, 0.03160501644015312, -0.0017114098882302642, -0.012005919590592384, 0.045522820204496384, 0.031188206747174263, 0.04186214879155159, 0.025443488731980324, -0.049763403832912445, -0.04519662261009216, -0.02359502948820591, -0.019227594137191772, -0.049763403832912445, -0.02785373292863369, -0.026657670736312866, -0.03561000898480415, -0.036733582615852356, -0.02105792984366417, 0.024845456704497337, -0.007914845831692219, 0.03414211794734001, -0.00831806380301714, -0.0006892077508382499, -0.04628395289182663, 0.013954049907624722, 0.010827980004251003, -0.010121216997504234, 0.017805004492402077, -0.0009423514129593968, -0.0331091545522213, -0.014361797831952572, 0.04425427317619324, 0.009024826809763908, -0.02653081715106964, -0.002951643895357847, 0.014796729199588299, -0.010764552280306816, 0.02450113743543625, -0.04708132520318031, 0.054692625999450684, 0.017071058973670006, -0.024863580241799355, 0.03356220945715904, -0.04490666836500168, 0.0657108873128891, 0.025824053213000298, -0.02259831130504608, 0.014579263515770435, -0.017587538808584213, 0.013981233350932598 ]
730,266
mmengine.utils.timer
TimerError
null
class TimerError(Exception): def __init__(self, message): self.message = message super().__init__(message)
(message)
[ 0.006647760979831219, -0.021858738735318184, -0.014569603838026524, 0.06607891619205475, -0.034148864448070526, -0.0343395434319973, -0.03577829897403717, 0.068436399102211, 0.016927087679505348, -0.03775442764163017, 0.059595830738544464, 0.05162198469042778, 0.018651865422725677, 0.00505732512101531, -0.0229334756731987, 0.0330914631485939, 0.052107349038124084, 0.036437008529901505, -0.05481152608990669, -0.06746567040681839, -0.011484071612358093, 0.04454953223466873, 0.0005861210520379245, 0.03300479054450989, -0.02321082539856434, 0.115031398832798, -0.03612498939037323, 0.011804759502410889, 0.03019660897552967, -0.07925309985876083, -0.0520726814866066, -0.01911989599466324, -0.046803008764982224, 0.0330914631485939, -0.03196472302079201, -0.021980080753564835, -0.06753501296043396, -0.03146202489733696, -0.10518543422222137, 0.04378681629896164, -0.012368128634989262, -0.009923971258103848, -0.02863650768995285, -0.00393058592453599, 0.061918649822473526, -0.01647639274597168, 0.005616361275315285, 0.03560495749115944, -0.01879054121673107, -0.007653158623725176, -0.044272180646657944, -0.00463696476072073, 0.012914163991808891, -0.004106097389012575, -0.01948392018675804, 0.12189584225416183, 0.01322618406265974, 0.046699002385139465, -0.04961119219660759, -0.022170759737491608, -0.04257340356707573, 0.029485896229743958, -0.04475754499435425, 0.04219204559922218, 0.0039522540755569935, -0.05651029944419861, -0.019969284534454346, -0.0022903140634298325, 0.0007594655035063624, 0.007913175970315933, 0.12085577100515366, 0.01275815349072218, -0.028445828706026077, -0.0037767428439110518, 0.05345943942666054, -0.031722038984298706, -0.08639489114284515, -0.005287006497383118, 0.0014246749924495816, 0.014682277105748653, 0.0028905190993100405, 0.013815554790198803, -0.01658906601369381, 0.03170470520853996, 0.07911442220211029, -0.05169132351875305, -0.0011624913895502687, -0.07044719904661179, -0.11523941159248352, 0.020471982657909393, -0.039730556309223175, -0.04385615512728691, -0.00918725784868002, 0.022725461050868034, -0.008654222823679447, -0.006158062722533941, 0.0001141635948442854, -0.025273624807596207, -0.000026509516828809865, -0.06895643472671509, 0.03347281739115715, 0.008060518652200699, -0.0007177544757723808, -0.05287006497383118, 0.03525826707482338, 0.0014203413156792521, -0.000963686965405941, -0.06587090343236923, 0.054534174501895905, 0.005607693921774626, -0.016675738617777824, 0.03295278549194336, -0.047565724700689316, 0.034426212310791016, -0.015826351940631866, -0.010868699289858341, 0.004184102173894644, 0.03737306967377663, -0.009091918356716633, 0.02062799409031868, 0.07204196602106094, 0.020177297294139862, -0.026885729283094406, 0.038170453161001205, 0.023418840020895004, 0.015835018828511238, -0.0313580147922039, 0.013945563696324825, 0.05734235420823097, -0.010279327630996704, -0.037546414881944656, 0.0023011479061096907, 0.03245008736848831, -0.02172006294131279, -0.021737398579716682, 0.029416559264063835, 0.02806447073817253, 0.01391089428216219, -0.036783698946237564, -0.011726753786206245, 0.021044019609689713, 0.05377145856618881, 0.015835018828511238, -0.0007681327406316996, 0.06451881676912308, 0.03002326376736164, -0.034651562571525574, 0.03187805041670799, -0.02927788347005844, -0.0011549076298251748, 0.004849311895668507, -0.010574012994766235, -0.01238546334207058, 0.030335284769535065, 0.001102904207073152, -0.02107868902385235, 0.0055513568222522736, 0.03267543390393257, -0.02835915796458721, -0.017213106155395508, -0.02109602279961109, -0.03810111805796623, 0.03030061535537243, -0.05737702175974846, -0.0005067617748863995, 0.03654101490974426, 0.0007692161598242819, 0.007947844453155994, -0.012324792332947254, -0.00005782663356512785, -0.05224602669477463, -0.008155858144164085, -0.015228312462568283, -0.000660334131680429, -0.03387151286005974, 0.007436478044837713, -0.01906789280474186, 0.03997323662042618, -0.023349501192569733, -0.0021765567362308502, 0.0719032883644104, -0.02534296363592148, -0.04593628644943237, 0.005802706349641085, -0.01872120425105095, 0.0040909298695623875, -0.0022989811841398478, 0.03501558676362038, 0.015939025208353996, 0.002040047897025943, 0.021928077563643456, 0.02960723638534546, -0.01612970419228077, 0.034824907779693604, 0.05134463682770729, 0.030907321721315384, -0.029797915369272232, -0.04500022903084755, 0.06181464344263077, 0.0542914904654026, -0.038690488785505295, 0.10782026499509811, 0.0012231620494276285, -0.07530084252357483, 0.032294075936079025, -0.0374424085021019, 0.006361742503941059, -0.028653843328356743, -0.050269898027181625, -0.013607542030513287, -0.04673367366194725, -0.019743936136364937, 0.0213213711977005, 0.0627160295844078, 0.04406416788697243, -0.012350793927907944, 0.0246669203042984, -0.02040264569222927, 0.04423751309514046, 0.018131833523511887, 0.08812833577394485, 0.002040047897025943, 0.0019392913673073053, -0.03030061535537243, -0.013442864641547203, 0.04846711829304695, 0.004909982439130545, -0.056440964341163635, -0.009663954377174377, 0.0051136622205376625, 0.0021137192379683256, 0.0008558883564546704, -0.04142932966351509, -0.01607770100235939, 0.015705009922385216, 0.025308294221758842, 0.01529765035957098, -0.03432220593094826, -0.00459362892434001, -0.060011859983205795, -0.006361742503941059, -0.016511062160134315, -0.011960769072175026, 0.04493089020252228, 0.10255059599876404, -0.032762106508016586, 0.021477380767464638, 0.06576689332723618, -0.11614080518484116, 0.029711244627833366, 0.030161939561367035, 0.008602219633758068, -0.016797080636024475, -0.008814566768705845, -0.0013239184627309442, -0.053216755390167236, -0.0011538241524249315, -0.014612940140068531, 0.00890123937278986, 0.03706105053424835, 0.01963992975652218, 0.017663802951574326, -0.025828327983617783, -0.021477380767464638, -0.021113358438014984, -0.015427658334374428, -0.041568007320165634, 0.03411419317126274, 0.049229834228754044, 0.029659241437911987, 0.10941503942012787, -0.005330342799425125, -0.010591347701847553, 0.02655637450516224, -0.02858450450003147, 0.028272485360503197, -0.06330540776252747, 0.0213213711977005, -0.012541472911834717, 0.006812437903136015, 0.020177297294139862, 0.027908461168408394, 0.018235839903354645, -0.03496358171105385, -0.04038926213979721, -0.015835018828511238, 0.017152436077594757, 0.01417091116309166, -0.026781722903251648, 0.0162423774600029, -0.033108796924352646, -0.038274459540843964, 0.01437892485409975, 0.015375655144453049, 0.0032740437891334295, 0.00019094978051725775, -0.04038926213979721, 0.017273778095841408, 0.016927087679505348, 0.00007502565858885646, 0.05869444087147713, 0.021408043801784515, -0.04274674877524376, 0.016459058970212936, -0.034547556191682816, -0.05789705738425255, -0.005087660625576973, 0.032120730727910995, 0.02322816103696823, -0.03168737143278122, 0.06108659505844116, 0.026192350313067436, 0.0003572521382011473, 0.0065827565267682076, 0.04423751309514046, 0.07876773178577423, 0.007575153838843107, -0.036506347358226776, 0.008012848906219006, 0.06954580545425415, -0.020263969898223877, -0.009993309155106544, 0.019171899184584618, 0.007354139816015959, 0.006712764967232943, 0.012151448056101799, 0.025394966825842857, 0.032068729400634766, -0.01648505963385105, -0.014049570076167583, -0.04163734242320061, -0.054430168122053146, -0.008775563910603523, -0.10629483312368393, -0.03191271796822548, -0.046803008764982224, 0.0014864288968965411, -0.013148179277777672, 0.029416559264063835, 0.008476545102894306, 0.025186952203512192, -0.03466889634728432, -0.030161939561367035, 0.05543556436896324, 0.012870827689766884, -0.04368280991911888, 0.00157743482850492, -0.03002326376736164, 0.06021987274289131, -0.0003902959288097918, -0.002189557533711195, 0.007713829167187214, -0.053840797394514084, 0.003118033753708005, 0.03307412564754486, -0.01155340950936079, -0.021581387147307396, -0.0587637796998024, 0.02102668583393097, -0.05474218726158142, -0.0371997244656086, 0.02253478206694126, -0.009967307560145855, -0.02667771466076374, -0.045832280069589615, 0.008385539054870605, 0.026071010157465935, -0.04572827368974686, 0.007761498913168907, 0.012281456030905247, -0.014196912758052349, -0.020714664831757545, 0.0003577938477974385, 0.03726906329393387, 0.004357446916401386, 0.016840416938066483, -0.015470994636416435, 0.015757013112306595, -0.031375352293252945, -0.002875351579859853, 0.07627157121896744, -0.0391758531332016, -0.027405763044953346, -0.02040264569222927, -0.01160541269928217, 0.011683418415486813, -0.005529689136892557, 0.0028905190993100405, 0.0659402385354042, 0.03288344666361809, -0.03274477273225784, -0.03479023650288582, -0.004758305847644806, -0.0014181744772940874, -0.07013517618179321, -0.004301109816879034, -0.0034062189515680075, 0.005967383738607168, -0.025134949013590813, -0.003703071502968669, -0.009863301180303097, 0.04292009398341179, 0.0006581673515029252, 0.03347281739115715, 0.05047791451215744, 0.011501406319439411, 0.02057598903775215, -0.041568007320165634, 0.016398387029767036, -0.0023206493351608515, -0.04167201370000839, -0.04898715019226074, -0.0019837107975035906, -0.04579761251807213, -0.04628297686576843, -0.06812438368797302, -0.04475754499435425, -0.04614429920911789, 0.01011465024203062, -0.006257735658437014, -0.052696723490953445, 0.01037466712296009, 0.03132334724068642, 0.0005192208918742836, -0.014881623908877373, -0.0037680757232010365, -0.035743631422519684, 0.021460046991705894, 0.009975974448025227, -0.00017930319881998003, -0.04153333604335785, 0.01523698028177023, -0.05682232230901718, -0.025204287841916084, 0.034772902727127075, -0.03295278549194336, -0.0753701776266098, 0.00531734200194478, -0.021113358438014984, 0.046525657176971436, 0.03262343257665634, -0.006834106054157019, 0.05595559999346733, 0.061745304614305496, 0.07571686804294586, -0.04063194617629051, -0.0002604229957796633, 0.011943434365093708, 0.004571960773319006, 0.007518816739320755, 0.00623606750741601, -0.022153424099087715, 0.030352618545293808, -0.012012772262096405, 0.018651865422725677, -0.03146202489733696, -0.068193718791008, 0.016667071729898453, 0.045658934861421585, -0.034200865775346756, -0.05002721771597862, 0.058105070143938065, -0.009005245752632618, -0.0421573780477047, -0.043232113122940063, 0.06181464344263077, 0.06663361936807632, -0.011804759502410889, 0.018339846283197403, 0.023488176986575127, 0.023696189746260643, 0.02489226683974266, -0.014136242680251598, -0.08681091666221619, -0.031774044036865234, -0.001400840119458735, 0.011830761097371578, 0.012090777978301048, 0.049749866127967834, -0.0019176233327016234, 0.03862114995718002, -0.012558807618916035, 0.05425682291388512, -0.0026348361279815435, 0.01750779338181019, 0.014673610217869282, -0.016277046874165535, -0.02568965218961239, 0.0394185334444046, 0.011570744216442108, -0.05311274901032448, 0.012298790737986565, -0.02362685278058052, 0.02402554452419281, -0.023748192936182022, -0.02062799409031868, -0.0882670059800148, 0.029936591163277626, -0.00705945398658514, -0.010478673502802849, 0.00736280670389533, -0.03161803260445595, -0.0001519472716609016, -0.01244613341987133, 0.03354215621948242, -0.050859272480010986, -0.015332319773733616, 0.0525580458343029, 0.0590064600110054, -0.04153333604335785, -0.0005089285550639033, 0.05616361275315285, -0.0230548158288002, 0.013694213703274727, -0.00750581594184041, -0.06438013911247253, -0.06448414921760559, -0.029572568833827972, 0.016467725858092308, 0.01953592337667942, 0.051483310759067535, 0.062196001410484314, 0.039903897792100906, 0.015627004206180573, 0.0016164373373612761, -0.03416619822382927, 0.04160267487168312, -0.01160541269928217, 0.014222914353013039, 0.06711897999048233, -0.0028081806376576424, -0.007536151446402073, 0.0007784250774420798, 0.034478217363357544, 0.027700448408722878, 0.03241541609168053, -0.034200865775346756, -0.03872515633702278, -0.07509282976388931, -0.010418003425002098, -0.006838439963757992, 0.06486550718545914, 0.07020451128482819, -0.05325142294168472, -0.02662571147084236, -0.05640629306435585, -0.052627384662628174, 0.05006188526749611, -0.04430684819817543, 0.017091765999794006, 0.039487872272729874, -0.04118664935231209, 0.0012805823935195804, -0.016979092732071877, -0.05716900900006294, 0.007817836478352547, 0.026400364935398102, 0.02028130367398262, 0.04642165079712868, 0.010478673502802849, 0.016866417601704597, 0.027735117822885513, 0.045832280069589615, -0.028203146532177925, -0.05692632868885994, -0.011900098994374275, -0.005330342799425125, 0.03548361361026764, -0.04274674877524376, 0.026833726093173027, -0.02568965218961239, 0.004844978451728821, -0.0011538241524249315, -0.04011191427707672, -0.016918420791625977, 0.04593628644943237, 0.016606401652097702, 0.05068592727184296, 0.00844621006399393, -0.010487341322004795, 0.0032848778646439314, 0.007336805108934641, -0.06476149708032608, -0.07675693929195404, -0.004184102173894644, -0.007297802716493607, -0.015072302892804146, -0.03345548361539841, -0.020697331055998802, 0.013876225799322128, -0.036679692566394806, 0.01212544646114111, 0.011310727335512638, -0.017135102301836014, 0.02643503248691559, 0.06746567040681839, 0.05224602669477463, -0.02645236812531948, -0.016805747523903847, 0.023349501192569733, -0.01762913353741169, 0.03527560085058212, 0.01993461512029171, 0.017187105491757393, 0.007185128517448902, -0.014820952899754047, 0.03406219184398651, 0.03914118558168411, -0.017551127821207047, 0.005386679898947477, 0.013304188847541809, -0.03099399246275425, 0.012038773857057095, 0.030179273337125778, -0.0004929483402520418, -0.04344012588262558, -0.01872120425105095, 0.0276484452188015, 0.030785979703068733, 0.030352618545293808, -0.0022989811841398478, 0.022656124085187912, -0.042261384427547455, 0.013200182467699051, -0.01204744167625904, 0.03501558676362038, 0.033039458096027374, -0.016233710572123528, -0.06722299009561539, -0.0753701776266098, 0.0013575039338320494, 0.04839777946472168, -0.01000197697430849, -0.13208849728107452, -0.057307686656713486, 0.07696495205163956, -0.002903520129621029, 0.03934919834136963, 0.031375352293252945, 0.03139268606901169, 0.05456884205341339, -0.025134949013590813, -0.03468623012304306, 0.005256671458482742, -0.05491553246974945, -0.020541321486234665, -0.012229452840983868, -0.0458669513463974, 0.03674903139472008, -0.0027496768161654472, 0.027388427406549454, 0.043474797159433365, -0.026417698711156845, 0.0015091804089024663, -0.031999390572309494, -0.022482778877019882, 0.03193005174398422, -0.020489318296313286, 0.05016589164733887, 0.03785843402147293, 0.011518741026520729, 0.016147037968039513, -0.017065763473510742, -0.011484071612358093, 0.02449357509613037, -0.021512050181627274, 0.04898715019226074, 0.004706302657723427, 0.0254123006016016, -0.00590671319514513, 0.02333216741681099, -0.06587090343236923, -0.01590435579419136, -0.0006002052687108517, 0.04181068763136864, 0.035812970250844955, -0.015375655144453049, -0.07020451128482819, 0.0014387591509148479, -0.010279327630996704, 0.027856457978487015, 0.04108264297246933, -0.081333227455616, -0.03979989141225815, -0.03394084796309471, 0.059665169566869736, 0.029052535071969032, 0.01652839593589306, -0.0031700371764600277, -0.06781236082315445, 0.0025568311102688313, 0.00019758562848437577, -0.05935315042734146, 0.04073595255613327, -0.03238074854016304, 0.01906789280474186, -0.03671436011791229, -0.05605960637331009, -0.01606903411448002, 0.0020151296630501747, -0.011588078923523426, -0.008168858475983143, -0.018877213820815086, 0.004935984034091234, 0.015098304487764835, -0.0065307533368468285, 0.00047236369573511183, 0.019570592790842056, 0.058451760560274124, -0.023418840020895004, 0.05841708928346634, 0.008112521842122078, 0.05144864320755005, 0.0015882687876001, -0.027180414646863937, -0.047219038009643555, 0.04510423541069031, 0.0156183373183012, -0.03544894605875015, 0.03106333129107952, -0.025308294221758842, 0.011874096468091011, 0.027007069438695908, 0.003854747861623764, 0.014586937613785267, -0.0013661711709573865, -0.01716977171599865, -0.03671436011791229, 0.02040264569222927, 0.0323634147644043, -0.0009078917209990323, 0.00265867100097239, -0.05716900900006294, 0.02120002917945385, -0.00042550652869977057, -0.014794951304793358, -0.02990192361176014, 0.009239261038601398, 0.057758379727602005, 0.08771231025457382, 0.0050443243235349655, -0.03329947590827942, -0.006504751741886139, -0.033212803304195404, -0.005538356024771929, 0.0226907916367054, -0.027527103200554848, 0.07107123732566833, 0.0008732228307053447, 0.03609032183885574, 0.01889454759657383, -0.03411419317126274, -0.03709571808576584, 0.04867513105273247, -0.033264804631471634, -0.04985387250781059, -0.01443092804402113, -0.015219645574688911, 0.02425089292228222, 0.006595757324248552, 0.01872120425105095, -0.025082945823669434, 0.018755873665213585, 0.029572568833827972, -0.0069077773950994015, 0.06427613645792007, -0.020645327866077423, 0.04597095772624016 ]
730,267
mmengine.utils.timer
__init__
null
def __init__(self, message): self.message = message super().__init__(message)
(self, message)
[ -0.02704630419611931, -0.007251610513776541, 0.003266147105023265, 0.007130226120352745, -0.011760826222598553, -0.046647682785987854, 0.009207252413034439, 0.07437733560800552, 0.06700434535741806, -0.031056495383381844, 0.0007367375656031072, 0.03229731693863869, -0.036109693348407745, 0.02760377526283264, -0.03765622526407242, 0.026794543489813805, 0.07088865339756012, -0.002796343294903636, -0.02623707428574562, -0.008299115113914013, -0.013208451680839062, 0.0031672408804297447, -0.00629402045160532, 0.06815525144338608, -0.007480892818421125, 0.09703581035137177, -0.03700884059071541, 0.012507117353379726, 0.06524201482534409, -0.022298814728856087, -0.036685146391391754, -0.040749285370111465, -0.01780308596789837, 0.07365801930427551, -0.010618911124765873, -0.006478345487266779, -0.07430540770292282, -0.01608571782708168, -0.1059553399682045, 0.04416603967547417, 0.034922823309898376, 0.029456015676259995, -0.03540835902094841, -0.0055522252805531025, 0.03769218921661377, -0.0024838901590555906, 0.005884909071028233, 0.06901843100786209, -0.015465307049453259, 0.03418552130460739, -0.03923872113227844, 0.01272291224449873, 0.003378540277481079, -0.0018410009797662497, -0.0863179937005043, 0.08113891631364822, 0.05017233267426491, 0.025337927043437958, -0.05017233267426491, 0.032225385308265686, -0.05833657830953598, 0.02609321102499962, -0.0038416003808379173, 0.011275287717580795, -0.03711673617362976, -0.02418702095746994, 0.018126778304576874, 0.007251610513776541, 0.013586092740297318, 0.03361006826162338, 0.08207402378320694, -0.004742993973195553, -0.06466656178236008, 0.01859433390200138, 0.04218791797757149, 0.02050052396953106, -0.04787052050232887, 0.0495968796312809, 0.010205304250121117, 0.02422298677265644, 0.03281882032752037, -0.0020433086901903152, -0.04049752652645111, 0.03371796756982803, 0.030552973970770836, -0.04567660391330719, 0.008339577354490757, -0.02749587781727314, -0.06038663163781166, 0.03575003519654274, -0.053409259766340256, 0.012030570767819881, -0.018198709934949875, 0.040137868374586105, -0.0015173085266724229, -0.029941553249955177, -0.002589539857581258, -0.03959837928414345, 0.02909635752439499, 0.03729656711220741, -0.021435635164380074, 0.0791248306632042, -0.013325340114533901, -0.09789898991584778, 0.0023939756210893393, -0.023449720814824104, -0.01374793890863657, -0.04912932589650154, 0.04172036424279213, -0.0014431289164349437, -0.004760976880788803, 0.011796792037785053, -0.05229431763291359, 0.07783006131649017, -0.028053348883986473, -0.00861381646245718, -0.009584893472492695, -0.015051700174808502, 0.06045856326818466, 0.009405064396560192, 0.023863328620791435, 0.02871871553361416, -0.024007191881537437, -0.03754832595586777, 0.026488834992051125, 0.04366251826286316, -0.02715420164167881, -0.06466656178236008, 0.08919525891542435, -0.0694500207901001, -0.009971526451408863, -0.017893001437187195, 0.009112842381000519, -0.059955038130283356, -0.018360557034611702, 0.00872620940208435, 0.009683799929916859, -0.032117486000061035, 0.01985313929617405, 0.06840700656175613, 0.046036262065172195, 0.05074778571724892, 0.04528098180890083, -0.04287127032876015, -0.0035628650803118944, 0.028125280514359474, 0.02674059569835663, -0.0044440277852118015, -0.01393675897270441, -0.0015454067615792155, 0.03387981280684471, -0.0013891801936551929, -0.007701183669269085, 0.006703131832182407, 0.0182886254042387, 0.006932413671165705, -0.02255057543516159, -0.023521652445197105, 0.004313651937991381, -0.0019421548349782825, 0.022154951468110085, -0.030517008155584335, 0.013532144017517567, -0.019727258011698723, 0.021957140415906906, 0.040749285370111465, 0.04556870833039284, -0.026344971731305122, -0.009584893472492695, 0.03772815689444542, -0.057293567806482315, -0.03851940482854843, -0.05639442428946495, -0.0012644237140193582, -0.004466506652534008, 0.03418552130460739, -0.007220140658318996, 0.03467106074094772, -0.01787501759827137, -0.005588191095739603, 0.0033245915547013283, -0.012381237000226974, -0.002839052816852927, 0.04114491119980812, 0.05081971734762192, 0.027549825608730316, 0.05639442428946495, 0.03765622526407242, 0.01688595674932003, -0.012525100260972977, -0.012543083168566227, -0.0038281132001429796, 0.003538138698786497, 0.019637344405055046, 0.01688595674932003, 0.04107297956943512, 0.009818672202527523, -0.06110594794154167, -0.03902292624115944, 0.04114491119980812, -0.012561066076159477, 0.025913381949067116, -0.015726059675216675, -0.060638390481472015, 0.014350366778671741, 0.024348868057131767, -0.0015611418057233095, 0.0215974822640419, -0.015726059675216675, -0.06383934617042542, -0.04484939202666283, 0.007795593701303005, 0.05783305689692497, 0.0038348566740751266, 0.03548029065132141, -0.08020380139350891, 0.01560917031019926, -0.015096657909452915, 0.014952793717384338, 0.02722613327205181, 0.13753333687782288, 0.01304660551249981, -0.021399669349193573, -0.02361156791448593, -0.05499175563454628, 0.04247564449906349, 0.03981417417526245, -0.0693061575293541, -0.027100253850221634, 0.007395473774522543, -0.023935260251164436, -0.012462160550057888, -0.014197511598467827, 0.04168439656496048, -0.04902142658829689, 0.0087082264944911, -0.016103699803352356, -0.004381087608635426, -0.09156900644302368, -0.04175632819533348, 0.020824216306209564, -0.025949347764253616, 0.004990259185433388, 0.05074778571724892, 0.07200359553098679, -0.038843099027872086, 0.009171286597847939, 0.042799338698387146, -0.034329384565353394, 0.02217293530702591, -0.015878913924098015, -0.03166791424155235, -0.04851790517568588, -0.006042259745299816, -0.02095009572803974, -0.058048851788043976, 0.0009817547397688031, -0.010753783397376537, 0.014440281316637993, 0.014826913364231586, -0.02418702095746994, 0.007683200761675835, -0.02787351794540882, 0.0348329059779644, 0.028125280514359474, -0.009962535463273525, -0.04891353100538254, 0.01488985400646925, -0.010511013679206371, 0.03517458215355873, 0.16256555914878845, 0.0048508914187550545, 0.025697585195302963, 0.06096208468079567, -0.04038962721824646, -0.04693540930747986, -0.07408960908651352, 0.011068484745919704, -0.04754683002829552, 0.007449422497302294, 0.0299235712736845, -0.0002452982007525861, 0.034095607697963715, 0.001946650561876595, -0.004257455002516508, -0.025050200521945953, 0.03562415391206741, 0.014539186842739582, -0.053948745131492615, -0.029294168576598167, -0.025697585195302963, 0.03042709268629551, -0.00594335375353694, 0.06743593513965607, 0.00910834688693285, -0.018387531861662865, -0.0008148508495651186, 0.09739547222852707, 0.007593286223709583, -0.04254757612943649, 0.02871871553361416, -0.007773115299642086, -0.0108167240396142, 0.006262550130486488, -0.033681999891996384, -0.006698635872453451, -0.01437734067440033, 0.05617862939834595, 0.021399669349193573, -0.03503071889281273, 0.053409259766340256, 0.08768469840288162, -0.0009817547397688031, 0.07034916430711746, 0.0035538736265152693, 0.09358309209346771, 0.05963134765625, -0.0498126745223999, 0.013559117913246155, 0.06340775638818741, -0.004662070889025927, -0.05189869552850723, 0.0038348566740751266, 0.032692939043045044, -0.015771016478538513, 0.036109693348407745, 0.01207552757114172, 0.015735050663352013, 0.023359807208180428, 0.01212947629392147, -0.006374943535774946, 0.007112243212759495, -0.0003245354164391756, -0.10818521678447723, -0.06178929656744003, -0.007898995652794838, -0.025661619380116463, -0.006231080275028944, 0.008627303875982761, -0.04035366326570511, 0.01205754466354847, -0.024097107350826263, -0.02514011599123478, 0.025068184360861778, 0.00980968028306961, -0.05477596074342728, -0.02114790864288807, -0.025463808327913284, 0.02087816409766674, -0.04761876165866852, -0.015914879739284515, -0.025643637403845787, 0.012713921256363392, -0.004522703122347593, 0.030247263610363007, -0.04546080902218819, -0.04574853554368019, 0.0016117187915369868, 0.02776562049984932, -0.007386482320725918, 0.013073579408228397, 0.007687696255743504, -0.012857784517109394, -0.014458264224231243, -0.056682150810956955, 0.02555372193455696, 0.006460362579673529, 0.012219390831887722, 0.021723361685872078, 0.0037314549554139376, 0.03913082554936409, -0.04056945815682411, -0.023323841392993927, 0.0299235712736845, -0.007480892818421125, -0.020896147936582565, -0.0565023198723793, 0.013684998266398907, -0.02544582448899746, -0.0018634796142578125, 0.03632548823952675, -0.018162744119763374, -0.01386482734233141, 0.015986811369657516, -0.032531093806028366, 0.012435185723006725, 0.0332324281334877, 0.03837554156780243, 0.05344522371888161, 0.051934659481048584, -0.03783605247735977, -0.03524651378393173, 0.00021326613205019385, -0.03371796756982803, -0.05495578795671463, -0.02609321102499962, 0.02213696949183941, 0.004394575022161007, -0.029581895098090172, -0.03267495706677437, 0.01393675897270441, -0.0007833807612769306, 0.014970776624977589, 0.004819421097636223, 0.03418552130460739, 0.021957140415906906, -0.0018297616625204682, 0.06434287130832672, 0.030301213264465332, 0.004560916684567928, -0.0014206502819433808, -0.04225984960794449, -0.019151804968714714, -0.05409260839223862, -0.012219390831887722, -0.04823017865419388, 0.009076876565814018, -0.00011766165698645636, 0.01038513332605362, -0.016858983784914017, -0.04848194122314453, 0.03319646045565605, 0.023737449198961258, 0.012920725159347057, -0.014107597060501575, 0.036757078021764755, -0.03693690896034241, -0.007188670337200165, 0.07552824169397354, -0.02472650818526745, -0.07351415604352951, 0.03783605247735977, -0.04556870833039284, -0.001826389809139073, 0.020284729078412056, -0.002289450028911233, -0.019745241850614548, -0.03191967308521271, -0.0494530163705349, 0.07732653617858887, -0.016912931576371193, -0.04287127032876015, 0.05319346487522125, 0.034131571650505066, 0.03690094128251076, -0.021507566794753075, -0.03974224254488945, 0.01783006079494953, -0.01095159538090229, -0.027298064902424812, 0.029222236946225166, -0.005974823608994484, 0.016912931576371193, -0.019079873338341713, -0.050603922456502914, -0.04650381952524185, -0.04017383232712746, -0.002701933030039072, 0.05150306969881058, -0.022982165217399597, -0.038843099027872086, 0.04218791797757149, -0.06793945282697678, 0.00853738933801651, -0.03718866780400276, 0.07869324088096619, 0.005992806516587734, 0.0010963958920910954, -0.05369698628783226, 0.012462160550057888, 0.014044657349586487, 0.012893750332295895, -0.03262100741267204, -0.054704029113054276, -0.02388131245970726, 0.0007417952874675393, 0.009414056316018105, -0.060710322111845016, -0.03533642739057541, 0.011509065516293049, -0.02111194282770157, -0.0298516396433115, 0.007606773171573877, 0.009935560636222363, 0.0031110444106161594, -0.021273788064718246, 0.022712422534823418, -0.01961936056613922, 0.054632097482681274, 0.0032796342857182026, -0.02814326249063015, 0.07567210495471954, -0.031200358644127846, -0.007067285943776369, 0.019331634044647217, 0.0215974822640419, -0.07132024317979813, 0.006361456122249365, -0.005179079715162516, -0.05822867900133133, -0.025841450318694115, -0.02064438723027706, -0.04697137326002121, -0.018953992053866386, 0.0013060092460364103, -0.03562415391206741, -0.004174284171313047, 0.03765622526407242, 0.05020830035209656, -0.015213546343147755, -0.0046530794352293015, 0.05894799530506134, -0.0626884400844574, -0.004747489467263222, 0.016229581087827682, -0.04488535597920418, -0.07437733560800552, -0.016175633296370506, -0.019007941707968712, -0.011005544103682041, 0.06786752492189407, 0.03765622526407242, -0.0008991457871161401, -0.022065037861466408, 0.007256106473505497, -0.009584893472492695, -0.006905439309775829, -0.007193166296929121, 0.04024576395750046, 0.0497407428920269, -0.0031425144989043474, -0.01496178563684225, -0.0053679002448916435, 0.0632638931274414, -0.0006709875306114554, 0.07552824169397354, -0.03916678950190544, 0.0026322491466999054, -0.07319046556949615, 0.007660721894353628, 0.000798553810454905, -0.009566910564899445, -0.006100703962147236, -0.05024426430463791, -0.0561426617205143, -0.024582644924521446, -0.03445526584982872, 0.04546080902218819, -0.028197212144732475, -0.03560617193579674, -0.012219390831887722, -0.05513561889529228, -0.04700734093785286, 0.01209351047873497, -0.02494230307638645, -0.03377191349864006, -0.0347609743475914, -0.01279484387487173, 0.04157650098204613, 0.025499774143099785, -0.0056870970875024796, 0.029527947306632996, -0.00489584868773818, 0.005385883152484894, -0.006213097367435694, 0.02924022078514099, -0.02875468134880066, 0.038051847368478775, -0.05215045437216759, 0.013550126925110817, 0.001629701699130237, -0.01538438443094492, -0.02255057543516159, 0.06491832435131073, 0.006905439309775829, 0.026722611859440804, 0.025841450318694115, 0.06761576235294342, 0.013487186282873154, 0.003538138698786497, -0.009459013119339943, 0.015735050663352013, -0.03369998186826706, -0.028952494263648987, -0.039490483701229095, -0.0051700882613658905, -0.00002086299173242878, -0.007606773171573877, 0.017713172361254692, -0.03425745293498039, -0.020518505945801735, -0.006734601687639952, 0.0023962233681231737, -0.0011902442201972008, 0.0031425144989043474, 0.005655626766383648, 0.056754082441329956, -0.050136368721723557, -0.005498276557773352, -0.0021984113845974207, -0.03267495706677437, 0.0629042387008667, -0.016688145697116852, 0.05074778571724892, 0.030642887577414513, -0.03190169110894203, -0.013972725719213486, 0.05959537997841835, -0.005376891698688269, 0.03693690896034241, 0.01194065622985363, -0.010340176522731781, -0.027513859793543816, 0.008739696815609932, -0.01764124073088169, -0.017578300088644028, -0.020176831632852554, 0.037368498742580414, 0.04772665724158287, 0.02871871553361416, 0.03057095594704151, -0.013658024370670319, -0.02111194282770157, 0.05758129432797432, -0.049956537783145905, 0.044741492718458176, 0.022011088207364082, -0.07488086074590683, -0.0663929209113121, -0.015096657909452915, 0.046072229743003845, 0.024816423654556274, 0.006217592861503363, -0.052582044154405594, 0.01765023171901703, -0.008069833740592003, -0.009130825288593769, -0.009031918831169605, 0.015564213506877422, 0.021957140415906906, 0.0019590137526392937, -0.04420200735330582, -0.014026674441993237, -0.05513561889529228, -0.07631949335336685, 0.016175633296370506, -0.006181627046316862, -0.06340775638818741, 0.006873969454318285, -0.02555372193455696, 0.03114640899002552, 0.0565023198723793, -0.006662670057266951, 0.059235721826553345, 0.021435635164380074, -0.004601378459483385, -0.01934961788356304, 0.06006293743848801, 0.03298066556453705, -0.002931215101853013, 0.0020140865817666054, 0.014763973653316498, 0.03434736654162407, 0.014701033011078835, 0.002351266099140048, 0.02681252732872963, 0.049345120787620544, -0.022190917283296585, -0.008245166391134262, -0.014188520610332489, 0.03562415391206741, 0.035120632499456406, -0.0132893742993474, -0.005120635032653809, 0.02452869713306427, -0.013496178202331066, 0.007548328954726458, -0.029024425894021988, 0.04251161217689514, -0.007143713068217039, 0.0026007790584117174, 0.04247564449906349, -0.019313650205731392, -0.03909485787153244, 0.026362953707575798, 0.046072229743003845, -0.0038258652202785015, 0.04682750999927521, -0.010618911124765873, -0.08840401470661163, -0.014557169750332832, -0.042619507759809494, -0.05477596074342728, -0.01764124073088169, -0.015240521170198917, 0.02711823582649231, -0.07337029278278351, -0.10257454961538315, -0.007229132112115622, -0.025301961228251457, 0.03823167830705643, 0.0033335830084979534, -0.0060737296007573605, -0.011068484745919704, -0.01795594021677971, -0.008802637457847595, -0.025301961228251457, -0.010555971413850784, 0.014808930456638336, 0.003915779758244753, 0.040065936744213104, 0.011913681402802467, 0.018953992053866386, -0.06466656178236008, 0.013001647777855396, 0.013109545223414898, 0.035498276352882385, 0.029869621619582176, -0.056646183133125305, 0.007220140658318996, -0.03833957388997078, -0.007660721894353628, 0.04977671056985855, 0.011266296729445457, 0.09387081861495972, -0.020896147936582565, -0.03995803743600845, -0.038015883415937424, 0.00513412244617939, -0.0215615164488554, 0.007130226120352745, -0.0012385733425617218, -0.08236175030469894, 0.04862580448389053, 0.03107447735965252, -0.0431230328977108, 0.024097107350826263, 0.009521953761577606, 0.03463509678840637, 0.06089015305042267, -0.0215615164488554, -0.06549377739429474, -0.0023400268983095884, 0.0029739246238023043, -0.028574852272868156, 0.024978268891572952, 0.019007941707968712, 0.020518505945801735, -0.011661920696496964, 0.033106546849012375, 0.0022152704186737537, -0.0264708511531353, -0.03118237480521202, 0.023755431175231934, -0.046144161373376846, -0.02220890112221241, -0.02582346647977829, 0.007467405404895544, 0.014970776624977589, -0.0015903640305623412, -0.018432488664984703, -0.014835905283689499, 0.0433388277888298, 0.00655027711763978, 0.04369848594069481, 0.08293720334768295, 0.02871871553361416, 0.04441780224442482 ]
730,268
mmengine.fileio.handlers.yaml_handler
YamlHandler
null
class YamlHandler(BaseFileHandler): def load_from_fileobj(self, file, **kwargs): kwargs.setdefault('Loader', Loader) return yaml.load(file, **kwargs) def dump_to_fileobj(self, obj, file, **kwargs): kwargs.setdefault('Dumper', Dumper) yaml.dump(obj, file, **kwargs) def dump_to_str(self, obj, **kwargs): kwargs.setdefault('Dumper', Dumper) return yaml.dump(obj, **kwargs)
()
[ -0.028356919065117836, -0.03555726259946823, -0.01544963102787733, -0.04305984824895859, 0.00828484259545803, -0.011182759888470173, 0.019183143973350525, 0.0693366676568985, -0.04526439681649208, 0.004395766649395227, -0.023912260308861732, -0.04978017136454582, -0.01757417805492878, 0.012293924577534199, 0.0092448890209198, 0.05187804996967316, -0.033974964171648026, 0.010062705725431442, 0.03102371282875538, 0.006733656860888004, 0.013991783373057842, -0.0001291728694923222, 0.037690699100494385, 0.004049083683639765, -0.018311990424990654, 0.016765249893069267, -0.02264997735619545, -0.0231122225522995, 0.021867716684937477, -0.009564904496073723, -0.0277346670627594, -0.07143454253673553, 0.04238425940275192, 0.024641184136271477, -0.003355716820806265, -0.05322922393679619, -0.03708622604608536, 0.050135742872953415, -0.07573696970939636, 0.030241454020142555, 0.00487134512513876, 0.04355764761567116, 0.011502775363624096, 0.009991590864956379, 0.021938832476735115, 0.08825313299894333, 0.00015278511273209006, 0.030721476301550865, -0.012445042841136456, -0.04857122153043747, 0.013209523633122444, -0.027645772323012352, -0.013511760160326958, 0.04558441415429115, 0.010427167639136314, 0.054722629487514496, -0.010773851536214352, 0.03744179755449295, -0.0020689882803708315, 0.0013045071391388774, 0.0011267208028584719, 0.023378901183605194, 0.08668860793113708, -0.020943228155374527, 0.008018163032829762, -0.003713511861860752, -0.045015495270490646, 0.0013811774551868439, -0.02860581874847412, 0.011529442854225636, -0.014196237549185753, -0.05465151369571686, 0.0216365959495306, 0.03009922429919243, 0.02350335195660591, -0.006040290463715792, -0.09017322212457657, 0.027965787798166275, 0.04121086746454239, 0.04394877701997757, -0.024694519117474556, -0.05717607960104942, -0.01843644119799137, 0.011013862676918507, -0.010960526764392853, -0.07079451531171799, 0.03297936171293259, -0.006231410428881645, 0.011618335731327534, 0.03475722670555115, -0.03569949418306351, 0.015849649906158447, -0.0268101766705513, 0.0386507473886013, -0.04103308171033859, -0.036730654537677765, -0.013236192055046558, 0.042242031544446945, 0.011351656168699265, -0.014836268499493599, -0.05930951610207558, -0.024641184136271477, 0.019254257902503014, 0.019112030044198036, -0.024570070207118988, -0.06432309001684189, 0.03043701872229576, -0.005511376075446606, -0.03461499512195587, 0.029690315946936607, -0.011876125819981098, -0.06236744299530983, -0.04949571192264557, 0.06162073835730553, 0.0025734570808708668, -0.06389640271663666, -0.009467121213674545, -0.009760469198226929, -0.007849265821278095, -0.03338827192783356, -0.04153088480234146, -0.012356149032711983, -0.0340283028781414, -0.006235855165868998, 0.06645652651786804, -0.0030623693019151688, -0.01939648762345314, -0.06403863430023193, 0.09095548093318939, -0.004684669431298971, 0.002166770864278078, 0.02857026271522045, -0.046900030225515366, -0.005631381645798683, 0.03635730221867561, -0.043166518211364746, 0.01360065396875143, 0.03425942361354828, 0.023005550727248192, 0.042668718844652176, 0.010933858342468739, -0.0425264872610569, 0.037264011800289154, -0.030365902930498123, 0.009653797373175621, -0.03269490599632263, 0.024161161854863167, 0.010693847201764584, -0.01086274441331625, 0.05628715083003044, 0.025992359966039658, 0.00034890565439127386, -0.014089565724134445, 0.06496312469244003, 0.03422386571764946, -0.02087211422622204, -0.03001033142209053, 0.009591571986675262, -0.006640319246798754, -0.042739830911159515, -0.00784037634730339, -0.030241454020142555, 0.010542728938162327, -0.021956611424684525, 0.00904932338744402, 0.02951253019273281, 0.06926555186510086, -0.008387070149183273, 0.07196789979934692, 0.013111741282045841, -0.08889316022396088, -0.041388656944036484, -0.09685798734426498, 0.08867982029914856, 0.059771761298179626, 0.0369795560836792, 0.01037383172661066, 0.005026908125728369, 0.0067514353431761265, 0.004738005343824625, -0.022881099954247475, 0.01268505398184061, -0.0016056327149271965, -0.017183048650622368, 0.036303967237472534, 0.044659923762083054, 0.014134012162685394, 0.08206616342067719, -0.016898589208722115, 0.007680369075387716, 0.03093481995165348, -0.028463590890169144, -0.04081973806023598, -0.03562837839126587, 0.04430435225367546, 0.022792207077145576, -0.05415371432900429, -0.037584029138088226, 0.03610840067267418, 0.0047557842917740345, -0.012062801979482174, -0.01662302017211914, -0.000536692445166409, -0.039539676159620285, 0.005449150688946247, 0.03655286878347397, 0.017885303124785423, 0.05735386908054352, -0.1029738336801529, -0.000618363032117486, -0.010258270427584648, -0.03047257475554943, -0.04611777141690254, -0.0039290776476264, 0.06883886456489563, -0.035326141864061356, -0.019769838079810143, 0.033441606909036636, -0.08697307109832764, 0.023787809535861015, 0.08163947612047195, 0.09828028082847595, -0.06016289070248604, 0.015254066325724125, 0.011573889292776585, -0.010178267024457455, 0.046402230858802795, -0.06407418847084045, 0.008471517823636532, 0.02540566585958004, -0.00025153986643999815, -0.0021501032169908285, -0.04124642536044121, 0.06770103424787521, 0.03747735545039177, 0.01268505398184061, 0.01576964743435383, -0.013093962334096432, -0.008213727734982967, 0.03591283783316612, 0.04153088480234146, 0.007564807776361704, -0.0027601325418800116, -0.03285491093993187, 0.013787329196929932, -0.022098839282989502, -0.0070981187745928764, 0.0007939270581118762, -0.03274824097752571, 0.02120990864932537, 0.07644812017679214, 0.01039161067456007, -0.015636306256055832, 0.042704273015260696, -0.027147971093654633, -0.04238425940275192, 0.005786944646388292, -0.0478956364095211, 0.013716214336454868, -0.05692718178033829, 0.01408067625015974, 0.00853374321013689, 0.025761237367987633, 0.044659923762083054, 0.0027423540595918894, -0.005729163996875286, 0.013307305984199047, -0.08220839500427246, 0.01663191057741642, 0.008160391822457314, 0.07744371891021729, 0.04814453423023224, 0.0007678146939724684, 0.01715637929737568, -0.06798548996448517, -0.007813708856701851, 0.0022956659086048603, -0.02176104485988617, 0.06791437417268753, 0.02261441946029663, 0.024658963084220886, -0.04537107050418854, 0.011422771029174328, -0.018276434391736984, 0.08185282349586487, 0.012818394228816032, -0.05212694779038429, 0.016436345875263214, 0.016471901908516884, -0.015974100679159164, 0.0360550656914711, 0.01454292144626379, -0.049637939780950546, -0.00786260049790144, -0.05127357691526413, -0.012125027365982533, -0.116485595703125, 0.0008900427492335439, 0.05497153103351593, -0.03292602673172951, -0.058420583605766296, -0.06261634081602097, 0.04938903823494911, 0.008435960859060287, -0.02174326777458191, 0.0031957090832293034, 0.05216250568628311, -0.01806309074163437, -0.020018739625811577, -0.006418086122721434, 0.04679336026310921, 0.018223097547888756, 0.0066536529920995235, 0.017458617687225342, 0.00271124136634171, 0.062189653515815735, -0.01702303998172283, 0.05603824928402901, 0.012125027365982533, 0.025619009509682655, -0.07907935231924057, 0.010924969799816608, -0.008493741042912006, 0.008213727734982967, 0.1355442851781845, -0.01891646534204483, 0.06247411295771599, 0.006675876211374998, 0.01845422014594078, 0.007369243074208498, -0.004264649469405413, -0.026436826214194298, 0.012240588665008545, 0.02362780272960663, -0.017716407775878906, -0.01569853164255619, -0.03289046883583069, 0.008502630516886711, 0.022329961881041527, -0.02497897855937481, 0.039930809289216995, 0.002917917910963297, -0.00540914898738265, -0.03333493694663048, 0.006515868473798037, -0.020907672122120857, 0.022792207077145576, -0.008778199553489685, 0.0262590404599905, 0.020054297521710396, -0.010276049375534058, -0.011120534501969814, 0.001527851214632392, -0.02168993093073368, -0.03273046016693115, -0.052980322390794754, -0.010836075991392136, -0.04014415293931961, -0.00925377756357193, -0.03591283783316612, 0.0035890613216906786, -0.029939215630292892, -0.07065228372812271, -0.006080292165279388, 0.007929270155727863, 0.055255990475416183, -0.011867237277328968, -0.02538788691163063, 0.05418927222490311, 0.01199168711900711, 0.023343343287706375, 0.039112988859415054, -0.01106719858944416, -0.031041491776704788, 0.005822502076625824, 0.015227398835122585, 0.026063473895192146, 0.032108210027217865, -0.04309540614485741, 0.013956226408481598, 0.05027797073125839, 0.06322081387042999, 0.0015478521818295121, -0.006271412596106529, -0.0003766847657971084, -0.04757561907172203, 0.018383106216788292, 0.04988684132695198, -0.037584029138088226, 0.0011211649980396032, 0.04519328474998474, 0.00828484259545803, -0.03617951646447182, -0.018809793516993523, 0.006324748508632183, -0.06016289070248604, -0.03287269175052643, 0.058385029435157776, 0.015147394500672817, 0.013307305984199047, 0.04981572553515434, -0.03607284277677536, -0.04633111506700516, 0.0022601087111979723, -0.022792207077145576, 0.03971746563911438, 0.018294213339686394, 0.07758595049381256, 0.028783606365323067, 0.008555966429412365, 0.1078096255660057, -0.003093481995165348, -0.03708622604608536, -0.04718448966741562, 0.02032097615301609, -0.03367272764444351, 0.04480215162038803, 0.023396680131554604, -0.02766355127096176, -0.00738702155649662, -0.014045119285583496, 0.07424356788396835, 0.01750306412577629, -0.027556879445910454, 0.026952406391501427, -0.03425942361354828, -0.07079451531171799, -0.0350416824221611, 0.011031641624867916, 0.005760276690125465, -0.0295836441218853, -0.0027445764280855656, -0.034899454563856125, -0.04540662467479706, 0.055682674050331116, -0.07075895369052887, 0.006555870641022921, -0.025565672665834427, 0.023414459079504013, 0.045051053166389465, -0.0028312471695244312, -0.012365038506686687, 0.058882828801870346, 0.0017356389435008168, 0.012818394228816032, -0.004157977644354105, -0.05468707159161568, 0.05212694779038429, 0.08000384271144867, 0.010533839464187622, -0.040890853852033615, 0.0020767664536833763, 0.021956611424684525, -0.03321048617362976, -0.003240155754610896, -0.06240299716591835, 0.07068783789873123, -0.031094826757907867, 0.02314777858555317, 0.013956226408481598, -0.0003402941219974309, -0.0591672882437706, 0.02407226711511612, -0.01760084554553032, -0.02953030727803707, -0.02910361997783184, 0.015067391097545624, 0.024730077013373375, -0.022507747635245323, -0.009093770757317543, 0.020978786051273346, 0.013440646231174469, -0.032961584627628326, 0.02263219840824604, 0.023005550727248192, 0.0277346670627594, 0.09493789821863174, -0.03591283783316612, -0.03552170842885971, -0.05401148274540901, -0.026241261512041092, -0.026632390916347504, -0.013707325793802738, 0.01658746413886547, 0.0010217158123850822, -0.035752829164266586, 0.046935588121414185, -0.029796987771987915, -0.0049957954324781895, 0.009440453723073006, 0.009262667037546635, 0.03552170842885971, -0.04380654916167259, -0.04949571192264557, 0.017858635634183884, -0.00440021138638258, -0.006813660729676485, 0.02777022309601307, -0.04803786426782608, -0.051060233265161514, 0.02398337423801422, -0.0037090671248733997, -0.014418470673263073, -0.02263219840824604, 0.0037268458399921656, 0.0009011544170789421, 0.01664968952536583, 0.0202498622238636, -0.04572664201259613, -0.007133676204830408, -0.02777022309601307, 0.008831535466015339, -0.01623189076781273, 0.024285610765218735, -0.02083655633032322, 0.027859115973114967, -0.009813805110752583, 0.07737261056900024, 0.02410782501101494, 0.0235744658857584, 0.02400115318596363, -0.04238425940275192, 0.037690699100494385, 0.012489489279687405, -0.024303389713168144, 0.0004336319398134947, 0.0009267111890949309, 0.028428032994270325, 0.009062658064067364, 0.04544218257069588, 0.028908055275678635, -0.037726256996393204, 0.01656079664826393, -0.03662398084998131, -0.004193535074591637, 0.08476851880550385, -0.034454990178346634, -0.022098839282989502, -0.03466833382844925, -0.040037479251623154, 0.0161341093480587, -0.014089565724134445, -0.034383874386548996, 0.005182471126317978, -0.03157484903931618, -0.037192899733781815, -0.03153929486870766, 0.016854142770171165, 0.02405449002981186, -0.029761429876089096, -0.010560507886111736, -0.03783293068408966, 0.048713453114032745, 0.021583259105682373, -0.02766355127096176, -0.03797515854239464, 0.0032801576890051365, -0.018685342743992805, 0.02396559529006481, 0.011733897030353546, -0.03008144535124302, 0.02869471162557602, -0.05458040162920952, 0.05461595952510834, 0.04469548165798187, 0.01749417372047901, 0.008902650326490402, 0.046971146017313004, -0.05212694779038429, 0.005386925768107176, -0.014178459532558918, 0.06446532160043716, 0.00773370498791337, -0.06051846221089363, -0.01713860221207142, 0.06371861696243286, 0.01616966538131237, 0.027894673869013786, 0.006640319246798754, -0.035806164145469666, -0.03175263851881027, -0.004782452248036861, 0.0002841803361661732, -0.016880812123417854, -0.07139898836612701, -0.06848329305648804, 0.01203613355755806, 0.04010859504342079, 0.00036973998066969216, 0.07843932509422302, -0.01660524308681488, -0.03555726259946823, -0.01227614562958479, -0.026596833020448685, 0.036321744322776794, -0.023770030587911606, 0.02917473576962948, -0.03427720442414284, 0.03246378153562546, -0.03616173937916756, -0.020000960677862167, 0.012516156770288944, -0.031610406935214996, 0.009929366409778595, 0.0007800374878570437, 0.011253873817622662, 0.04771784693002701, -0.004293539561331272, -0.038081828504800797, 0.03943300619721413, -0.0499223992228508, 0.001120609464123845, 0.08775532990694046, 0.011796122416853905, 0.016507459804415703, -0.004449102561920881, 0.008640415035188198, -0.012169473804533482, -0.0012611717684194446, -0.04490882530808449, 0.017840856686234474, 0.00540914898738265, -0.030170338228344917, 0.020569877699017525, -0.03500612825155258, 0.01943204551935196, -0.010738293640315533, -0.03002811037003994, 0.004591331817209721, -0.07445690780878067, -0.00853818841278553, -0.04401989281177521, 0.019023137167096138, -0.04217091575264931, 0.00874264258891344, 0.0030712587758898735, 0.04263316094875336, 0.01795641891658306, -0.02224106900393963, -0.020089853554964066, 0.04803786426782608, -0.11435215920209885, -0.023805588483810425, -0.027521323412656784, 0.0014134012162685394, 0.029903659597039223, -0.014196237549185753, -0.022916655987501144, 0.02682795561850071, -0.05006462708115578, 0.044553253799676895, -0.002875693840906024, -0.06873219460248947, 0.04394877701997757, 0.0031890422105789185, 0.01900535821914673, 0.08206616342067719, -0.01243615336716175, 0.022863321006298065, 0.007307017687708139, -0.042704273015260696, -0.01616077683866024, 0.004324652254581451, 0.005089133512228727, 0.06094514951109886, -0.019983181729912758, -0.01128943171352148, 0.04426879435777664, -0.019734282046556473, 0.004653556738048792, 0.023307787254452705, 0.013289527967572212, 0.015636306256055832, -0.000405019469326362, -0.0268101766705513, -0.064358651638031, -0.020996564999222755, -0.002353446325287223, 0.05180693417787552, -0.003446832299232483, -0.004342430736869574, 0.038615189492702484, -0.03184153139591217, 0.0049246810376644135, -0.018667563796043396, 0.05810056999325752, 0.04010859504342079, -0.009973812848329544, -0.0008489296888001263, -0.030294789001345634, 0.001902313670143485, 0.029228070750832558, -0.03701511025428772, -0.016303006559610367, -0.04679336026310921, -0.03737068548798561, 0.05027797073125839, -0.045975543558597565, 0.02261441946029663, 0.022756649181246758, -0.003211265429854393, -0.03585950285196304, 0.02627681754529476, -0.02405449002981186, -0.0075559187680482864, -0.04846455156803131, -0.04217091575264931, 0.032570455223321915, 0.008778199553489685, 0.011049419641494751, -0.00831595528870821, 0.04473103955388069, 0.04337986186146736, -0.014400691725313663, 0.032552674412727356, 0.0001887590769911185, -0.03786848485469818, 0.03008144535124302, -0.01337842084467411, -0.011404992081224918, -0.04853566735982895, -0.024392282590270042, -0.026027917861938477, -0.031254835426807404, 0.03290824964642525, -0.01707637682557106, -0.040393050760030746, -0.005520265083760023, 0.006733656860888004, 0.0005428038421086967, 0.03191264346241951, -0.03737068548798561, -0.054331500083208084, 0.02448117733001709, -0.0006400307756848633, -0.017334166914224625, -0.037584029138088226, -0.04387766495347023, 0.055718231946229935, 0.00487134512513876, 0.03449054807424545, 0.004146866034716368, 0.026721283793449402, 0.0150229437276721, 0.03187708556652069, -0.06855440884828568, 0.05966508761048317, 0.06549648195505142, -0.06634985655546188, 0.06336304545402527, -0.013316195458173752, 0.060767363756895065, -0.04672224447131157, 0.06617207080125809, 0.0002179271396016702, -0.07235903292894363, 0.0480734221637249, -0.018703121691942215, -0.0008072610362432897, -0.01337842084467411, -0.01568964309990406, -0.059771761298179626, 0.00788926798850298, 0.00509357824921608, 0.0905999094247818, 0.04803786426782608, 0.02030319720506668, 0.02734353579580784 ]
730,269
mmengine.fileio.handlers.yaml_handler
dump_to_fileobj
null
def dump_to_fileobj(self, obj, file, **kwargs): kwargs.setdefault('Dumper', Dumper) yaml.dump(obj, file, **kwargs)
(self, obj, file, **kwargs)
[ -0.0307356845587492, -0.011446155607700348, -0.0016925743548199534, -0.01946191117167473, 0.026994997635483742, -0.04419870674610138, 0.019272292032837868, 0.029063580557703972, -0.07901984453201294, -0.010920390486717224, -0.03449361026287079, -0.03320074453949928, -0.024064507335424423, -0.028149956837296486, -0.007433967664837837, 0.054438188672065735, -0.071159228682518, 0.015040316618978977, 0.02116849087178707, 0.09880927950143814, 0.014023263938724995, 0.0003490732633508742, 0.00635658111423254, -0.011041058227419853, 0.03844115510582924, 0.017048565670847893, -0.0594717413187027, 0.008175209164619446, -0.04912882670760155, 0.00823554303497076, -0.030701208859682083, -0.05709287151694298, 0.028787769377231598, -0.005701529793441296, -0.0050809551030397415, -0.056954964995384216, 0.0001865225494839251, 0.075365349650383, -0.09674070030450821, -0.012109825387597084, 0.05071474239230156, 0.09074180573225021, -0.023581838235259056, 0.0282878614962101, 0.02440926991403103, 0.038096390664577484, 0.026270994916558266, 0.026632996276021004, 0.008912141434848309, -0.052438560873270035, 0.0222889743745327, -0.06629806011915207, 0.013221688568592072, 0.0008931534830480814, -0.01549712847918272, 0.05140426754951477, 0.0033765295520424843, -0.02022039145231247, 0.019392957910895348, 0.005309361033141613, -0.014100835658609867, 0.03361446037888527, 0.071366086602211, -0.05423133075237274, -0.0024047268088907003, -0.004102688282728195, -0.055575910955667496, -0.001592377433553338, -0.07908879220485687, 0.025064321234822273, 0.007377943489700556, -0.046749960631132126, 0.055438004434108734, 0.01928952895104885, 0.01922057755291462, -0.019944580271840096, -0.05340389907360077, -0.0017529079923406243, -0.00785630289465189, 0.027374237775802612, -0.044681377708911896, -0.05019759759306908, -0.04013049602508545, -0.023495646193623543, -0.021961448714137077, -0.05388656631112099, 0.035717520862817764, -0.00453795213252306, 0.004066057037562132, -0.020685821771621704, 0.002439203206449747, 0.053438376635313034, -0.026133088394999504, 0.013704357668757439, -0.06098870187997818, -0.01978943683207035, 0.02392660081386566, 0.053369421511888504, -0.029270438477396965, -0.015350604429841042, -0.03068397007882595, -0.10260167717933655, -0.028391292318701744, 0.015945320948958397, -0.010446340776979923, -0.03323522210121155, 0.036338094621896744, 0.002639597048982978, -0.05040445551276207, 0.03782057762145996, -0.034786656498909, -0.02642613835632801, -0.013411308638751507, 0.023340502753853798, 0.03923410922288895, -0.061954040080308914, 0.025650419294834137, 0.00046623905654996634, 0.007498610764741898, -0.053197041153907776, -0.020737536251544952, -0.01135996449738741, -0.03075292333960533, 0.0325801707804203, -0.014790362678468227, -0.04002706706523895, 0.027322523295879364, -0.013687118887901306, 0.04088897630572319, 0.02554699033498764, -0.014997221529483795, -0.016100464388728142, -0.06512586772441864, -0.02135811187326908, 0.044543471187353134, -0.053748663514852524, 0.03251121938228607, 0.008024374954402447, -0.00998952891677618, -0.012368397787213326, 0.05898907035589218, -0.06581538915634155, -0.017488138750195503, -0.02987377531826496, -0.020203152671456337, -0.003544601844623685, -0.03964782506227493, 0.008024374954402447, -0.028770532459020615, 0.04002706706523895, 0.034338466823101044, 0.01753123477101326, -0.0613679401576519, 0.011230677366256714, 0.02987377531826496, -0.009593049995601177, -0.021427065134048462, 0.008739760145545006, 0.014514552429318428, 0.003068397054448724, -0.02321983501315117, 0.047611869871616364, 0.0018046225886791945, 0.034717705100774765, 0.024030029773712158, 0.026219280436635017, 0.042302507907152176, 0.0027947407215833664, 0.055817242711782455, 0.02278888039290905, -0.039613351225852966, -0.06023022159934044, -0.08963856101036072, 0.09053494781255722, 0.018289715051651, 0.04002706706523895, 0.012902781367301941, -0.00005942460484220646, -0.014488695189356804, 0.021926971152424812, -0.01641075313091278, -0.008679426275193691, 0.04444004222750664, -0.01170472800731659, -0.00998952891677618, -0.012127063237130642, 0.006098008248955011, 0.08288119733333588, 0.006029055453836918, -0.023805934935808182, 0.08660464733839035, 0.03844115510582924, -0.011187582276761532, -0.02497813105583191, 0.023564599454402924, -0.05278332531452179, -0.061092130839824677, -0.05254198983311653, 0.06888379156589508, -0.005261956248432398, 0.024805748835206032, 0.0013596619246527553, 0.03147692605853081, -0.010136052966117859, 0.012523542158305645, 0.041612979024648666, 0.04175088554620743, 0.005111122038215399, -0.03682076558470726, 0.015066173858940601, 0.01959981769323349, -0.04412975534796715, -0.060643937438726425, -0.04481928050518036, 0.06254013627767563, 0.0009217042243108153, 0.01528165116906166, 0.03118387795984745, -0.07350362092256546, 0.03737238794565201, 0.039923638105392456, 0.05267989635467529, -0.073158860206604, 0.00632210448384285, -0.010825580917298794, -0.009851623326539993, 0.0434747040271759, -0.07171085476875305, 0.010273958556354046, -0.006787535734474659, -0.020823728293180466, -0.016315942630171776, -0.08274328708648682, 0.035648565739393234, 0.0322871208190918, 0.0484737791121006, -0.0006825244054198265, -0.020823728293180466, -0.01810009405016899, -0.011687490157783031, 0.05554143339395523, -0.03151140362024307, 0.014169787988066673, -0.039854682981967926, 0.06071288883686066, 0.0198411513119936, 0.022116592153906822, -0.053128086030483246, -0.031890641897916794, 0.0037191384471952915, 0.10025728493928909, -0.01915162429213524, -0.028787769377231598, 0.023805934935808182, -0.022616500034928322, -0.028149956837296486, 0.041923265904188156, -0.017203709110617638, 0.012954496778547764, -0.0005936400266364217, 0.011782299727201462, -0.013463023118674755, 0.018117332831025124, 0.012161539867520332, 0.0010315976105630398, 0.01696237362921238, -0.05278332531452179, -0.07419314980506897, -0.000008989444722828921, -0.006175579968839884, 0.0007283133454620838, 0.0034541015047580004, 0.013040686957538128, 0.048990923911333084, -0.041233740746974945, -0.011282392777502537, -0.02718461863696575, -0.03239054977893829, 0.04371603950858116, 0.015212698839604855, 0.04626728966832161, -0.05881668999791145, 0.026391662657260895, -0.004912883043289185, 0.06684968620538712, -0.018582763150334358, -0.03799296170473099, 0.030856352299451828, 0.030977020040154457, -0.036096759140491486, 0.004697405733168125, 0.04202669486403465, -0.013730214908719063, 0.004393582697957754, -0.04616386070847511, 0.020996110513806343, -0.02854643575847149, -0.005330909043550491, 0.034528084099292755, -0.008175209164619446, -0.02490917779505253, -0.06178165599703789, 0.06312623620033264, 0.03132178261876106, -0.02473679557442665, 0.0494735911488533, 0.020961632952094078, -0.007696849759668112, -0.043681561946868896, -0.013988787308335304, 0.02785690687596798, 0.006369509734213352, 0.027063950896263123, 0.052886754274368286, -0.0003778933605644852, -0.0027085498441010714, -0.012980354018509388, -0.022806119173765182, 0.03156311810016632, 0.0006281163659878075, -0.04064764082431793, -0.006860797759145498, -0.026253756135702133, -0.0050809551030397415, 0.13197554647922516, -0.036717336624860764, 0.04106135666370392, -0.03933753818273544, 0.05392104387283325, 0.00568429147824645, 0.02347840927541256, -0.03561409190297127, 0.02849472127854824, 0.04816348850727081, 0.016617611050605774, 0.034148845821619034, -0.02271992899477482, 0.021461540833115578, 0.010825580917298794, 0.019772198051214218, 0.024305840954184532, 0.0331835076212883, 0.003266636049374938, -0.07488267868757248, -0.003801019862294197, 0.013937072828412056, -0.01629008539021015, -0.015764320269227028, -0.015953941270709038, 0.0692630261182785, -0.0484737791121006, 0.05071474239230156, 0.04685338959097862, 0.00005770751886302605, -0.055575910955667496, -0.02561594359576702, 0.019703246653079987, 0.009524097666144371, -0.02409898303449154, -0.06919407844543457, -0.02704671211540699, 0.0014878709334880114, -0.025529753416776657, -0.031907882541418076, 0.08522558957338333, 0.027322523295879364, -0.007317609619349241, 0.008261400274932384, 0.014816220849752426, -0.007554634939879179, 0.005856673698872328, 0.021427065134048462, 0.02104782499372959, -0.04150955006480217, 0.03142521157860756, 0.019203338772058487, -0.00680908327922225, 0.03844115510582924, 0.03237331286072731, 0.048060059547424316, 0.051059506833553314, 0.027253571897745132, 0.0484737791121006, 0.0016570205334573984, 0.012058110907673836, -0.016307324171066284, -0.010558388195931911, 0.03161483258008957, 0.004412975627928972, -0.021306397393345833, 0.04195774346590042, 0.022461354732513428, 0.0012863995507359505, -0.007158156484365463, 0.02135811187326908, -0.01884133741259575, -0.004447451792657375, 0.02754661999642849, -0.004710334353148937, 0.014730029739439487, 0.013290640898048878, -0.03506246954202652, -0.07977832108736038, -0.008175209164619446, -0.004559500142931938, 0.039165157824754715, -0.04337127506732941, 0.013600928708910942, 0.04213012382388115, 0.04540538042783737, 0.04664653167128563, 0.01891028881072998, -0.006826321594417095, -0.03837219998240471, 0.00774856423959136, -0.0036588048096746206, 0.013325117528438568, 0.005361075513064861, -0.0485772080719471, -0.06571196019649506, 0.007916636765003204, 0.04240593686699867, 0.022702690213918686, -0.017264042049646378, 0.03501075506210327, -0.11218611150979996, -0.017048565670847893, -0.05385209247469902, 0.0495770201086998, 0.008394996635615826, -0.0019037420861423016, -0.008463948965072632, 0.0070288702845573425, 0.010489435866475105, 0.0931551530957222, -0.050059691071510315, 0.008239852264523506, -0.03626914322376251, 0.03170102462172508, 0.07922670245170593, 0.041923265904188156, -0.052886754274368286, 0.04006154462695122, 0.012945877388119698, -0.04650862514972687, 0.05440371483564377, -0.026719188317656517, 0.015583319589495659, 0.04302651062607765, 0.06419499963521957, 0.04395737126469612, -0.026684710755944252, 0.021116776391863823, -0.01446283794939518, -0.020513441413640976, -0.05878221243619919, 0.06485005468130112, -0.02342669479548931, 0.037234481424093246, 0.023943839594721794, -0.003574768779799342, -0.06474662572145462, 0.02749490551650524, -0.029391106218099594, -0.03061501681804657, 0.013282021507620811, -0.05774792283773422, 0.06074736639857292, 0.01765190251171589, -0.04995626211166382, 0.007959731854498386, 0.023943839594721794, -0.05595514923334122, 0.014074978418648243, 0.02390936389565468, 0.059506215155124664, 0.013635404407978058, -0.04406080022454262, -0.06964226812124252, -0.02047896385192871, -0.01026533916592598, -0.038544584065675735, 0.027443191036581993, 0.02542632445693016, -0.014074978418648243, 0.009506858885288239, 0.0156436525285244, -0.0056670536287128925, 0.0014275371795520186, 0.013842263258993626, 0.0049301208928227425, 0.012876924127340317, -0.0674702599644661, -0.02716737985610962, -0.003314041066914797, 0.017927713692188263, -0.025374608114361763, 0.05854087695479393, -0.052438560873270035, -0.08839741349220276, 0.005787720903754234, 0.030080633237957954, -0.042854130268096924, -0.02435755543410778, -0.05133531615138054, 0.019255053251981735, -0.03180445358157158, 0.005602410063147545, -0.007352086249738932, -0.0008845343836583197, 0.005477433558553457, -0.03276979178190231, -0.014661076478660107, 0.036579430103302, 0.0010030468693003058, 0.02711566537618637, -0.013282021507620811, 0.019013717770576477, 0.039165157824754715, 0.021944209933280945, -0.014057740569114685, -0.025529753416776657, 0.04802558571100235, 0.012635589577257633, 0.027236333116889, -0.036338094621896744, -0.03913068026304245, 0.030546065419912338, 0.030080633237957954, 0.027081189677119255, 0.019048195332288742, -0.05219722539186478, 0.019134385511279106, -0.027253571897745132, 0.0034821133594959974, 0.07957146316766739, 0.006882345769554377, 0.029063580557703972, 0.006692725699394941, -0.027236333116889, 0.011765061877667904, -0.03930306434631348, -0.018703430891036987, -0.01947914995253086, -0.010153290815651417, -0.04819796606898308, -0.010230863466858864, 0.0078045884147286415, 0.010394626297056675, -0.003975556697696447, 0.04302651062607765, -0.04716367647051811, 0.05040445551276207, 0.07777868956327438, -0.029580725356936455, -0.00007063616067171097, 0.00961028877645731, 0.008963856846094131, 0.029442820698022842, -0.020496202632784843, -0.03487284854054451, 0.07612382620573044, 0.024943653494119644, 0.01891028881072998, 0.04302651062607765, 0.030028918758034706, 0.01585051231086254, 0.004891335032880306, -0.04113031178712845, 0.009170714765787125, 0.014626600779592991, 0.03156311810016632, 0.01853104867041111, -0.04099240526556969, 0.015031698159873486, 0.042302507907152176, -0.0016182346735149622, 0.08722522109746933, -0.0037299124523997307, -0.029322152957320213, -0.08039889484643936, 0.014945507049560547, -0.008886284194886684, -0.041992221027612686, -0.029701393097639084, -0.04299203306436539, 0.05898907035589218, -0.02371974289417267, 0.0016764135798439384, 0.03930306434631348, -0.02053067833185196, 0.0070374892093241215, -0.05240408331155777, -0.012583875097334385, 0.03301112353801727, -0.05833401903510094, 0.02547803893685341, -0.04433661326766014, 0.043095462024211884, -0.026029659435153008, 0.00010255373490508646, 0.0017098125535994768, -0.011877110227942467, 0.0366828590631485, 0.0008263555355370045, 0.03161483258008957, 0.002196791348978877, 0.0015298889484256506, 0.00923966709524393, 0.034579798579216, -0.04333679750561714, 0.016979612410068512, 0.057644493877887726, 0.015428176149725914, -0.010118815116584301, -0.017669139429926872, 0.0007644057623110712, 0.012920020148158073, -0.05254198983311653, -0.01946191117167473, -0.0003423395974095911, 0.02749490551650524, 0.0033549817744642496, 0.02454717643558979, -0.002656835364177823, 0.04406080022454262, -0.01183401420712471, -0.008877665735781193, 0.03661390766501427, -0.07022836804389954, -0.016134941950440407, -0.0015352758346125484, 0.012652828358113766, -0.03706209734082222, -0.02830510027706623, -0.009868861176073551, 0.007533086929470301, 0.005748935043811798, -0.07240037620067596, -0.029442820698022842, 0.007024560589343309, -0.06888379156589508, 0.0029261820018291473, -0.02730528637766838, -0.017513995990157127, 0.011816776357591152, -0.00007211756746983156, -0.017117518931627274, 0.008382068015635014, -0.028649864718317986, 0.024340318515896797, -0.028149956837296486, -0.0694698840379715, -0.009024189785122871, 0.028632625937461853, 0.0484737791121006, 0.07888193428516388, -0.005843745078891516, 0.03525209054350853, 0.020392773672938347, -0.034528084099292755, -0.024754034355282784, -0.04888749495148659, -0.020496202632784843, 0.014049121178686619, 0.028443006798624992, -0.007278823759406805, 0.0004859013424720615, -0.10011938214302063, 0.036096759140491486, -0.00527488486841321, 0.03425227478146553, 0.0037600791547447443, -0.019496386870741844, -0.00698146503418684, -0.0455777607858181, -0.03806191310286522, -0.016815850511193275, 0.0252884179353714, -0.03837219998240471, -0.01528165116906166, -0.002001784276217222, -0.0046456907875835896, 0.011989157646894455, -0.04888749495148659, 0.04082002490758896, 0.002902479376643896, 0.022323450073599815, -0.01909990981221199, -0.005878221243619919, -0.015522985719144344, 0.017126137390732765, -0.042543843388557434, -0.00898109469562769, -0.05033550038933754, -0.0002281366178067401, 0.05978202819824219, 0.017436424270272255, 0.04695681855082512, -0.020582392811775208, -0.03554513677954674, -0.030977020040154457, 0.061092130839824677, -0.005800649523735046, -0.020013533532619476, -0.03342484310269356, 0.00814073346555233, 0.0032860292121767998, 0.020254867151379585, -0.01746228151023388, -0.01396293006837368, 0.05823059007525444, 0.020306581631302834, -0.031907882541418076, 0.008726831525564194, 0.00597734097391367, -0.0335799865424633, 0.006822011899203062, -0.03330417349934578, -0.061885084956884384, -0.037579245865345, 0.01653141900897026, -0.036476001143455505, -0.06081631779670715, 0.06760816276073456, -0.025374608114361763, -0.036648381501436234, 0.02516775019466877, -0.017358852550387383, -0.002893860451877117, 0.073365718126297, 0.004363415762782097, 0.021944209933280945, -0.009274143725633621, -0.004393582697957754, 0.02447822317481041, -0.011937443166971207, -0.02259926125407219, 0.01204949151724577, 0.0336834155023098, 0.038544584065675735, 0.015445413999259472, -0.004654310178011656, -0.012540780007839203, 0.050438929349184036, -0.029977204278111458, 0.061402417719364166, 0.0662635862827301, -0.02849472127854824, 0.05661020055413246, -0.0014727874659001827, 0.03999258950352669, -0.0013327272608876228, 0.06791844964027405, 0.05430028587579727, -0.02609861269593239, 0.05940278619527817, -0.027236333116889, 0.043302323669195175, -0.05278332531452179, -0.047991108149290085, -0.0811573788523674, 0.013333736918866634, 0.002467215294018388, 0.09949880838394165, 0.06216089800000191, -0.011299630627036095, -0.026202041655778885 ]
730,271
mmengine.fileio.handlers.yaml_handler
dump_to_str
null
def dump_to_str(self, obj, **kwargs): kwargs.setdefault('Dumper', Dumper) return yaml.dump(obj, **kwargs)
(self, obj, **kwargs)
[ -0.02625560387969017, -0.04168775677680969, 0.008196148090064526, -0.07778920978307724, 0.036660086363554, -0.038196317851543427, 0.0601225420832634, -0.02019796147942543, -0.006044549867510796, -0.013843546621501446, -0.04720422625541687, -0.021716736257076263, -0.019918646663427353, -0.00980220828205347, -0.003266675630584359, 0.047693025320768356, -0.08114098757505417, -0.038929518312215805, 0.060471683740615845, 0.0605764277279377, 0.01960441656410694, 0.009906952269375324, 0.023741770535707474, -0.00559066329151392, -0.029083669185638428, 0.006965416483581066, -0.042455870658159256, -0.02438768558204174, -0.09196444600820541, 0.028664695098996162, -0.016016965731978416, -0.04793742671608925, 0.050451260060071945, -0.018609357997775078, -0.036101456731557846, -0.020163048058748245, -0.01801581308245659, 0.04322398826479912, -0.05649144574999809, -0.053977612406015396, 0.004303195979446173, 0.06776878982782364, -0.025993747636675835, -0.023148225620388985, 0.013660246506333351, 0.000353507959516719, 0.02005830407142639, 0.026604747399687767, -0.011259883642196655, -0.04060541093349457, 0.035420626401901245, -0.03697431460022926, -0.008536563254892826, -0.006110014393925667, -0.030916672199964523, 0.03524605557322502, -0.0034434294793754816, -0.006659915670752525, 0.03501911088824272, 0.017928527668118477, -0.01196689996868372, 0.04860080033540726, 0.05572333186864853, 0.0006579176406376064, -0.015021907165646553, -0.054710812866687775, -0.057329390197992325, 0.0028411566745489836, -0.024859029799699783, -0.019656788557767868, 0.005782692227512598, -0.06389329582452774, -0.017291340976953506, 0.040361009538173676, -0.004643610678613186, -0.0352984257042408, -0.05181292071938515, -0.04779776930809021, 0.0010910739656537771, 0.0017871791496872902, -0.011294797994196415, -0.03854546323418617, -0.029729584231972694, -0.04224638640880585, -0.005289526656270027, -0.08323585242033005, -0.020529648289084435, -0.006175478920340538, 0.01639229618012905, -0.022781625390052795, 0.04168775677680969, 0.029956527054309845, -0.029712127521634102, 0.058376822620630264, -0.07143479585647583, 0.01564163714647293, 0.00919993594288826, 0.02878689579665661, 0.03409387916326523, -0.05904019623994827, -0.006939230486750603, -0.05184783786535263, -0.06480106711387634, 0.024562258273363113, -0.062496718019247055, -0.04273518547415733, 0.04266535863280296, -0.005394269712269306, -0.02040744759142399, 0.02416074275970459, 0.011320983991026878, -0.01737862639129162, -0.02534783072769642, -0.01794598437845707, 0.05226681008934975, -0.06473124027252197, 0.018958501517772675, -0.009025364182889462, 0.012141471728682518, -0.062496718019247055, -0.01878393068909645, -0.007070159539580345, -0.04493479058146477, -0.0015045910840854049, 0.01308415923267603, 0.045214105397462845, -0.00620602909475565, -0.01178359892219305, 0.04608696699142456, 0.012202571146190166, 0.04458564892411232, -0.0058787064626812935, -0.08979975432157516, 0.01532740704715252, 0.08218841999769211, -0.037218715995550156, 0.051044806838035583, 0.0015689644496887922, 0.03475725278258324, 0.02087879180908203, 0.03767260164022446, -0.0653596967458725, -0.011757412925362587, 0.012735015712678432, 0.015912223607301712, -0.02320059761404991, -0.0051716906018555164, 0.02454479970037937, 0.01983136124908924, 0.02445751428604126, 0.07352966070175171, 0.004704711027443409, -0.04479513317346573, 0.012045457027852535, -0.01077108271420002, 0.008108861744403839, -0.04011660814285278, -0.0088246064260602, 0.04811199754476547, -0.015231393277645111, -0.017317526042461395, 0.0014838606584817171, -0.017727769911289215, -0.010919468477368355, 0.04091963917016983, 0.010954382829368114, 0.06246180459856987, -0.0013660246040672064, 0.04503953456878662, 0.014646577648818493, -0.05080040544271469, -0.047693025320768356, -0.10208961367607117, 0.06637221574783325, 0.038999348878860474, 0.05722464993596077, -0.0016726164612919092, 0.07192359864711761, -0.06431226432323456, -0.015309950336813927, 0.003303772071376443, -0.021123193204402924, 0.002609848976135254, -0.02564460225403309, 0.013791175559163094, -0.02789657935500145, 0.012097828090190887, 0.05855139344930649, 0.015048092231154442, -0.018522072583436966, 0.0414433553814888, 0.013887189328670502, -0.012857215479016304, -0.0025487488601356745, 0.01345948874950409, -0.015990780666470528, -0.051114633679389954, -0.06727998703718185, 0.039069175720214844, -0.030096184462308884, 0.02828063815832138, 0.03566502779722214, 0.013529317453503609, -0.019796445965766907, 0.023514825850725174, -0.0019519313937053084, 0.0014838606584817171, 0.006847580429166555, 0.005346262361854315, -0.01698583923280239, 0.008972992189228535, -0.008523469790816307, -0.08337551355361938, -0.05729447677731514, 0.05251120775938034, -0.004914197139441967, 0.009261036291718483, 0.003382329363375902, -0.028472667559981346, 0.015213935635983944, 0.040570493787527084, 0.012874673120677471, -0.037951916456222534, -0.015362321399152279, -0.059424255043268204, -0.0028324280865490437, 0.013817360624670982, -0.06986364722251892, 0.026500005275011063, -0.01077108271420002, 0.0055426559410989285, -0.04067523777484894, -0.04870554432272911, 0.038720034062862396, 0.035507913678884506, 0.08058235794305801, -0.027879122644662857, -0.05911002308130264, -0.006899951957166195, -0.010334652848541737, 0.039069175720214844, -0.024649543687701225, 0.0018799204844981432, -0.04451581835746765, 0.07639263570308685, 0.020512191578745842, -0.01024736650288105, -0.011705041863024235, -0.036625172942876816, -0.005106226075440645, 0.09364033490419388, -0.03435573726892471, -0.003916955552995205, -0.00572595652192831, -0.02183893695473671, -0.06305535137653351, 0.052546124905347824, 0.0054640984162688255, 0.004909832961857319, -0.0004983480321243405, -0.005909256637096405, -0.0030615536961704493, -0.04863571375608444, 0.02573188953101635, -0.017291340976953506, 0.0010408846428617835, -0.05519961565732956, -0.022013509646058083, -0.019360017031431198, 0.005258976481854916, 0.021646907553076744, -0.022397566586732864, -0.019394930452108383, 0.038126491010189056, -0.04071015119552612, -0.004774539731442928, -0.02295619621872902, -0.02821080945432186, 0.060855742543935776, -0.012359686195850372, 0.023235511034727097, -0.05387286841869354, 0.03596179932355881, -0.021786564961075783, 0.08595917373895645, -0.04011660814285278, -0.023130768910050392, -0.008964263834059238, 0.05963373929262161, 0.024998687207698822, 0.02821080945432186, 0.01960441656410694, -0.024893945083022118, -0.016226451843976974, -0.020739134401082993, 0.0276696365326643, 0.027285577729344368, -0.0025749346241354942, -0.002808424411341548, 0.0007113802712410688, 0.002996089169755578, -0.05565350130200386, 0.003164114663377404, 0.053733211010694504, -0.014114133082330227, 0.04444599151611328, 0.00013236091763246804, -0.009077735245227814, -0.013337288051843643, -0.02468445710837841, 0.00383185176178813, -0.0057303206995129585, 0.06438209116458893, 0.05924968048930168, -0.015135378576815128, 0.004730897024273872, -0.0028477031737565994, -0.013267459347844124, 0.0169683825224638, 0.015109192579984665, -0.03613637015223503, -0.006075100041925907, -0.018207842484116554, -0.0010850731050595641, 0.10250858217477798, -0.05216206610202789, -0.012115285731852055, -0.012324771843850613, 0.09866800159215927, 0.014053032733500004, -0.013380931690335274, -0.08868249505758286, 0.05439658463001251, 0.02939789742231369, 0.07028262317180634, 0.005987814161926508, -0.010072794742882252, 0.002862978260964155, -0.06595323979854584, -0.01892358809709549, 0.09287221729755402, 0.03224341943860054, 0.01193198561668396, -0.037882089614868164, 0.00721854530274868, 0.029520098119974136, -0.01930764503777027, -0.0025400202721357346, -0.0018722829408943653, 0.06745456159114838, -0.04605204984545708, 0.03357016295194626, 0.0448649637401104, -0.0044472175650298595, -0.048286572098731995, 0.0009786933660507202, 0.022240452468395233, 0.05073057487607002, -0.015344864688813686, -0.05331423878669739, -0.02341008372604847, -0.01937747374176979, -0.030637357383966446, -0.016034424304962158, 0.035857055336236954, 0.04168775677680969, -0.008780963718891144, -0.006734108552336693, 0.057713449001312256, 0.009662550874054432, -0.0321037620306015, 0.04322398826479912, -0.017771413549780846, -0.04842622950673103, -0.04800725728273392, 0.05558367446064949, -0.005394269712269306, 0.0015275035984814167, 0.00020730405231006444, -0.01147809810936451, 0.046331364661455154, 0.03390185162425041, 0.055164702236652374, 0.019953561946749687, 0.040361009538173676, -0.001693346886895597, -0.03222596272826195, 0.04654085263609886, 0.015004449523985386, -0.03875494748353958, 0.019988475367426872, 0.019621875137090683, 0.03603162616491318, 0.016243910416960716, 0.007633153814822435, -0.037358373403549194, 0.010011695325374603, 0.024928858503699303, 0.0018744651461020112, 0.036764830350875854, 0.023148225620388985, -0.032941706478595734, -0.061030313372612, -0.022397566586732864, -0.04119895398616791, 0.05869105085730553, -0.02828063815832138, -0.008894435130059719, 0.01331983134150505, 0.038859691470861435, 0.01024736650288105, -0.007166173774749041, -0.03613637015223503, -0.04434124752879143, 0.018609357997775078, -0.03816140443086624, -0.003360508009791374, 0.052546124905347824, -0.02910112589597702, -0.0491943433880806, -0.017273884266614914, 0.030881758779287338, 0.012350957840681076, 0.0031357465777546167, 0.030550071969628334, -0.025784259662032127, -0.023846512660384178, -0.035787228494882584, 0.05512978509068489, 0.020442362874746323, 0.005032033193856478, -0.027250664308667183, -0.007851368747651577, -0.03203393146395683, 0.05938933789730072, -0.033098820596933365, 0.04231621325016022, 0.005167326424270868, 0.01556307915598154, 0.054256927222013474, 0.0626363754272461, -0.022188080474734306, 0.016427209600806236, 0.03861529007554054, 0.0020304888021200895, 0.07304085791110992, -0.06696575880050659, -0.0014434908516705036, 0.034146253019571304, 0.06630238145589828, 0.04151318222284317, -0.027128463611006737, -0.012054185383021832, -0.014864792115986347, -0.028158437460660934, -0.06120488792657852, 0.08770488947629929, -0.00868931319564581, -0.026761863380670547, 0.024963773787021637, -0.018574442714452744, -0.06347431987524033, 0.006939230486750603, 0.023148225620388985, 0.001399847911670804, 0.019115615636110306, -0.04860080033540726, 0.06553427129983902, -0.014698948711156845, -0.020966077223420143, 0.030637357383966446, 0.02910112589597702, -0.012071643024682999, 0.02932806871831417, 0.028734523802995682, 0.03655534237623215, 0.011844699271023273, -0.050835318863391876, -0.05917985364794731, -0.03161495923995972, -0.056875504553318024, -0.04437616094946861, 0.05505995824933052, 0.023689398542046547, -0.04643610864877701, 0.023549741134047508, 0.053733211010694504, 0.018085641786456108, -0.004953476134687662, 0.0794650986790657, -0.0155979935079813, 0.07744006812572479, -0.07618314772844315, -0.0339367650449276, 0.01477750577032566, -0.003707469440996647, -0.05809750780463219, 0.008108861744403839, -0.06539461016654968, -0.047693025320768356, -0.005481555592268705, 0.03397167846560478, -0.009933137334883213, -0.008492919616401196, -0.02871706709265709, -0.01443709060549736, 0.02798386663198471, 0.04242095723748207, -0.01848715730011463, 0.01144318375736475, -0.016156623139977455, -0.0348445400595665, 0.009627636522054672, 0.044620562344789505, -0.0009879674762487411, 0.01742227002978325, 0.04413175955414772, 0.04570290818810463, 0.03112615831196308, 0.013991933315992355, -0.03913900628685951, 0.009138835594058037, -0.0071618095971643925, -0.0014194872928783298, 0.019045786932110786, -0.016881097108125687, -0.010849639773368835, 0.029432812705636024, -0.023235511034727097, 0.05701516196131706, 0.004643610678613186, -0.01477750577032566, 0.01930764503777027, -0.02520817331969738, 0.026063576340675354, 0.0942687913775444, -0.026884064078330994, 0.022170623764395714, 0.024963773787021637, -0.020756591111421585, 0.028001323342323303, -0.049334000796079636, 0.012865944765508175, -0.016339924186468124, -0.017998356372117996, -0.0068257590755820274, 0.035123854875564575, 0.059284597635269165, -0.007126895245164633, 0.009968051686882973, 0.012097828090190887, -0.06179843097925186, 0.03156258910894394, 0.04182741418480873, -0.05705007538199425, -0.00013495222083292902, -0.008794056251645088, 0.031248359009623528, 0.03655534237623215, 0.019796445965766907, -0.031003959476947784, 0.04580765217542648, 0.026360347867012024, 0.029380440711975098, 0.050241775810718536, 0.03763768821954727, -0.0034390653017908335, -0.033186107873916626, -0.009514165110886097, 0.01721278391778469, 0.0006295496714301407, -0.03166733309626579, 0.023968713358044624, -0.03357016295194626, 0.005237155128270388, 0.05512978509068489, 0.009470522403717041, 0.05265086516737938, 0.009034092538058758, 0.017710313200950623, -0.04716930910944939, -0.008357626385986805, -0.0024658271577209234, -0.038196317851543427, -0.00016788901120889932, -0.03267984837293625, 0.039976950734853745, -0.012953230179846287, -0.0037314731162041426, 0.015973323956131935, -0.03927866369485855, 0.022624509409070015, -0.036764830350875854, 0.01566782221198082, 0.09147564321756363, -0.09936629235744476, 0.04283992946147919, -0.03367490693926811, 0.0669308453798294, -0.024736829102039337, 0.01612170971930027, 0.026063576340675354, 0.030340585857629776, 0.026831692084670067, 0.05244138091802597, 0.05708499252796173, 0.00021603265486191958, 0.01612170971930027, 0.008588934317231178, 0.04158301278948784, -0.06371872127056122, 0.021123193204402924, 0.02611594647169113, -0.011364626698195934, -0.013913375325500965, -0.04479513317346573, -0.0055688414722681046, -0.014986992813646793, -0.043712787330150604, -0.015423421747982502, 0.0471343956887722, 0.07325034588575363, -0.03749803081154823, 0.006485343910753727, -0.019202902913093567, 0.05230172351002693, -0.009479250758886337, -0.0025356558617204428, 0.03599671274423599, -0.07108565419912338, 0.01976153254508972, 0.009278493002057076, 0.02842029556632042, -0.04748354107141495, -0.04748354107141495, -0.01110276859253645, 0.014157775789499283, 0.04406193271279335, -0.08637814223766327, -0.01810310035943985, 0.01386973261833191, -0.03376219421625137, -0.03767260164022446, 0.012577900663018227, -0.040500666946172714, 0.010264824144542217, 0.00991568062454462, -0.015309950336813927, -0.003275404218584299, -0.03854546323418617, 0.01899341680109501, -0.020250333473086357, -0.030550071969628334, 0.005599391646683216, 0.006659915670752525, 0.0794650986790657, 0.07485640794038773, 0.01518774963915348, 0.018417328596115112, -0.003092103637754917, -0.03718380257487297, -0.0162788238376379, -0.06637221574783325, -0.012551715597510338, 0.031824447214603424, 0.02461462840437889, -0.028245722874999046, 0.01578129455447197, -0.0776495561003685, -0.030724642798304558, 0.00424209563061595, 0.019866274669766426, -0.029973985627293587, -0.03170224651694298, -0.028175894170999527, -0.023602113127708435, -0.04151318222284317, 0.005643034819513559, 0.021891308948397636, -0.05841173604130745, -0.001900650910101831, 0.0071836309507489204, -0.04682016745209694, 0.007301467005163431, -0.05656127631664276, 0.021734194830060005, -0.008348898030817509, -0.00044433987932279706, -0.001697711180895567, -0.0149171631783247, -0.00980220828205347, -0.024073457345366478, -0.025243088603019714, 0.004034791607409716, -0.012089099735021591, -0.023549741134047508, 0.057783279567956924, -0.007943018339574337, 0.062496718019247055, -0.034216079860925674, 0.02857740968465805, -0.01308415923267603, 0.049997374415397644, -0.016139166429638863, 0.006280221976339817, -0.030340585857629776, 0.040570493787527084, 0.009583993814885616, 0.03830106183886528, 0.01585112325847149, -0.0022672517225146294, 0.05865613743662834, 0.03648551553487778, -0.050241775810718536, -0.021367592737078667, -0.017727769911289215, -0.0222055371850729, -0.0021701462101191282, -0.04800725728273392, -0.028228266164660454, -0.05066074803471565, -0.0231133121997118, -0.02297365479171276, -0.06054151430726051, 0.07576417922973633, 0.032068848609924316, 0.00029540827381424606, 0.03798683360219002, 0.02775692194700241, -0.01871410198509693, 0.04011660814285278, 0.001591876964084804, -0.007694253697991371, -0.006140564568340778, 0.007284009829163551, 0.029799412935972214, -0.010832182131707668, -0.041094209998846054, 0.005446641240268946, 0.014768777415156364, 0.051044806838035583, 0.04266535863280296, 0.024370228871703148, -0.0103608388453722, 0.08072201907634735, -0.033552706241607666, 0.054710812866687775, 0.05708499252796173, -0.00572595652192831, 0.01226367149502039, 0.007895011454820633, 0.05069566145539284, -0.022240452468395233, 0.04032609611749649, 0.04064032435417175, -0.02609848976135254, 0.010561596602201462, 0.02752997912466526, -0.0037227445282042027, -0.026831692084670067, -0.05788802355527878, -0.07988407462835312, 0.004106802400201559, 0.013712617568671703, 0.054256927222013474, 0.06043677031993866, -0.007624424993991852, -0.05820225179195404 ]
730,272
mmengine.fileio.handlers.yaml_handler
load_from_fileobj
null
def load_from_fileobj(self, file, **kwargs): kwargs.setdefault('Loader', Loader) return yaml.load(file, **kwargs)
(self, file, **kwargs)
[ -0.010961693711578846, -0.02725089341402054, -0.03785333037376404, -0.014247573912143707, -0.018400926142930984, 0.001225633081048727, 0.03809867799282074, 0.07451498508453369, -0.04416222125291824, 0.008337371982634068, -0.013967178761959076, 0.010418429039418697, -0.03911510854959488, -0.0014556446112692356, 0.006492897868156433, 0.030510487034916878, -0.07122034579515457, 0.022676950320601463, -0.018558647483587265, -0.016078904271125793, 0.017761273309588432, 0.033367011696100235, 0.021940913051366806, 0.028880691155791283, 0.033524733036756516, 0.015500589273869991, -0.02097705565392971, 0.00552904000505805, -0.03198255971074104, -0.015036184340715408, 0.003314357250928879, 0.03373502939939499, 0.007132549304515123, 0.03778323158621788, -0.020924480631947517, -0.03343711048364639, -0.022729523479938507, 0.026690104976296425, -0.10185350477695465, -0.006523566320538521, -0.0016374633414670825, 0.04461786150932312, -0.005914583336561918, 0.007789724972099066, 0.0059189642779529095, 0.02250170335173607, 0.013835743069648743, 0.0024381226394325495, -0.016201576218008995, -0.01614023931324482, 0.06403522193431854, -0.04630023241043091, 0.017980333417654037, 0.010768922045826912, -0.04721151664853096, 0.05334515869617462, -0.05264417082071304, 0.05769128352403641, 0.03620601072907448, 0.04237470403313637, 0.012714163400232792, 0.00484119588509202, 0.0276890117675066, -0.03079088218510151, 0.005761242005974054, -0.0073866574093699455, 0.016280436888337135, 0.0002943600411526859, -0.009954024106264114, -0.003581608645617962, 0.016017567366361618, 0.010234419256448746, 0.04987527057528496, -0.04756201058626175, 0.031526919454336166, -0.019540030509233475, -0.08222585171461105, -0.006067924201488495, 0.000738775241188705, 0.04139332100749016, -0.03806362673640251, -0.02265942469239235, -0.04226955398917198, -0.007513711228966713, -0.03943055495619774, -0.09351175278425217, 0.06445581465959549, -0.022168733179569244, 0.003993439022451639, 0.020994579419493675, -0.011986888945102692, 0.06312393397092819, -0.03645135834813118, 0.0161752887070179, -0.04686102271080017, -0.03406799957156181, 0.05334515869617462, 0.06754016131162643, -0.01990804821252823, -0.01885656639933586, -0.021064678207039833, -0.09217987209558487, -0.025586048141121864, 0.0041139209643006325, -0.0041007776744663715, -0.007741532288491726, 0.030650684610009193, 0.008705390617251396, -0.026567431166768074, 0.030230091884732246, -0.03380512818694115, -0.05699029564857483, -0.014895986765623093, 0.09799806773662567, -0.009182938374578953, -0.041848961263895035, -0.018488548696041107, -0.030738307163119316, -0.008433757349848747, -0.0028784305322915316, -0.085310198366642, 0.008538905531167984, -0.02683030255138874, 0.013669258914887905, 0.003993439022451639, -0.036626603454351425, 0.015973756089806557, -0.07745913416147232, 0.07598705589771271, -0.022238831967115402, 0.06456095725297928, -0.033367011696100235, -0.043846774846315384, -0.02094200626015663, 0.03359483182430267, -0.07122034579515457, 0.058146923780441284, 0.03291136771440506, -0.027356041595339775, 0.04721151664853096, 0.06711956858634949, -0.01763860136270523, -0.00009837101970333606, -0.04111292585730553, -0.017962807789444923, -0.051242195069789886, 0.004392125643789768, -0.01034833025187254, -0.08769354969263077, 0.07991258800029755, 0.04293549433350563, -0.038624417036771774, -0.006799580063670874, 0.03315671533346176, 0.009603530168533325, -0.03464631363749504, -0.013064657337963581, -0.030019795522093773, 0.0006763435085304081, -0.009603530168533325, -0.0021862052381038666, 0.05439664050936699, 0.00214129826053977, 0.018716370686888695, -0.007653908804059029, 0.008941973559558392, 0.007404181640595198, -0.04717646911740303, 0.03000226989388466, -0.010602437891066074, -0.03978104889392853, -0.05232872813940048, -0.05758613348007202, 0.07381399720907211, 0.013599160127341747, -0.029984746128320694, -0.01211832370609045, -0.003016437403857708, 0.0009698821231722832, 0.0007738246349617839, -0.043180838227272034, 0.029827022925019264, 0.0370822474360466, -0.038869764655828476, 0.0064359428361058235, 0.0453188493847847, 0.011496197432279587, 0.08306703716516495, 0.017077811062335968, -0.01889161579310894, 0.057130493223667145, 0.015658311545848846, -0.00007160479435697198, -0.0069792079739272594, 0.0005076683592051268, -0.03413809835910797, -0.06046018376946449, 0.003430458251386881, 0.00654985336586833, 0.03573284298181534, 0.008140218444168568, 0.026970498263835907, 0.039535701274871826, -0.0020197206176817417, -0.05071645602583885, 0.030510487034916878, -0.003647326258942485, 0.029441481456160545, -0.018558647483587265, 0.017822610214352608, -0.02053893730044365, -0.06645362824201584, -0.06739996373653412, -0.01582479663193226, 0.07227182388305664, -0.010611200705170631, -0.014308909885585308, 0.003101870184764266, -0.06512174755334854, 0.014598067849874496, 0.1179061233997345, 0.1040966659784317, -0.028740493580698967, -0.03620601072907448, -0.00944580789655447, -0.013292478397488594, 0.014422820881009102, -0.031404245644807816, -0.0016396539285779, 0.054186344146728516, -0.01826072856783867, -0.03617096319794655, -0.015702122822403908, 0.0025848918594419956, 0.06638352572917938, 0.017883947119116783, 0.03380512818694115, 0.02297486923635006, -0.00863967277109623, 0.007719626184552908, 0.07745913416147232, 0.00047727400669828057, -0.013695545494556427, -0.04139332100749016, -0.0018729512812569737, 0.023307839408516884, -0.008411851711571217, -0.026917925104498863, -0.04258500039577484, 0.008153362199664116, 0.11461147665977478, 0.0027798539958894253, 0.013897079974412918, 0.06091582402586937, -0.024061400443315506, -0.0027557576540857553, 0.04496835544705391, -0.09358184784650803, 0.031018702313303947, -0.02034616656601429, 0.012670351192355156, -0.021397648379206657, 0.04454776272177696, 0.041147973388433456, -0.008170886896550655, -0.0004860363551415503, -0.021818239241838455, -0.030142467468976974, 0.03603076562285423, -0.03322681412100792, 0.07153578847646713, 0.04037688672542572, 0.052258629351854324, 0.01850607432425022, 0.0024731720332056284, -0.022519227117300034, 0.026637529954314232, -0.0572005920112133, 0.07710863649845123, 0.034383442252874374, 0.014694453217089176, -0.01987299881875515, 0.014992373064160347, -0.00026314417482353747, 0.07844051718711853, -0.03715234622359276, -0.05523782595992088, -0.0013636399526149035, -0.02246665395796299, -0.013704308308660984, 0.01763860136270523, -0.015386678278446198, -0.025813870131969452, -0.035645220428705215, -0.023272790014743805, 0.0052793133072555065, -0.10136280953884125, 0.03361235558986664, 0.042479850351810455, -0.039220258593559265, -0.02199348621070385, -0.0821557492017746, 0.057130493223667145, 0.0021237735636532307, -0.009971548803150654, -0.0165695957839489, -0.00870100874453783, -0.028144653886556625, -0.07409439235925674, 0.011268376372754574, 0.05145249143242836, 0.03201761096715927, 0.00795620959252119, 0.008061357773840427, -0.033016517758369446, -0.00010254682274535298, 0.009182938374578953, 0.003754664910957217, 0.06985341757535934, -0.052188530564308167, -0.03527720272541046, -0.005441416520625353, -0.04237470403313637, -0.004981393460184336, 0.10087212175130844, -0.01591241918504238, 0.06287859380245209, -0.03382265195250511, 0.022852197289466858, 0.012188422493636608, 0.0424097515642643, -0.016744842752814293, -0.003910196479409933, 0.01696390099823475, -0.027285942807793617, 0.010120509192347527, -0.019925573840737343, 0.03373502939939499, 0.029827022925019264, -0.00807011965662241, 0.03131662309169769, -0.03098365291953087, -0.034856610000133514, -0.05243387445807457, -0.026251986622810364, -0.0020635323598980904, 0.02034616656601429, -0.04013154283165932, 0.01455425564199686, -0.01447539497166872, -0.04854339361190796, -0.010716348886489868, 0.03044038824737072, -0.01360792201012373, -0.07619735598564148, -0.02895078994333744, 0.007211410440504551, 0.034155622124671936, 0.004749190993607044, -0.06214255467057228, -0.011084366589784622, -0.014335197396576405, -0.07227182388305664, -0.010952931828796864, 0.032858796417713165, 0.017699938267469406, -0.01747211627662182, -0.02828485146164894, -0.007680195849388838, 0.005734954960644245, -0.0013669258914887905, 0.024166548624634743, 0.01072511076927185, 0.0017338490579277277, 0.06428056955337524, 0.005397604778409004, -0.015211431309580803, 0.021502796560525894, -0.001986861927434802, 0.0513823926448822, 0.009638579562306404, 0.05446673929691315, 0.03767808526754379, -0.0013274953234940767, 0.0034085523802787066, 0.0033275007735937834, -0.035645220428705215, 0.01621910184621811, 0.013599160127341747, -0.0553780235350132, 0.03971095010638237, -0.0008154457900673151, -0.022641900926828384, 0.018471024930477142, -0.004863101523369551, -0.03170216456055641, -0.00488938856869936, 0.03298146650195122, 0.048999033868312836, -0.011872977949678898, 0.034733936190605164, -0.029984746128320694, -0.03476898744702339, -0.014536730945110321, -0.03476898744702339, 0.027426140382885933, 0.017699938267469406, 0.02984454855322838, 0.0035662746522575617, 0.049629922956228256, 0.0728326141834259, 0.011233326978981495, -0.017761273309588432, -0.06112612038850784, -0.006260695867240429, 0.03361235558986664, 0.04062223434448242, 0.01591241918504238, -0.029073461890220642, -0.05702534317970276, -0.01806795597076416, 0.02455209195613861, -0.008008783683180809, -0.04276024550199509, 0.009104076772928238, -0.032578401267528534, 0.016473209485411644, -0.0728326141834259, 0.04493330791592598, -0.03617096319794655, -0.04304064065217972, -0.0073034148663282394, 0.03539987653493881, -0.032105233520269394, 0.06098592281341553, -0.050330910831689835, -0.051943182945251465, -0.014203761704266071, 0.03571531921625137, 0.027864258736371994, 0.021572893485426903, -0.03936045616865158, 0.06929262727499008, 0.024446943774819374, -0.06985341757535934, 0.013266190886497498, -0.08124446868896484, 0.02647980861365795, 0.019960623234510422, -0.0025586048141121864, -0.023868629708886147, 0.014291385188698769, 0.05366060510277748, -0.013055894523859024, 0.0008318751933984458, -0.03298146650195122, 0.03015999309718609, -0.015412965789437294, 0.054922379553318024, 0.03480403497815132, -0.0013669258914887905, -0.0718512311577797, 0.04524875059723854, -0.06512174755334854, 0.004661567974835634, 0.02337793819606304, -0.03028266504406929, 0.06536709517240524, -0.01145238522440195, -0.05362555384635925, -0.0010996743803843856, -0.006238789763301611, -0.022606851533055305, -0.013003320433199406, 0.0031653973273932934, 0.04626518487930298, 0.05685009807348251, -0.023342888802289963, -0.026304561644792557, -0.006808342412114143, 0.018979240208864212, -0.02784673310816288, 0.0030952985398471355, 0.01822567917406559, -0.0014512634370476007, -0.0023877390194684267, 0.008578335866332054, 0.022571802139282227, 0.00006051494710845873, 0.013003320433199406, 0.002134726382791996, 0.07928170263767242, -0.032858796417713165, -0.007023019716143608, -0.014782076701521873, 0.018278252333402634, 0.0242366474121809, 0.004350504372268915, 0.004810527432709932, -0.051627740263938904, 0.0069660646840929985, 0.015640785917639732, -0.0070974999107420444, 0.009515906684100628, -0.0000485351774841547, 0.03185988962650299, -0.04293549433350563, 0.017883947119116783, 0.010339567437767982, -0.026059215888381004, -0.015334104187786579, -0.022694474086165428, 0.01876894384622574, 0.015886131674051285, 0.00870100874453783, 0.031404245644807816, -0.035837993025779724, 0.06498154997825623, 0.013152280822396278, 0.040236689150333405, 0.017533453181385994, -0.0291435606777668, 0.04233965277671814, 0.018839042633771896, -0.0005974824307486415, -0.06091582402586937, -0.030773356556892395, -0.02360575832426548, 0.028775542974472046, 0.039921246469020844, 0.024727338925004005, -0.06754016131162643, -0.03872956708073616, -0.03515452891588211, -0.011338475160300732, 0.05376575142145157, -0.024061400443315506, 0.009875163435935974, 0.012249758467078209, -0.011110654100775719, 0.044127169996500015, -0.023167641833424568, 0.03361235558986664, 0.07062450051307678, -0.00488062622025609, -0.08152486383914948, -0.02050388790667057, 0.03687195107340813, 0.0250252578407526, 0.027548814192414284, 0.02961672656238079, -0.05593881383538246, -0.0016396539285779, 0.02670762874186039, 0.0003951270191464573, -0.04072738066315651, 0.004731666296720505, -0.04987527057528496, -0.013336289674043655, -0.01747211627662182, 0.0029594821389764547, 0.06256314367055893, -0.025515949353575706, 0.035995714366436005, -0.009717441163957119, 0.03264850005507469, -0.013739357702434063, 0.018173104152083397, -0.04027174040675163, 0.03837907314300537, 0.06371977925300598, 0.013651734218001366, 0.0011204848997294903, 0.013012083247303963, 0.005857627838850021, 0.07647775113582611, 0.00936694722622633, 0.059794243425130844, -0.01857617311179638, -0.027093172073364258, -0.02977444976568222, 0.011908027343451977, 0.020994579419493675, -0.031281571835279465, -0.04559924453496933, -0.014186237007379532, 0.015684599056839943, 0.018278252333402634, 0.018628746271133423, 0.027934357523918152, 0.020135870203375816, -0.005739336367696524, -0.029756924137473106, 0.04815785214304924, 0.02300991863012314, -0.04654558002948761, 0.04654558002948761, -0.03168464079499245, 0.008858731016516685, -0.02860029600560665, -0.009314373135566711, 0.009586005471646786, -0.013266190886497498, 0.050295863300561905, -0.05134734511375427, 0.03820382431149483, 0.01917201094329357, -0.003016437403857708, -0.014668166637420654, 0.009323135949671268, 0.012311095371842384, -0.034471068531274796, 0.013239904306828976, -0.0051829274743795395, 0.05464198440313339, -0.029476530849933624, -0.004906913265585899, -0.007360370364040136, -0.016403110697865486, -0.08944602310657501, 0.018944190815091133, 0.025831393897533417, 0.017533453181385994, 0.06505165249109268, -0.018138054758310318, 0.030598109588027, 0.006322032306343317, -0.03012494370341301, 0.00905150268226862, -0.05232872813940048, 0.03964085131883621, -0.0005898153758607805, 0.02046883851289749, -0.015369153581559658, -0.010085459798574448, -0.016595881432294846, 0.07178113609552383, 0.014782076701521873, -0.006562996655702591, -0.008950735442340374, -0.006260695867240429, -0.1009422168135643, -0.01803290657699108, 0.018611222505569458, -0.01959260366857052, -0.0006358177051879466, -0.008963879197835922, 0.026146838441491127, 0.049980416893959045, 0.01806795597076416, 0.0410778746008873, -0.001991243101656437, -0.06287859380245209, -0.004893769975751638, 0.013038369826972485, -0.00399781996384263, 0.08152486383914948, -0.012924459762871265, 0.009060265496373177, 0.01215337309986353, -0.030598109588027, -0.000556956569198519, -0.06270334124565125, 0.017568502575159073, 0.05134734511375427, -0.011443623341619968, -0.0035706558264791965, 0.018944190815091133, -0.011180752888321877, 0.04952477663755417, -0.0410778746008873, 0.017428305000066757, -0.002297925064340234, -0.005003299098461866, 0.029914647340774536, -0.07030905783176422, -0.045073505491018295, -0.06196730583906174, 0.05117209628224373, 0.010400904342532158, -0.020328640937805176, 0.025743771344423294, -0.05099685117602348, 0.040236689150333405, -0.07977239042520523, 0.053240012377500534, 0.019101912155747414, 0.013353814370930195, 0.017069049179553986, 0.006094211246818304, -0.021117253229022026, 0.08488960564136505, -0.04237470403313637, -0.023430511355400085, -0.04493330791592598, -0.021555369719862938, 0.035802941769361496, -0.04437251761555672, 0.008411851711571217, 0.024569615721702576, -0.019855475053191185, -0.06852154433727264, 0.007837917655706406, 0.0065104225650429726, -0.06421046704053879, -0.012179659679532051, -0.019960623234510422, 0.021730616688728333, -0.008381183259189129, -0.01987299881875515, 0.02933633327484131, 0.04780735820531845, 0.027951881289482117, -0.0070974999107420444, 0.08187535405158997, 0.009971548803150654, -0.03168464079499245, -0.0029441481456160545, -0.024955159053206444, -0.04332103580236435, -0.024289220571517944, 0.00840308889746666, -0.03771313279867172, -0.0076057156547904015, 0.04717646911740303, 0.001090364414267242, -0.021029628813266754, -0.02607673965394497, -0.040832530707120895, 0.036977097392082214, 0.06273839622735977, -0.01959260366857052, -0.022641900926828384, -0.03943055495619774, -0.009235512465238571, -0.046440429985523224, 0.007890491746366024, -0.006304507609456778, 0.04276024550199509, -0.01423881109803915, -0.00729465251788497, 0.011215802282094955, -0.03555759787559509, 0.016052616760134697, 0.0016429397510364652, -0.04787745699286461, 0.05250397324562073, 0.010961693711578846, 0.0004006034869235009, 0.07486548274755478, -0.03131662309169769, 0.05050615966320038, -0.00828917883336544, 0.08965631574392319, 0.0006078876904211938, -0.06354452669620514, 0.02737356722354889, -0.03538234904408455, 0.03459373861551285, -0.06946787238121033, -0.03701214864850044, -0.04910418391227722, 0.018453499302268028, -0.020398739725351334, 0.06845144182443619, 0.009121601469814777, -0.011540008708834648, 0.010462240315973759 ]
730,274
mmengine.utils.misc
apply_to
Apply function to each element in dict, list or tuple that matches with the expression. For examples, if you want to convert each element in a list of dict from `np.ndarray` to `Tensor`. You can use the following code: Examples: >>> from mmengine.utils import apply_to >>> import numpy as np >>> import torch >>> data = dict(array=[np.array(1)]) # {'array': [array(1)]} >>> result = apply_to(data, lambda x: isinstance(x, np.ndarray), lambda x: torch.from_numpy(x)) >>> print(result) # {'array': [tensor(1)]} Args: data (Any): Data to be applied. expr (Callable): Expression to tell which data should be applied with the function. It should return a boolean. apply_func (Callable): Function applied to data. Returns: Any: The data after applying.
def apply_to(data: Any, expr: Callable, apply_func: Callable): """Apply function to each element in dict, list or tuple that matches with the expression. For examples, if you want to convert each element in a list of dict from `np.ndarray` to `Tensor`. You can use the following code: Examples: >>> from mmengine.utils import apply_to >>> import numpy as np >>> import torch >>> data = dict(array=[np.array(1)]) # {'array': [array(1)]} >>> result = apply_to(data, lambda x: isinstance(x, np.ndarray), lambda x: torch.from_numpy(x)) >>> print(result) # {'array': [tensor(1)]} Args: data (Any): Data to be applied. expr (Callable): Expression to tell which data should be applied with the function. It should return a boolean. apply_func (Callable): Function applied to data. Returns: Any: The data after applying. """ # noqa: E501 if isinstance(data, dict): # Keep the original dict type res = type(data)() for key, value in data.items(): res[key] = apply_to(value, expr, apply_func) return res elif isinstance(data, tuple) and hasattr(data, '_fields'): # namedtuple return type(data)(*(apply_to(sample, expr, apply_func) for sample in data)) # type: ignore # noqa: E501 # yapf:disable elif isinstance(data, (tuple, list)): return type(data)(apply_to(sample, expr, apply_func) for sample in data) # type: ignore # noqa: E501 # yapf:disable elif expr(data): return apply_func(data) else: return data
(data: Any, expr: Callable, apply_func: Callable)
[ 0.02661939524114132, -0.048162978142499924, 0.01550412829965353, -0.0245585385710001, 0.006817045621573925, 0.022306861355900764, 0.00022525708482135087, -0.03949974849820137, 0.037114497274160385, 0.016820786520838737, 0.029767924919724464, 0.0019356306875124574, 0.02520732581615448, -0.01787983812391758, -0.01852862536907196, 0.015656784176826477, -0.004775271285325289, 0.05354410037398338, 0.034652918577194214, 0.044957201927900314, 0.014101600274443626, -0.03631305322051048, 0.0039308927953243256, 0.016887573525309563, 0.020913876593112946, 0.006387700792402029, -0.025150081142783165, 0.0017269212985411286, -0.002214705105870962, -0.0025092833675444126, 0.005571945104748011, -0.044690053910017014, 0.03976689651608467, -0.015122488141059875, 0.014731306582689285, 0.011086643673479557, -0.003847409039735794, 0.01606704667210579, -0.008691852912306786, -0.10121094435453415, -0.014387831091880798, -0.063772052526474, -0.04064466804265976, 0.05854358524084091, -0.011668644845485687, 0.028279529884457588, -0.02444404736161232, 0.032630227506160736, -0.031313568353652954, -0.05392574146389961, -0.014368748292326927, -0.034156788140535355, 0.06911502033472061, 0.05552862957119942, 0.04633110389113426, 0.03669469431042671, -0.06686334311962128, 0.006211192347109318, 0.03230583295226097, 0.0010530881118029356, 0.05839093029499054, 0.032363079488277435, -0.06888603419065475, -0.0401485338807106, -0.018166067078709602, 0.008090769872069359, -0.0393470898270607, 0.01363409124314785, -0.05514698848128319, 0.019387315958738327, -0.07625168561935425, -0.013538681901991367, 0.024520374834537506, 0.01061913464218378, 0.012784942053258419, -0.012050285004079342, 0.01293759886175394, 0.043430641293525696, 0.030149566009640694, 0.04091181606054306, -0.06247447803616524, -0.01942547969520092, -0.07812172174453735, -0.02032233402132988, -0.017135638743638992, -0.015093864873051643, -0.03927076235413551, 0.04789583012461662, -0.004842058289796114, -0.05041465163230896, -0.023203715682029724, -0.041751421988010406, 0.018681282177567482, -0.0066453078761696815, -0.01537055429071188, -0.0026261606253683567, 0.018814856186509132, 0.006497422233223915, 0.043926771730184555, 0.016925737261772156, 0.017173802480101585, 0.03726715222001076, -0.01421609241515398, 0.0018378354143351316, 0.015227438881993294, -0.015132028609514236, -0.013242910616099834, 0.01087674219161272, -0.025913361459970474, 0.019768955186009407, -0.048811763525009155, 0.01915833167731762, -0.0010817110305652022, -0.01646776869893074, 0.01595255546271801, 0.0013619780074805021, -0.03371790051460266, -0.010781331919133663, -0.06968747824430466, -0.008486720733344555, -0.011535070836544037, 0.03938525542616844, 0.02213512361049652, -0.006697783246636391, -0.018671739846467972, 0.017946625128388405, 0.04373595118522644, -0.041102636605501175, -0.0017889378359541297, -0.0030364238191396, -0.03846931830048561, -0.0173646230250597, -0.043697789311409, 0.0596885085105896, 0.05682620778679848, -0.011287004686892033, -0.015036619268357754, -0.012231564149260521, -0.04812481254339218, -0.0013393181143328547, 0.03741980716586113, -0.020494071766734123, 0.038030434399843216, 0.025913361459970474, -0.007246390916407108, -0.047285206615924835, -0.0007841510814614594, 0.046483758836984634, 0.00932155828922987, 0.00862506590783596, -0.05365859344601631, 0.07129036635160446, 0.031084584072232246, -0.0031246780417859554, -0.003623195458203554, -0.0012075330596417189, 0.02637132816016674, -0.08106034994125366, 0.015523210167884827, -0.05052914470434189, -0.025493556633591652, 0.050872620195150375, -0.04320165514945984, -0.011229759082198143, 0.03522538021206856, -0.0032320143654942513, -0.036713775247335434, 0.004918386228382587, 0.0245585385710001, -0.02263125590980053, -0.014092059805989265, -0.04373595118522644, 0.037629712373018265, 0.027497166767716408, -0.017593607306480408, 0.005509928334504366, -0.05136875435709953, -0.007532620802521706, -0.005576715338975191, 0.0030936698894947767, -0.02329912595450878, 0.003709064330905676, -0.05633007362484932, 0.023051060736179352, -0.03638938069343567, 0.03679010272026062, -0.043545130640268326, 0.043010834604501724, -0.054460037499666214, 0.02236410789191723, -0.036847349256277084, -0.044575560837984085, 0.00005590430737356655, -0.028069626539945602, -0.01227926928550005, -0.011496907100081444, -0.0375724658370018, 0.0493842251598835, 0.031027337536215782, 0.022955650463700294, -0.032229505479335785, -0.09044869989156723, 0.06747396290302277, 0.04980402812361717, -0.07522125542163849, -0.04446106776595116, 0.026581231504678726, 0.060642607510089874, -0.002537906402722001, -0.030435794964432716, 0.0042195082642138, -0.022020632401108742, 0.012765860185027122, 0.011220217682421207, 0.0588870644569397, 0.02432955428957939, 0.031160911545157433, -0.04102630913257599, -0.006554668303579092, 0.014712224714457989, 0.04297267273068428, -0.037515219300985336, -0.04236204922199249, 0.025550803169608116, 0.0667106881737709, -0.0002283877256559208, -0.0151892751455307, 0.029519859701395035, 0.07361836731433868, 0.008925607427954674, 0.005481305532157421, 0.013968026265501976, 0.027039198204874992, -0.02677205018699169, 0.07587004452943802, -0.037515219300985336, 0.04198040813207626, -0.027974218130111694, 0.022535845637321472, 0.00017710484098643064, 0.006817045621573925, 0.015322849154472351, -0.03150438889861107, -0.010342446155846119, -0.022306861355900764, -0.009951264597475529, 0.06674885004758835, 0.0370381698012352, -0.04865910857915878, -0.0673213079571724, 0.02097112126648426, 0.009326329454779625, 0.017030688002705574, 0.01357684563845396, -0.008925607427954674, 0.00017352697614114732, 0.05877257138490677, -0.019330069422721863, 0.037496138364076614, -0.04247653856873512, 0.06426818668842316, -0.003890343476086855, 0.011267922818660736, 0.02469211257994175, -0.022077878937125206, -0.057169683277606964, -0.030206812545657158, 0.002196815563365817, 0.024234144017100334, 0.07003095000982285, -0.03280196338891983, -0.037629712373018265, 0.10014235228300095, 0.009374034591019154, -0.002535521285608411, 0.022707583382725716, 0.036217641085386276, -0.014817175455391407, 0.041369784623384476, 0.017040228471159935, 0.01420655194669962, -0.020932957530021667, -0.11899537593126297, -0.05812378227710724, 0.015007996000349522, -0.021047450602054596, -0.04514801874756813, 0.023871585726737976, 0.06468798965215683, -0.023718930780887604, 0.05140691623091698, -0.0378396138548851, -0.020360497757792473, 0.021829811856150627, -0.04144611209630966, 0.03927076235413551, 0.0053763543255627155, -0.01841413415968418, 0.087395578622818, -0.05491800606250763, 0.02818411961197853, -0.011143890209496021, -0.022574009373784065, -0.03396596759557724, 0.025379065424203873, 0.014197010546922684, -0.00997988786548376, 0.009626870974898338, -0.059383194893598557, 0.01775580458343029, 0.04976586624979973, -0.020360497757792473, -0.015351471491158009, -0.011000774800777435, 0.027878807857632637, -0.01124884095042944, 0.021677156910300255, 0.026275919750332832, 0.013805829919874668, 0.03280196338891983, -0.02921454794704914, -0.013863075524568558, 0.014321044087409973, -0.02276482991874218, 0.04446106776595116, -0.04614028334617615, 0.06861888617277145, -0.01761269010603428, 0.03938525542616844, 0.014445076696574688, -0.013214287348091602, 0.017393246293067932, 0.0661763846874237, 0.03835482895374298, -0.024081489071249962, -0.02908097393810749, -0.004586836788803339, 0.03604590520262718, -0.01556137390434742, 0.035263542085886, -0.043010834604501724, 0.024234144017100334, 0.007065111771225929, 0.019654463976621628, -0.0009010283392854035, -0.017135638743638992, -0.0218488946557045, -0.0031676124781370163, 0.05724601075053215, 0.01957813650369644, 0.01995977573096752, -0.0485827811062336, -0.004016761668026447, 0.014273338951170444, -0.014807634986937046, 0.0032606374006718397, -0.006578520871698856, -0.03806859627366066, 0.0061873397789895535, -0.04949871823191643, 0.09098299592733383, -0.01620062068104744, 0.009297706186771393, -0.026943789795041084, 0.06438267976045609, 0.026027852669358253, -0.007923802360892296, 0.026791132986545563, 0.04865910857915878, 0.007418128661811352, 0.07483961433172226, -0.02097112126648426, -0.012575040571391582, 0.021410008892416954, -0.0028456037398427725, 0.012565499171614647, -0.03797318786382675, 0.03358432650566101, -0.056788042187690735, 0.06071893498301506, 0.013977567665278912, -0.010838578455150127, 0.020360497757792473, -0.03423311561346054, 0.10029500722885132, -0.005862945690751076, -0.027630740776658058, -0.029767924919724464, 0.00026506095309741795, -0.022707583382725716, -0.0049470094963908195, 0.04720887541770935, -0.0028026693034917116, -0.012775401584804058, -0.04026302695274353, -0.014502322301268578, -0.025779787451028824, 0.037477053701877594, -0.027726151049137115, -0.024234144017100334, -0.026218673214316368, -0.002425799611955881, 0.0347292460501194, 0.02249768190085888, -0.012384220026433468, 0.010008511133491993, -0.0031866945791989565, 0.04381227865815163, -0.01670629344880581, 0.09021971374750137, 0.052666328847408295, 0.009545772336423397, 0.00849149189889431, -0.016133833676576614, 0.030416714027523994, 0.0542692169547081, 0.044842708855867386, 0.016362817957997322, -0.051139768213033676, -0.008701393380761147, 0.05297164246439934, -0.02597060613334179, 0.010409233160316944, 0.013796288520097733, 0.03409954160451889, -0.03396596759557724, -0.02030325122177601, -0.018080199137330055, 0.0013345476472750306, 0.055375974625349045, -0.045605987310409546, -0.12304075807332993, 0.0019570980221033096, -0.01124884095042944, 0.01876715011894703, 0.006053765770047903, -0.03719082474708557, 0.03406137600541115, 0.053849413990974426, -0.0135005172342062, 0.02188705839216709, 0.011859465390443802, 0.05877257138490677, -0.04995668679475784, -0.05041465163230896, -0.010342446155846119, -0.018757609650492668, 0.017316918820142746, -0.03463383764028549, 0.011277464218437672, 0.07293141633272171, 0.025665294378995895, 0.04308716580271721, 0.04346880316734314, 0.039423421025276184, 0.009063951671123505, -0.0021002129651606083, -0.011172513477504253, 0.053849413990974426, 0.037610627710819244, -0.01902475766837597, -0.06743580102920532, 0.010151625610888004, -0.06529861688613892, -0.00755647337064147, -0.00014773645671084523, -0.016000259667634964, -0.009645952843129635, 0.017545903101563454, -0.02932903915643692, 0.03871738538146019, 0.006230274215340614, -0.0010316207772120833, -0.004434180445969105, 0.074610635638237, 0.0702599361538887, 0.01930144615471363, -0.009545772336423397, -0.014836257323622704, -0.032878290861845016, 0.01568540744483471, -0.012202940881252289, 0.026142345741391182, -0.018671739846467972, -0.03511088714003563, -0.049727700650691986, 0.008749098517000675, -0.018986593931913376, 0.005395436659455299, 0.023776177316904068, -0.04594946280121803, 0.022058796137571335, 0.0710613802075386, 0.01208844967186451, -0.05812378227710724, -0.05140691623091698, 0.015570915304124355, 0.001979757798835635, -0.017784427851438522, -0.032859209924936295, 0.028279529884457588, 0.006568979937583208, -0.0015539906453341246, 0.03306911140680313, -0.026848379522562027, 0.007761605083942413, 0.010361528024077415, 0.026829296723008156, -0.0362367257475853, -0.013013926334679127, -0.06007014587521553, -0.016133833676576614, -0.015122488141059875, -0.038392990827560425, 0.0065355864353477955, -0.028756579384207726, 0.08319753408432007, 0.029519859701395035, -0.10510367900133133, -0.051635902374982834, -0.0023912135511636734, 0.014416453428566456, 0.004081163555383682, 0.028985563665628433, 0.02574162371456623, 0.015074783004820347, -0.00001620293187443167, -0.016038423404097557, 0.017984788864850998, -0.016544096171855927, -0.019215578213334084, -0.0033965965267270803, 0.06930583715438843, -0.007189144846051931, -0.0022707583848387003, 0.015465963631868362, 0.01002759300172329, -0.043697789311409, -0.02354719303548336, 0.057932961732149124, 0.04026302695274353, 0.02919546514749527, -0.009474215097725391, -0.04201857000589371, 0.006363848224282265, 0.0034776951652020216, -0.04785766452550888, -0.012594122439622879, 0.0017269212985411286, 0.010628676041960716, -0.02738267555832863, -0.012746778316795826, 0.057932961732149124, 0.10189789533615112, -0.017841672524809837, -0.0336606539785862, -0.003227243898436427, -0.004429410211741924, -0.047781337052583694, -0.021829811856150627, -0.05674988031387329, -0.017774885520339012, 0.019463643431663513, 0.046483758836984634, 0.015437341295182705, 0.0035802610218524933, -0.008877902291715145, 0.05438371002674103, -0.027459003031253815, -0.07155751436948776, 0.029004644602537155, 0.028088709339499474, -0.0024413038045167923, -0.1009056344628334, 0.025302736088633537, 0.009121197275817394, -0.05633007362484932, -0.11800310760736465, 0.002983948215842247, -0.06720681488513947, -0.059612177312374115, -0.01537055429071188, 0.02829861082136631, -0.027191855013370514, 0.010752708651125431, -0.03507272154092789, -0.03793502226471901, 0.08266323804855347, -0.027726151049137115, -0.011554152704775333, 0.009335869923233986, 0.03087468259036541, -0.039308927953243256, 0.015485045500099659, 0.02070397324860096, -0.022535845637321472, 0.005428830161690712, 0.04247653856873512, -0.015036619268357754, -0.06610006093978882, -0.06266529858112335, 0.031046420335769653, -0.029271792620420456, 0.012346056289970875, -0.013338320888578892, -0.018986593931913376, 0.0062827495858073235, 0.05697886273264885, 0.07632801681756973, -0.008858820423483849, 0.020112432539463043, 0.026142345741391182, 0.056520894169807434, 0.009235689416527748, 0.05106344074010849, -0.032496653497219086, -0.03654203563928604, 0.045987628400325775, -0.009221377782523632, 0.02892831712961197, 0.01776534505188465, 0.007675735745579004, -0.018299641087651253, 0.0326874703168869, -0.035816919058561325, -0.0033679737243801355, 0.013643632642924786, -0.030321303755044937, -0.01685895025730133, -0.05041465163230896, -0.03047396056354046, 0.01776534505188465, 0.06686334311962128, -0.025779787451028824, -0.05774214118719101, -0.005075812805444002, 0.005152140744030476, 0.05106344074010849, -0.009512378834187984, -0.03991955146193504, 0.06209284067153931, -0.026562148705124855, 0.03972873091697693, -0.04526251181960106, 0.0862506553530693, -0.04274368658661842, -0.017956165596842766, 0.0017984788864850998, -0.008601212874054909, 0.02570345811545849, -0.004560598637908697, -0.035568855702877045, -0.03976689651608467, 0.08044973015785217, 0.036084067076444626, 0.04312532767653465, 0.05991749092936516, -0.04446106776595116, 0.0002820558729581535, 0.038259416818618774, -0.0178989190608263, -0.028374940156936646, -0.000039580248994752765, -0.0001113613834604621, 0.0841134712100029, -0.017689017578959465, -0.020093349739909172, 0.029882417991757393, 0.031332649290561676, 0.011869005858898163, 0.002583226189017296, 0.004739492665976286, -0.030550288036465645, 0.016801703721284866, 0.0667106881737709, -0.019139248877763748, 0.03110366500914097, 0.002597537823021412, -0.012374679557979107, -0.028756579384207726, -0.039537910372018814, -0.012899434193968773, -0.02522640861570835, 0.04133161902427673, -0.07999175786972046, -0.0028074397705495358, 0.04579680785536766, 0.019463643431663513, -0.018213773146271706, -0.05751315876841545, -0.0017984788864850998, -0.05289531499147415, -0.013824911788105965, -0.057169683277606964, -0.03862197697162628, -0.044957201927900314, -0.09708923101425171, 0.009865395724773407, 0.04846828803420067, 0.011143890209496021, 0.008124163374304771, 0.021142860874533653, -0.00710804620757699, -0.035549771040678024, 0.06499330699443817, -0.0242913905531168, -0.07216813415288925, -0.024119652807712555, 0.028527595102787018, -0.0303785502910614, -0.05984116345643997, 0.04171326011419296, -0.03398504853248596, -0.02841310389339924, -0.007561244070529938, -0.013615009374916553, -0.03291645646095276, 0.07907582074403763, -0.031332649290561676, 0.006277979351580143, 0.033889640122652054, -0.011620939709246159, 0.043697789311409, -0.03371790051460266, 0.014864880591630936, -0.018948430195450783, 0.046369269490242004, -0.0006487881182692945, -0.023966995999217033, -0.019244201481342316, 0.027191855013370514, -0.018862560391426086, 0.0540020689368248, -0.010103920474648476, -0.05003301426768303, 0.0034657688811421394, -0.032763801515102386, -0.03230583295226097, -0.04205673560500145, 0.004384090192615986, 0.023241879418492317, 0.023089224472641945, -0.02995874546468258, 0.07151935249567032, 0.018356887623667717, -0.06861888617277145, 0.041636932641267776, 0.008658459410071373, 0.0370381698012352, 0.0021085613407194614, 0.0037376873660832644, 0.05388757959008217, -0.0014502322301268578, 0.010628676041960716, 0.020036103203892708, 0.03179061785340309, 0.026218673214316368, -0.06926767528057098, -0.03085559979081154, -0.012832647189497948, 0.02791697159409523, -0.00197856524027884, 0.0200742669403553, -0.03371790051460266, -0.001751966425217688, -0.04564415290951729, 0.040072206407785416, 0.03949974849820137 ]
730,275
mmengine.registry.build_functions
build_from_cfg
Build a module from config dict when it is a class configuration, or call a function from config dict when it is a function configuration. If the global variable default scope (:obj:`DefaultScope`) exists, :meth:`build` will firstly get the responding registry and then call its own :meth:`build`. At least one of the ``cfg`` and ``default_args`` contains the key "type", which should be either str or class. If they all contain it, the key in ``cfg`` will be used because ``cfg`` has a high priority than ``default_args`` that means if a key exists in both of them, the value of the key will be ``cfg[key]``. They will be merged first and the key "type" will be popped up and the remaining keys will be used as initialization arguments. Examples: >>> from mmengine import Registry, build_from_cfg >>> MODELS = Registry('models') >>> @MODELS.register_module() >>> class ResNet: >>> def __init__(self, depth, stages=4): >>> self.depth = depth >>> self.stages = stages >>> cfg = dict(type='ResNet', depth=50) >>> model = build_from_cfg(cfg, MODELS) >>> # Returns an instantiated object >>> @MODELS.register_module() >>> def resnet50(): >>> pass >>> resnet = build_from_cfg(dict(type='resnet50'), MODELS) >>> # Return a result of the calling function Args: cfg (dict or ConfigDict or Config): Config dict. It should at least contain the key "type". registry (:obj:`Registry`): The registry to search the type from. default_args (dict or ConfigDict or Config, optional): Default initialization arguments. Defaults to None. Returns: object: The constructed object.
def build_from_cfg( cfg: Union[dict, ConfigDict, Config], registry: Registry, default_args: Optional[Union[dict, ConfigDict, Config]] = None) -> Any: """Build a module from config dict when it is a class configuration, or call a function from config dict when it is a function configuration. If the global variable default scope (:obj:`DefaultScope`) exists, :meth:`build` will firstly get the responding registry and then call its own :meth:`build`. At least one of the ``cfg`` and ``default_args`` contains the key "type", which should be either str or class. If they all contain it, the key in ``cfg`` will be used because ``cfg`` has a high priority than ``default_args`` that means if a key exists in both of them, the value of the key will be ``cfg[key]``. They will be merged first and the key "type" will be popped up and the remaining keys will be used as initialization arguments. Examples: >>> from mmengine import Registry, build_from_cfg >>> MODELS = Registry('models') >>> @MODELS.register_module() >>> class ResNet: >>> def __init__(self, depth, stages=4): >>> self.depth = depth >>> self.stages = stages >>> cfg = dict(type='ResNet', depth=50) >>> model = build_from_cfg(cfg, MODELS) >>> # Returns an instantiated object >>> @MODELS.register_module() >>> def resnet50(): >>> pass >>> resnet = build_from_cfg(dict(type='resnet50'), MODELS) >>> # Return a result of the calling function Args: cfg (dict or ConfigDict or Config): Config dict. It should at least contain the key "type". registry (:obj:`Registry`): The registry to search the type from. default_args (dict or ConfigDict or Config, optional): Default initialization arguments. Defaults to None. Returns: object: The constructed object. """ # Avoid circular import from ..logging import print_log if not isinstance(cfg, (dict, ConfigDict, Config)): raise TypeError( f'cfg should be a dict, ConfigDict or Config, but got {type(cfg)}') if 'type' not in cfg: if default_args is None or 'type' not in default_args: raise KeyError( '`cfg` or `default_args` must contain the key "type", ' f'but got {cfg}\n{default_args}') if not isinstance(registry, Registry): raise TypeError('registry must be a mmengine.Registry object, ' f'but got {type(registry)}') if not (isinstance(default_args, (dict, ConfigDict, Config)) or default_args is None): raise TypeError( 'default_args should be a dict, ConfigDict, Config or None, ' f'but got {type(default_args)}') args = cfg.copy() if default_args is not None: for name, value in default_args.items(): args.setdefault(name, value) # Instance should be built under target scope, if `_scope_` is defined # in cfg, current default scope should switch to specified scope # temporarily. scope = args.pop('_scope_', None) with registry.switch_scope_and_registry(scope) as registry: obj_type = args.pop('type') if isinstance(obj_type, str): obj_cls = registry.get(obj_type) if obj_cls is None: raise KeyError( f'{obj_type} is not in the {registry.scope}::{registry.name} registry. ' # noqa: E501 f'Please check whether the value of `{obj_type}` is ' 'correct or it was registered as expected. More details ' 'can be found at ' 'https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#import-the-custom-module' # noqa: E501 ) # this will include classes, functions, partial functions and more elif callable(obj_type): obj_cls = obj_type else: raise TypeError( f'type must be a str or valid type, but got {type(obj_type)}') # If `obj_cls` inherits from `ManagerMixin`, it should be # instantiated by `ManagerMixin.get_instance` to ensure that it # can be accessed globally. if inspect.isclass(obj_cls) and \ issubclass(obj_cls, ManagerMixin): # type: ignore obj = obj_cls.get_instance(**args) # type: ignore else: obj = obj_cls(**args) # type: ignore if (inspect.isclass(obj_cls) or inspect.isfunction(obj_cls) or inspect.ismethod(obj_cls)): print_log( f'An `{obj_cls.__name__}` instance is built from ' # type: ignore # noqa: E501 'registry, and its implementation can be found in ' f'{obj_cls.__module__}', # type: ignore logger='current', level=logging.DEBUG) else: print_log( 'An instance is built from registry, and its constructor ' f'is {obj_cls}', logger='current', level=logging.DEBUG) return obj
(cfg: Union[dict, mmengine.config.config.ConfigDict, mmengine.config.config.Config], registry: mmengine.registry.registry.Registry, default_args: Union[dict, mmengine.config.config.ConfigDict, mmengine.config.config.Config, NoneType] = None) -> Any
[ 0.0678105279803276, -0.026854820549488068, 0.00017741203191690147, -0.03422095626592636, 0.002092771464958787, 0.011869999580085278, -0.009765389375388622, -0.008150101639330387, -0.01215412188321352, -0.048448119312524796, 0.014311346225440502, 0.019194040447473526, -0.023824183270335197, 0.014921683818101883, 0.0003788297763094306, 0.0022058940958231688, -0.026391806080937386, 0.03451560065150261, 0.026076115667819977, -0.0440705306828022, 0.017952321097254753, -0.005114201921969652, 0.04474400356411934, 0.03142182528972626, 0.07467155903577805, 0.0093234209343791, 0.02883315458893776, 0.034347232431173325, -0.04091361537575722, -0.037462055683135986, 0.002820177236571908, -0.04806928709149361, 0.0412713997066021, 0.044238898903131485, 0.018457427620887756, -0.0486585795879364, 0.0003817893739324063, 0.07252485305070877, -0.12299339473247528, -0.031316593289375305, 0.0027412541676312685, -0.03384212404489517, 0.03417886421084404, -0.010107388719916344, -0.0029569766484200954, -0.000413358531659469, 0.018994104117155075, 0.04853230342268944, -0.04579630866646767, -0.05358336493372917, 0.020130593329668045, -0.05459357798099518, 0.006960996892303228, 0.02849641628563404, -0.028391186147928238, -0.0045933108776807785, -0.026412852108478546, 0.021930033341050148, 0.04701698198914528, 0.05493031442165375, 0.004535434301942587, 0.010349418967962265, -0.0007083327509462833, 0.0012292236788198352, -0.016047649085521698, -0.019288748502731323, -0.09588602185249329, -0.004488080274313688, -0.012185690924525261, 0.045712124556303024, -0.025865653529763222, -0.0189414881169796, 0.0440705306828022, -0.015121621079742908, 0.027822941541671753, -0.05240478366613388, -0.03594673424959183, -0.038914233446121216, 0.06010765582323074, 0.028264909982681274, -0.011796337552368641, 0.0022782401647418737, -0.07479783147573471, -0.04453354328870773, 0.02658122219145298, 0.016626417636871338, -0.08262698352336884, -0.003640974871814251, 0.036262426525354385, -0.06115996092557907, -0.05211013928055763, 0.0046432954259216785, 0.004132927395403385, -0.004969509784132242, -0.047227442264556885, -0.031653329730033875, 0.04668024554848671, 0.014879590831696987, 0.03417886421084404, -0.010423080064356327, -0.01764715276658535, -0.030453704297542572, -0.056782372295856476, 0.014953252859413624, -0.01422716211527586, -0.044617727398872375, -0.012869688682258129, 0.030832532793283463, -0.026286575943231583, 0.005461462307721376, -0.03340015560388565, -0.04819556325674057, -0.01101763267070055, -0.0029753921553492546, 0.020214777439832687, -0.02919093705713749, -0.04642769321799278, -0.006029706913977861, 0.0033147605136036873, 0.018110167235136032, -0.03670439496636391, 0.029148845002055168, -0.03880900517106056, 0.024518704041838646, 0.07707080990076065, 0.01177529152482748, 0.024181965738534927, -0.04402843862771988, 0.0827532559633255, -0.0546356700360775, 0.06650567054748535, 0.017899706959724426, -0.07134627550840378, 0.011806860566139221, 0.037419963628053665, -0.011143908835947514, -0.060907408595085144, -0.031695421785116196, -0.03493652120232582, -0.0034594524186104536, 0.01880468800663948, 0.011649015359580517, 0.007192504126578569, -0.01902567222714424, -0.025907747447490692, -0.049163684248924255, -0.007487149443477392, 0.008639423176646233, -0.021887941285967827, -0.014574422501027584, 0.005740323103964329, -0.003656759625300765, -0.002593931509181857, 0.05846605822443962, -0.060991592705249786, -0.035146985203027725, -0.0022848169319331646, 0.0576242171227932, -0.0009161629714071751, -0.0008023824775591493, -0.035062797367572784, 0.01846795156598091, 0.03607301041483879, -0.048406023532152176, 0.015721434727311134, -0.034747108817100525, 0.0025334239471703768, -0.09394977986812592, 0.004306557588279247, 0.050721097737550735, -0.06419059634208679, -0.04091361537575722, 0.014879590831696987, -0.001586349681019783, -0.04099779948592186, 0.053036168217659, -0.041923828423023224, -0.021182898432016373, -0.0015981880715116858, -0.00711884256452322, 0.027928171679377556, 0.010307326912879944, -0.058213505893945694, -0.016184449195861816, -0.012743412517011166, 0.045417480170726776, -0.020309483632445335, 0.009981111623346806, -0.0035488982684910297, -0.017499830573797226, -0.00242819357663393, 0.01802598312497139, 0.019488686695694923, -0.019825424998998642, -0.01980437897145748, 0.02235095575451851, -0.06823144853115082, 0.06962049007415771, -0.02390836738049984, 0.11188105493783951, 0.022561417892575264, 0.03306341916322708, 0.036977995187044144, 0.027843987569212914, -0.015742480754852295, -0.03413677215576172, 0.06259109824895859, 0.035462673753499985, 0.008118532598018646, -0.023929413408041, -0.00793437846004963, -0.04019804671406746, -0.023298030719161034, 0.051478754729032516, 0.009354990907013416, -0.03419990837574005, 0.043102409690618515, 0.035841505974531174, -0.008923545479774475, 0.020046409219503403, 0.04470191150903702, 0.029064660891890526, 0.02470811828970909, 0.02167748101055622, -0.029064660891890526, -0.043775882571935654, -0.05467776209115982, -0.02069883793592453, 0.034347232431173325, -0.057876769453287125, 0.013595779426395893, -0.04331286996603012, 0.029906505718827248, 0.009944281540811062, 0.05194177106022835, -0.00817640870809555, 0.04360751435160637, 0.03918783366680145, -0.014532330445945263, 0.05539333075284958, 0.09209772199392319, 0.0062980446964502335, -0.03388421609997749, -0.0315060093998909, -0.004722218029201031, 0.007281949743628502, 0.0036330826114863157, -0.009086652658879757, 0.007860717363655567, -0.02395045943558216, 0.012322490103542805, 0.04971088469028473, -0.010228403843939304, 0.04276566952466965, -0.07189346849918365, 0.016226541250944138, 0.00970225129276514, -0.06734751164913177, 0.01967810094356537, -0.05501449853181839, 0.02350849099457264, -0.016773739829659462, 0.052236415445804596, 0.06229645013809204, -0.012417198158800602, -0.02426615171134472, -0.0011351739522069693, -0.007360872812569141, 0.029759181663393974, -0.017815520986914635, 0.07349297404289246, 0.050300173461437225, 0.04903740808367729, 0.014153501018881798, -0.02012006938457489, -0.0398823544383049, 0.020183207467198372, -0.04453354328870773, 0.006908381823450327, 0.0265180841088295, -0.0078028407879173756, -0.023845229297876358, 0.028938384726643562, -0.018731027841567993, 0.0026991621125489473, -0.014511284418404102, -0.012290921062231064, 0.009233975782990456, 0.029317215085029602, 0.023739999160170555, 0.017573492601513863, -0.006655828561633825, 0.015005867928266525, 0.012406675145030022, 0.039713986217975616, -0.025655193254351616, -0.03912469744682312, -0.007039919961243868, 0.015510974451899529, -0.07084116339683533, -0.0065663824789226055, -0.019372932612895966, -0.0032305759377777576, 0.001908618025481701, 0.04739581421017647, -0.0013811502140015364, 0.03257935866713524, -0.05606680363416672, 0.00793437846004963, 0.04181859642267227, 0.009886404499411583, 0.02201421931385994, 0.08010144531726837, -0.00979169737547636, 0.03276877477765083, -0.015500451438128948, 0.023298030719161034, -0.03175856173038483, 0.04529120400547981, 0.012354059144854546, -0.01597398892045021, 0.069788858294487, -0.018994104117155075, 0.031316593289375305, 0.03173751384019852, -0.028243863955140114, -0.010933447629213333, 0.06153878942131996, 0.01826801337301731, -0.016721125692129135, -0.06890492141246796, 0.013501071371138096, 0.0644010603427887, 0.018320627510547638, 0.0486585795879364, -0.023066522553563118, 0.0020059561356902122, -0.03312655910849571, -0.009476006031036377, -0.03916678950190544, 0.07256694883108139, -0.007723917718976736, -0.06292783468961716, 0.010333633981645107, 0.0003107587981503457, 0.01577405072748661, 0.07092534750699997, -0.03076939471065998, 0.051857586950063705, -0.026728544384241104, -0.029738135635852814, -0.03531535342335701, 0.011091293767094612, -0.026854820549488068, 0.03072730265557766, -0.038093436509370804, -0.009207667782902718, -0.04806928709149361, -0.007092535030096769, -0.06309620290994644, 0.018994104117155075, 0.004043481778353453, -0.08755176514387131, 0.038577497005462646, -0.021340742707252502, -0.005322032142430544, -0.013900947757065296, 0.010880832560360432, 0.07913333177566528, -0.04432308301329613, 0.02065674588084221, -0.01539522036910057, -0.00826585479080677, 0.021445974707603455, -0.008949853479862213, 0.04903740808367729, -0.012638181447982788, -0.010144218802452087, -0.06238063424825668, 0.01866788975894451, 0.006708443630486727, 0.05198386311531067, -0.0011654276167973876, 0.005072109401226044, 0.047648366540670395, -0.022266771644353867, -0.00843422394245863, 0.02538159489631653, -0.009065606631338596, -0.03255831450223923, 0.015121621079742908, 0.03072730265557766, 0.010412557050585747, 0.030979856848716736, 0.009055083617568016, 0.005813984666019678, -0.014090362936258316, 0.05850815400481224, -0.04057687520980835, 0.009765389375388622, 0.03946143388748169, -0.030285334214568138, 0.0849420502781868, 0.001000347314402461, -0.015216329135000706, 0.008897237479686737, 0.03832494467496872, -0.015447835437953472, -0.004301296081393957, 0.043775882571935654, 0.031274501234292984, 0.007708133198320866, -0.1178581491112709, 0.014753314666450024, -0.046848613768815994, -0.002311124699190259, 0.09226609021425247, -0.019909609109163284, 0.004435465205460787, -0.04251311719417572, 0.03346329554915428, -0.005750846117734909, 0.05135247856378555, 0.0033542218152433634, 0.023718953132629395, 0.08241651952266693, -0.025171132758259773, 0.023845229297876358, -0.03763042390346527, -0.0007326672784984112, -0.04550166428089142, 0.009055083617568016, -0.020509421825408936, 0.013995654881000519, 0.02887524664402008, -0.0644010603427887, 0.0043618036434054375, -0.035525813698768616, 0.025234270840883255, 0.006376967765390873, -0.029906505718827248, -0.02956976741552353, 0.01599503494799137, 0.03670439496636391, -0.10152637958526611, 0.00019368987705092877, -0.017710290849208832, 0.005835030693560839, 0.0078028407879173756, 0.02578146941959858, 0.012995965778827667, 0.007439795415848494, 0.024181965738534927, 0.06191762164235115, 0.027654573321342468, -0.1070825457572937, -0.026791682466864586, 0.03300028294324875, 0.02956976741552353, 0.052615243941545486, -0.006450628861784935, -0.04903740808367729, 0.010396772064268589, 0.015079529024660587, -0.03352643549442291, 0.062043897807598114, 0.08081701397895813, -0.012301444076001644, -0.015405743382871151, -0.03485233709216118, 0.04979506880044937, 0.01291178073734045, -0.006303306203335524, 0.008891976438462734, -0.044575635343790054, 0.00720828864723444, 0.05467776209115982, 0.008397392928600311, -0.046848613768815994, -0.06250691413879395, 0.03939829394221306, 0.027612481266260147, 0.0047748335637152195, 0.032516222447156906, -0.06200180575251579, -0.060570668429136276, 0.06456942856311798, -0.028201771900057793, 0.007655518129467964, 0.06145460531115532, -0.05038435757160187, 0.0037856667768210173, 0.024224059656262398, -0.015279467217624187, -0.01876259595155716, -0.01824696734547615, 0.007618687581270933, 0.020372623577713966, -0.008676254190504551, -0.034768152981996536, 0.012838119640946388, 0.028980476781725883, -0.06852609664201736, 0.023340122774243355, 0.004385480657219887, -0.07180928438901901, -0.052531059831380844, 0.029085706919431686, -0.010328372940421104, 0.009165575727820396, -0.047858826816082, -0.0119647067040205, -0.04295508563518524, 0.006203337572515011, 0.014984821900725365, -0.011701630428433418, 0.026349714025855064, 0.01177529152482748, -0.07694453746080399, -0.05114201828837395, 0.014100885950028896, 0.03563104197382927, 0.04453354328870773, 0.0017139415722340345, 0.020425237715244293, 0.055561698973178864, 0.06137042120099068, 0.01289073470979929, 0.012827596627175808, 0.03316865116357803, 0.02071988396346569, -0.02056203782558441, -0.04181859642267227, 0.037041131407022476, 0.006618998013436794, -0.02056203782558441, 0.026265529915690422, 0.022982338443398476, 0.010307326912879944, -0.0034515601582825184, 0.02430824376642704, -0.021824803203344345, 0.004009281750768423, 0.009739081375300884, 0.005666662007570267, -0.05631935968995094, 0.0811537504196167, 0.014269254170358181, -0.024855442345142365, -0.02613925375044346, -0.014006177894771099, -0.02462393417954445, -0.008113270625472069, 0.05812932178378105, 0.027865033596754074, 0.0307062566280365, 0.020151639357209206, -0.01070720236748457, 0.003740943968296051, 0.012817073613405228, -0.00006202844087965786, 0.05518287047743797, -0.02660226821899414, 0.04886903986334801, -0.023929413408041, -0.019856993108987808, -0.004919525235891342, 0.0235295370221138, -0.04512283578515053, -0.01079664845019579, -0.022645602002739906, -0.025318454951047897, -0.012248829007148743, -0.029759181663393974, 0.018520565703511238, 0.06195971369743347, -0.0031121918000280857, 0.016479095444083214, -0.026749590411782265, -0.04739581421017647, 0.006666351575404406, 0.004277619533240795, -0.01617392711341381, -0.056782372295856476, 0.005950784310698509, -0.042302656918764114, -0.025213224813342094, -0.01766819879412651, 0.0035988828167319298, 0.00241767056286335, 0.02281397022306919, 0.1200469434261322, 0.01312224194407463, 0.0035357445012778044, -0.00237820902839303, 0.018331151455640793, -0.020583083853125572, -0.011670061387121677, 0.0630120187997818, -0.012406675145030022, -0.08010144531726837, -0.022498277947306633, 0.01289073470979929, -0.054509393870830536, -0.010223141871392727, -0.00606653792783618, 0.005361493676900864, -0.029043614864349365, 0.03159019351005554, -0.006513767410069704, 0.02700214274227619, -0.0632224753499031, 0.012427721172571182, 0.05114201828837395, 0.010891355574131012, -0.07555548846721649, -0.009333944879472256, 0.014974298886954784, 0.09824318438768387, 0.003120084060356021, 0.007234596181660891, 0.04364960640668869, -0.009354990907013416, -0.028580600395798683, -0.02733888104557991, 0.02007797732949257, -0.055645883083343506, -0.06318038702011108, 0.03295819088816643, 0.008702561259269714, 0.018215397372841835, 0.02275083214044571, 0.035083845257759094, -0.04562794044613838, -0.007566072046756744, -0.054509393870830536, 0.06806308031082153, 0.0029306691139936447, 0.006887335330247879, 0.00700835045427084, -0.017099954187870026, -0.048826947808265686, 0.02063569985330105, -0.0014561269199475646, -0.0303063802421093, -0.03415781632065773, 0.04747999832034111, 0.00046498721349053085, 0.03255831450223923, 0.004380219150334597, 0.03217948228120804, 0.0022058940958231688, -0.022961292415857315, 0.017731336876749992, 0.0370832234621048, 0.007334565278142691, 0.006608474534004927, -0.019078288227319717, 0.0546356700360775, 0.009675943292677402, -0.010670371353626251, -0.014342916198074818, 0.04089256748557091, -0.03579941391944885, -0.07425063103437424, -0.010975539684295654, -0.013743101619184017, -0.025676239281892776, 0.026391806080937386, 0.019751762971282005, -0.008828838355839252, -0.05505659058690071, -0.0007727863849140704, -0.02460288815200329, -0.046090953052043915, 0.0041197738610208035, 0.011406985111534595, 0.04181859642267227, -0.00588764576241374, 0.030222196131944656, -0.010722987353801727, 0.030958810821175575, -0.04739581421017647, 0.04870067164301872, 0.002941192127764225, 0.021340742707252502, 0.0031437608413398266, -0.02201421931385994, 0.04583840072154999, -0.05589843541383743, 0.00241767056286335, -0.007771271746605635, 0.039293065667152405, -0.028770016506314278, -0.003935620188713074, -0.055603791028261185, -0.08128003031015396, -0.035525813698768616, -0.0420711487531662, 0.025739377364516258, 0.05539333075284958, -0.007818625308573246, -0.040850475430488586, -0.035862550139427185, 0.009754866361618042, 0.002017794642597437, -0.02540264092385769, 0.025150086730718613, 0.019078288227319717, -0.027507249265909195, 0.030916718766093254, 0.08679410815238953, 0.07361925393342972, -0.011585877276957035, 0.007360872812569141, 0.008571023121476173, -0.013522118330001831, 0.0676000639796257, -0.07770219445228577, -0.03264249861240387, -0.0038645898457616568, 0.00588764576241374, 0.0440705306828022, -0.05055272579193115, 0.07622896879911423, -0.04390215873718262, -0.01668955571949482, -0.030558934435248375, 0.054467301815748215, -0.022582463920116425, 0.009575974196195602, -0.01916247233748436, -0.0600234717130661, -0.014574422501027584, -0.0016600110102444887, -0.07071489095687866, 0.03573627397418022, 0.005214170552790165, -0.03771460801362991, 0.010186311788856983, -0.060949500650167465, 0.04962670058012009, -0.0012206736719235778, 0.03161123767495155, 0.045333296060562134, -0.004964248277246952, 0.06456942856311798, -0.020583083853125572, -0.004238157998770475, 0.028285956010222435, 0.011091293767094612, 0.02272978611290455, 0.038577497005462646, 0.055267054587602615, 0.021572250872850418, -0.04356542229652405, -0.031695421785116196, -0.015121621079742908, -0.012017321772873402, -0.04213428869843483, 0.00003911203384632245, -0.06949421763420105, 0.011280708946287632, -0.03838808089494705, 0.019236134365200996, -0.009644374251365662, -0.01516371313482523, -0.03335806354880333 ]
730,276
mmengine.registry.build_functions
build_model_from_cfg
Build a PyTorch model from config dict(s). Different from ``build_from_cfg``, if cfg is a list, a ``nn.Sequential`` will be built. Args: cfg (dict, list[dict]): The config of modules, which is either a config dict or a list of config dicts. If cfg is a list, the built modules will be wrapped with ``nn.Sequential``. registry (:obj:`Registry`): A registry the module belongs to. default_args (dict, optional): Default arguments to build the module. Defaults to None. Returns: nn.Module: A built nn.Module.
def build_model_from_cfg( cfg: Union[dict, ConfigDict, Config], registry: Registry, default_args: Optional[Union[dict, 'ConfigDict', 'Config']] = None ) -> 'nn.Module': """Build a PyTorch model from config dict(s). Different from ``build_from_cfg``, if cfg is a list, a ``nn.Sequential`` will be built. Args: cfg (dict, list[dict]): The config of modules, which is either a config dict or a list of config dicts. If cfg is a list, the built modules will be wrapped with ``nn.Sequential``. registry (:obj:`Registry`): A registry the module belongs to. default_args (dict, optional): Default arguments to build the module. Defaults to None. Returns: nn.Module: A built nn.Module. """ from ..model import Sequential if isinstance(cfg, list): modules = [ build_from_cfg(_cfg, registry, default_args) for _cfg in cfg ] return Sequential(*modules) else: return build_from_cfg(cfg, registry, default_args)
(cfg: Union[dict, mmengine.config.config.ConfigDict, mmengine.config.config.Config], registry: mmengine.registry.registry.Registry, default_args: Union[dict, ForwardRef('ConfigDict'), ForwardRef('Config'), NoneType] = None) -> 'nn.Module'
[ -0.007078940514475107, 0.012445765547454357, -0.034261129796504974, -0.057572245597839355, -0.010075143538415432, 0.031871695071458817, -0.03217272460460663, 0.01859809271991253, -0.01498571690171957, -0.05279337242245674, -0.02212580479681492, 0.028786122798919678, -0.06799545884132385, 0.0547124482691288, 0.053997498005628586, -0.03747840225696564, -0.0018332338659092784, -0.013311230577528477, 0.008052588440477848, -0.03036653809249401, 0.03268071636557579, -0.024684570729732513, 0.0293881855905056, 0.0823320746421814, 0.03333922103047371, -0.022257504984736443, 0.03273715823888779, 0.007238863501697779, -0.05102481320500374, 0.010169215500354767, 0.028372205793857574, 0.008711094968020916, 0.02833457663655281, 0.048014502972364426, -0.029463443905115128, -0.009172049351036549, -0.03932221978902817, 0.037553660571575165, -0.09903931617736816, -0.03268071636557579, 0.05125058814883232, -0.07217226922512054, 0.03104385919868946, 0.013574632816016674, -0.01682012714445591, -0.006759094540029764, 0.041617583483457565, 0.008240733295679092, 0.0006655615288764238, -0.03992428258061409, -0.008593504317104816, 0.03418587148189545, -0.009783519431948662, 0.021900031715631485, -0.01765737123787403, -0.011241639964282513, -0.02880493737757206, 0.012210584245622158, 0.036895155906677246, 0.042483050376176834, -0.012398729100823402, -0.022784311324357986, 0.036199022084474564, 0.0178455151617527, -0.005752521101385355, -0.020357245579361916, -0.07634907960891724, -0.01971755363047123, 0.012314063496887684, -0.010573726147413254, -0.02891782484948635, -0.04767584055662155, 0.055352140218019485, 0.027883028611540794, -0.003729966701939702, -0.03143896162509918, -0.046848006546497345, 0.0038263907190412283, 0.0469985194504261, 0.04048871621489525, -0.04060160368680954, -0.01885208860039711, -0.019397707656025887, -0.028635608032345772, -0.043649546802043915, -0.028184060007333755, -0.03787350654602051, -0.01663198322057724, 0.05994286760687828, -0.037158556282520294, -0.017807886004447937, 0.015051567927002907, 0.024233024567365646, -0.009896405972540379, -0.01702708564698696, 0.024289468303322792, 0.00185557606164366, 0.05121295899152756, -0.016218064352869987, -0.03151421993970871, -0.06408204883337021, 0.023367559537291527, -0.09015889465808868, 0.023950807750225067, -0.07307536154985428, -0.05693255364894867, -0.041241295635700226, 0.017365746200084686, -0.004388472530990839, -0.015446671284735203, 0.0027892435900866985, 0.016453245654702187, -0.018917938694357872, -0.0037393737584352493, 0.046848006546497345, -0.01092179398983717, -0.0169330146163702, -0.050121720880270004, -0.01421432476490736, 0.0045272293500602245, -0.026246171444654465, 0.028786122798919678, -0.0727367028594017, 0.013405302539467812, 0.007760964799672365, 0.019886884838342667, 0.034543346613645554, -0.07759083062410355, 0.06475937366485596, -0.02814643085002899, 0.030987415462732315, 0.021316783502697945, 0.0028151136357337236, 0.008649948053061962, 0.048879966139793396, -0.033602625131607056, -0.06573772430419922, 0.0096141891553998, -0.003250197973102331, -0.037553660571575165, -0.0012652723817154765, 0.03121318854391575, 0.03604850545525551, 0.04380006343126297, 0.022389207035303116, -0.06487225741147995, -0.010479654185473919, -0.02679179050028324, -0.004061571322381496, 0.008118439465761185, 0.014562391676008701, 0.011335711926221848, -0.002928000409156084, 0.07333876192569733, -0.03924696147441864, 0.017911365255713463, -0.00802436750382185, 0.03412942960858345, 0.003915759269148111, 0.021918846294283867, -0.01527734100818634, -0.02976447530090809, 0.048390790820121765, 0.00720593798905611, -0.007252974435687065, -0.04948202893137932, -0.015484300442039967, -0.08526713401079178, -0.011288675479590893, 0.016029920428991318, -0.01324537955224514, 0.012069475837051868, 0.02833457663655281, -0.023931993171572685, -0.028654422610998154, -0.04067686200141907, 0.009858776815235615, 0.003885186044499278, 0.005380935501307249, -0.010178622789680958, 0.05587894469499588, 0.016989456489682198, -0.00568196689710021, -0.03113793022930622, -0.00037658316432498395, 0.0176103338599205, -0.07879495620727539, 0.034279946237802505, -0.01576651632785797, -0.02261498011648655, 0.009270825423300266, 0.008005552925169468, 0.007746853865683079, -0.02494797296822071, -0.04244542121887207, 0.03245494142174721, -0.05794853717088699, 0.06250163167715073, 0.011420376598834991, 0.05745936185121536, 0.07356453686952591, -0.0024058991111814976, 0.01464705727994442, 0.06490988284349442, -0.07352691143751144, -0.027393853291869164, 0.021203896030783653, 0.01411084458231926, 0.008109032176434994, -0.016340358182787895, 0.020921679213643074, -0.0005356241599656641, 0.004080385901033878, 0.03932221978902817, -0.004854130558669567, -0.002617561724036932, -0.037741806358098984, 0.05279337242245674, 0.022972455248236656, -0.05531451106071472, 0.019755182787775993, -0.007408193312585354, 0.07619856297969818, 0.007116569206118584, -0.0027304484974592924, -0.07649959623813629, -0.018654536455869675, -0.0020378411281853914, 0.0022800774313509464, -0.005178680177778006, 0.01426136028021574, -0.02726215124130249, 0.02116626687347889, -0.017318710684776306, 0.09030940383672714, 0.019124899059534073, -0.010423210449516773, -0.02763844095170498, 0.012784425169229507, 0.02137322537600994, 0.03328277915716171, 0.03802402317523956, -0.06536143273115158, 0.001756800222210586, 0.05629286170005798, 0.03172117844223976, -0.025117304176092148, -0.032417312264442444, 0.005625523626804352, -0.015587779693305492, 0.0005817783530801535, 0.05817430838942528, 0.0025423038750886917, 0.07311298698186874, -0.034374017268419266, 0.025982769206166267, 0.010319731198251247, -0.051401104778051376, 0.006566246505826712, -0.05185265094041824, -0.0062652151100337505, -0.05712069943547249, -0.011580299586057663, 0.042294904589653015, 0.06897380948066711, -0.03123200312256813, -0.02184358797967434, 0.014712907373905182, 0.059227921068668365, -0.011373341083526611, 0.09678158164024353, 0.03661293908953667, 0.02030080184340477, -0.04139181226491928, 0.043085113167762756, -0.04120366647839546, 0.0201126579195261, -0.049557287245988846, 0.01194718200713396, 0.026434315368533134, -0.02628380060195923, -0.045493364334106445, -0.03328277915716171, -0.012295249849557877, 0.06792020052671432, 0.00849002506583929, -0.013725148513913155, 0.0023353449068963528, 0.022746682167053223, 0.055540286004543304, 0.03781706467270851, -0.0026199135463684797, 0.005841889884322882, -0.03984902426600456, 0.018654536455869675, -0.03909644857048988, -0.004938795696943998, 0.03160829097032547, 0.032925304025411606, -0.05441141873598099, -0.0002845686976797879, -0.024590499699115753, 0.01194718200713396, 0.0026199135463684797, 0.00425677141174674, -0.028635608032345772, -0.0069801644422113895, -0.0003801108687184751, -0.008617023006081581, -0.013471153564751148, 0.007530487608164549, -0.007384675554931164, 0.09655580669641495, -0.013339451514184475, 0.006575653795152903, -0.029708031564950943, 0.027883028611540794, 0.013584040105342865, 0.06031915917992592, -0.0492938831448555, -0.015390228480100632, 0.10904860496520996, -0.043273258954286575, 0.022991269826889038, -0.004388472530990839, -0.03198458254337311, 0.005658448673784733, 0.06950061768293381, -0.006862574256956577, 0.015634816139936447, -0.009802333079278469, 0.059227921068668365, 0.046735119074583054, 0.043160371482372284, -0.02679179050028324, 0.005696077831089497, 0.007220048923045397, 0.0027092820964753628, 0.01392270065844059, -0.06453359872102737, 0.046170685440301895, -0.04936914145946503, -0.03759128972887993, 0.02060183323919773, 0.0339224711060524, 0.03316989168524742, 0.046358827501535416, -0.00037570123095065355, 0.013452338986098766, -0.03791113570332527, 0.008871017955243587, 0.0014675278216600418, -0.005992405582219362, -0.017506854608654976, -0.017224637791514397, 0.02822168916463852, 0.013885071501135826, -0.03670701012015343, -0.008146661333739758, -0.07766608893871307, -0.0013076049508526921, -0.03452453389763832, -0.08594445139169693, 0.03510778024792671, -0.019868070259690285, 0.015531336888670921, -0.022690238431096077, 0.015728889033198357, 0.10912386327981949, 0.02745029702782631, 0.004162698984146118, 0.01981162652373314, 0.013734555803239346, 0.033226337283849716, -0.027525555342435837, 0.0293881855905056, -0.026415500789880753, 0.00822191871702671, -0.029745660722255707, -0.04037582874298096, -0.021034566685557365, -0.0005456193466670811, 0.059717096388339996, 0.027826586738228798, 0.05192790925502777, -0.042595937848091125, -0.0006067663198336959, -0.019679924473166466, -0.030780456960201263, -0.05219130963087082, -0.014157881028950214, 0.022163433954119682, -0.03190932422876358, 0.06310369819402695, -0.03702685609459877, -0.0016098122578114271, 0.03651886805891991, 0.060657817870378494, -0.04575676470994949, -0.024214209988713264, 0.004595431964844465, -0.04899285361170769, 0.034750308841466904, -0.01579473912715912, -0.053132034838199615, 0.04090263694524765, 0.03693278506398201, -0.02301008440554142, 0.01377218496054411, -0.019378893077373505, 0.06001812592148781, 0.04270882532000542, -0.10069499164819717, 0.028485091403126717, -0.004324974026530981, 0.047224294394254684, 0.06031915917992592, -0.02968921698629856, -0.0007378795999102294, -0.03695159777998924, 0.0610717348754406, -0.00962359644472599, 0.03999954089522362, -0.03196576610207558, 0.0201126579195261, 0.0863960012793541, 0.004223846364766359, 0.07172071933746338, -0.012210584245622158, -0.007281195838004351, -0.04613305628299713, -0.021542556583881378, 0.012549244798719883, -0.007304714061319828, 0.0343928337097168, -0.037666548043489456, 0.05444904789328575, 0.0012335230130702257, -0.047600582242012024, -0.0356910303235054, -0.006867277901619673, -0.0285039059817791, -0.01932244934141636, 0.006490988656878471, -0.065022774040699, -0.012539837509393692, 0.004738891962915659, -0.008569986559450626, -0.020639462396502495, 0.010714834555983543, -0.009096791036427021, 0.01411084458231926, 0.06611400842666626, 0.041918616741895676, 0.024816272780299187, -0.07999908179044724, 0.025192562490701675, 0.017770256847143173, 0.005526747554540634, 0.07277432829141617, 0.032247982919216156, -0.03759128972887993, 0.06573772430419922, 0.016434431076049805, 0.008932164870202541, 0.015832368284463882, 0.08481558412313461, -0.04417635127902031, -0.05347069352865219, -0.022972455248236656, 0.07194649428129196, 0.01454357709735632, 0.02252090908586979, 0.016942420974373817, -0.08579393476247787, -0.01611458510160446, 0.08127846568822861, -0.00026266748318448663, -0.0018238266929984093, -0.05162687599658966, 0.04553099349141121, 0.019510595127940178, -0.010357360355556011, 0.06058255955576897, -0.028748493641614914, -0.0020060918759554625, 0.01679190620779991, -0.022840753197669983, -0.02020672895014286, 0.07518257945775986, -0.03296293318271637, -0.06344235688447952, 0.04477841407060623, -0.016923606395721436, -0.006279326044023037, -0.026547202840447426, 0.019360078498721123, 0.011241639964282513, -0.006528617348521948, -0.011119346134364605, 0.012351692654192448, 0.025249004364013672, -0.02445879764854908, -0.04101552069187164, 0.014487134292721748, 0.00022489158436655998, -0.026471944525837898, 0.0302724651992321, -0.02359333261847496, 0.04233253374695778, -0.05155162140727043, 0.008880425244569778, -0.062313489615917206, -0.004640116356313229, -0.001181783271022141, -0.0302724651992321, 0.010140993632376194, 0.009783519431948662, -0.038343869149684906, -0.04474078491330147, 0.030893342569470406, 0.02931292913854122, 0.03102504462003708, 0.005686670541763306, 0.0037323185242712498, 0.09173930436372757, 0.06020627170801163, -0.004063923377543688, 0.03461860492825508, 0.027713699266314507, 0.01801484450697899, 0.014035587199032307, -0.029914990067481995, 0.05990523844957352, -0.010808907449245453, -0.07649959623813629, 0.03879541531205177, 0.04575676470994949, -0.019454151391983032, -0.005319788586348295, 0.001552192959934473, -0.045380476862192154, 0.007934998720884323, 0.05211605504155159, 0.018720386549830437, -0.022577350959181786, 0.0583624541759491, 0.06306606531143188, -0.007695114240050316, 0.010112771764397621, -0.07157020270824432, -0.005846593528985977, -0.04609542712569237, -0.04406346380710602, 0.04824027419090271, 0.02842864952981472, -0.017854921519756317, -0.02193766087293625, -0.014778758399188519, 0.01663198322057724, -0.018259434029459953, -0.001014804933220148, -0.0030691088177263737, 0.012699760496616364, 0.043837692588567734, -0.0027492628432810307, 0.0009172048885375261, -0.04011242836713791, -0.030027877539396286, -0.012737389653921127, -0.0022636146750301123, -0.006975460797548294, -0.027977101504802704, 0.007375268265604973, -0.005051682237535715, 0.019266007468104362, -0.001652144710533321, -0.006895499303936958, -0.025079675018787384, 0.01649087481200695, 0.006448655854910612, -0.010855942964553833, 0.005051682237535715, -0.003017368959262967, 0.022088175639510155, -0.025832252576947212, -0.013875664211809635, -0.019792811945080757, -0.015399634838104248, 0.032436128705739975, 0.04869182035326958, 0.11220943927764893, 0.020093843340873718, 0.028202874585986137, 0.021693071350455284, -0.0379863940179348, -0.07627382129430771, -0.011204010806977749, 0.042859338223934174, 0.008814574219286442, -0.10701664537191391, -0.02464694157242775, -0.0009730603196658194, -0.05347069352865219, -0.00028941931668668985, 0.0052398270927369595, -0.027318594977259636, -0.05068615451455116, 0.019567038863897324, -0.016763683408498764, -0.003645301563665271, -0.04575676470994949, -0.023612147197127342, 0.011674372479319572, 0.03239849954843521, -0.040865007787942886, 0.015098604373633862, -0.005380935501307249, 0.0809774324297905, -0.03883304446935654, 0.038532014936208725, 0.015681851655244827, -0.03531474247574806, -0.019980955868959427, -0.05155162140727043, 0.02571936696767807, -0.059792354702949524, -0.03093097172677517, 0.03102504462003708, 0.0574217326939106, 0.005879518575966358, -0.0103949885815382, 0.030855713412165642, 0.03268071636557579, -0.006857870612293482, -0.051476363092660904, 0.026810605078935623, -0.023518074303865433, 0.025869881734251976, -0.057195957750082016, -0.025474779307842255, -0.04459026828408241, -0.0014181399019435048, -0.045004189014434814, 0.009689446538686752, -0.042106762528419495, 0.0479392446577549, 0.040563974529504776, 0.005451489705592394, -0.030592311173677444, 0.016029920428991318, -0.016265099868178368, -0.027412667870521545, 0.002424713457003236, 0.057572245597839355, -0.003699393244460225, -0.013753370381891727, -0.008066699840128422, 0.03313226252794266, -0.009990477934479713, 0.040262944996356964, -0.05102481320500374, 0.04237016290426254, -0.019679924473166466, -0.05347069352865219, 0.01586058922111988, -0.040563974529504776, 0.013461746275424957, -0.01954822428524494, -0.048578936606645584, -0.03651886805891991, -0.05655626580119133, -0.009727075695991516, -0.024327095597982407, -0.010667799040675163, 0.005051682237535715, 0.030799269676208496, 0.061146993190050125, 0.0015768868615850806, 0.031194373965263367, -0.0021083953324705362, 0.006533320993185043, -0.007982034236192703, 0.043762434273958206, 0.01838172785937786, 0.0158135537058115, -0.04127892479300499, -0.01623687893152237, 0.030855713412165642, 0.015493707731366158, 0.002996202791109681, 0.030498240143060684, 0.010827722027897835, -0.024477612227201462, 0.0479392446577549, -0.07683825492858887, -0.026227356866002083, -0.004212087020277977, -0.0790959894657135, 0.0056020054034888744, 0.03429875895380974, -0.02543715015053749, -0.05441141873598099, -0.03634953498840332, 0.0056020054034888744, -0.049256253987550735, -0.021429669111967087, 0.05324492231011391, -0.016265099868178368, -0.03239849954843521, 0.0012535133864730597, 0.07713928818702698, 0.02263379469513893, 0.05697018280625343, 0.03747840225696564, 0.07728979736566544, 0.02455287054181099, -0.009553042240440845, -0.07085525244474411, 0.0027398557867854834, 0.007958516478538513, -0.010799500159919262, 0.0010242121061310172, -0.01861690729856491, -0.031777624040842056, -0.10332901030778885, 0.008969794027507305, -0.0009883471066132188, 0.05463718995451927, -0.00320316175930202, 0.018955567851662636, -0.0020437208004295826, -0.051777392625808716, -0.021410854533314705, -0.021053381264209747, -0.02908715419471264, 0.06509803235530853, 0.02628380060195923, -0.007267084904015064, 0.01097823679447174, -0.03275597468018532, 0.053320180624723434, 0.008471210487186909, 0.007718631997704506, 0.008541764691472054, -0.03179643675684929, 0.01136393379420042, -0.010874757543206215, -0.000124719284940511, -0.0003545349754858762, 0.021015752106904984, 0.0366317518055439, 0.02746911160647869, 0.04511707276105881, 0.0014722314663231373, -0.04884233698248863, -0.005136347375810146, -0.014882237650454044, -0.05934080481529236, -0.027186894789338112, 0.0062652151100337505, -0.00756341265514493, 0.045380476862192154, -0.025267818942666054, -0.05347069352865219, -0.05034749582409859, 0.04440212622284889, -0.016650795936584473 ]
730,277
mmengine.registry.build_functions
build_runner_from_cfg
Build a Runner object. Examples: >>> from mmengine.registry import Registry, build_runner_from_cfg >>> RUNNERS = Registry('runners', build_func=build_runner_from_cfg) >>> @RUNNERS.register_module() >>> class CustomRunner(Runner): >>> def setup_env(env_cfg): >>> pass >>> cfg = dict(runner_type='CustomRunner', ...) >>> custom_runner = RUNNERS.build(cfg) Args: cfg (dict or ConfigDict or Config): Config dict. If "runner_type" key exists, it will be used to build a custom runner. Otherwise, it will be used to build a default runner. registry (:obj:`Registry`): The registry to search the type from. Returns: object: The constructed runner object.
def build_runner_from_cfg(cfg: Union[dict, ConfigDict, Config], registry: Registry) -> 'Runner': """Build a Runner object. Examples: >>> from mmengine.registry import Registry, build_runner_from_cfg >>> RUNNERS = Registry('runners', build_func=build_runner_from_cfg) >>> @RUNNERS.register_module() >>> class CustomRunner(Runner): >>> def setup_env(env_cfg): >>> pass >>> cfg = dict(runner_type='CustomRunner', ...) >>> custom_runner = RUNNERS.build(cfg) Args: cfg (dict or ConfigDict or Config): Config dict. If "runner_type" key exists, it will be used to build a custom runner. Otherwise, it will be used to build a default runner. registry (:obj:`Registry`): The registry to search the type from. Returns: object: The constructed runner object. """ from ..config import Config, ConfigDict from ..logging import print_log assert isinstance( cfg, (dict, ConfigDict, Config )), f'cfg should be a dict, ConfigDict or Config, but got {type(cfg)}' assert isinstance( registry, Registry), ('registry should be a mmengine.Registry object', f'but got {type(registry)}') args = cfg.copy() # Runner should be built under target scope, if `_scope_` is defined # in cfg, current default scope should switch to specified scope # temporarily. scope = args.pop('_scope_', None) with registry.switch_scope_and_registry(scope) as registry: obj_type = args.get('runner_type', 'Runner') if isinstance(obj_type, str): runner_cls = registry.get(obj_type) if runner_cls is None: raise KeyError( f'{obj_type} is not in the {registry.name} registry. ' f'Please check whether the value of `{obj_type}` is ' 'correct or it was registered as expected. More details ' 'can be found at https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#import-the-custom-module' # noqa: E501 ) elif inspect.isclass(obj_type): runner_cls = obj_type else: raise TypeError( f'type must be a str or valid type, but got {type(obj_type)}') runner = runner_cls.from_cfg(args) # type: ignore print_log( f'An `{runner_cls.__name__}` instance is built from ' # type: ignore # noqa: E501 'registry, its implementation can be found in' f'{runner_cls.__module__}', # type: ignore logger='current', level=logging.DEBUG) return runner
(cfg: Union[dict, mmengine.config.config.ConfigDict, mmengine.config.config.Config], registry: mmengine.registry.registry.Registry) -> 'Runner'
[ 0.05293574184179306, -0.015269925817847252, -0.02735982835292816, -0.018614767119288445, -0.027088362723588943, 0.018537204712629318, -0.012923689559102058, 0.021775398403406143, -0.03267279267311096, 0.015172973275184631, 0.01067440491169691, 0.06127360463142395, -0.03544561564922333, 0.04277518019080162, 0.014659128151834011, -0.03224620595574379, -0.008643263019621372, 0.02869776450097561, -0.01381564699113369, -0.055572833865880966, 0.007964598946273327, -0.020398681983351707, 0.057434309273958206, 0.03862563893198967, 0.05359501391649246, 0.0034369451459497213, 0.04157297685742378, 0.024683956056833267, -0.05433185026049614, -0.03191656619310379, -0.020515022799372673, -0.03932369500398636, 0.012991555966436863, 0.04525715112686157, -0.03496085852384567, -0.04320177063345909, -0.0478166826069355, 0.03845112770795822, -0.07934544235467911, -0.012574662454426289, -0.02739860862493515, 0.012574662454426289, 0.07542858272790909, 0.004685200750827789, -0.005914066452533007, -0.0166078619658947, 0.062088001519441605, -0.042852744460105896, -0.0670907199382782, -0.05658113211393356, 0.022900041192770004, -0.022996991872787476, -0.003172751283273101, 0.06937878578901291, 0.004864561837166548, -0.00048536548274569213, -0.04157297685742378, 0.011130078695714474, 0.012312891893088818, 0.015425048768520355, -0.05739552900195122, -0.026021892204880714, -0.013670219108462334, 0.038509298115968704, 0.021310029551386833, -0.04176688194274902, -0.07674712687730789, 0.014290710911154747, 0.017528904601931572, 0.0025498352479189634, 0.03381682559847832, 0.03218803182244301, 0.06511290371417999, -0.030229605734348297, 0.01939038187265396, -0.02796093001961708, -0.05596064031124115, -0.02530444785952568, 0.09322895109653473, 0.02763129398226738, 0.03327389433979988, 0.01952611468732357, 0.006515168119221926, 0.006699376739561558, 0.015686819329857826, 0.032556451857089996, -0.07325686514377594, -0.026196405291557312, 0.0018481457373127341, -0.06297995895147324, 0.04467543959617615, -0.010315682739019394, -0.025149324908852577, -0.056503571569919586, -0.07907397300004959, -0.018120311200618744, 0.03197474032640457, 0.054874781519174576, -0.00244561186991632, -0.012041427195072174, -0.02105795405805111, -0.018750498071312904, -0.06763365119695663, 0.03257584199309349, -0.008551158010959625, -0.01912861131131649, -0.028116052970290184, 0.015347487293183804, -0.026719946414232254, 0.04642057418823242, 0.0004638542886823416, 0.012157768942415714, -0.05440941080451012, 0.005710467230528593, 0.020611975342035294, -0.01446522492915392, -0.0713953822851181, -0.041301511228084564, -0.03230437636375427, 0.025653474032878876, 0.0003475119883660227, 0.06557826697826385, -0.01863415725529194, 0.057666994631290436, 0.013776865787804127, -0.029279476031661034, -0.014756080694496632, 0.004908190108835697, 0.08547279983758926, -0.053323548287153244, 0.0946250632405281, -0.0010561698582023382, -0.01016055978834629, -0.007712524384260178, 0.02111612632870674, 0.02763129398226738, -0.012196550145745277, -0.006941756699234247, -0.00816819816827774, -0.03901344910264015, 0.0561157651245594, 0.05227646976709366, 0.0009313442860729992, -0.0063697402365505695, 0.002136577619239688, -0.06794389337301254, -0.07465296983718872, 0.015221449546515942, 0.02222137711942196, 0.0016796918353065848, -0.026215795427560806, -0.01111068855971098, 0.022105034440755844, 0.05704650282859802, -0.0055214110761880875, -0.04828204959630966, -0.016549691557884216, 0.061157263815402985, 0.02138759009540081, -0.013243630528450012, 0.017015060409903526, 0.0006362468702718616, 0.03928491473197937, -0.00903107039630413, 0.012361368164420128, 0.031005220487713814, -0.007043556310236454, -0.051462072879076004, -0.010305987671017647, 0.022395890206098557, -0.023229677230119705, -0.02832934819161892, -0.013563571497797966, -0.0000035504849620338064, -0.10323438793420792, 0.010422330349683762, -0.044016167521476746, 0.018905622884631157, 0.00009271025919588283, 0.014571871608495712, 0.022589795291423798, 0.01733500137925148, -0.018285129219293594, -0.030016310513019562, 0.014736689627170563, -0.018178483471274376, -0.030636802315711975, 0.018808670341968536, -0.005332354921847582, -0.044714219868183136, -0.0229194313287735, 0.004307088442146778, -0.013059422373771667, -0.004522806499153376, -0.03563952073454857, 0.017451344057917595, -0.0730629563331604, 0.07783298939466476, -0.011750571429729462, 0.057899679988622665, 0.02055380493402481, 0.07360588759183884, 0.03360353037714958, 0.046343013644218445, -0.019148001447319984, -0.03738465532660484, 0.014668823219835758, -0.015657732263207436, 0.04770033806562424, -0.03185839578509331, 0.015686819329857826, -0.036046721041202545, 0.001407014555297792, 0.07023195922374725, 0.016956888139247894, -0.006461844779551029, -0.012855823151767254, 0.05758943408727646, 0.028503861278295517, 0.018178483471274376, 0.01736408658325672, 0.053284768015146255, 0.0508028008043766, -0.01736408658325672, -0.02893044985830784, -0.05060889571905136, -0.022822478786110878, -0.047041065990924835, 0.011614838615059853, -0.015929197892546654, 0.02078648842871189, -0.05068645626306534, 0.05394404008984566, 0.0006223100353963673, 0.04552861675620079, -0.006083732005208731, 0.0019875140860676765, -0.0013076388277113438, 0.023404190316796303, 0.043589577078819275, 0.07457540929317474, 0.0408361442387104, -0.02697202004492283, -0.036415137350559235, 0.007382887881249189, 0.049833279103040695, -0.05751187354326248, -0.013951379805803299, 0.0024286452680826187, 0.004144694190472364, 0.022822478786110878, 0.020650755614042282, 0.006195226684212685, 0.06612119823694229, -0.061816535890102386, 0.0307143647223711, 0.023636875674128532, -0.07387735694646835, 0.009520676918327808, -0.019933313131332397, 0.05572795495390892, -0.013902903534471989, 0.02227954752743244, 0.06329020857810974, 0.008764452300965786, -0.032556451857089996, -0.0209222212433815, 0.0010004225187003613, 0.023307237774133682, -0.026952629908919334, 0.09260845929384232, 0.050764020532369614, 0.059761155396699905, 0.02078648842871189, -0.033157553523778915, -0.03019082359969616, -0.017150793224573135, -0.015027545392513275, 0.028038492426276207, -0.007150202989578247, -0.03550378978252411, 0.018808670341968536, 0.02530444785952568, 0.02367565594613552, 0.00916680321097374, -0.028213005512952805, -0.0051772319711744785, -0.010218731127679348, -0.01747073419392109, 0.03629879280924797, 0.05184987932443619, -0.054642096161842346, 0.018013663589954376, -0.00984546635299921, 0.018314216285943985, 0.0012761295074597, -0.05192744359374046, -0.02809666283428669, -0.008197283372282982, -0.04711862653493881, -0.003698715241625905, -0.030675584450364113, -0.058636512607336044, 0.03300242871046066, 0.003429673844948411, 0.019778188318014145, -0.008735367096960545, -0.06197166070342064, -0.012749175541102886, -0.010150864720344543, 0.020185386762022972, -0.008997136726975441, 0.04576130211353302, -0.017179878428578377, 0.020204776898026466, -0.029473379254341125, 0.008546310476958752, -0.04979449883103371, 0.0358722060918808, -0.04735131189227104, -0.003478149650618434, 0.04560617730021477, 0.013447229750454426, 0.023636875674128532, 0.04440397396683693, -0.01810092106461525, -0.03961455076932907, 0.06557826697826385, -0.008735367096960545, -0.015958283096551895, -0.017606467008590698, -0.006515168119221926, 0.07476931065320969, 0.010490196757018566, 0.06402704119682312, 0.008114874362945557, 0.026778116822242737, 0.023966511711478233, 0.016743594780564308, -0.009889094159007072, 0.06798268109560013, -0.02511054463684559, -0.036085501313209534, 0.043589577078819275, 0.02763129398226738, 0.04626544937491417, 0.019506724551320076, -0.010742271319031715, 0.06107970327138901, -0.023733826354146004, 0.0009792143246158957, -0.027456780895590782, 0.003405435709282756, -0.0627860575914383, -0.007310173939913511, -0.03593037649989128, 0.01836269162595272, -0.05363379418849945, -0.02596372179687023, -0.09904606640338898, -0.04545105621218681, -0.008856556378304958, -0.03680294379591942, 0.037539780139923096, -0.06771121174097061, 0.016753289848566055, -0.03214925155043602, -0.03309938311576843, 0.047041065990924835, -0.022861259058117867, 0.010955565609037876, 0.03224620595574379, 0.00754770589992404, 0.02134880982339382, -0.029337646439671516, 0.009986046701669693, 0.015425048768520355, -0.014184064231812954, -0.007004775106906891, 0.03331267461180687, -0.02660360373556614, 0.044985685497522354, 0.0017548295436426997, 0.024858469143509865, 0.0478166826069355, -0.0280578825622797, -0.08283571153879166, -0.024664565920829773, -0.02162027545273304, -0.07019317895174026, 0.005681382026523352, 0.05665869638323784, -0.01607462577521801, 0.04389982298016548, -0.01497907005250454, -0.01989453099668026, -0.060459211468696594, 0.06565583497285843, -0.004171355627477169, 0.017121706157922745, 0.009927875362336636, 0.00033418109524063766, 0.05522380769252777, 0.004273155238479376, 0.007407125551253557, 0.048165708780288696, 0.03769490122795105, -0.030035700649023056, -0.01822695881128311, 0.005860742647200823, 0.04676960036158562, 0.012797651812434196, -0.09889094531536102, 0.03975028172135353, -0.06201044097542763, -0.045218370854854584, 0.07620420306921005, -0.009670952335000038, 0.02749556116759777, -0.054680876433849335, 0.014707604423165321, -0.005666838958859444, 0.01449431013315916, 0.012923689559102058, 0.026526041328907013, 0.09090211242437363, 0.017131401225924492, 0.05320720747113228, -0.023966511711478233, -0.010063608177006245, -0.0318777859210968, -0.031044000759720802, -0.03738465532660484, 0.008022770285606384, 0.03028777614235878, -0.03862563893198967, -0.012380758300423622, -0.0019450976978987455, 0.01922556385397911, -0.0312185138463974, -0.018915317952632904, -0.021465152502059937, 0.014251930639147758, 0.027107752859592438, -0.10401000827550888, -0.013282411731779575, 0.006306721828877926, -0.006806023884564638, -0.03947881609201431, 0.025013592094182968, 0.011895999312400818, 0.032129861414432526, 0.003761734114959836, 0.02642909064888954, 0.02381138876080513, -0.06534558534622192, -0.041030045598745346, 0.03294425830245018, 0.010693795047700405, 0.05689137801527977, 0.028775326907634735, -0.04424884915351868, 0.017684027552604675, 0.0015657732728868723, -0.03593037649989128, 0.05914066359400749, 0.041844442486763, -0.011178554967045784, -0.0035993396304547787, -0.010868309065699577, 0.04389982298016548, 0.009927875362336636, 0.0067914812825620174, 0.02689445950090885, -0.006772090680897236, 0.028445689007639885, 0.06100213900208473, -0.012409844435751438, -0.06619876623153687, 0.011207640171051025, 0.008022770285606384, 0.0425037145614624, -0.0362018421292305, 0.03451487794518471, -0.05627088621258736, -0.03629879280924797, -0.02869776450097561, -0.012002645991742611, -0.03511597961187363, 0.0810517966747284, -0.029570331797003746, -0.004137422889471054, 0.029647894203662872, -0.023830778896808624, -0.03234315663576126, 0.011353068053722382, 0.04087492451071739, 0.05041499063372612, -0.03358414024114609, -0.04533471167087555, 0.027805807068943977, 0.03965333104133606, -0.047971803694963455, 0.021678445860743523, 0.02394712157547474, -0.05855895206332207, -0.04463665932416916, 0.056503571569919586, -0.0039847232401371, 0.010422330349683762, -0.026526041328907013, 0.016549691557884216, -0.05661991238594055, -0.04490812495350838, 0.010994345881044865, -0.032129861414432526, 0.03662843257188797, 0.020107826218008995, -0.08260302245616913, -0.03391377627849579, -0.001470033312216401, 0.033661700785160065, 0.055805519223213196, 0.004944547079503536, 0.00066412054002285, 0.07791054993867874, 0.09873582422733307, 0.03783063590526581, 0.05483599752187729, 0.015715904533863068, 0.011294897645711899, -0.0023195743560791016, -0.022861259058117867, 0.01963276043534279, 0.02813544310629368, -0.041922006756067276, 0.023520532995462418, 0.020650755614042282, 0.018847450613975525, -0.002180206123739481, 0.006835109554231167, -0.020573195070028305, 0.030229605734348297, 0.029473379254341125, -0.028174225240945816, -0.028387518599629402, 0.06654778867959976, -0.012865518219769001, -0.0018336029024794698, 0.0017269558738917112, 0.012012341059744358, -0.009792142547667027, -0.010005436837673187, 0.016384871676564217, -0.010732576251029968, 0.03170327469706535, 0.01610371097922325, -0.00566199142485857, 0.018537204712629318, 0.025246277451515198, -0.006752700544893742, 0.021697837859392166, -0.011653618887066841, 0.03990540653467178, 0.01232258789241314, -0.024683956056833267, -0.016821155324578285, -0.012720090337097645, -0.06522924453020096, -0.011711790226399899, -0.006873890291899443, -0.0032890934962779284, 0.009874551557004452, -0.034359756857156754, -0.04347323626279831, 0.06127360463142395, -0.02431553788483143, 0.007722219452261925, -0.010742271319031715, -0.0032333461567759514, -0.03947881609201431, 0.04785546287894249, 0.008376644924283028, -0.056503571569919586, -0.03899405896663666, -0.03998296707868576, -0.0657721757888794, -0.01563834212720394, -0.013641132973134518, 0.010538672097027302, 0.064414843916893, 0.08725671470165253, 0.007882189936935902, 0.011042822152376175, -0.01719926856458187, -0.017751894891262054, -0.003129122778773308, 0.019254649057984352, 0.033429019153118134, -0.018672937527298927, -0.0823703408241272, -0.04979449883103371, 0.0002548017364460975, -0.05266427621245384, -0.00641821650788188, 0.007765847723931074, -0.025827988982200623, -0.04071979969739914, -0.019312819465994835, 0.03591098636388779, -0.0023304815404117107, -0.043783482164144516, 0.019671542569994926, -0.004903342574834824, 0.05471965670585632, -0.07434272021055222, -0.0019644880667328835, -0.007591334171593189, 0.05782211944460869, -0.003924128599464893, 0.030598022043704987, 0.030927658081054688, -0.025886159390211105, -0.02832934819161892, -0.03684172406792641, 0.015764379873871803, -0.04490812495350838, -0.03344840928912163, 0.04595520347356796, 0.019768493250012398, -0.03978906199336052, 0.009738818742334843, 0.04506324604153633, -0.09656409919261932, -0.011692400090396404, -0.0315481498837471, 0.08206009119749069, -0.016666032373905182, 0.05894675850868225, -0.044714219868183136, 0.03474756330251694, -0.026855679228901863, 0.005138451233506203, 0.008415425196290016, -0.005468087736517191, -0.06406582146883011, 0.019700627774000168, 0.031334858387708664, 0.029279476031661034, 0.009729123674333096, 0.0182657390832901, -0.008725672028958797, -0.007111422251909971, 0.03911039978265762, 0.04917400702834129, 0.02949277125298977, 0.02111612632870674, 0.002961880760267377, 0.05506868287920952, 0.06871951371431351, -0.007150202989578247, -0.02735982835292816, -0.013912598602473736, -0.04370592162013054, -0.07325686514377594, -0.01956489495933056, 0.0015100259333848953, 0.0012615866726264358, -0.023598093539476395, -0.015628647059202194, 0.016016455367207527, -0.022589795291423798, 0.029880577698349953, -0.029182523488998413, -0.024334928020834923, -0.00045718884211964905, -0.031664494425058365, -0.011343372985720634, 0.026118844747543335, 0.004050165880471468, -0.08143959939479828, 0.03911039978265762, -0.04455909505486488, 0.03360353037714958, 0.008706280961632729, 0.03563952073454857, -0.0035363207571208477, -0.028581421822309494, 0.026351528242230415, -0.01780037023127079, -0.003376350272446871, 0.00916680321097374, 0.026196405291557312, -0.02875593677163124, 0.0006756336078979075, -0.07756152749061584, -0.03947881609201431, -0.005143298767507076, -0.08322351425886154, 0.06007140129804611, 0.03434036672115326, -0.019778188318014145, -0.034088291227817535, -0.035057809203863144, -0.0037302246782928705, 0.0024480356369167566, -0.02078648842871189, 0.05471965670585632, 0.03457305207848549, -0.05429306998848915, 0.02301638200879097, 0.07379978895187378, 0.05898554250597954, 0.02646787092089653, -0.02693323977291584, 0.021969301626086235, -0.015900112688541412, 0.02772824652493, -0.0670907199382782, -0.03451487794518471, -0.00968064833432436, 0.022357109934091568, -0.02105795405805111, -0.03323511406779289, 0.016792070120573044, 0.007916123606264591, -0.020379291847348213, -0.007761000189930201, 0.055572833865880966, -0.028077272698283195, -0.036143671721220016, -0.004139846656471491, -0.04572251811623573, -0.008740214630961418, -0.029201915487647057, -0.022008083760738373, 0.02809666283428669, -0.05518502742052078, -0.02241528034210205, 0.01381564699113369, -0.07259758561849594, 0.044016167521476746, 0.011004041880369186, 0.006093427538871765, 0.02637091837823391, 0.0004196199879515916, 0.04095248505473137, 0.0031945654191076756, 0.004510687664151192, 0.030539851635694504, 0.005453544668853283, 0.027476171031594276, 0.00432647904381156, 0.09051430225372314, -0.03439853712916374, -0.019283734261989594, 0.003836871823295951, -0.024819688871502876, -0.02852325141429901, -0.0013767171185463667, 0.024528833106160164, -0.028387518599629402, -0.030345946550369263, -0.04025443270802498, 0.00003620547795435414, -0.03911039978265762, 0.013369668275117874, -0.027185315266251564 ]
730,278
mmengine.registry.build_functions
build_scheduler_from_cfg
Builds a ``ParamScheduler`` instance from config. ``ParamScheduler`` supports building instance by its constructor or method ``build_iter_from_epoch``. Therefore, its registry needs a build function to handle both cases. Args: cfg (dict or ConfigDict or Config): Config dictionary. If it contains the key ``convert_to_iter_based``, instance will be built by method ``convert_to_iter_based``, otherwise instance will be built by its constructor. registry (:obj:`Registry`): The ``PARAM_SCHEDULERS`` registry. default_args (dict or ConfigDict or Config, optional): Default initialization arguments. It must contain key ``optimizer``. If ``convert_to_iter_based`` is defined in ``cfg``, it must additionally contain key ``epoch_length``. Defaults to None. Returns: object: The constructed ``ParamScheduler``.
def build_scheduler_from_cfg( cfg: Union[dict, ConfigDict, Config], registry: Registry, default_args: Optional[Union[dict, ConfigDict, Config]] = None ) -> '_ParamScheduler': """Builds a ``ParamScheduler`` instance from config. ``ParamScheduler`` supports building instance by its constructor or method ``build_iter_from_epoch``. Therefore, its registry needs a build function to handle both cases. Args: cfg (dict or ConfigDict or Config): Config dictionary. If it contains the key ``convert_to_iter_based``, instance will be built by method ``convert_to_iter_based``, otherwise instance will be built by its constructor. registry (:obj:`Registry`): The ``PARAM_SCHEDULERS`` registry. default_args (dict or ConfigDict or Config, optional): Default initialization arguments. It must contain key ``optimizer``. If ``convert_to_iter_based`` is defined in ``cfg``, it must additionally contain key ``epoch_length``. Defaults to None. Returns: object: The constructed ``ParamScheduler``. """ assert isinstance( cfg, (dict, ConfigDict, Config )), f'cfg should be a dict, ConfigDict or Config, but got {type(cfg)}' assert isinstance( registry, Registry), ('registry should be a mmengine.Registry object', f'but got {type(registry)}') args = cfg.copy() if default_args is not None: for name, value in default_args.items(): args.setdefault(name, value) scope = args.pop('_scope_', None) with registry.switch_scope_and_registry(scope) as registry: convert_to_iter = args.pop('convert_to_iter_based', False) if convert_to_iter: scheduler_type = args.pop('type') assert 'epoch_length' in args and args.get('by_epoch', True), ( 'Only epoch-based parameter scheduler can be converted to ' 'iter-based, and `epoch_length` should be set') if isinstance(scheduler_type, str): scheduler_cls = registry.get(scheduler_type) if scheduler_cls is None: raise KeyError( f'{scheduler_type} is not in the {registry.name} ' 'registry. Please check whether the value of ' f'`{scheduler_type}` is correct or it was registered ' 'as expected. More details can be found at https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#import-the-custom-module' # noqa: E501 ) elif inspect.isclass(scheduler_type): scheduler_cls = scheduler_type else: raise TypeError('type must be a str or valid type, but got ' f'{type(scheduler_type)}') return scheduler_cls.build_iter_from_epoch( # type: ignore **args) else: args.pop('epoch_length', None) return build_from_cfg(args, registry)
(cfg: Union[dict, mmengine.config.config.ConfigDict, mmengine.config.config.Config], registry: mmengine.registry.registry.Registry, default_args: Union[dict, mmengine.config.config.ConfigDict, mmengine.config.config.Config, NoneType] = None) -> '_ParamScheduler'
[ 0.11554045230150223, 0.030341828241944313, -0.03678203746676445, -0.05305507034063339, -0.03446279466152191, -0.00021982491307426244, -0.023959118872880936, -0.0009314107592217624, -0.026585038751363754, -0.016311367973685265, 0.0008661221363581717, 0.0030619753524661064, -0.031875211745500565, 0.028080087155103683, -0.012113730423152447, 0.04623151570558548, 0.006200619973242283, 0.023134924471378326, -0.038602933287620544, -0.04431478679180145, 0.044199783354997635, -0.06306040287017822, -0.009123632684350014, 0.06980729103088379, 0.0618336945772171, 0.005074541084468365, 0.029038451611995697, -0.0229624193161726, -0.08050263673067093, -0.02840593084692955, 0.017988506704568863, -0.0015848956536501646, 0.038909610360860825, 0.023920783773064613, 0.014011292718350887, 0.01495048962533474, -0.04492814093828201, 0.030648505315184593, -0.09261637181043625, 0.009722610004246235, 0.049336615949869156, -0.03722288832068443, 0.025952517986297607, -0.03660953417420387, 0.02562667243182659, 0.010427008382976055, 0.008155683986842632, 0.04565649479627609, -0.03871793672442436, -0.0299393143504858, 0.03130019083619118, -0.06260038167238235, 0.020144827663898468, 0.015908854082226753, -0.06501546502113342, 0.022061556577682495, 0.0024677892215549946, 0.06440211087465286, 0.06459378451108932, -0.0207965150475502, 0.014222132973372936, -0.023230761289596558, -0.01867852918803692, 0.02183154970407486, 0.022157393395900726, -0.08203601837158203, -0.0676988884806633, -0.03147269785404205, -0.03220105543732643, 0.0474582202732563, 0.0014483287231996655, 0.012219150550663471, -0.026738375425338745, -0.03436695784330368, -0.02825259231030941, -0.007580664940178394, -0.056275177747011185, -0.059610288590192795, 0.029670972377061844, -0.0038598140235990286, 0.032546065747737885, 0.0361495167016983, -0.02650836855173111, -0.02850176766514778, 0.01171121746301651, 0.02415079064667225, -0.05382176488637924, -0.027390064671635628, 0.029613470658659935, -0.04649985581636429, 0.000276428327197209, -0.005017039366066456, 0.03338942676782608, -0.0404813252389431, 0.0008241937030106783, -0.01675221510231495, 0.008606115356087685, 0.011902890168130398, 0.009195509366691113, -0.07417742908000946, -0.03440529480576515, -0.004437228664755821, -0.04258972778916359, 0.008797788061201572, 0.036858707666397095, -0.021448202431201935, -0.02578001096844673, -0.005050582345575094, 0.0012189201079308987, 0.00927697028964758, -0.03158770129084587, 0.058076903223991394, -0.06091366335749626, -0.017451822757720947, 0.017499739304184914, 0.01800767332315445, -0.05972529202699661, 0.03015015460550785, 0.006593549624085426, -0.007039188873022795, -0.014595895074307919, 0.05209670588374138, -0.021294863894581795, 0.001267437357455492, -0.007647750433534384, -0.03626452013850212, 0.011682466603815556, 0.010072413831949234, 0.02984347753226757, -0.03045683167874813, 0.08939626067876816, -0.013417106121778488, -0.01773933134973049, 0.0013776493724435568, 0.04699820652604103, -0.07298906147480011, -0.019397301599383354, 0.0646321177482605, -0.06390376389026642, -0.04002131149172783, 0.05727187544107437, 0.06631883978843689, 0.005965820513665676, 0.004099405370652676, 0.028942614793777466, -0.04515814781188965, -0.0027049845084547997, 0.03728038817644119, 0.004008360672742128, 0.03576617315411568, -0.015017575584352016, -0.012324570678174496, -0.033619433641433716, -0.0017190667567774653, 0.012928340584039688, -0.06605049967765808, 0.03929295390844345, -0.001392024802044034, 0.010973276570439339, -0.027102554216980934, -0.026527535170316696, 0.012410823255777359, 0.01703014224767685, -0.07011396437883377, 0.023230761289596558, 0.011759134940803051, -0.06942394375801086, -0.008965502493083477, 0.006593549624085426, 0.024476636201143265, -0.01864977739751339, -0.01705889217555523, 0.015937605872750282, -0.030380161479115486, -0.011212867684662342, 0.013771701604127884, -0.004104197025299072, 0.020221496000885963, 0.027562569826841354, 0.016119694337248802, 0.0073889922350645065, 0.006353958044201136, 0.0007008042302913964, -0.05198170244693756, -0.033255256712436676, 0.06237037852406502, -0.03547866269946098, 0.03781707212328911, -0.06631883978843689, -0.03212438523769379, 0.0221957266330719, -0.013292519375681877, -0.05255672335624695, 0.017317650839686394, -0.07172401994466782, 0.012458741664886475, -0.036552030593156815, 0.0688105896115303, 0.02625919319689274, 0.10856355726718903, 0.06375042349100113, 0.03821958601474762, 0.015142163261771202, 0.023690776899456978, -0.0075950403697788715, -0.041324686259031296, 0.00961718987673521, 0.0143083855509758, 0.018918119370937347, -0.01062826532870531, 0.004063466563820839, -0.0654754787683487, -0.024629974737763405, 0.008031096309423447, -0.01466298010200262, 0.02106485702097416, 0.00817964319139719, 0.02162070944905281, 0.01055159606039524, -0.02999681606888771, 0.07889258861541748, 0.009003836661577225, 0.08088598400354385, -0.03020765632390976, 0.043739765882492065, -0.02815675549209118, 0.0006570788100361824, -0.04833991825580597, -0.011030778288841248, 0.002397109754383564, 0.03739539161324501, -0.05984029546380043, 0.037836238741874695, -0.049029938876628876, 0.07801088690757751, 0.001439942978322506, 0.026489201933145523, 0.0190522912889719, -0.05543181672692299, 0.041746366769075394, 0.04711320996284485, 0.054166775196790695, -0.039982978254556656, -0.013972957618534565, 0.009473435580730438, -0.005127251148223877, 0.005582474637776613, 0.037836238741874695, -0.01773933134973049, 0.0130529273301363, 0.0088984165340662, 0.039676301181316376, -0.03933129087090492, 0.0374145582318306, -0.058843594044446945, 0.01502715889364481, -0.060185305774211884, -0.006387501023709774, 0.025147490203380585, 0.02342243492603302, -0.0009242229862138629, 0.004077841993421316, -0.047994907945394516, 0.06164202094078064, 0.030801841989159584, -0.010973276570439339, -0.05397510156035423, -0.0043174331076443195, 0.017911836504936218, 0.019531473517417908, 0.0293834637850523, -0.007753170561045408, 0.04511981084942818, 0.004104197025299072, 0.033734437078237534, -0.022732412442564964, -0.034961145371198654, -0.08034929633140564, 0.027811745181679726, 0.0008840914815664291, 0.008352148346602917, -0.01679055020213127, 0.0061287423595786095, -0.022253230214118958, 0.02604835294187069, -0.01651262491941452, -0.03806624934077263, 0.0015525509370490909, -0.0015573427081108093, 0.0207965150475502, 0.00447077164426446, -0.005702270194888115, 0.0149696571752429, -0.023077422752976418, 0.08379941433668137, -0.0032081259414553642, 0.035727836191654205, -0.04749655723571777, 0.03703121468424797, -0.014222132973372936, 0.077895887196064, 0.001527393818832934, 0.012679165229201317, 0.03020765632390976, 0.013407522812485695, 0.01335960440337658, -0.025032486766576767, 0.00676605524495244, 0.03250773251056671, -0.003332713386043906, 0.0404813252389431, -0.016656380146741867, 0.028827611356973648, -0.037874575704336166, 0.09391974657773972, -0.030475998297333717, 0.04377810284495354, -0.055048469454050064, 0.034654468297958374, -0.01510382816195488, 0.002138351323083043, 0.09522312134504318, 0.0289617832750082, -0.022924084216356277, -0.007834631949663162, -0.01913854479789734, -0.04883826896548271, 0.0489916056394577, -0.016196364536881447, 0.01807475835084915, -0.0050985002890229225, 0.02641253173351288, 0.04561816155910492, 0.015458423644304276, 0.05117667838931084, -0.0017418279312551022, 0.005855608731508255, 0.028271760791540146, 0.008126933127641678, -0.045081477612257004, 0.09568313509225845, 0.011615380644798279, -0.011078696697950363, 0.008553405292332172, -0.006502504926174879, 0.026029186323285103, 0.01345544122159481, 0.028214257210493088, 0.04718988016247749, -0.04316474869847298, -0.028444265946745872, 0.0037831447552889585, 0.014595895074307919, 0.056390181183815, 0.0015058305580168962, 0.007853799499571323, 0.04166970029473305, -0.07812589406967163, 0.027409231290221214, -0.050678327679634094, -0.01908104121685028, 0.010081997141242027, -0.03668620064854622, -0.0059562367387115955, -0.008467152714729309, -0.004600150976330042, -0.004108988679945469, -0.04124801978468895, 0.05830691009759903, -0.035114485770463943, -0.009391974657773972, 0.008165267296135426, 0.003763977438211441, -0.004037111531943083, -0.0013620759127661586, 0.008007137104868889, -0.031242690980434418, 0.002918220590800047, -0.0076333750039339066, -0.02461080625653267, 0.043739765882492065, -0.02173571288585663, 0.061258673667907715, 0.014835486188530922, 0.04331808537244797, -0.037836238741874695, 0.001329731079749763, -0.012305403128266335, 0.03507614880800247, -0.07452244311571121, -0.023863282054662704, 0.034654468297958374, -0.000800833513494581, 0.01962731033563614, -0.03358110040426254, -0.009808863513171673, 0.034347791224718094, 0.06976895034313202, -0.01978064887225628, -0.014337136410176754, 0.02125653065741062, -0.018937287852168083, 0.03400278091430664, -0.007719628047198057, 0.021908218041062355, -0.007556706201285124, 0.06865724921226501, -0.03206688538193703, -0.020988188683986664, 0.06401876360177994, 0.003936483059078455, -0.01923437975347042, -0.09131298959255219, 0.01645512320101261, -0.05060165748000145, -0.013235016725957394, 0.023863282054662704, 0.01212331373244524, 0.04120968282222748, -0.031012682244181633, 0.004108988679945469, -0.034596968442201614, 0.04347142577171326, 0.02439996600151062, 0.06789055466651917, 0.05209670588374138, -0.0042335763573646545, 0.0130529273301363, -0.07452244311571121, -0.03107018582522869, -0.005314132664352655, -0.027370896190404892, -0.027715908363461494, -0.019378134980797768, 0.04730488359928131, -0.020010655745863914, 0.003481260035187006, -0.013407522812485695, 0.016493456438183784, -0.03177937492728233, 0.008946334943175316, -0.03591950982809067, 0.03513365238904953, 0.03183687850832939, -0.0681205689907074, 0.001075165462680161, -0.02516665868461132, 0.03160686790943146, -0.030744340270757675, -0.00716377655044198, 0.017423070967197418, 0.027236726135015488, 0.01855394057929516, 0.03128102421760559, 0.0637887567281723, -0.1182238757610321, 0.001105713308788836, 0.0204515028744936, -0.026182524859905243, 0.020777348428964615, 0.04289640486240387, -0.03708871454000473, 0.032086052000522614, -0.018879786133766174, -0.041324686259031296, 0.0568118616938591, 0.04113301634788513, -0.010436591692268848, 0.01950272172689438, -0.009320097044110298, 0.03340859338641167, 0.03005431778728962, -0.013024176470935345, -0.03200938180088997, -0.062332041561603546, 0.012113730423152447, 0.010177833959460258, 0.03214355185627937, 0.007302739191800356, 0.030475998297333717, 0.0404813252389431, 0.02131403237581253, 0.02290491759777069, 0.05654352158308029, -0.04688320308923721, -0.0855628028512001, 0.0020053782500326633, 0.0035747005604207516, -0.06279205530881882, 0.07758920639753342, -0.0720306932926178, -0.0017873502802103758, 0.06789055466651917, 0.004743905272334814, -0.02578001096844673, -0.021199028939008713, 0.05815357342362404, 0.06237037852406502, 0.04822491481900215, -0.002448621904477477, 0.01571718230843544, 0.002371952636167407, -0.031012682244181633, 0.01800767332315445, 0.04910660907626152, -0.08034929633140564, -0.05861358717083931, 0.033370260149240494, -0.04335642233490944, 0.009123632684350014, -0.03302524983882904, -0.04699820652604103, -0.03530615568161011, 0.0044492082670331, -0.007537538651376963, -0.07145567238330841, 0.02846343256533146, -0.03273773938417435, -0.038660433143377304, -0.04113301634788513, 0.033676937222480774, 0.017164312303066254, 0.04362476244568825, -0.022061556577682495, 0.006329999305307865, 0.039522960782051086, 0.035977013409137726, -0.044966474175453186, 0.013263767585158348, 0.007973594591021538, 0.010925358161330223, -0.018908536061644554, -0.020125659182667732, 0.012669581919908524, 0.02877010963857174, 0.0025564378593117, 0.002762486459687352, 0.012247901409864426, 0.007537538651376963, 0.022579073905944824, -0.0019287090981379151, 0.01453839335590601, 0.07632416486740112, 0.03409861773252487, -0.0029038451611995697, -0.024284962564706802, 0.02620169147849083, 0.04891493543982506, 0.010599514469504356, 0.004906827583909035, -0.009305722080171108, -0.017116393893957138, -0.03913961723446846, -0.008778621442615986, -0.040251318365335464, 0.012113730423152447, 0.025569170713424683, -0.0027169641107320786, 0.004818178713321686, 0.020662343129515648, -0.008289854973554611, 0.0755191445350647, -0.0019814190454781055, 0.03532532602548599, -0.023384099826216698, -0.010340755805373192, 0.010139498859643936, -0.024936649948358536, -0.03561283275485039, 0.025147490203380585, 0.0204515028744936, -0.056275177747011185, -0.03735705837607384, -0.07490579038858414, -0.0027552987448871136, 0.06593549251556396, 0.01803642511367798, -0.027600904926657677, -0.06628050655126572, -0.021352365612983704, 0.015353003516793251, -0.0057885232381522655, -0.0006277288775891066, -0.08855289965867996, -0.0016064589144662023, 0.0007409357349388301, -0.05409010499715805, -0.028693441301584244, -0.04822491481900215, 0.032488565891981125, 0.021697377786040306, 0.1321776658296585, 0.02271324396133423, 0.010043662041425705, -0.013484192080795765, -0.0014746837550774217, -0.0018328725127503276, 0.0127366678789258, -0.0006510890671052039, -0.008582156151533127, -0.06789055466651917, -0.005941861309111118, 0.035977013409137726, -0.019301466643810272, 0.02702588587999344, -0.05669685825705528, -0.0017693808767944574, -0.04170803353190422, 0.015707598999142647, 0.02871260792016983, 0.010407840833067894, -0.03130019083619118, 0.04730488359928131, 0.015477590262889862, 0.06927060335874557, -0.04473646730184555, -0.0330827496945858, -0.011615380644798279, 0.09690984338521957, -0.07536580413579941, -0.005084124859422445, 0.05999363213777542, -0.0332169234752655, -0.015046326443552971, -0.05577682703733444, -0.009842406027019024, -0.008246728219091892, -0.09706318378448486, 0.0443914532661438, 0.0025300828274339437, 0.01758599281311035, -0.0008571374928578734, 0.03302524983882904, -0.07310406118631363, -0.04301140829920769, -0.0332169234752655, 0.007345865946263075, -0.008462361060082912, 0.00318416696973145, -0.028674272820353508, 0.059150271117687225, -0.0058843595907092094, 0.008471944369375706, 0.0027529026847332716, -0.030955180525779724, 0.005822065751999617, 0.023863282054662704, 0.02085401676595211, 0.08632949739694595, 0.019176878035068512, 0.026220859959721565, -0.0068570999428629875, -0.026853380724787712, 0.02604835294187069, 0.0034285499714314938, 0.004549836739897728, -0.013560861349105835, -0.04519648104906082, 0.05366842448711395, 0.00409700907766819, 0.02259824052453041, -0.027715908363461494, -0.008927167393267155, -0.01279416959732771, -0.10894690454006195, -0.039791304618120193, -0.0522117093205452, 0.02510915696620941, 0.0015489569632336497, 0.0037831447552889585, -0.027773410081863403, -0.05455012246966362, 0.0008217977592721581, -0.05140668526291847, -0.015400920994579792, 0.004748697392642498, -0.04032798856496811, -0.02537749893963337, -0.03189437836408615, 0.016014274209737778, 0.00270977639593184, 0.02553083747625351, -0.05317007750272751, 0.01935896836221218, -0.031415197998285294, 0.022023221477866173, -0.002647482557222247, -0.04837825149297714, 0.05420510843396187, 0.0028008208610117435, 0.014490474946796894, 0.027006719261407852, 0.0033494848757982254, -0.021946553140878677, 0.019742313772439957, -0.06470878422260284, -0.06118200346827507, -0.03446279466152191, -0.052940066903829575, 0.021141525357961655, -0.014145463705062866, 0.0004396498261485249, -0.05347675085067749, 0.0289617832750082, -0.013503359630703926, 0.010177833959460258, -0.021908218041062355, 0.01792141981422901, 0.03626452013850212, -0.032239388674497604, 0.016071775928139687, 0.05244171991944313, 0.06559048593044281, -0.02332659810781479, 0.00834735669195652, 0.045273151248693466, 0.05692686513066292, 0.038947943598032, -0.02629752829670906, -0.0008691170369274914, 0.02240656688809395, -0.0005564505117945373, 0.016186781227588654, -0.04220638424158096, 0.005898735020309687, -0.018966037780046463, -0.01030242070555687, -0.04665319621562958, 0.02280908077955246, -0.013254184275865555, 0.02758173644542694, 0.016522208228707314, -0.03626452013850212, -0.008860082365572453, 0.032392729073762894, -0.03214355185627937, 0.020873183384537697, -0.004082633648067713, -0.047228213399648666, 0.03076350875198841, -0.017288899049162865, 0.06597382575273514, -0.004772656597197056, -0.0013393147382885218, 0.02060484141111374, -0.008098182268440723, 0.027830911800265312, -0.03118518926203251, 0.03333192691206932, 0.01466298010200262, -0.0007103878888301551, -0.03394527733325958, 0.013886705040931702, 0.05382176488637924, -0.02388244867324829, -0.039522960782051086, -0.014145463705062866, 0.03501864895224571, -0.049451619386672974, -0.022464070469141006, -0.04166970029473305, 0.02060484141111374, 0.04017464816570282, -0.016464706510305405, -0.007729211822152138, -0.012228733859956264, 0.011279952712357044, 0.008016721345484257 ]
730,279
mmengine.utils.package_utils
call_command
null
def call_command(cmd: list) -> None: try: subprocess.check_call(cmd) except Exception as e: raise e # type: ignore
(cmd: list) -> NoneType
[ 0.020301053300499916, -0.05812148377299309, 0.022201577201485634, 0.04692566767334938, -0.03963456675410271, -0.006764138117432594, 0.02311728522181511, -0.02087121084332466, 0.05566808208823204, -0.046096350997686386, 0.03897802159190178, 0.025812573730945587, 0.03445132076740265, -0.06655289977788925, -0.03376021981239319, -0.03529791533946991, 0.035021476447582245, 0.034416764974594116, -0.011178537271916866, 0.00035985777503810823, 0.0019350791117176414, 0.10407961159944534, 0.0063926721923053265, 0.008720814250409603, 0.002505236305296421, 0.1011078879237175, 0.04785865545272827, 0.01943717896938324, 0.036559175699949265, -0.0018335739150643349, -0.014599480666220188, 0.04194975271821022, -0.04360838979482651, 0.028939800336956978, -0.062406301498413086, 0.026762835681438446, 0.041535090655088425, 0.00511845713481307, -0.05096860229969025, -0.01883246749639511, -0.046200014650821686, -0.07263457775115967, 0.07346389442682266, -0.002611061092466116, -0.019022518768906593, -0.05369844660162926, -0.07083772122859955, 0.010971208103001118, -0.08956652134656906, 0.011515448801219463, 0.007338614668697119, -0.003451179014518857, 0.0033129591029137373, -0.026918333023786545, -0.010141887702047825, 0.03391571715474129, 0.04637278988957405, 0.06413405388593674, 0.006297646090388298, -0.0002725254453253001, 0.005420813336968422, 0.03211885690689087, -0.0733947902917862, -0.014305763877928257, 0.026089012622833252, -0.047202110290527344, -0.040982212871313095, -0.018763355910778046, -0.014461261220276356, 0.026572782546281815, -0.04112043231725693, 0.0014988224720582366, -0.060333002358675, -0.0025268332101404667, 0.044714149087667465, -0.0200764462351799, 0.014832727611064911, 0.0264000091701746, -0.00042410843889229, 0.034468598663806915, 0.01948901079595089, -0.0026477756910026073, 0.07484609633684158, 0.08776966482400894, -0.01853874884545803, 0.04740943759679794, 0.023549221456050873, 0.0033021606504917145, -0.011662307195365429, 0.033622000366449356, 0.027263883501291275, -0.024326710030436516, -0.05079582706093788, -0.0052264416590332985, -0.007960604503750801, 0.025708908215165138, 0.04319373145699501, 0.03127226233482361, -0.10829532146453857, 0.01078979391604662, -0.03419215604662895, 0.027816763147711754, 0.05134870857000351, -0.0605403333902359, -0.005040708463639021, 0.0004907887778244913, 0.004535341635346413, -0.03405393660068512, -0.036420952528715134, -0.022149745374917984, -0.026711003854870796, 0.019108906388282776, -0.023946603760123253, -0.025812573730945587, 0.027419380843639374, 0.049690067768096924, -0.035418860614299774, -0.03693927824497223, -0.08998118340969086, 0.0161026231944561, 0.0005377619527280331, 0.010167804546654224, 0.02047382853925228, -0.03832147642970085, 0.031203150749206543, 0.048100538551807404, 0.02500053122639656, 0.0013066104147583246, 0.05936546251177788, 0.05176336690783501, 0.05024294927716255, -0.013666496612131596, -0.010409689508378506, -0.026970164850354195, 0.015290580689907074, -0.011524087749421597, -0.005057985894382, -0.03515969589352608, -0.03488325700163841, -0.02852514013648033, 0.06130054220557213, 0.009580369107425213, 0.046752896159887314, 0.014979586005210876, 0.006085996516048908, 0.06019478291273117, -0.035021476447582245, -0.05701572448015213, 0.05024294927716255, 0.025173306465148926, 0.010418327525258064, -0.008409819565713406, -0.025035087019205093, 0.006548169534653425, -0.033483780920505524, -0.010573825798928738, 0.006314923521131277, -0.043470170348882675, 0.02081937901675701, -0.004535341635346413, 0.003364791627973318, -0.025311525911092758, -0.020888488739728928, 0.03849425166845322, -0.007761913351714611, -0.012042412534356117, -0.050381168723106384, 0.03877069428563118, 0.019972780719399452, 0.023480111733078957, 0.06098954752087593, 0.04101676866412163, 0.014219376258552074, -0.02684922330081463, -0.0026499354280531406, -0.022598959505558014, -0.051625147461891174, 0.01578298956155777, -0.02277173474431038, 0.01178324967622757, -0.02952723391354084, 0.0725654661655426, 0.09578641504049301, -0.037803154438734055, -0.0026499354280531406, 0.004382004030048847, 0.013726967386901379, -0.0003806447493843734, -0.02062932588160038, -0.008224086835980415, -0.01795131526887417, 0.04519791901111603, 0.05701572448015213, -0.002686650026589632, 0.01031466294080019, -0.043020956218242645, -0.0488261952996254, 0.02256440557539463, 0.0029047783464193344, -0.007230630610138178, -0.004539661109447479, 0.0010668851900845766, 0.07194347679615021, -0.024292154237627983, 0.021786917001008987, 0.010979846119880676, 0.007783510256558657, -0.00044867489486932755, 0.024637704715132713, -0.00010130279406439513, 0.06517069786787033, -0.03331100568175316, -0.06790054589509964, 0.05432043597102165, 0.02330733649432659, 0.011074872687458992, 0.1004858985543251, -0.03154870122671127, 0.003159621497616172, -0.015342413447797298, 0.054907869547605515, -0.00011264115164522082, 0.024119378998875618, 0.05577174574136734, -0.0017795817693695426, 0.042571742087602615, 0.031237706542015076, 0.02002461440861225, 0.0035483650863170624, 0.03928901627659798, -0.0523853562772274, -0.020508384332060814, 0.017225660383701324, -0.040394775569438934, -0.024775924161076546, -0.0485151968896389, 0.001185667933896184, -0.07139059901237488, -0.04226074740290642, -0.01718246564269066, 0.012094244360923767, -0.0005647580255754292, 0.0007645290461368859, 0.04637278988957405, 0.05860525369644165, 0.02216702327132225, -0.006457462906837463, 0.03344922512769699, -0.07083772122859955, 0.004416558891534805, 0.025985348969697952, 0.01883246749639511, 0.03942723944783211, -0.014461261220276356, -0.04326283931732178, -0.01399476919323206, -0.050726719200611115, -0.01909162849187851, 0.03341466933488846, 0.06451416015625, 0.0023454194888472557, 0.0062933266162872314, 0.04429949074983597, -0.018607858568429947, -0.0736021175980568, 0.0151869161054492, -0.020111002027988434, 0.04547436162829399, 0.03239529952406883, 0.04512881115078926, 0.0303738322108984, -0.007856939919292927, 0.04429949074983597, 0.0066734314896166325, -0.044610485434532166, 0.07332567870616913, 0.02963089942932129, -0.011316757649183273, 0.05414766073226929, 0.022702625021338463, 0.062302637845277786, 0.016491366550326347, -0.01853874884545803, 0.06268274039030075, -0.052316248416900635, -0.028697915375232697, 0.036006294190883636, -0.027125662192702293, -0.07712672650814056, 0.028715193271636963, 0.05086493864655495, 0.035418860614299774, 0.05584085360169411, -0.022789012640714645, -0.020214665681123734, 0.045508913695812225, 0.01795131526887417, -0.020750267431139946, 0.01803770288825035, -0.022789012640714645, 0.015014140866696835, -0.001822775462642312, -0.06154242902994156, -0.0008152816444635391, 0.03593718260526657, -0.013675135560333729, -0.025518856942653656, -0.042571742087602615, -0.0011014401679858565, -0.010115971788764, -0.018003147095441818, 0.06734766811132431, -0.006474740337580442, 0.020231943577528, 0.052765462547540665, 0.016379062086343765, 0.012612569145858288, 0.004440315533429384, 0.022287964820861816, 0.0012418198166415095, 0.009018851444125175, 0.012448432855308056, 0.04001467302441597, 0.06724400073289871, -0.022443462163209915, 0.014253931120038033, 0.01260393112897873, 0.031134041026234627, 0.030650271102786064, 0.05953823775053024, 0.0007656088564544916, 0.005641101393848658, 0.01543743908405304, -0.024879589676856995, 0.0026196998078376055, -0.005377619527280331, -0.03935812786221504, -0.048687972128391266, 0.0013271273346617818, -0.023739274591207504, 0.009744505397975445, 0.05770682543516159, -0.04941362887620926, 0.006470420863479376, 0.03548796847462654, 0.03239529952406883, 0.05590996518731117, 0.02550157904624939, -0.05794870853424072, -0.03306911885738373, -0.011964663863182068, -0.001881086966022849, -0.04626912623643875, -0.014426706358790398, 0.051072265952825546, 0.038252368569374084, -0.0009950755629688501, 0.005982331931591034, 0.030788490548729897, -0.10325029492378235, 0.02963089942932129, -0.049344517290592194, 0.002079778118059039, -0.049379073083400726, -0.021354980766773224, -0.05898535996675491, 0.018625136464834213, -0.013873826712369919, 0.010245553217828274, 0.03807959333062172, 0.02610629051923752, 0.0110316788777709, -0.017761262133717537, -0.017458906397223473, -0.009848170913755894, 0.0443340465426445, -0.017139272764325142, -0.027816763147711754, -0.006902358029037714, 0.02311728522181511, -0.060609444975852966, -0.025691630318760872, 0.05235080048441887, -0.031928807497024536, 0.029112575575709343, -0.0031574617605656385, -0.07311835139989853, 0.020802101120352745, 0.00724358856678009, 0.004319373052567244, 0.005485604051500559, -0.0034857341088354588, -0.028300533071160316, 0.0004052111762575805, -0.027471212670207024, 0.01098848506808281, 0.07145971059799194, 0.008375264704227448, -0.010798432864248753, -0.03479687124490738, -0.010167804546654224, 0.018262309953570366, 0.02316911704838276, 0.025536132976412773, 0.018365973606705666, 0.009381677955389023, -0.10608380287885666, 0.022305242717266083, -0.03908168897032738, -0.009295291267335415, -0.027920426800847054, -0.018918853253126144, 0.002703927457332611, -0.012724872678518295, -0.0768502876162529, 0.06496337056159973, -0.04727121815085411, 0.06949007511138916, -0.02242618426680565, -0.01220654882490635, 0.011454977095127106, -0.06154242902994156, 0.026227233931422234, 0.06174975633621216, 0.06613823771476746, 0.01716518960893154, 0.030097391456365585, -0.034520428627729416, 0.030408386141061783, -0.023341892287135124, 0.020318331196904182, 0.014262570068240166, -0.005105499178171158, -0.03265446051955223, 0.017648957669734955, 0.004790184553712606, 0.005131415091454983, -0.014651313424110413, -0.011524087749421597, 0.014927753247320652, -0.06199164316058159, 0.04488692432641983, -0.005978012457489967, -0.024965977296233177, -0.007843981496989727, 0.004081807564944029, 0.04547436162829399, -0.016214925795793533, -0.017467545345425606, -0.030632993206381798, 0.04146598279476166, 0.03804503753781319, 0.04160420224070549, -0.05501153692603111, 0.02322094887495041, -0.048480644822120667, -0.06613823771476746, 0.07263457775115967, -0.0261926781386137, 0.0562555156648159, -0.0076582483015954494, 0.006543850060552359, -0.05020839348435402, -0.050139281898736954, -0.01869424618780613, -0.008405500091612339, 0.03697383403778076, 0.07118327170610428, 0.022996341809630394, -0.02534608170390129, 0.017536655068397522, -0.026158124208450317, 0.026676448062062263, 0.0644104927778244, -0.015428801067173481, -0.007360211573541164, 0.06275185197591782, -0.05794870853424072, -0.03707749769091606, -0.03928901627659798, -0.029389014467597008, -0.0440230518579483, -0.010737961158156395, 0.03980734199285507, -0.03911624103784561, -0.02192513830959797, -0.013856548815965652, -0.05694661661982536, -0.029198961332440376, -0.03469320386648178, -0.02097487635910511, -0.007891494780778885, 0.011023039929568768, -0.045059699565172195, 0.003481414634734392, -0.04174242168664932, -0.08756233006715775, -0.011048956774175167, 0.03151414543390274, -0.0444377101957798, 0.08362306654453278, 0.010763878002762794, -0.004699477925896645, 0.010271469131112099, 0.009580369107425213, 0.011489532887935638, 0.05618640407919884, -0.0001444290392100811, -0.014150266535580158, -0.032239802181720734, -0.06755499541759491, 0.04927540943026543, -0.015826182439923286, 0.026209956035017967, 0.008271599188446999, -0.016379062086343765, 0.02246074005961418, -0.026883777230978012, 0.012837177142500877, 0.08251730352640152, 0.020491106435656548, -0.030304722487926483, -0.021164927631616592, -0.0035829199478030205, 0.02892252244055271, -0.05086493864655495, -0.04972462356090546, -0.009727228432893753, 0.014677229337394238, 0.0066086407750844955, 0.016085345298051834, -0.016379062086343765, 0.009856809861958027, -0.01158455852419138, 0.07415499538183212, -0.025328803807497025, -0.007947646081447601, 0.017044246196746826, -0.06765866279602051, 0.005602227058261633, -0.022529849782586098, -0.005775001831352711, 0.02176964096724987, 0.023151839151978493, -0.02118220552802086, 0.009208903647959232, -0.05777593329548836, 0.019057074561715126, 0.012387962080538273, 0.04091310128569603, -0.04122409597039223, -0.005952096078544855, -0.02325550466775894, 0.0935748964548111, -0.032481685280799866, -0.019298959523439407, -0.00691963592544198, 0.002570027019828558, -0.023981159552931786, -0.05065760761499405, -0.01170550100505352, 0.00999502930790186, -0.025829851627349854, -0.013873826712369919, 0.006172384135425091, -0.058328814804553986, 0.017916759476065636, 0.06368483603000641, 0.05511520057916641, -0.09557908773422241, -0.023583777248859406, 0.014832727611064911, -0.027004720643162727, -0.031738754361867905, 0.003718980122357607, 0.040291111916303635, 0.04543980583548546, -0.021942416206002235, 0.0035829199478030205, -0.0006738221854902804, -0.020111002027988434, -0.0402565561234951, -0.0770576149225235, 0.04236441105604172, -0.017156550660729408, 0.016171732917428017, -0.01954084448516369, -0.0684879794716835, -0.028006814420223236, -0.010997124016284943, -0.026572782546281815, 0.006634557154029608, 0.014996862970292568, -0.0067727770656347275, 0.01091073639690876, 0.025380635634064674, 0.03187697380781174, 0.013709690421819687, -0.034174878150224686, -0.05324923247098923, 0.008271599188446999, 0.03673194721341133, 0.06130054220557213, -0.009554453194141388, 0.03101309947669506, 0.00799515936523676, -0.035626187920570374, -0.02018011175096035, -0.04526703059673309, 0.018504194915294647, -0.0182450320571661, -0.002980367513373494, 0.011316757649183273, 0.030494773760437965, 0.006176703609526157, 0.0029890062287449837, -0.048687972128391266, 0.03604084998369217, 0.01903979666531086, 0.08555813878774643, 0.023877494037151337, 0.01339869573712349, -0.031289540231227875, -0.012871732003986835, -0.04996650665998459, 0.032585348933935165, -0.06199164316058159, 0.002000949578359723, -0.02346283383667469, -0.005260996520519257, 0.034382209181785583, -0.0008422777755185962, 0.050035618245601654, 0.032533518970012665, 0.03234346583485603, -0.09951835870742798, -0.05007017403841019, -0.0035246084444224834, 0.006098954938352108, 0.018210476264357567, -0.0008779125637374818, -0.02102670818567276, 0.005321467760950327, -0.03534974902868271, 0.04284818097949028, -0.0486188642680645, -0.07429321855306625, 0.013580108992755413, 0.0736021175980568, 0.01819320023059845, 0.03534974902868271, 0.0445413738489151, 0.02033560909330845, 0.03488325700163841, 0.02976911887526512, -0.0605403333902359, -0.010444244369864464, -0.024914143607020378, -0.011074872687458992, -0.023272782564163208, -0.023739274591207504, 0.014020685106515884, -0.005096860229969025, 0.00511845713481307, -0.06959374248981476, -0.02719477377831936, 0.021959692239761353, -0.03355288878083229, -0.010452883318066597, 0.013726967386901379, 0.02113037370145321, -0.06392671912908554, -0.048584308475255966, -0.0121028833091259, -0.0018854063237085938, 0.015800267457962036, 0.030408386141061783, -0.035073310136795044, 0.03096126578748226, 0.0220633577555418, -0.028214145451784134, -0.06707122176885605, -0.007818065583705902, 0.031134041026234627, -0.06606913357973099, -0.014012046158313751, 0.05915813520550728, 0.03759582340717316, 0.04226074740290642, -0.0362827330827713, 0.007878536358475685, -0.0004994274931959808, 0.00017803916125558317, -0.004176833666861057, -0.06458326429128647, 0.0326717384159565, -0.08963563293218613, -0.039600010961294174, -0.03217069059610367, 0.016491366550326347, 0.054700542241334915, -0.0242057666182518, -0.05535708740353584, 0.013701051473617554, 0.008863353170454502, -0.02460314892232418, -0.04080943763256073, 0.00003202410152880475, -0.017761262133717537, -0.014746339991688728, -0.0026132208295166492, -0.0054683261550962925, -0.0018897256813943386, -0.022996341809630394, -0.01938534714281559, -0.03071938082575798, 0.027972260490059853, 0.012215186841785908, -0.0032697655260562897, -0.02335917018353939, -0.024171212688088417, 0.009338485077023506, 0.05739583075046539, -0.019178016111254692, 0.027125662192702293, -0.03773404285311699, 0.018331419676542282, -0.01769215241074562, 0.03101309947669506, 0.004170354921370745, 0.0007272744551301003, -0.014694507233798504, 0.013433250598609447, 0.029959172010421753, -0.021545033901929855, -0.029751840978860855, -0.0012558577582240105, -0.014495816081762314, 0.04488692432641983, 0.004621729254722595, -0.004025655798614025, -0.038701582700014114, -0.02301361970603466, -0.08313929289579391, -0.0012752949260175228, -0.011921470053493977, 0.024689536541700363, 0.03312095254659653, 0.032378021627664566, -0.052869126200675964, -0.05936546251177788, 0.017934037372469902, -0.03320734202861786, 0.07401677966117859, 0.06295917928218842, -0.011247647926211357, -0.016033513471484184, 0.05362933501601219, -0.0012385802110657096, -0.002319503342732787, 0.02401571534574032, 0.04260629788041115, -0.04775498807430267, -0.028611527755856514, -0.005019111558794975, -0.008560997433960438, 0.021095817908644676, -0.008707855828106403 ]
730,280
mmengine.utils.path
check_file_exist
null
def check_file_exist(filename, msg_tmpl='file "{}" does not exist'): if not osp.isfile(filename): raise FileNotFoundError(msg_tmpl.format(filename))
(filename, msg_tmpl='file "{}" does not exist')
[ 0.010177021846175194, -0.04035068303346634, 0.024178244173526764, 0.013545535504817963, 0.03218404948711395, 0.007599259726703167, 0.060115013271570206, -0.009238841012120247, 0.005593340843915939, 0.011186681687831879, 0.028520679101347923, 0.020532744005322456, 0.066083624958992, -0.08784940838813782, -0.02550063095986843, 0.022927336394786835, 0.05743449926376343, 0.039743099361658096, -0.03591889888048172, -0.006741494871675968, -0.01814708486199379, 0.0019121005898341537, 0.011499408632516861, 0.0032746957149356604, 0.018200695514678955, 0.03218404948711395, -0.008876971900463104, 0.009194166399538517, 0.028341976925730705, -0.03636565059423447, -0.05582619085907936, 0.003777292324230075, 0.032005347311496735, 0.08277429640293121, -0.0170927494764328, -0.002260567620396614, 0.03341708704829216, -0.003949292004108429, -0.07648402452468872, -0.056934136897325516, 0.010257436893880367, 0.07877139747142792, 0.004731108900159597, 0.019138876348733902, -0.027930965647101402, -0.010668449103832245, -0.05428935959935188, -0.0067146895453333855, -0.07841399312019348, 0.0038733440451323986, -0.004371473100036383, 0.03874237462878227, 0.009015465155243874, -0.00755458464846015, 0.006862117908895016, 0.0027140213642269373, 0.036169081926345825, 0.03406040742993355, -0.016940854489803314, 0.004757913760840893, 0.019335446879267693, 0.005356562323868275, 0.010382527485489845, -0.052859753370285034, -0.018209630623459816, 0.012911146506667137, 0.015118103474378586, -0.06379625201225281, 0.009390736930072308, 0.0019400226883590221, 0.03561510890722275, 0.07648402452468872, -0.025625722482800484, -0.006920196115970612, 0.1151549220085144, -0.0006126093212515116, 0.044282104820013046, 0.013027301989495754, 0.03513261675834656, -0.01591332256793976, -0.026429876685142517, -0.09464004635810852, 0.012589484453201294, 0.011972966603934765, -0.004690900910645723, 0.0022125416435301304, 0.04106548801064491, -0.04674817994236946, 0.04699835926294327, 0.03995754197239876, 0.012634159997105598, 0.0073446109890937805, -0.026608576998114586, -0.07855695486068726, 0.020782925188541412, -0.013777846470475197, 0.045139871537685394, -0.040314942598342896, -0.02857428789138794, -0.010194891132414341, -0.018093476071953773, -0.03658009320497513, 0.03300607204437256, -0.024071022868156433, -0.0014217897551134229, -0.005655886605381966, 0.012276758439838886, -0.009623048827052116, 0.03498965501785278, -0.003279163269326091, -0.006482378579676151, -0.014456910081207752, 0.0027408264577388763, 0.026233306154608727, -0.012348238378763199, -0.04885685071349144, 0.07569774240255356, 0.019085265696048737, -0.06200924515724182, -0.04163733124732971, 0.07984360307455063, -0.06383199244737625, -0.044675249606370926, -0.03473947197198868, 0.04821352660655975, -0.07626958191394806, -0.006281340029090643, -0.025071749463677406, 0.015377220697700977, 0.009028867818415165, -0.03777739033102989, -0.008742946200072765, -0.0015290103619918227, -0.041279930621385574, -0.050643861293792725, -0.010784604586660862, 0.025268319994211197, -0.0024884112644940615, -0.011472603306174278, 0.030647220090031624, 0.03280950337648392, 0.015386155806481838, -0.03454290330410004, 0.038563672453165054, 0.00835427176207304, 0.038492195308208466, -0.05114422366023064, 0.00033366825664415956, 0.050751082599163055, 0.04589041322469711, 0.010963305830955505, -0.012732445262372494, -0.011490473523736, 0.002691683592274785, 0.0038800453767180443, -0.013608080334961414, 0.06318867206573486, -0.020389782264828682, -0.04860667139291763, -0.02684088982641697, 0.023820841684937477, 0.017825424671173096, 0.007871778681874275, 0.0394214391708374, 0.01336683426052332, 0.01602054387331009, -0.05321715399622917, 0.04371026158332825, 0.004065447486937046, 0.050179239362478256, -0.030397038906812668, -0.008188973180949688, -0.019764330238103867, 0.009730269201099873, 0.03291672095656395, -0.06200924515724182, 0.029664363712072372, 0.008278323337435722, 0.007643934804946184, 0.0010872838320210576, 0.0016284127486869693, -0.03960014134645462, 0.008287258446216583, 0.01371530070900917, -0.029896676540374756, 0.028467068448662758, -0.045961894094944, 0.01912100613117218, 0.03252357989549637, -0.00795666128396988, 0.011910420842468739, 0.007478636689484119, 0.037134066224098206, 0.04478246718645096, 0.0067548975348472595, -0.043888963758945465, 0.023195389658212662, 0.010168086737394333, -0.029021041467785835, 0.00863572582602501, 0.007206117268651724, 0.014689221978187561, -0.0027073200326412916, 0.03234487771987915, -0.009631983004510403, 0.042816758155822754, 0.05525434762239456, 0.005088510923087597, -0.04771316424012184, 0.05979335308074951, 0.004083317704498768, -0.06179480254650116, -0.02839558757841587, 0.06540456414222717, 0.009091412648558617, 0.09935775399208069, -0.027770133689045906, 0.030397038906812668, -0.0743396133184433, 0.03681240603327751, 0.024160373955965042, -0.011660239659249783, -0.018763603642582893, 0.002673813607543707, 0.06065111607313156, 0.020407652482390404, 0.03556149825453758, 0.038563672453165054, -0.018370462581515312, 0.037598688155412674, 0.00683084549382329, 0.010025125928223133, 0.018513422459363937, 0.03250570967793465, 0.007943258620798588, -0.01592225767672062, 0.0026000994257628918, 0.007581389509141445, -0.005352094769477844, 0.02896743081510067, -0.002294074045494199, 0.016940854489803314, 0.00849723257124424, 0.01719103567302227, 0.059328727424144745, -0.06586918234825134, 0.003252357942983508, 0.05493268370628357, -0.07190927863121033, 0.008868036791682243, 0.040422163903713226, 0.03332773596048355, -0.06636954843997955, -0.03447142243385315, 0.005517393350601196, -0.023731492459774017, -0.009149490855634212, -0.03411401808261871, 0.03431059047579765, 0.03970735892653465, -0.03988606110215187, 0.06647676974534988, 0.03323838487267494, -0.0033461761195212603, -0.06293848901987076, -0.06611936539411545, -0.03666944429278374, 0.06111573800444603, -0.02364214137196541, 0.005718431901186705, 0.044853948056697845, 0.05428935959935188, 0.06333163380622864, -0.019728589802980423, 0.01574355736374855, -0.007313338108360767, 0.04278101772069931, -0.00782710313796997, 0.04739150404930115, 0.06533308327198029, 0.0036924092564731836, 0.003243423067033291, 0.034614380449056625, 0.02673366852104664, -0.038384974002838135, 0.007670740131288767, -0.020604224875569344, -0.022069573402404785, -0.051608845591545105, 0.01602054387331009, -0.02289159782230854, 0.019085265696048737, -0.01381358690559864, -0.029485663399100304, -0.07383924722671509, 0.020121730864048004, 0.0202825628221035, 0.012321433052420616, 0.011097331531345844, -0.01424246933311224, -0.04085104539990425, 0.015770362690091133, -0.025161100551486015, -0.019174616783857346, -0.026626447215676308, -0.041101228445768356, -0.05032220110297203, -0.013027301989495754, -0.005061705596745014, -0.02925335243344307, 0.009569438174366951, -0.007509909104555845, 0.029986025765538216, 0.011142007075250149, 0.12237443774938583, 0.08506166934967041, -0.0026983849238604307, -0.0479276068508625, 0.004985757637768984, -0.003379682544618845, -0.0010135696502402425, 0.05010775849223137, -0.004317862913012505, 0.0238387119024992, -0.005352094769477844, -0.04867814853787422, -0.011508343741297722, -0.03398893028497696, -0.01062377355992794, 0.03806331008672714, -0.015189584344625473, -0.004047577269375324, 0.04660521820187569, -0.091923788189888, -0.024213984608650208, 0.0028234757483005524, 0.003696876810863614, -0.007858376018702984, 0.08091580867767334, 0.05318141356110573, -0.023123908787965775, -0.04549727216362953, -0.02414250373840332, -0.014269273728132248, 0.009730269201099873, -0.010829280130565166, -0.022623546421527863, -0.03556149825453758, 0.009354996494948864, -0.06390347331762314, -0.018290046602487564, 0.019907290115952492, -0.04085104539990425, 0.0044518886134028435, -0.016377946361899376, 0.04510413110256195, 0.03749146685004234, 0.017789684236049652, -0.00617858674377203, 0.03931421786546707, -0.0119193559512496, -0.032005347311496735, -0.05010775849223137, -0.050179239362478256, -0.005642483942210674, -0.013179197907447815, 0.08670572191476822, 0.0008583231829106808, -0.09506892412900925, 0.032094698399305344, 0.00748310424387455, -0.012518004514276981, -0.04549727216362953, -0.028842339292168617, -0.003542747115716338, -0.03255932033061981, -0.002038308186456561, -0.05221642926335335, 0.036919623613357544, -0.01980007067322731, 0.013420444913208485, 0.014197793789207935, -0.042137693613767624, 0.02201596274971962, 0.008943984284996986, -0.015028753317892551, -0.014653481543064117, 0.015538050793111324, -0.016261789947748184, -0.001174959004856646, 0.06358180940151215, -0.032398488372564316, 0.049964796751737595, -0.01380465179681778, -0.01076673436909914, -0.04063660651445389, 0.016351141035556793, 0.010471878573298454, -0.02528619021177292, 0.027877354994416237, -0.023034557700157166, 0.055468786507844925, -0.040600866079330444, 0.006312612444162369, -0.009158425964415073, 0.06733453273773193, 0.007371415849775076, -0.00589266512542963, 0.021998092532157898, -0.017333995550870895, -0.00824705045670271, -0.0363120399415493, -0.015412960201501846, -0.055861931294202805, -0.005249341484159231, 0.08334614336490631, -0.05668395385146141, -0.044853948056697845, -0.029485663399100304, -0.026626447215676308, -0.024017414078116417, -0.06629806756973267, 0.05718431621789932, 0.04903555288910866, 0.0013357899151742458, -0.007317805662751198, -0.04739150404930115, 0.0052627441473305225, -0.006379625294357538, -0.004664096049964428, -0.08463279157876968, -0.021461989730596542, 0.007929856888949871, -0.05028646066784859, 0.02192661166191101, -0.06004353240132332, -0.037134066224098206, -0.04346008226275444, -0.026322655379772186, 0.032094698399305344, -0.003368513658642769, 0.035204093903303146, 0.013474054634571075, 0.05754172056913376, -0.037598688155412674, 0.04381748288869858, -0.028234757483005524, -0.03002176620066166, 0.021497730165719986, 0.023034557700157166, -0.017065944150090218, 0.04982183501124382, 0.04992905631661415, -0.003723681904375553, -0.002356619341298938, -0.030343428254127502, -0.0822739377617836, 0.01294688694179058, -0.001477633835747838, -0.003918019123375416, -0.07055114954710007, 0.06408217549324036, 0.021372638642787933, -0.06826377660036087, 0.034024666994810104, -0.06318867206573486, 0.01043613813817501, 0.020103860646486282, 0.047355763614177704, -0.007353545632213354, -0.00011475954670459032, -0.01221421267837286, -0.024928787723183632, -0.004440719727426767, -0.01707487925887108, -0.0073580131866037846, 0.04453228786587715, 0.06258108466863632, 0.0146802868694067, 0.03706258535385132, 0.04085104539990425, -0.055468786507844925, -0.0658334419131279, 0.0058881975710392, 0.04124419018626213, 0.008095154538750648, -0.02828836627304554, -0.00039146686322055757, -0.017512697726488113, -0.05521860718727112, 0.026769408956170082, -0.041101228445768356, 0.01633327081799507, -0.020300433039665222, 0.012848601676523685, -0.03107610158622265, -0.05897132679820061, 0.11386827379465103, -0.02857428789138794, -0.017789684236049652, 0.019907290115952492, -0.06150888279080391, 0.04217343404889107, 0.05957891047000885, -0.009354996494948864, -0.027269771322607994, 0.03450716286897659, -0.012437589466571808, 0.056255072355270386, -0.03498965501785278, 0.04371026158332825, 0.06647676974534988, -0.03899255767464638, 0.056433774530887604, 0.08756348490715027, 0.011847876012325287, -0.039349958300590515, -0.03640139102935791, 0.01853129267692566, 0.02462499588727951, -0.025178968906402588, -0.0703367069363594, -0.002664878498762846, 0.009010997600853443, -0.003694643033668399, -0.010641643777489662, 0.01076673436909914, 0.005879262462258339, -0.03681240603327751, 0.035275574773550034, -0.023910192772746086, -0.020997365936636925, 0.016637062653899193, -0.08613387495279312, -0.01424246933311224, 0.05293123424053192, 0.002848047064617276, 0.006580663844943047, -0.037705909460783005, -0.02655496820807457, 0.004588148090988398, 0.049392953515052795, 0.017977319657802582, -0.04921425133943558, 0.0028636835049837828, -0.027162550017237663, -0.055468786507844925, -0.04860667139291763, 0.016574516892433167, -0.002332048024982214, 0.059257250279188156, -0.0009817385580390692, 0.009524762630462646, -0.0056871590204536915, 0.04867814853787422, 0.07698439061641693, -0.010891825892031193, -0.016637062653899193, 0.005128718446940184, 0.016458360478281975, 0.002819008193910122, 0.007559051737189293, 0.03641926124691963, -0.02684088982641697, -0.04095826670527458, -0.03649074211716652, 0.0026157358661293983, -0.03561510890722275, 0.00839894637465477, -0.04406766593456268, -0.016092024743556976, 0.042638055980205536, 0.025661462917923927, -0.027448471635580063, -0.007715415209531784, -0.002611268311738968, 0.06883562356233597, 0.017146360129117966, 0.06007927283644676, 0.02414250373840332, -0.02346344105899334, -0.05861392617225647, -0.04463950917124748, 0.02944992296397686, -0.02927122265100479, 0.0019601264502853155, -0.02144411951303482, -0.0017523865681141615, -0.008671465329825878, 0.02782374434173107, -0.004393810406327248, -0.04217343404889107, 0.026608576998114586, -0.0058747949078679085, 0.032398488372564316, 0.062330905348062515, 0.04975035786628723, -0.017521632835268974, 0.028752990067005157, -0.01529680471867323, -0.012196342460811138, 0.014331819489598274, -0.007559051737189293, -0.0032009815331548452, -0.011597694829106331, -0.0013514262391254306, -0.011704915203154087, 0.0004984082188457251, -0.050929781049489975, 0.024660736322402954, 0.0027251900173723698, -0.040422163903713226, 0.011830005794763565, 0.007000611163675785, 0.027466341853141785, 0.037598688155412674, -0.005119783338159323, 0.001540179131552577, -0.01842407137155533, 0.03332773596048355, -0.0561835914850235, -0.013402574695646763, 0.015689946711063385, 0.03636565059423447, 0.018674254417419434, 0.007809233386069536, 0.04614059627056122, -0.01758417673408985, -0.05478972569108009, 0.026626447215676308, -0.03640139102935791, -0.003415422746911645, 0.024660736322402954, -0.050751082599163055, 0.009953645057976246, -0.006075833924114704, 0.00927458144724369, 0.02337408997118473, 0.011276032775640488, 0.028163276612758636, 0.011401123367249966, -0.09721334278583527, -0.05010775849223137, 0.037419985979795456, 0.000241804780671373, 0.031522855162620544, 0.004923212341964245, -0.01951414905488491, 0.09142342954874039, 0.01173172052949667, 0.05539730563759804, -0.017977319657802582, -0.030575739219784737, -0.01659238710999489, 0.013393639586865902, 0.00726419547572732, -0.01727145165205002, -0.06465402245521545, 0.007536714430898428, 0.01472496148198843, 0.017432281747460365, -0.037598688155412674, -0.062223684042692184, 0.008273855783045292, 0.0010370241943746805, 0.01631540060043335, 0.03389957919716835, -0.12158815562725067, -0.0675489753484726, 0.0643680989742279, 0.0091182179749012, 0.024088893085718155, 0.03756294772028923, -0.02558998204767704, 0.0363120399415493, 0.021479859948158264, 0.0015848544426262379, 0.025071749463677406, -0.00955156795680523, 0.015430830419063568, 0.006603001616895199, 0.013929742388427258, -0.028127536177635193, 0.006781702861189842, -0.031737297773361206, -0.0058747949078679085, -0.006004353519529104, 0.021944481879472733, 0.012893276289105415, -0.012339303269982338, -0.06629806756973267, 0.04685540124773979, -0.059435948729515076, 0.01602054387331009, -0.08034396916627884, -0.03752720728516579, 0.025089619681239128, 0.0621522031724453, -0.002338749123737216, 0.006558326538652182, -0.004192771855741739, 0.018272176384925842, 0.04085104539990425, 0.005030432716012001, -0.04295971989631653, -0.023427700623869896, -0.046891141682863235, -0.0006969338865019381, -0.03159433603286743, 0.0020841003861278296, 0.006710222456604242, -0.031058233231306076, 0.04517561197280884, -0.03902829810976982, -0.008095154538750648, -0.05361029878258705, -0.009587308391928673, 0.0145373260602355, 0.04138714820146561, -0.05432510003447533, 0.019281836226582527, 0.0035807210952043533, -0.07308870553970337, -0.02267715521156788, -0.013885066844522953, -0.04410340636968613, -0.025161100551486015, -0.06994356960058212, 0.007733285427093506, 0.045032650232315063, 0.07155187427997589, 0.00849723257124424, -0.07223094254732132, 0.07140891999006271, 0.03629416972398758, -0.0399932824075222, -0.021944481879472733, 0.054503802210092545, 0.01796838454902172, 0.0587211474776268, 0.007072091568261385, -0.009962580166757107, -0.021211808547377586, -0.09206674993038177, 0.026769408956170082, 0.015234259888529778, 0.06719157099723816, 0.02617969550192356, -0.03341708704829216, 0.03515048325061798, 0.008671465329825878, -0.012973692268133163, -0.010891825892031193, 0.07905732095241547, -0.005535263102501631, -0.039457179605960846, 0.012544809840619564, 0.017932644113898277, 0.000058915484260069206, -0.015555921010673046, -0.019192487001419067, -0.011213487014174461, 0.0009594009607098997, 0.012848601676523685, -0.030647220090031624, -0.0011448032455518842, -0.01748589240014553, 0.023999543860554695 ]
730,281
mmengine.utils.misc
check_prerequisites
A decorator factory to check if prerequisites are satisfied. Args: prerequisites (str of list[str]): Prerequisites to be checked. checker (callable): The checker method that returns True if a prerequisite is meet, False otherwise. msg_tmpl (str): The message template with two variables. Returns: decorator: A specific decorator.
def check_prerequisites( prerequisites, checker, msg_tmpl='Prerequisites "{}" are required in method "{}" but not ' 'found, please install them first.'): # yapf: disable """A decorator factory to check if prerequisites are satisfied. Args: prerequisites (str of list[str]): Prerequisites to be checked. checker (callable): The checker method that returns True if a prerequisite is meet, False otherwise. msg_tmpl (str): The message template with two variables. Returns: decorator: A specific decorator. """ def wrap(func): @functools.wraps(func) def wrapped_func(*args, **kwargs): requirements = [prerequisites] if isinstance( prerequisites, str) else prerequisites missing = [] for item in requirements: if not checker(item): missing.append(item) if missing: print(msg_tmpl.format(', '.join(missing), func.__name__)) raise RuntimeError('Prerequisites not meet.') else: return func(*args, **kwargs) return wrapped_func return wrap
(prerequisites, checker, msg_tmpl='Prerequisites "{}" are required in method "{}" but not found, please install them first.')
[ -0.008808652870357037, 0.02805553562939167, -0.009768540970981121, -0.049074865877628326, 0.01147401798516512, 0.034216683357954025, 0.01873345486819744, 0.08014847338199615, 0.01203655730932951, 0.02885916456580162, 0.08843476325273514, 0.026341130957007408, 0.039181314408779144, -0.04964633285999298, -0.014438510872423649, -0.04478885233402252, 0.05986133590340614, 0.0038596452213823795, 0.019197773188352585, -0.052253659814596176, -0.010375726968050003, 0.091149240732193, 0.04250297695398331, -0.0032792475540190935, 0.014313502237200737, 0.03280586749315262, 0.04175292328000069, 0.035948947072029114, 0.0036698998883366585, 0.035627495497465134, -0.01862630434334278, 0.061575740575790405, -0.05089642107486725, 0.053610898554325104, 0.005308407358825207, 0.02891273982822895, 0.028109110891819, 0.010081063024699688, -0.04643182456493378, -0.007464808411896229, 0.025448210537433624, 0.022965895012021065, 0.025376778095960617, -0.04286014288663864, -0.020912179723381996, -0.0028997566550970078, -0.015867182984948158, 0.014233139343559742, -0.026305412873625755, -0.018554870039224625, 0.025716086849570274, 0.0026117900852113962, 0.10164997726678848, -0.02693045698106289, 0.022215841338038445, 0.019037047401070595, 0.06404019892215729, 0.026483997702598572, 0.05061068758368492, -0.024108830839395523, 0.04093143716454506, 0.027537642046809196, -0.01556358952075243, 0.011902619153261185, -0.025912528857588768, -0.031162897124886513, -0.020876461640000343, -0.06871909648180008, 0.0165636595338583, 0.012777680531144142, -0.051932208240032196, 0.018876321613788605, -0.019733523949980736, -0.07046922296285629, 0.04696757346391678, -0.04239582642912865, 0.009089922532439232, -0.06229007616639137, 0.08500595390796661, -0.04675327613949776, -0.00019267531752120703, -0.021769382059574127, -0.005321801174432039, 0.003774818032979965, 0.07543385773897171, 0.0008761774515733123, -0.008098781108856201, -0.02035856805741787, 0.04739617556333542, 0.05971846729516983, -0.03475243225693703, -0.03439526632428169, 0.012063344940543175, -0.02207297459244728, -0.020269276574254036, -0.00901848915964365, 0.03735975921154022, -0.02853771299123764, -0.048217661678791046, 0.03402024134993553, 0.01613505929708481, 0.004942310508340597, 0.05143217369914055, 0.011018629185855389, 0.028412703424692154, -0.012527663260698318, -0.048110511153936386, -0.013402724638581276, 0.0151082007214427, 0.004440043121576309, 0.02901989035308361, -0.058932699263095856, -0.011125778779387474, -0.03835982829332352, 0.007491596043109894, -0.05175362527370453, -0.03689544275403023, -0.08550598472356796, -0.06207577511668205, -0.033198755234479904, 0.07971987128257751, -0.029269907623529434, 0.02100147120654583, 0.01416170597076416, -0.023769522085785866, -0.0204121433198452, -0.008263971656560898, 0.043538764119148254, 0.08657748997211456, -0.08600602298974991, -0.0040828753262758255, 0.032287973910570145, -0.06218292564153671, 0.012116920202970505, 0.010304292663931847, 0.022715875878930092, -0.020340710878372192, -0.008585422299802303, -0.005379841197282076, -0.07307654619216919, 0.010438230820000172, -0.0007617720984853804, -0.027109041810035706, 0.002426509279757738, 0.0026542036794126034, -0.03080572932958603, -0.009768540970981121, 0.011224000714719296, 0.04668183997273445, 0.015072484500706196, 0.012849113903939724, -0.02987709268927574, 0.0344666987657547, -0.021983683109283447, -0.006991561036556959, 0.005509314592927694, -0.011206141673028469, -0.01063467375934124, 0.027716226875782013, 0.018876321613788605, 0.015777891501784325, 0.014965333975851536, -0.03646684065461159, 0.029537782073020935, 0.021287204697728157, 0.025287484750151634, -0.007205861620604992, -0.06318299472332001, 0.014063484966754913, 0.03644898161292076, 0.018260207027196884, 0.011081133037805557, -0.022769451141357422, -0.023555221036076546, -0.018608445301651955, -0.04153862223029137, 0.01917991414666176, 0.022680159658193588, -0.023090902715921402, -0.003018068615347147, -0.013045556843280792, -0.0029265442863106728, -0.02709118276834488, -0.01787625253200531, 0.012616954743862152, 0.04000280052423477, 0.01453673280775547, 0.022108690813183784, -0.019644232466816902, -0.02666258066892624, -0.0891491025686264, 0.03444883972406387, 0.08264864236116409, 0.09350655227899551, -0.0029868162237107754, -0.045646052807569504, -0.01598326303064823, 0.030555712059140205, 0.02789480984210968, -0.023876672610640526, 0.010652531869709492, 0.04400308057665825, 0.015313572250306606, 0.0435030460357666, -0.004156541079282761, 0.04539603739976883, 0.013500945642590523, 0.02196582406759262, -0.07586245238780975, -0.01488497108221054, 0.027234049513936043, 0.02666258066892624, -0.028144828975200653, -0.016117200255393982, -0.006915662903338671, 0.015501085668802261, 0.10129281133413315, -0.04168149083852768, -0.030877161771059036, 0.011509734205901623, -0.022519433870911598, 0.03893129900097847, 0.004286014474928379, 0.04218152537941933, 0.0030426238663494587, 0.005612000357359648, 0.012822326272726059, 0.03603823855519295, -0.02605539560317993, -0.042360108345746994, -0.006567424163222313, 0.004370841663330793, 0.05746830999851227, 0.03264514356851578, -0.03537747636437416, -0.07364801317453384, -0.027234049513936043, 0.012536591850221157, -0.008107710629701614, 0.05218222737312317, -0.012741963379085064, 0.015545731410384178, 0.03157363831996918, -0.0070406715385615826, 0.08293437957763672, 0.04761047661304474, -0.0007986050331965089, 0.007991631515324116, 0.01103648729622364, -0.007232649251818657, -0.032127249985933304, 0.02353736199438572, 0.004540496505796909, -0.045360319316387177, -0.045860353857278824, 0.04157434031367302, 0.030770011246204376, -0.059682752937078476, 0.030895020812749863, 0.02159079723060131, 0.021412214264273643, 0.038967013359069824, 0.028716295957565308, 0.013349149376153946, -0.026233980432152748, -0.043324463069438934, 0.023948105052113533, 0.03700259327888489, -0.0445745512843132, -0.013974192552268505, -0.059254150837659836, 0.032127249985933304, 0.044610265642404556, 0.013777750544250011, -0.0014643882168456912, -0.03439526632428169, -0.011991911567747593, -0.0032747830264270306, 0.028823446482419968, 0.04325303062796593, 0.05771832913160324, -0.020233560353517532, -0.028073394671082497, 0.037395477294921875, -0.006317406892776489, -0.016983332112431526, -0.02014426700770855, 0.04550318792462349, -0.006969238165766001, 0.022197982296347618, -0.024537432938814163, -0.05450381711125374, 0.052967995405197144, -0.03635969012975693, -0.006089712027460337, 0.0011529825860634446, 0.0007009419496171176, -0.09479235112667084, 0.027126898989081383, -0.05843266472220421, -0.0029979778919368982, 0.025591077283024788, -0.0033752364106476307, -0.0358060784637928, -0.038752712309360504, -0.06468310207128525, -0.004330660216510296, -0.022876601666212082, -0.04571748897433281, -0.05071783810853958, 0.02703760750591755, -0.011304362677037716, 0.010572168976068497, -0.010616814717650414, 0.05189649015665054, -0.03219868242740631, -0.020430002361536026, 0.004536031745374203, -0.009241718798875809, 0.020858604460954666, 0.001889641280286014, 0.0514678917825222, 0.03387737274169922, 0.046931859105825424, -0.019733523949980736, -0.014411723241209984, -0.03753834217786789, 0.0065986765548586845, 0.02255515195429325, 0.03385951370000839, -0.045038867741823196, 0.0035895369946956635, 0.04103858768939972, 0.03003781847655773, 0.012554450891911983, 0.05303942784667015, 0.04475313425064087, -0.032287973910570145, 0.03635969012975693, -0.014786750078201294, 0.027912668883800507, -0.01645650900900364, -0.0188406053930521, 0.052467960864305496, -0.07693395763635635, -0.02191224880516529, -0.005451274570077658, 0.006397769320756197, 0.0408242866396904, 0.008616674691438675, 0.035663213580846786, -0.009679249487817287, -0.02121577225625515, -0.01566181145608425, -0.01736728847026825, 0.0018673182930797338, 0.02300161123275757, 0.002582770073786378, 0.017483366653323174, -0.019376356154680252, 0.02428741566836834, -0.004000280052423477, -0.03150220587849617, 0.00551824364811182, -0.045646052807569504, -0.03710974007844925, 0.05007493495941162, 0.01566181145608425, 0.0017166381003335118, 0.018554870039224625, 0.008192538283765316, 0.03230583295226097, 0.0072728306986391544, -0.033091604709625244, -0.033520203083753586, -0.014518873766064644, 0.01691189780831337, 0.02525176852941513, 0.018126269802451134, -0.0006484829355031252, -0.03037712723016739, -0.0023327525705099106, -0.044931717216968536, -0.0413600392639637, -0.03428811579942703, -0.021394355222582817, -0.07929126918315887, 0.05114644020795822, -0.004759261850267649, 0.022983752191066742, 0.05036066845059395, -0.0657188892364502, 0.019412074238061905, -0.07764829695224762, -0.007308547385036945, -0.035020310431718826, 0.023769522085785866, 0.03153792396187782, -0.025608936324715614, 0.0027100113220512867, 0.03564535453915596, -0.05657539144158363, -0.004808372352272272, -0.06086140498518944, 0.0011122430441901088, 0.032555852085351944, 0.03818124532699585, 0.02960921637713909, 0.004466830752789974, 0.01526892650872469, 0.016733314841985703, -0.04582463949918747, 0.02126934751868248, -0.011393655091524124, -0.049360599368810654, 0.05539673566818237, -0.04157434031367302, -0.044288817793130875, 0.006076318211853504, -0.05003921687602997, 0.018206631764769554, -0.004216813016682863, 0.026912599802017212, 0.04539603739976883, 0.021072903648018837, 0.037395477294921875, -0.02423384040594101, 0.014849253930151463, -0.00500927958637476, -0.014411723241209984, -0.021144337952136993, -0.03587751090526581, -0.049789201468229294, -0.03177008032798767, -0.035788219422101974, 0.004216813016682863, -0.011098991148173809, 0.040467120707035065, -0.0026809913106262684, -0.016438651829957962, 0.005272690672427416, 0.02907346561551094, -0.006388840265572071, 0.024144548922777176, -0.052682261914014816, 0.026537572965025902, 0.006116499658674002, -0.037288326770067215, -0.04371734708547592, -0.01015249639749527, -0.015188563615083694, 0.055218152701854706, 0.004065016750246286, 0.0037346365861594677, -0.025555361062288284, -0.02525176852941513, 0.032823726534843445, -0.02605539560317993, -0.046610407531261444, -0.01798340305685997, 0.08222004026174545, -0.01042037270963192, 0.04182435944676399, -0.009438160806894302, -0.010750752873718739, -0.01578681915998459, -0.007558565121144056, 0.04425309970974922, -0.0331273190677166, 0.002535891951993108, 0.06925485283136368, -0.05175362527370453, -0.013733104802668095, 0.04050283506512642, -0.0043619126081466675, 0.0732194110751152, 0.03496673330664635, 0.02444814145565033, 0.009893549606204033, 0.047360461205244064, -0.010465018451213837, 0.0010000700131058693, -0.012974122539162636, 0.05546817183494568, 0.00023969312314875424, -0.08843476325273514, -0.04750332608819008, -0.0341988243162632, -0.01603683829307556, -0.006942450534552336, 0.00046096977894194424, -0.0025269626639783382, 0.033573780208826065, 0.05325372889637947, 0.02912703901529312, -0.024465998634696007, 0.025662511587142944, -0.014652811922132969, -0.007286224514245987, -0.003118521999567747, 0.019626375287771225, 0.024626724421977997, 0.0646473839879036, 0.01712619885802269, 0.026430422440171242, -0.08664892613887787, 0.020983612164855003, -0.00562539417296648, -0.02762693539261818, 0.030895020812749863, 0.033520203083753586, 0.03194866701960564, -0.009848903864622116, 0.051825057715177536, -0.012679459527134895, 0.03439526632428169, -0.05121787264943123, 0.01910848170518875, -0.02578752115368843, 0.012741963379085064, 0.02337663806974888, 0.07329084724187851, 0.051396455615758896, -0.0520036406815052, 0.01672438532114029, -0.028787730261683464, 0.015545731410384178, -0.003962330985814333, 0.03128790482878685, 0.010804328136146069, 0.010831115767359734, 0.005652181338518858, 0.003361842595040798, -0.048824846744537354, -0.024805309250950813, 0.008380050770938396, -0.013277716003358364, 0.0021072905510663986, 0.030573569238185883, 0.0016396237770095468, 0.05471811816096306, 0.04007423669099808, 0.009103315882384777, -0.012634813785552979, -0.004105198197066784, 0.01375989243388176, 0.019804958254098892, -0.04761047661304474, -0.06636179238557816, -0.03564535453915596, -0.022251557558774948, -0.03175222501158714, -0.015090342611074448, -0.011322221718728542, 0.003931079059839249, 0.05071783810853958, 0.012911618687212467, -0.01934063993394375, 0.009732824750244617, -0.010965053923428059, -0.006692432798445225, -0.017894109711050987, 0.03503816947340965, 0.0009386818273924291, -0.010134638287127018, -0.045967504382133484, 0.0965781956911087, -0.008455948904156685, -0.010723965242505074, -0.07275509834289551, -0.021608656272292137, 0.025483926758170128, -0.01243837084621191, -0.007612140383571386, -0.0848630890250206, -0.04603893682360649, 0.02482316642999649, -0.033680930733680725, -0.0012746428837999701, 0.0009453787351958454, 0.0179030392318964, -0.05589677020907402, -0.06014706939458847, -0.05878983065485954, -0.005589677020907402, -0.020876461640000343, 0.018376287072896957, 0.03334162011742592, -0.0540752150118351, 0.024162406101822853, -0.015911828726530075, 0.013188423588871956, -0.011759752407670021, -0.05811121314764023, 0.0371454581618309, 0.006312942132353783, 0.05164647474884987, 0.01916205696761608, -0.0042257425375282764, 0.008830975741147995, -0.022215841338038445, 0.03200224041938782, -0.017358358949422836, -0.006339729763567448, 0.019679950550198555, -0.038967013359069824, -0.03209153190255165, -0.040788572281599045, -0.03843126446008682, -0.021662231534719467, -0.01795661449432373, 0.023144477978348732, 0.0397527851164341, 0.023126618936657906, 0.022412283346056938, -0.010670389980077744, -0.08900623023509979, -0.03444883972406387, 0.007089782040566206, 0.04578892141580582, -0.0012500875163823366, 0.03423453867435455, 0.06207577511668205, 0.019572800025343895, 0.028234120458364487, 0.02455529198050499, -0.020537152886390686, -0.11636529117822647, -0.010081063024699688, -0.039502765983343124, 0.023840954527258873, 0.0013896062737330794, 0.057539742439985275, -0.030073534697294235, 0.009277435019612312, 0.00296895788051188, 0.015581448562443256, 0.007924661971628666, 0.036859724670648575, -0.10215000808238983, -0.06854051351547241, -0.04982491955161095, -0.06968345493078232, -0.0032145108561962843, 0.009518523700535297, 0.006540636532008648, 0.01163474377244711, -0.034538134932518005, 0.09936410188674927, -0.028394846245646477, -0.0278412364423275, 0.0837201476097107, -0.032287973910570145, 0.05475383624434471, 0.005830765701830387, 0.06671895831823349, 0.02444814145565033, 0.004580677952617407, -0.022573009133338928, -0.004176631569862366, 0.033788081258535385, -0.045538902282714844, 0.0451103039085865, 0.015938615426421165, -0.00858988706022501, -0.008906873874366283, 0.04828909784555435, -0.013206281699240208, -0.00666564516723156, 0.043860215693712234, 0.0136527419090271, -0.011590097099542618, 0.03609181195497513, -0.07071924209594727, 0.03353806212544441, -0.013456299901008606, -0.043645914644002914, -0.024519573897123337, 0.00037000360316596925, 0.05693255737423897, -0.0424315445125103, -0.004049390554428101, -0.06943343579769135, 0.05100357159972191, 0.007254972588270903, 0.017894109711050987, 0.0451103039085865, 0.03703830763697624, -0.05078927055001259, -0.0222872756421566, 0.011000770144164562, 0.06196862459182739, 0.06918341666460037, -0.030287835747003555, 0.0033529133070260286, -0.004357447847723961, -0.05271797627210617, 0.0037591918371617794, 0.05671825632452965, -0.05164647474884987, 0.026019679382443428, -0.028305552899837494, -0.0003446111804805696, 0.0130009101703763, -0.04900343343615532, -0.010795398615300655, -0.02380523830652237, -0.045253168791532516, -0.01923348940908909, -0.013688459061086178, -0.018983472138643265, 0.06832621246576309, 0.07371944934129715, -0.057111144065856934, -0.04518173635005951, -0.10222144424915314, 0.05739687755703926, -0.02698403224349022, 0.02428741566836834, -0.030234260484576225, 0.04086000472307205, 0.06025421991944313, 0.003265853738412261, -0.06064710393548012, 0.00036749226273968816, -0.004728009458631277, -0.01182225625962019, -0.06996918469667435, -0.018206631764769554, -0.039931368082761765, 0.08222004026174545, 0.0023439142387360334, -0.05789691209793091, 0.0003384723677299917, 0.059468451887369156, -0.06496883928775787, -0.03503816947340965, 0.02407311461865902, -0.02239442616701126, -0.010956124402582645, 0.012527663260698318, 0.024215981364250183, -0.013608096167445183, -0.03757406026124954, 0.06689754128456116, 0.022108690813183784, -0.0008008373552002013, 0.02859128825366497, 0.024090973660349846, -0.07579102367162704, 0.01265267189592123, -0.019090622663497925, -0.05114644020795822, 0.007116569671779871, -0.016492227092385292, -0.03539533540606499, 0.016742244362831116, -0.010759682394564152, -0.03302016854286194, -0.020269276574254036, -0.04568177089095116, 0.0358060784637928, 0.04018138721585274, 0.010786470025777817, 0.07914839684963226, 0.013081273064017296, -0.030609287321567535, 0.03559177741408348 ]
730,282
mmengine.utils.timer
check_time
Add check points in a single line. This method is suitable for running a task on a list of items. A timer will be registered when the method is called for the first time. Examples: >>> import time >>> import mmcv >>> for i in range(1, 6): >>> # simulate a code block >>> time.sleep(i) >>> mmcv.check_time('task1') 2.000 3.000 4.000 5.000 Args: str: Timer identifier.
def check_time(timer_id): """Add check points in a single line. This method is suitable for running a task on a list of items. A timer will be registered when the method is called for the first time. Examples: >>> import time >>> import mmcv >>> for i in range(1, 6): >>> # simulate a code block >>> time.sleep(i) >>> mmcv.check_time('task1') 2.000 3.000 4.000 5.000 Args: str: Timer identifier. """ if timer_id not in _g_timers: _g_timers[timer_id] = Timer() return 0 else: return _g_timers[timer_id].since_last_check()
(timer_id)
[ 0.02242746390402317, 0.02741134539246559, 0.004372181836515665, 0.0733497217297554, 0.004708503372967243, -0.027989186346530914, 0.02004386857151985, 0.07179677486419678, -0.03853479027748108, -0.018391603603959084, -0.02878371812403202, 0.0034986482933163643, 0.02497357688844204, 0.014599520713090897, 0.01651361957192421, -0.0024964548647403717, 0.04554111510515213, -0.025443073362112045, -0.05388369783759117, -0.07613058388233185, 0.06937706470489502, 0.0951993465423584, 0.06973821669816971, 0.060420528054237366, -0.00047796047874726355, 0.07620281726121902, 0.04315751791000366, 0.019357681274414062, -0.03015609085559845, -0.027664149180054665, -0.022373290732502937, 0.03759579733014107, -0.028223933652043343, -0.004839420318603516, -0.09245459735393524, 0.024702712893486023, 0.016901856288313866, -0.04380758851766586, 0.0005930772749707103, -0.0045256707817316055, 0.055725567042827606, 0.048430319875478745, 0.02732105739414692, 0.011800602078437805, -0.05995102971792221, -0.03210630640387535, -0.039690472185611725, 0.032846663147211075, -0.0008453185437247157, -0.042362987995147705, -0.011051214300096035, -0.061178941279649734, -0.01720883511006832, 0.042688023298978806, 0.010292797349393368, -0.03223270922899246, 0.01398556400090456, -0.018508978188037872, 0.04445766285061836, 0.012125637382268906, 0.038390327244997025, 0.007362961769104004, -0.011258875951170921, 0.013407723046839237, 0.01052754558622837, -0.012712507508695126, -0.028729544952511787, 0.00683929305523634, -0.0033090440556406975, -0.0036476228851825, -0.01845480501651764, -0.012017291970551014, 0.014906498603522778, -0.055111609399318695, 0.03207018971443176, -0.012215925380587578, -0.020007753744721413, -0.01012125052511692, 0.028151703998446465, 0.04886370152235031, 0.020748112350702286, 0.012640277855098248, 0.03763191029429436, -0.00821617990732193, -0.04059334844350815, 0.008559273555874825, 0.059445418417453766, 0.00046103153727017343, -0.08566496521234512, -0.0058551570400595665, 0.0030178662855178118, 0.006274994928389788, 0.004476012662053108, 0.010861610062420368, -0.01230621337890625, -0.03674709051847458, 0.007629310246556997, 0.038715362548828125, -0.047780249267816544, 0.03508579730987549, -0.0020653309766203165, -0.005945444572716951, 0.05568945035338402, -0.0260750874876976, 0.002704116515815258, -0.017461640760302544, -0.026652928441762924, 0.00003847807602141984, 0.03810140863060951, 0.011520709842443466, 0.008405784144997597, -0.0330994687974453, -0.045757804065942764, -0.0295060183852911, 0.04192960634827614, 0.010184451937675476, 0.005317945498973131, 0.0061485921032726765, -0.08855417370796204, 0.0027650606352835894, 0.04120730608701706, -0.0645737573504448, 0.011656141839921474, -0.015728116035461426, -0.04456600546836853, -0.011990206316113472, 0.0005310045089572668, 0.0730246901512146, 0.03197990357875824, -0.0661989375948906, 0.017091460525989532, 0.00024744472466409206, 0.0340745747089386, 0.06482656300067902, -0.02047725021839142, -0.026779331266880035, 0.04886370152235031, 0.03853479027748108, 0.019014589488506317, 0.0027289455756545067, -0.02744746021926403, 0.0031465261708945036, -0.03048112615942955, -0.03420097753405571, 0.07295245677232742, -0.021885737776756287, -0.06981045007705688, 0.04648010432720184, -0.021687105298042297, 0.008694705553352833, -0.05648398399353027, -0.02258998155593872, 0.03997939079999924, 0.034670475870370865, -0.0023429656866937876, 0.008184579201042652, 0.020386962220072746, -0.0011506038717925549, 0.0020540449768304825, -0.04853866621851921, 0.0036521372385323048, 0.0008018675725907087, 0.024142930284142494, -0.02695990540087223, 0.036205366253852844, 0.030300550162792206, -0.09844970703125, 0.05995102971792221, -0.028223933652043343, 0.07103835791349411, 0.007236558943986893, -0.0021680332720279694, -0.003399331821128726, -0.005010967142879963, 0.05561722069978714, -0.057784125208854675, -0.03002968803048134, 0.0340745747089386, 0.08342583477497101, -0.04059334844350815, -0.0072681596502661705, 0.05056111142039299, -0.004180320538580418, -0.0011850260198116302, -0.05482269078493118, -0.005963502451777458, -0.012893082574009895, 0.060492757707834244, -0.046732909977436066, 0.017759589478373528, -0.004843934904783964, 0.037993062287569046, 0.027429401874542236, 0.011954090557992458, -0.013127830810844898, 0.011258875951170921, -0.05157233029603958, 0.002173676388338208, 0.02148847095668316, 0.015935778617858887, -0.005430805031210184, 0.032196592539548874, -0.008180065080523491, -0.0047355894930660725, 0.004397010896354914, -0.05670067295432091, -0.008044634014368057, 0.039365436881780624, -0.06529606133699417, 0.035158030688762665, 0.026129258796572685, 0.005065139848738909, -0.058398082852363586, 0.04752744361758232, -0.0009926003403961658, -0.007999490015208721, 0.012513875029981136, -0.011592940427362919, -0.030174147337675095, -0.013877218589186668, 0.060456641018390656, -0.04969434812664986, -0.03246745467185974, 0.04749132692813873, 0.03367730975151062, 0.04832197353243828, 0.019357681274414062, 0.058434195816516876, 0.03763191029429436, -0.03290083631873131, 0.03593450412154198, -0.011006070300936699, 0.02148847095668316, -0.029199041426181793, -0.012865996919572353, -0.07569720596075058, -0.011972148902714252, 0.020386962220072746, 0.0046994746662676334, -0.045035503804683685, -0.014870383776724339, 0.013597327284514904, 0.005715211387723684, 0.018490919843316078, 0.024070700630545616, -0.02816976048052311, -0.015520455315709114, -0.002198505448177457, -0.0769251137971878, 0.0340745747089386, 0.0007787313661538064, 0.023131707683205605, 0.011087329126894474, -0.0041126045398414135, -0.055472761392593384, 0.065223827958107, -0.033695369958877563, 0.007105641532689333, -0.0012075979029759765, 0.005891272332519293, 0.05742297321557999, 0.00995873287320137, 0.0003447861527092755, -0.023041419684886932, -0.07125505059957504, 0.010960926301777363, -0.01208049338310957, 0.03246745467185974, 0.01499678660184145, -0.012215925380587578, -0.027248825877904892, -0.061106711626052856, 0.02282472886145115, -0.012929198332130909, 0.00182381144259125, 0.005308916326612234, 0.0065187718719244, 0.04965823143720627, 0.001282085315324366, -0.01356121152639389, 0.004785248078405857, 0.054172616451978683, 0.006965695880353451, -0.015719087794423103, -0.09678841382265091, -0.02278861403465271, -0.04026831313967705, 0.1268361508846283, -0.05088614672422409, -0.003801112063229084, -0.072049580514431, -0.026815446093678474, -0.0013656014343723655, -0.009832330048084259, 0.04315751791000366, 0.030553355813026428, -0.03411069139838219, -0.04366312921047211, -0.018427718430757523, -0.002936607226729393, -0.025406958535313606, 0.017272036522626877, -0.04478269815444946, -0.057748012244701385, -0.05222240462899208, -0.012197867967188358, -0.10567271709442139, -0.04330197721719742, 0.05124729499220848, -0.05258355289697647, 0.010292797349393368, 0.005968016572296619, 0.027429401874542236, -0.05485880374908447, 0.12633053958415985, 0.04478269815444946, -0.07277188450098038, 0.011872831732034683, 0.005800984334200621, 0.023041419684886932, 0.0038372271228581667, -0.011728371493518353, 0.04243521764874458, 0.022896960377693176, 0.02092868834733963, -0.08255907148122787, 0.058506425470113754, -0.055725567042827606, 0.0063291676342487335, -0.0014671750832349062, -0.01459049154073, -0.020386962220072746, 0.04929708316922188, -0.04109895974397659, 0.05283635854721069, -0.03687349334359169, -0.01700117252767086, 0.015258620493113995, 0.01338063646107912, 0.0356997549533844, 0.07959762960672379, 0.018075596541166306, -0.009435064159333706, 0.024684656411409378, 0.030426952987909317, 0.010626861825585365, -0.04557722806930542, 0.018635381013154984, 0.06767965853214264, -0.010175423696637154, -0.024016527459025383, -0.05767577886581421, -0.062081821262836456, -0.02145235612988472, 0.005263772793114185, 0.0366748608648777, 0.03709018602967262, -0.03817363828420639, 0.03674709051847458, -0.008545730262994766, -0.04658845067024231, 0.03205213323235512, -0.0371624156832695, -0.04297694191336632, -0.004771704785525799, -0.0015766489086672664, 0.07779187709093094, -0.03100479394197464, 0.033821772783994675, 0.027628034353256226, -0.05269189924001694, 0.03674709051847458, 0.024467965587973595, -0.0023384513333439827, 0.034832991659641266, 0.018960416316986084, 0.034869108349084854, 0.03965435549616814, -0.05388369783759117, -0.005882243625819683, 0.027194654569029808, -0.001303528668358922, -0.024377677589654922, 0.01691991463303566, -0.04221852496266365, -0.022969190031290054, -0.059156499803066254, 0.04619118571281433, -0.010310854762792587, 0.003855284536257386, 0.05034441873431206, -0.03279248997569084, -0.001373501610942185, -0.0260750874876976, -0.01535793673247099, -0.0032909864094108343, 0.0394376665353775, 0.035392776131629944, -0.04326586425304413, -0.06937706470489502, 0.06605447828769684, 0.031799327582120895, 0.008162007667124271, -0.04153234139084816, -0.021994082257151604, 0.0295060183852911, -0.04257967695593834, -0.021109262481331825, -0.05424484610557556, -0.04510773345828056, 0.022030197083950043, 0.012875025160610676, 0.03994327783584595, -0.022571923211216927, -0.04265190660953522, -0.0115748830139637, -0.04377147555351257, 0.006157620809972286, -0.03914874419569969, -0.01926739513874054, -0.016937971115112305, -0.040737807750701904, -0.026905734091997147, 0.026815446093678474, -0.03161875158548355, 0.023366454988718033, 0.021018976345658302, 0.03947377949953079, -0.0170372873544693, -0.00876242108643055, 0.007362961769104004, 0.002519026631489396, 0.03950989618897438, -0.007141756825149059, -0.011565853841602802, 0.023547030985355377, -0.016296928748488426, -0.03416486456990242, 0.046407874673604965, 0.004911650437861681, 0.003692766884341836, 0.010915782302618027, -0.005557207856327295, 0.012640277855098248, 0.0030268949922174215, -0.030914507806301117, -0.037017956376075745, -0.026580696925520897, 0.04395205155014992, 0.0015563342021778226, -0.018599266186356544, 0.013714700937271118, 0.01208049338310957, -0.006338196340948343, 0.04153234139084816, -0.06930483877658844, -0.07569720596075058, 0.03593450412154198, 0.028964292258024216, 0.009949703700840473, -0.07212181389331818, 0.02683350257575512, 0.034995511174201965, -0.008378698490560055, -0.02735717222094536, -0.008830136619508266, -0.0371624156832695, -0.009326718747615814, -0.0027831182815134525, 0.01208049338310957, 0.027375228703022003, 0.0034602759405970573, 0.0014841039665043354, -0.018852071836590767, 0.06450153142213821, 0.02744746021926403, 0.022156599909067154, 0.05301693454384804, 0.02367343381047249, 0.020910630002617836, 0.054497651755809784, 0.03060752898454666, 0.025641705840826035, -0.007543536834418774, -0.013687614351511002, 0.005101254675537348, -0.037342991679906845, -0.030463067814707756, 0.0025935140438377857, -0.04492715746164322, -0.05218628793954849, -0.03792083263397217, 0.01914099231362343, -0.01975494809448719, 0.005873214453458786, -0.07103835791349411, 0.015105132013559341, -0.03169098123908043, 0.03566363826394081, 0.024431850761175156, 0.0175248421728611, 0.0255875326693058, 0.010211538523435593, 0.04261579364538193, 0.0374874509871006, 0.009444093331694603, -0.033460620790719986, -0.01111441571265459, -0.04178514704108238, 0.018391603603959084, 0.003284214995801449, -0.02768220752477646, -0.015240563079714775, -0.008347097784280777, 0.018725669011473656, -0.020495306700468063, -0.0045030987821519375, -0.023384513333439827, -0.017551928758621216, -0.014211283065378666, -0.03335227444767952, 0.021145379170775414, 0.02780861034989357, -0.025894511491060257, 0.014102938584983349, 0.0180936548858881, -0.05742297321557999, -0.012279126793146133, -0.01747969724237919, 0.03223270922899246, 0.06056498736143112, -0.006550372578203678, -0.0019727861508727074, -0.02918098308146, -0.028025301173329353, 0.012215925380587578, -0.015168332494795322, -0.0997498482465744, -0.030661702156066895, -0.016937971115112305, 0.04030442610383034, -0.03380371257662773, 0.05532829836010933, 0.010310854762792587, -0.04120730608701706, 0.05756743624806404, -0.0017256236169487238, 0.06121505796909332, -0.03654845803976059, 0.026526525616645813, 0.033532850444316864, -0.007340389769524336, -0.04348255321383476, -0.019809121266007423, -0.01672128215432167, -0.0195563156157732, 0.011818659491837025, -0.028639256954193115, -0.005065139848738909, -0.019195163622498512, -0.007985946722328663, -0.011358192190527916, 0.05168067663908005, -0.031384002417325974, -0.054172616451978683, -0.07511936128139496, 0.0012482274323701859, 0.0020371160935610533, -0.003778540063649416, -0.006703861523419619, -0.0023034648038446903, 0.02497357688844204, -0.016342073678970337, -0.04796082526445389, -0.09021546691656113, -0.0031826412305235863, -0.024377677589654922, -0.008915909565985203, -0.03517608717083931, 0.03185350075364113, -0.04059334844350815, 0.06439318507909775, -0.028205877169966698, -0.017028259113430977, 0.018725669011473656, -0.04243521764874458, 0.024431850761175156, -0.0000778026005718857, -0.03784860298037529, 0.06724627315998077, -0.024558253586292267, 0.06070944666862488, -0.013525096699595451, 0.04496327415108681, 0.03712629899382591, 0.046407874673604965, 0.05391981080174446, 0.03853479027748108, 0.01772347465157509, 0.05030830577015877, -0.010319883935153484, 0.019809121266007423, -0.009344776161015034, 0.016540706157684326, -0.024106815457344055, -0.001980686327442527, 0.020549479871988297, -0.03595256060361862, -0.022644154727458954, -0.0076970262452960014, 0.017064373940229416, 0.012351356446743011, 0.05088614672422409, 0.07425259798765182, 0.03719853237271309, -0.04991103708744049, -0.015728116035461426, 0.05088614672422409, 0.021362068131566048, 0.043410323560237885, -0.026255661621689796, 0.049224853515625, 0.0347246490418911, -0.0337495394051075, 0.0619373582303524, -0.050055500119924545, -0.024467965587973595, -0.044421546161174774, 0.014084880240261555, -0.08580942451953888, -0.026418179273605347, 0.055472761392593384, -0.013389665633440018, -0.10581717640161514, 0.015150275081396103, 0.028025301173329353, -0.059120383113622665, 0.0061937361024320126, -0.01865343749523163, -0.0010304083116352558, 0.0035731354728341103, 0.01667613722383976, -0.03028249368071556, -0.008329040370881557, 0.067499078810215, 0.005652009975165129, -0.023366454988718033, 0.015294735319912434, 0.07851418107748032, 0.02797112800180912, -0.04734686762094498, 0.02562364749610424, -0.024359621107578278, 0.028512854129076004, -0.006040246691554785, -0.020007753744721413, -0.033261988312006, -0.03411069139838219, -0.014933585189282894, -0.005417261738330126, 0.05063334107398987, 0.006040246691554785, -0.04322974756360054, -0.013326464220881462, -0.0590120367705822, -0.042037952691316605, 0.051066722720861435, 0.05742297321557999, -0.0022402633912861347, 0.019086819142103195, 0.023872066289186478, -0.015764230862259865, 0.01530376449227333, -0.0031803841702640057, 0.02246357873082161, -0.010789379477500916, -0.017308151349425316, -0.03230493888258934, 0.0040381173603236675, 0.014139053411781788, -0.008107835426926613, -0.037993062287569046, -0.04312140494585037, -0.039076514542102814, -0.018075596541166306, 0.04749132692813873, 0.047419097274541855, -0.053739238530397415, 0.008807565085589886, -0.008089778013527393, -0.03485105186700821, 0.014328657649457455, 0.04828586056828499, 0.03994327783584595, 0.0466245673596859, 0.049730464816093445, -0.06923260539770126, 0.0498749241232872, 0.020513365045189857, -0.03994327783584595, 0.010346969589591026, -0.017949193716049194, -0.009128086268901825, 0.013543154112994671, -0.010762293823063374, -0.03817363828420639, -0.005137369967997074, 0.031510405242443085, 0.029000407084822655, -0.02060365304350853, 0.0015495625557377934, 0.013859161175787449, 0.043049175292253494, -0.003230042289942503, -0.017579015344381332, -0.08458151668310165, 0.0006737719522789121, -0.037017956376075745, -0.0056745815090835094, 0.0029298358131200075, 0.022644154727458954, 0.0775751918554306, 0.025280555710196495, -0.07360252737998962, -0.026020914316177368, 0.06692124158143997, 0.026652928441762924, -0.03950989618897438, 0.005864185746759176, -0.013570240698754787, 0.002735717222094536, 0.004694960080087185, -0.018996531143784523, -0.03143817558884621, 0.008514129556715488, 0.010355998761951923, -0.0021048318594694138, 0.0007403591298498213, 0.040015507489442825, -0.023492857813835144, 0.026020914316177368, 0.009240945801138878, 0.07656396925449371, -0.03241328150033951, 0.029126809909939766, -0.028115589171648026, 0.0010986884590238333, 0.04164068400859833, -0.007484850008040667, 0.008974596858024597, 0.039365436881780624, -0.02484717406332493, -0.05388369783759117, 0.01250484585762024, 0.03174515441060066, 0.044060394167900085, -0.022680269554257393, 0.022860845550894737, 0.04926096647977829, 0.02517220936715603, 0.044349316507577896, -0.00445344066247344, 0.06804081052541733, 0.014689807780086994, 0.00860441755503416, -0.021235665306448936, -0.08082554489374161, 0.08342583477497101 ]
730,283
mmengine.utils.misc
concat_list
Concatenate a list of list into a single list. Args: in_list (list): The list of list to be merged. Returns: list: The concatenated flat list.
def concat_list(in_list): """Concatenate a list of list into a single list. Args: in_list (list): The list of list to be merged. Returns: list: The concatenated flat list. """ return list(itertools.chain(*in_list))
(in_list)
[ -0.0912666842341423, -0.030921151861548424, 0.00038274965481832623, 0.005234144162386656, 0.00033511986839585006, -0.01154523529112339, -0.005329974461346865, -0.06454379856586456, 0.06965473294258118, 0.00705947820097208, -0.028876779600977898, -0.07461964339017868, 0.0006759438547305763, 0.03243618085980415, 0.024313444271683693, -0.027160964906215668, 0.008446731604635715, -0.021100858226418495, 0.014310616068542004, 0.027343498542904854, 0.02672288566827774, 0.015442322939634323, -0.0415445938706398, 0.03774790093302727, -0.04486670345067978, -0.008766165003180504, 0.043077874928712845, 0.0009976589353755116, -0.0919238030910492, 0.02858472615480423, 0.04059541970491409, -0.02363807149231434, -0.014985989779233932, -0.08360028266906738, 0.013169782236218452, 0.06008998304605484, -0.015524462796747684, 0.02637607231736183, -0.057498011738061905, 0.03095765970647335, -0.0023843420203775167, -0.06498187780380249, 0.028219658881425858, -0.0016131385928019881, 0.05581870302557945, -0.007908258587121964, -0.02893153950572014, 0.026631617918610573, -0.045742861926555634, -0.022469857707619667, 0.03946371376514435, -0.03710903227329254, -0.03971926122903824, 0.011052395217120647, -0.03563051298260689, 0.026193538680672646, 0.004086465574800968, 0.0076298946514725685, 0.015469702892005444, 0.04588888958096504, -0.007748541422188282, 0.0013324936153367162, -0.018873950466513634, -0.063521608710289, 0.01734066940844059, 0.03252744674682617, -0.043588969856500626, -0.0008111326606012881, -0.013516595587134361, -0.047422170639038086, -0.049028463661670685, 0.04369848966598511, -0.08571767061948776, -0.007374348118901253, 0.016017302870750427, 0.0024276936892420053, 0.019421549513936043, 0.021137364208698273, -0.03453531488776207, -0.019239017739892006, 0.010650821961462498, -0.004501729272305965, 0.002352398820221424, 0.03298377990722656, 0.0319615937769413, -0.024130910634994507, -0.0004974034382030368, 0.021648457273840904, -0.045852381736040115, 0.04490320757031441, 0.009304638020694256, 0.004111564252525568, -0.044684167951345444, -0.01724940352141857, -0.00711880112066865, 0.04592539370059967, -0.05443144962191582, -0.008214001543819904, -0.016720056533813477, 0.01147222239524126, -0.044684167951345444, -0.02011517621576786, -0.033148057758808136, -0.022506363689899445, 0.006799367722123861, 0.010349641554057598, -0.005507944151759148, -0.02555467188358307, 0.06505489349365234, 0.018819190561771393, -0.019439803436398506, -0.07673703134059906, 0.03710903227329254, -0.07673703134059906, 0.006968211382627487, -0.012777335941791534, 0.010121474973857403, -0.0060920510441064835, -0.028055379167199135, -0.0015492519596591592, 0.032691724598407745, 0.008118171244859695, -0.009044528007507324, -0.05939635634422302, 0.0018721078522503376, 0.041216034442186356, 0.02440471202135086, 0.000802005990408361, -0.027818085625767708, -0.0423477403819561, 0.002913688775151968, 0.03555750101804733, -0.04749518260359764, -0.002544058719649911, 0.03659794107079506, -0.06618659943342209, -0.034608326852321625, -0.005357354413717985, 0.02197701670229435, 0.013726509176194668, -0.02807363122701645, -0.04183664917945862, 0.008036031387746334, 0.03364089876413345, -0.02898629941046238, -0.019074736163020134, 0.023108724504709244, -0.013945549726486206, -0.0011048972373828292, 0.06830398738384247, 0.008811797946691513, 0.03510116785764694, -0.07429108023643494, 0.006361288018524647, -0.0266681257635355, -0.003979227505624294, -0.07272129505872726, -0.03145049884915352, 0.039354193955659866, -0.04457464814186096, 0.029734686017036438, 0.00022018088202457875, -0.004458377603441477, 0.048772916197776794, -0.026503844186663628, -0.045304782688617706, -0.062389906495809555, -0.0010746652260422707, -0.0284752044826746, -0.05016016960144043, 0.06019950285553932, -0.07140704989433289, 0.01724027656018734, -0.022177804261446, -0.0034681339748203754, 0.028164898976683617, -0.07158958911895752, 0.05479651689529419, -0.03462658077478409, -0.028749005869030952, -0.04577936977148056, -0.027306992560625076, 0.036378901451826096, -0.04107000678777695, -0.009464355185627937, 0.006169627886265516, 0.005307157523930073, -0.0276720579713583, 0.08235905319452286, -0.027343498542904854, 0.017714863643050194, -0.01985963061451912, -0.0205715112388134, -0.006630524527281523, -0.03265522047877312, -0.02369283139705658, -0.05647582560777664, 0.0006793664069846272, 0.018362857401371002, 0.0137356361374259, -0.05738849192857742, -0.024970564991235733, 0.05541713163256645, -0.028164898976683617, 0.06691673398017883, 0.03942720592021942, -0.05308070406317711, 0.05731547623872757, 0.023455537855625153, 0.00572242122143507, 0.06943569332361221, -0.030063245445489883, -0.02106435038149357, 0.006680721417069435, -0.003443035762757063, 0.01774224266409874, -0.03285600617527962, -0.005183947738260031, -0.04019384831190109, -0.03488212823867798, 0.017915649339556694, -0.08170193433761597, 0.04092398285865784, 0.015551842749118805, -0.02601100504398346, 0.027562538161873817, -0.03482736647129059, 0.0165831558406353, -0.005416677799075842, -0.04092398285865784, 0.004574742633849382, -0.016008175909519196, -0.019841376692056656, 0.010723835788667202, -0.04508574306964874, -0.01829897053539753, 0.01779700256884098, -0.007442797999829054, 0.006625961046665907, -0.008775291964411736, -0.07345142960548401, 0.026941925287246704, 0.06260894238948822, -0.03130447119474411, 0.0016313919331878424, 0.013799523003399372, 0.010906368494033813, 0.04789675399661064, -0.030318792909383774, 0.04384451359510422, -0.008054285310208797, 0.08352726697921753, 0.053774330765008926, -0.019786616787314415, 0.004764121025800705, 0.03468133881688118, 0.009674268774688244, -0.015159396454691887, -0.018107309937477112, -0.0055307610891759396, 0.08863820135593414, -0.05530761182308197, 0.06282798200845718, 0.01612682268023491, -0.07031185179948807, -0.06571201235055923, -0.006069234572350979, 0.012266241945326328, -0.04570635408163071, 0.05216803774237633, 0.14113479852676392, -0.015059002675116062, 0.01573437638580799, 0.007210067939013243, 0.013699129223823547, -0.0023797787725925446, 0.053336251527071, 0.033549632877111435, -0.026138778775930405, 0.0025166787672787905, -0.017915649339556694, 0.005019667558372021, -0.024222178384661674, -0.017568835988640785, -0.05147441104054451, 0.007985834963619709, 0.03243618085980415, 0.05640280991792679, -0.038843099027872086, 0.05428542196750641, 0.05917731672525406, 0.012083709239959717, 0.018892204388976097, -0.04081445932388306, -0.019330283626914024, -0.008140988647937775, 0.02414916455745697, 0.01260392926633358, 0.015615729615092278, 0.007273954804986715, 0.029260098934173584, 0.02904105931520462, -0.016501016914844513, -0.0163823701441288, -0.00495121767744422, -0.06275497376918793, 0.02732524462044239, -0.02621179074048996, -0.02460549771785736, 0.00846954807639122, -0.039354193955659866, -0.004846260882914066, -0.07702907919883728, -0.00002693436726985965, -0.03488212823867798, -0.017915649339556694, -0.014045942574739456, 0.05355529114603996, 0.006972774863243103, 0.009610381908714771, 0.00337230390869081, -0.007064041215926409, 0.06403270363807678, 0.03971926122903824, -0.0023660887964069843, 0.029515646398067474, 0.03161478042602539, 0.0659310519695282, 0.0045519256964325905, 0.01452052965760231, -0.012877728790044785, -0.021338149905204773, -0.023619817569851875, 0.03378692641854286, 0.016674423590302467, -0.028164898976683617, 0.06019950285553932, -0.04417307674884796, -0.006447991356253624, -0.020242949947714806, -0.05826465040445328, 0.0019074736628681421, -0.025518164038658142, 0.0015789136523380876, -0.010632568970322609, -0.0017888270085677505, 0.0065666381269693375, 0.07622593641281128, 0.010221868753433228, 0.016145076602697372, -0.004741304088383913, -0.029771191999316216, -0.015259789302945137, -0.013680876232683659, 0.06074710562825203, 0.08287014812231064, -0.08338124305009842, 0.02263413742184639, 0.03710903227329254, 0.01759621687233448, 0.052204541862010956, -0.018472377210855484, 0.027945859357714653, 0.008761601522564888, 0.01567961648106575, 0.04180014133453369, -0.037893928587436676, -0.014985989779233932, 0.016208963468670845, 0.0020169937051832676, -0.011599995195865631, 0.01003020815551281, 0.06363113224506378, -0.03723680600523949, 0.022506363689899445, 0.01157261524349451, -0.019695350900292397, -0.026138778775930405, -0.012412268668413162, 0.056840889155864716, -0.07264827936887741, -0.026960179209709167, 0.03179731220006943, -0.03594081848859787, 0.032636966556310654, 0.012010695412755013, 0.018536264076828957, -0.011864668689668179, -0.04698408767580986, -0.004102437291294336, -0.018034296110272408, -0.023583311587572098, 0.021265137940645218, 0.009304638020694256, -0.11601820588111877, -0.04300486296415329, 0.04052240774035454, -0.02037072367966175, 0.025043578818440437, -0.010970255360007286, 0.0307568721473217, -0.00806797482073307, 0.01035876851528883, 0.03542972728610039, -0.013598735444247723, -0.00811360776424408, -0.007940201088786125, -0.028055379167199135, -0.005311721004545689, -0.011335321702063084, -0.06771987676620483, -0.029424378648400307, 0.013954675756394863, 0.07283081114292145, 0.030081499367952347, 0.021666711196303368, -0.05238707736134529, 0.03212587162852287, 0.04979510232806206, 0.03179731220006943, 0.00497859762981534, -0.020863564684987068, -0.0061833178624510765, 0.07447361201047897, -0.03070211224257946, -0.048371341079473495, 0.004823444411158562, 0.04541430249810219, -0.02761729806661606, -0.03444404527544975, 0.012923362664878368, 0.010450035333633423, -0.04329691454768181, -0.07834332436323166, 0.0038514540065079927, 0.017577962949872017, 0.016720056533813477, -0.01808905601501465, 0.059615399688482285, -0.009783788584172726, 0.029552152380347252, 0.012339255772531033, 0.002774507272988558, -0.029716432094573975, -0.0026011005975306034, 0.03690824657678604, -0.0680849477648735, 0.007981271483004093, -0.02772681787610054, -0.0005761209176853299, 0.010705581866204739, -0.04472067579627037, -0.04180014133453369, -0.0299537256360054, 0.005553577560931444, -0.008506054989993572, 0.015798263251781464, -0.0078900046646595, -0.007419981528073549, -0.011508728377521038, 0.056840889155864716, 0.01033138856291771, 0.10192663222551346, 0.015780009329319, 0.020498497411608696, 0.01220235601067543, 0.01739542931318283, 0.009259005077183247, -0.012293621897697449, 0.04406355321407318, -0.008487801998853683, -0.019750110805034637, -0.018280716612935066, -0.019293777644634247, 0.11441191285848618, 0.028895031660795212, -0.036524925380945206, -0.014830836094915867, 0.028219658881425858, -0.02772681787610054, -0.07326889038085938, -0.04541430249810219, 0.0415445938706398, -0.024331698194146156, -0.021684963256120682, 0.03115844540297985, 0.01931202970445156, -0.026795897632837296, 0.06669769436120987, -0.006411484442651272, -0.014529655687510967, 0.0517299547791481, -0.02414916455745697, -0.05738849192857742, 0.03714554011821747, 0.0046249390579760075, -0.08893025666475296, -0.0011180168949067593, 0.031194953247904778, 0.0723562240600586, 0.032490938901901245, 0.010568682104349136, 0.03957323357462883, 0.0031829255167394876, 0.025846725329756737, 0.04048589989542961, -0.0038332007825374603, -0.015414942987263203, -0.0695452094078064, -0.007333278190344572, -0.031085433438420296, 0.024879297241568565, 0.012695196084678173, 0.02486104518175125, -0.0142376022413373, -0.012339255772531033, -0.06520091742277145, 0.003913058899343014, 0.0952824205160141, 0.02051675133407116, -0.009236188605427742, 0.03252744674682617, -0.028000619262456894, -0.00816380511969328, 0.007328714709728956, -0.042931847274303436, 0.02706969901919365, 0.006388667970895767, -0.07272129505872726, 0.07085945457220078, -0.07885441184043884, 0.018107309937477112, -0.029077565297484398, -0.01785176247358322, -0.005110934376716614, 0.03648842126131058, -0.03811296820640564, -0.0064206114038825035, 0.07688305526971817, 0.013899915851652622, 0.02434995211660862, -0.01376301608979702, 0.03840501978993416, 0.02763555198907852, -0.009318328462541103, 0.019275523722171783, -0.04483019560575485, 0.06023601070046425, 0.0008909910102374852, -0.026595111936330795, -0.05238707736134529, -0.034809112548828125, -0.03367740660905838, 0.08447644114494324, -0.034151993691921234, -0.11331671476364136, 0.01683870330452919, 0.03427976742386818, -0.058702729642391205, 0.018070803955197334, 0.016564903780817986, 0.029570406302809715, -0.08323521912097931, -0.023053964599967003, -0.017833510413765907, 0.009236188605427742, -0.04059541970491409, 0.029022805392742157, 0.001970219425857067, -0.017231149598956108, -0.0016987011767923832, -0.006238077767193317, -0.033805180341005325, -0.03917166218161583, -0.007529501337558031, 0.0014887878205627203, 0.02374759130179882, 0.01728590950369835, -0.011536109261214733, -0.016208963468670845, -0.012895982712507248, -0.02933311276137829, -0.011171041987836361, -0.021666711196303368, 0.050087157636880875, 0.009765535593032837, -0.014365375973284245, -0.011244055815041065, -0.012594802305102348, -0.04786024987697601, -0.020808804780244827, 0.016628790646791458, 0.04143507406115532, 0.01724027656018734, 0.032144125550985336, -0.050744276493787766, -0.050634756684303284, 0.004869077354669571, -0.0018686853582039475, -0.029917219653725624, 0.038587555289268494, 0.00572242122143507, 0.02621179074048996, 0.04044939577579498, -0.027434764429926872, -0.0034088105894625187, -0.009190554730594158, -0.030209273099899292, -0.031322725117206573, 0.01270432211458683, 0.018362857401371002, 0.04800627753138542, -0.016446257010102272, 0.0031121938955038786, -0.018591023981571198, -0.021867496892809868, -0.056731369346380234, 0.01144484244287014, 0.03590431436896324, 0.07885441184043884, 0.018983470275998116, 0.06578502804040909, 0.011673009023070335, 0.003093940671533346, -0.015287169255316257, 0.017815256491303444, -0.024514231830835342, -0.012375762686133385, 0.03139574080705643, -0.012339255772531033, 0.04873640835285187, 0.02893153950572014, 0.02475152537226677, -0.004581587389111519, -0.00992981530725956, 0.00420739408582449, 0.004120690748095512, -0.0008122734725475311, -0.023966630920767784, 0.011216675862669945, 0.03365915268659592, 0.022561123594641685, -0.05727897211909294, -0.04431910067796707, 0.03124971315264702, 0.029552152380347252, -0.047422170639038086, -0.04329691454768181, -0.009546495042741299, 0.02732524462044239, -0.00015101784083526582, 0.06571201235055923, 0.004942090716212988, 0.07900044322013855, 0.027233978733420372, 0.007346968166530132, 0.024130910634994507, -0.005507944151759148, 0.004704797640442848, 0.04209219291806221, 0.03267347440123558, 0.001465971115976572, 0.03887960687279701, 0.012667816132307053, -0.005955151282250881, 0.010157981887459755, -0.04869990423321724, 0.024587243795394897, 0.036214619874954224, -0.014967735856771469, 0.011809908784925938, 0.005147440824657679, -0.017532330006361008, 0.029150579124689102, 0.032545700669288635, -0.00008107048051897436, -0.005266087595373392, 0.00829157792031765, 0.02042548358440399, -0.0252626184374094, 0.04190966114401817, -0.03187032416462898, 0.026029258966445923, 0.026138778775930405, -0.01459354255348444, -0.039792273193597794, 0.04220171645283699, 0.010961128398776054, -0.07272129505872726, 0.037893928587436676, 0.0028863088227808475, -0.0419461689889431, -0.02761729806661606, -0.04464766010642052, 0.013434455730021, 0.04059541970491409, -0.024970564991235733, -0.00995719525963068, -0.01779700256884098, 0.012403142638504505, 0.02873075194656849, 0.01572524942457676, 0.013215416111052036, 0.006425174418836832, 0.025572923943400383, 0.012476155534386635, 0.02394837699830532, -0.022707151249051094, -0.014319743029773235, 0.011828161776065826, 0.021392909809947014, 0.0569504089653492, 0.01976836286485195, 0.02652209810912609, 0.019147749990224838, -0.06863254308700562, 0.013543975539505482, 0.028219658881425858, 0.010194488801062107, 0.023583311587572098, 0.016254596412181854, -0.00686781806871295, 0.06399619579315186, -0.06669769436120987, -0.010988508351147175, 0.00557183101773262, 0.036068592220544815, 0.00352973910048604, -0.043588969856500626, 0.03559400513768196, -0.01940329745411873, 0.0615137442946434, 0.016674423590302467, 0.06585803627967834, 0.08717793971300125, -0.0343710333108902, -0.026029258966445923, 0.042274728417396545, -0.03825899213552475, -0.00021019858832005411, -0.02152068354189396, -0.06863254308700562, 0.04829832911491394, 0.014739569276571274, -0.012877728790044785, -0.0912666842341423, 0.09922514110803604, -0.028110139071941376, -0.0341702476143837, 0.0012184102088212967, 0.013525722548365593, -0.0002372933813603595, -0.014958609826862812, -0.09228887408971786, 0.09564748406410217, -0.002343272091820836, -0.020242949947714806, -0.018837444484233856, -0.05676787719130516, -0.05402987822890282, 0.03714554011821747, 0.021502431482076645, 0.02000565640628338, -0.007305898237973452, 0.022342083975672722, 0.0282744187861681, 0.03166953846812248, 0.012028949335217476 ]
730,285
mmengine.fileio.io
copy_if_symlink_fails
Create a symbolic link pointing to src named dst. If failed to create a symbolic link pointing to src, directory 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. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: bool: Return True if successfully create a symbolic link pointing to src. Otherwise, return False. Examples: >>> src = '/path/of/file' >>> dst = '/path1/of/file1' >>> copy_if_symlink_fails(src, dst) True >>> src = '/path/of/dir' >>> dst = '/path1/of/dir1' >>> copy_if_symlink_fails(src, dst) True
def copy_if_symlink_fails( src: Union[str, Path], dst: Union[str, Path], backend_args: Optional[dict] = None, ) -> bool: """Create a symbolic link pointing to src named dst. If failed to create a symbolic link pointing to src, directory 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. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: bool: Return True if successfully create a symbolic link pointing to src. Otherwise, return False. Examples: >>> src = '/path/of/file' >>> dst = '/path1/of/file1' >>> copy_if_symlink_fails(src, dst) True >>> src = '/path/of/dir' >>> dst = '/path1/of/dir1' >>> copy_if_symlink_fails(src, dst) True """ backend = get_file_backend( src, backend_args=backend_args, enable_singleton=True) return backend.copy_if_symlink_fails(src, dst)
(src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path], backend_args: Optional[dict] = None) -> bool
[ -0.004010976292192936, 0.009139802306890488, 0.0050303274765610695, -0.014632847160100937, -0.0383734256029129, 0.014183874242007732, -0.0027946264017373323, 0.016932686790823936, 0.0742545947432518, -0.03271087259054184, 0.07865269482135773, 0.015182609669864178, 0.05285050719976425, -0.02748812921345234, -0.01969982497394085, 0.00368569977581501, 0.010876135900616646, 0.03419523313641548, 0.0150726567953825, 0.0673275887966156, 0.007224796339869499, 0.04130549356341362, 0.0651651918888092, -0.002684673760086298, -0.011929847300052643, 0.053583525121212006, -0.007902837358415127, 0.01849951036274433, -0.01790393516421318, 0.05948431044816971, -0.00662463903427124, -0.0127728171646595, 0.0695999413728714, 0.033773746341466904, 0.04339459165930748, 0.011645804159343243, -0.050724759697914124, 0.021404089406132698, -0.13824695348739624, -0.07465775310993195, 0.008095254190266132, -0.01310267485678196, 0.004370612557977438, 0.033498864620923996, 0.03500154986977577, -0.04277152940630913, -0.03841007873415947, -0.0197548009455204, -0.061280202120542526, -0.0730084702372551, -0.01638292521238327, 0.03613772615790367, 0.002551814541220665, 0.04808589816093445, 0.0066612898372113705, -0.0034131093416363, 0.0013698250986635685, 0.051970887929201126, -0.06281953305006027, 0.002858765423297882, 0.035862844437360764, -0.01310267485678196, -0.03166632354259491, 0.0066063133999705315, -0.002563267946243286, -0.09851745516061783, -0.03958290442824364, -0.05592918023467064, -0.025857165455818176, 0.004624877590686083, -0.07572063058614731, 0.07308176904916763, -0.021257486194372177, -0.035166479647159576, 0.01979145221412182, 0.034543413668870926, 0.04002271592617035, 0.004824166651815176, 0.028422724455595016, -0.01841704547405243, -0.05416993796825409, -0.04713297635316849, -0.029265694320201874, -0.011957336217164993, -0.005012002307921648, 0.03267422318458557, 0.018517835065722466, -0.013716575689613819, -0.046509914100170135, 0.024720991030335426, -0.02459271252155304, -0.02235701121389866, 0.04672981798648834, -0.05743186175823212, 0.005383091978728771, 0.019479921087622643, 0.004915793426334858, -0.03936300054192543, 0.05028494819998741, 0.026425253599882126, 0.022943424060940742, -0.010463814251124859, -0.013469182886183262, 0.011673292145133018, 0.04211181402206421, 0.002677801763638854, 0.008008208125829697, -0.014623683877289295, -0.04244166985154152, -0.06538509577512741, -0.008516738191246986, -0.01141673605889082, 0.04577689617872238, -0.026241999119520187, -0.01498102955520153, -0.021569017320871353, 0.04782934486865997, -0.07293516397476196, 0.005186093505471945, -0.012763653881847858, 0.003655920969322324, 0.02734152413904667, 0.018600299954414368, -0.03157469630241394, 0.06406566500663757, -0.030841680243611336, 0.04409095644950867, -0.022760169580578804, 0.011810732074081898, 0.02330993302166462, -0.01260788831859827, 0.007650862447917461, -0.020194612443447113, 0.04431086406111717, -0.016731107607483864, -0.00662463903427124, -0.0133134163916111, 0.04108558967709541, -0.0009460497531108558, -0.046363309025764465, 0.010784508660435677, -0.051347825676202774, -0.013047697953879833, 0.0416720025241375, 0.011609152890741825, 0.009382614865899086, -0.027744684368371964, 0.03410360589623451, 0.08664257824420929, 0.029503924772143364, 0.035203129053115845, 0.014880239963531494, -0.035991121083498, 0.08019203692674637, -0.07828619331121445, -0.01172826811671257, -0.06062048673629761, 0.006830799859017134, 0.05992411822080612, 0.0417819544672966, -0.03983946144580841, -0.06582490354776382, -0.014550382271409035, -0.032930776476860046, 0.019534897059202194, -0.00578166963532567, -0.016492877155542374, -0.025105824694037437, 0.01644706353545189, 0.031684648245573044, -0.0013583716936409473, -0.0020272494293749332, 0.07506091892719269, -0.0030901238787919283, -0.026810087263584137, -0.010564603842794895, 0.07931241393089294, 0.0162088330835104, -0.03910644352436066, -0.05160437896847725, 0.03192288056015968, -0.033205658197402954, 0.006803311873227358, -0.001839413889683783, 0.006161922123283148, 0.0359361469745636, -0.07088272273540497, 0.03232603892683983, 0.011270132847130299, -0.006505523808300495, 0.006986565887928009, 0.04705967754125595, 0.018453696742653847, 0.002558686537668109, -0.025362379848957062, -0.04130549356341362, 0.039289698004722595, -0.033498864620923996, -0.013056861236691475, 0.08312410116195679, -0.01689603552222252, -0.009904889389872551, 0.018252117559313774, 0.011334271170198917, 0.011132691986858845, -0.04152539744973183, 0.001979145221412182, 0.05384008213877678, -0.07399804145097733, -0.02112920768558979, -0.032216086983680725, -0.04724292829632759, -0.006642964202910662, 0.052154142409563065, 0.009309313260018826, 0.0308233555406332, 0.04401765763759613, 0.04225841537117958, -0.03315068408846855, 0.014477080665528774, 0.00007802619802532718, -0.005387673154473305, -0.011389248073101044, 0.03602777421474457, 0.026315301656723022, -0.018600299954414368, 0.043797750025987625, 0.02862430363893509, 0.0509813167154789, -0.02008465863764286, -0.012488773092627525, -0.006734591443091631, 0.03179460018873215, -0.041562050580978394, 0.05941100791096687, -0.0077562336809933186, 0.06769409775733948, -0.025344055145978928, -0.024519409984350204, 0.020964279770851135, -0.03331561014056206, 0.013304254040122032, 0.04724292829632759, 0.02516080066561699, 0.04244166985154152, -0.0027236153837293386, -0.012617050670087337, -0.01689603552222252, -0.03228938952088356, -0.050211649388074875, -0.01656617783010006, 0.09705141931772232, -0.054866302758455276, -0.022338686510920525, 0.003124483861029148, -0.04819585010409355, -0.015118470415472984, -0.03732887655496597, 0.02459271252155304, 0.0393996499478817, 0.007481352426111698, 0.024042949080467224, -0.02193552628159523, -0.033114030957221985, -0.041232191026210785, -0.05501290783286095, -0.025344055145978928, 0.03892318904399872, 0.03307738155126572, 0.04826915264129639, 0.0787992998957634, -0.03692571818828583, -0.0024487341288477182, 0.04467737302184105, 0.03029191680252552, -0.0007095373002812266, 0.026718460023403168, 0.025380704551935196, 0.06172000989317894, 0.01196649856865406, 0.010582929477095604, -0.01348750852048397, -0.0226502176374197, -0.061133597046136856, -0.013047697953879833, -0.012791142798960209, 0.013386718928813934, 0.003765873610973358, -0.01889350637793541, -0.00045613112160936, 0.029522249475121498, 0.005712949205189943, -0.0035047363489866257, 0.03434183448553085, 0.00590994767844677, 0.034305185079574585, -0.022100456058979034, -0.0395096018910408, 0.011004414409399033, -0.03775036334991455, -0.018701089546084404, 0.03327896073460579, -0.017299195751547813, 0.05464639887213707, -0.012736165896058083, -0.027927938848733902, -0.001782146980985999, -0.011792407371103764, 0.002666348358616233, -0.0002731632848735899, 0.02059777081012726, -0.04148874804377556, -0.00678956788033247, -0.02539903111755848, 0.017363334074616432, 0.03238101676106453, -0.002544942544773221, -0.022943424060940742, -0.03194120526313782, 0.003779617603868246, -0.044604070484638214, 0.05046820268034935, -0.029833782464265823, 0.013469182886183262, -0.009529218077659607, -0.00854880828410387, 0.029082439839839935, 0.024372806772589684, 0.016557015478610992, 0.005254813935607672, 0.01037218701094389, 0.0070598674938082695, 0.010986088775098324, 0.006010737270116806, -0.05373012647032738, -0.004686725791543722, -0.005511369556188583, -0.05644229054450989, -0.009547543711960316, -0.02464768849313259, 0.053620174527168274, -0.008411367423832417, 0.018133001402020454, -0.052300743758678436, 0.0453004352748394, 0.004851654637604952, -0.05017499625682831, 0.007444701623171568, -0.02629697695374489, 0.06729093939065933, 0.0007822663174010813, 0.0835639089345932, -0.023951321840286255, -0.024666013196110725, -0.0014305280055850744, -0.013808202929794788, -0.016465388238430023, -0.011774081736803055, 0.022192081436514854, -0.064945288002491, 0.041891906410455704, 0.00022420004825107753, -0.026058746501803398, -0.029137415811419487, 0.027653057128190994, 0.0014637428103014827, 0.02175227180123329, 0.013240114785730839, -0.06952664256095886, 0.009139802306890488, 0.011664128862321377, -0.020432842895388603, 0.05501290783286095, -0.04680312052369118, 0.04581354558467865, -0.007902837358415127, 0.051494427025318146, -0.04467737302184105, 0.0136524373665452, -0.0017306067747995257, 0.02796459011733532, -0.06190326437354088, -0.01172826811671257, 0.014174711890518665, 0.03659586235880852, -0.0034108185209333897, 0.006248967722058296, -0.021678971126675606, 0.05684544891119003, -0.012168077751994133, -0.025179125368595123, -0.009483404457569122, 0.07007639855146408, -0.02340156026184559, 0.04321133717894554, -0.03569791465997696, 0.004620296414941549, 0.04420091211795807, -0.04255162179470062, 0.08195127546787262, -0.055672623217105865, 0.038300126791000366, -0.01772984303534031, 0.02715827152132988, -0.0487089641392231, 0.03029191680252552, 0.030365219339728355, 0.011031902395188808, 0.00402242923155427, 0.0722021535038948, 0.009167291224002838, 0.003823140636086464, -0.06296613812446594, -0.02255859039723873, -0.01572320982813835, 0.08781540393829346, -0.02644358016550541, -0.04793929681181908, -0.04936867952346802, -0.03509317710995674, -0.023566488176584244, -0.022247059270739555, 0.029320670291781425, 0.0037200599908828735, 0.023181654512882233, -0.040865685790777206, 0.02497754618525505, 0.02787296287715435, -0.05596582964062691, 0.02175227180123329, 0.023108353838324547, -0.019058436155319214, 0.06791400164365768, 0.02640692889690399, 0.020121309906244278, -0.041378796100616455, 0.02288844808936119, -0.03613772615790367, -0.027286548167467117, -0.014477080665528774, 0.017088452354073524, -0.01856364868581295, -0.005960342474281788, 0.01922336407005787, -0.08151146024465561, -0.04709632694721222, -0.009904889389872551, -0.04815920069813728, 0.011929847300052643, 0.06545839458703995, -0.01811467669904232, 0.03566126525402069, 0.02303505130112171, 0.02572888880968094, -0.012048962526023388, -0.0635892003774643, -0.058091577142477036, -0.04618005454540253, -0.050028394907712936, 0.029045788571238518, 0.025857165455818176, 0.0027029993943870068, 0.05446314439177513, -0.04255162179470062, 0.006239805370569229, 0.031354792416095734, 0.04874561354517937, 0.0010846357326954603, 0.0008343792287632823, 0.028697606176137924, -0.0009426137548871338, 0.007902837358415127, 0.04552033916115761, 0.07238540798425674, 0.02701166830956936, -0.05175098404288292, -0.041232191026210785, -0.027176596224308014, -0.021495716646313667, 0.040755730122327805, 0.01808718778192997, 0.002002052031457424, 0.037860315293073654, 0.02336490899324417, 0.003633014392107725, -0.03965620696544647, 0.02255859039723873, 0.017537426203489304, -0.0006683051469735801, 0.024556061252951622, 0.008773294277489185, -0.04383440315723419, -0.006303944159299135, -0.03447011485695839, -0.03217943385243416, -0.02697501704096794, -0.0283860731869936, 0.057798370718955994, -0.04552033916115761, -0.05142112448811531, 0.01918671280145645, -0.02279682084918022, -0.029980385676026344, -0.010546278208494186, -0.028807558119297028, 0.043467894196510315, -0.00131713948212564, -0.00395370926707983, -0.0012037509586662054, 0.0062718745321035385, -0.01955322176218033, 0.05515950918197632, -0.03219776228070259, 0.052300743758678436, 0.06747419387102127, 0.02620534971356392, 0.002174998167902231, -0.03137311711907387, -0.03602777421474457, -0.006368082948029041, 0.010381349362432957, -0.026663484051823616, 0.03062177449464798, 0.01141673605889082, -0.011526688933372498, 0.019388293847441673, 0.03393867611885071, 0.024757640436291695, 0.04244166985154152, -0.013624949380755424, 0.01909508742392063, -0.002544942544773221, -0.034635040909051895, -0.01301104761660099, 0.004272113088518381, 0.017170917242765427, 0.03142809495329857, 0.011554176919162273, -0.02160566858947277, -0.05083471164107323, -0.011022739112377167, 0.01861862652003765, -0.03566126525402069, -0.035826195031404495, -0.017381660640239716, -0.019681500270962715, -0.035734567791223526, 0.014852751977741718, 0.016914362087845802, -0.06410231441259384, -0.0064047337509691715, 0.0162088330835104, 0.05010169371962547, 0.05834813416004181, -0.0023662697058171034, 0.07308176904916763, 0.03186790272593498, 0.018462859094142914, 0.02345653623342514, 0.02745147794485092, -0.026425253599882126, -0.06703438609838486, 0.04306473582983017, -0.031684648245573044, 0.016676131635904312, -0.047975946217775345, 0.04629000648856163, -0.03936300054192543, 0.028697606176137924, -0.00875954981893301, -0.028990812599658966, -0.02829444594681263, -0.03403030335903168, 0.015228423289954662, -0.005149442702531815, -0.04159869998693466, 0.033920351415872574, -0.03870328515768051, 0.027268223464488983, 0.030401870608329773, -0.047646090388298035, 0.056625545024871826, -0.009437590837478638, 0.05156772956252098, 0.03659586235880852, -0.04258827492594719, -0.030218616127967834, -0.002760266186669469, -0.07784637808799744, -0.08261098712682724, -0.05398668348789215, 0.06413896381855011, 0.007385144010186195, -0.025838840752840042, 0.0057496000081300735, -0.02450108528137207, -0.01763821579515934, -0.06292948871850967, 0.05145777761936188, 0.025417355820536613, -0.03736552968621254, -0.02426285482943058, -0.013029373250901699, -0.03910644352436066, 0.029613876715302467, -0.020432842895388603, -0.005209000315517187, -0.07572063058614731, -0.015484979376196861, -0.027176596224308014, 0.01885685697197914, 0.05171433091163635, 0.005158605519682169, -0.020121309906244278, 0.01868276484310627, -0.04126884415745735, -0.0014625975163653493, -0.024006299674510956, 0.014174711890518665, 0.038813237100839615, 0.023987973108887672, 0.014018945395946503, 0.028037890791893005, 0.0451904833316803, -0.012818630784749985, -0.004077405668795109, 0.00793948769569397, 0.034543413668870926, -0.06303944438695908, 0.006468873005360365, -0.015191772021353245, -0.01960819773375988, 0.04596015065908432, -0.00031697246595285833, -0.04049917683005333, -0.09404604882001877, 0.0006310816388577223, -0.011205993592739105, 0.08942804485559464, 0.0016286716563627124, -0.06600815802812576, -0.004077405668795109, 0.002595337340608239, 0.03903314098715782, -0.029320670291781425, -0.021055907011032104, 0.024812616407871246, -0.06644796580076218, -0.0002174711844418198, 0.023053377866744995, 0.02692004106938839, 0.014651172794401646, 0.01689603552222252, -0.017647378146648407, 0.1011563092470169, 0.044274210929870605, 0.021862225607037544, -0.048452407121658325, -0.016309622675180435, 0.02483094297349453, 0.04438416287302971, -0.029375646263360977, -0.022137105464935303, 0.022247059270739555, -0.008599203079938889, 0.013478345237672329, 0.04552033916115761, -0.05508621037006378, -0.04808589816093445, -0.01253458671271801, -0.05032160133123398, 0.002123457845300436, -0.06025397777557373, 0.020359540358185768, 0.024372806772589684, 0.00317487888969481, 0.0028564746025949717, -0.007124006748199463, -0.007339330390095711, -0.05798162519931793, -0.020432842895388603, -0.01308434922248125, -0.010482139885425568, 0.019388293847441673, -0.01885685697197914, 0.011306783184409142, 0.07660025358200073, -0.000011569710295589175, 0.015292562544345856, -0.03646758198738098, 0.025105824694037437, 0.05974086746573448, 0.07894590497016907, 0.02103758044540882, -0.07689345628023148, -0.026791762560606003, -0.027744684368371964, 0.07418129593133926, -0.009359708055853844, -0.01763821579515934, 0.03346221521496773, 0.06875697523355484, 0.025344055145978928, -0.06457877904176712, 0.027524778619408607, -0.031831253319978714, -0.07506091892719269, -0.04467737302184105, 0.05435319244861603, -0.023731417953968048, -0.011187667958438396, -0.023419884964823723, 0.032216086983680725, 0.0019310410134494305, -0.06263627856969833, -0.10511460155248642, 0.010069817304611206, -0.008081509731709957, -0.018334582448005676, -0.0290641151368618, 0.019773127511143684, -0.02250361442565918, -0.017115941271185875, 0.0027304873801767826, -0.044274210929870605, -0.06468872725963593, -0.04563029482960701, -0.02919239178299904, 0.04354119673371315, -0.032637570053339005, -0.0016802118625491858, 0.059704214334487915, 0.003761292202398181, 0.030218616127967834, -0.00015433438238687813, -0.005928272847086191, 0.03470834344625473, 0.05977751687169075, 0.034543413668870926, 0.023493187502026558, 0.06652127206325531, -0.02384136989712715, 0.04552033916115761, -0.05867798998951912, 0.042991433292627335, 0.007875348441302776, -0.032637570053339005, 0.05497625842690468, 0.03228938952088356, 0.010326373390853405, 0.03655920922756195, -0.03340723738074303, -0.02312667854130268, 0.03434183448553085, 0.05083471164107323, -0.030035361647605896, -0.015210097655653954, -0.0078341169282794, -0.006152759306132793, -0.02160566858947277, -0.038153521716594696, 0.04383440315723419, -0.0007284354069270194, -0.008557970635592937, -0.005712949205189943, 0.002803788986057043, -0.08510324358940125, -0.003804815001785755 ]
730,286
mmengine.fileio.io
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. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: str: The destination file. Raises: SameFileError: If src and dst are the same file, a SameFileError will be raised. Examples: >>> # dst is a file >>> src = '/path/of/file' >>> dst = '/path1/of/file1' >>> # src will be copied to '/path1/of/file1' >>> copyfile(src, dst) '/path1/of/file1' >>> # dst is a directory >>> dst = '/path1/of/dir' >>> # src will be copied to '/path1/of/dir/file' >>> copyfile(src, dst) '/path1/of/dir/file'
def copyfile( src: Union[str, Path], dst: Union[str, Path], backend_args: Optional[dict] = None, ) -> Union[str, Path]: """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. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: str: The destination file. Raises: SameFileError: If src and dst are the same file, a SameFileError will be raised. Examples: >>> # dst is a file >>> src = '/path/of/file' >>> dst = '/path1/of/file1' >>> # src will be copied to '/path1/of/file1' >>> copyfile(src, dst) '/path1/of/file1' >>> # dst is a directory >>> dst = '/path1/of/dir' >>> # src will be copied to '/path1/of/dir/file' >>> copyfile(src, dst) '/path1/of/dir/file' """ backend = get_file_backend( src, backend_args=backend_args, enable_singleton=True) return backend.copyfile(src, dst)
(src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path], backend_args: Optional[dict] = None) -> Union[str, pathlib.Path]
[ -0.050302255898714066, -0.03413235396146774, 0.004650001879781485, -0.01323159970343113, -0.06161194667220116, -0.027664391323924065, 0.025409845635294914, 0.05795292928814888, 0.06419912725687027, -0.09727812558412552, 0.01448823232203722, -0.0033771994058042765, -0.01811029016971588, 0.03522266447544098, -0.019237563014030457, 0.01432191301137209, 0.028514467179775238, -0.011984207667410374, -0.002515574684366584, 0.04871298372745514, 0.023210739716887474, -0.01009925827383995, 0.0762849748134613, 0.01971803978085518, 0.0007039682241156697, -0.000729378079995513, -0.014395833015441895, -0.03300508111715317, -0.010616695508360863, 0.00985901989042759, 0.056548457592725754, -0.036590177565813065, 0.034464988857507706, -0.003917736001312733, -0.026038162410259247, 0.0009777015075087547, -0.03274635970592499, 0.0011896428186446428, -0.13712076842784882, -0.09469094127416611, 0.013924594968557358, -0.08922089636325836, 0.09624325484037399, 0.027553511783480644, 0.05566142126917839, 0.0011272731935605407, -0.03725545480847359, -0.03503786772489548, -0.017260214313864708, -0.007692253217101097, 0.020586594939231873, 0.06249897927045822, -0.023395538330078125, 0.012917441315948963, 0.006001343484967947, 0.045682281255722046, -0.027073035016655922, 0.01960716024041176, -0.07037141174077988, 0.06941045820713043, 0.045201804488897324, -0.04642147943377495, 0.012113566510379314, -0.019440842792391777, -0.014589871279895306, -0.04708675295114517, -0.03097229264676571, -0.047530271112918854, 0.021270351484417915, -0.01580030471086502, -0.027775270864367485, 0.06900390237569809, 0.0026680338196456432, 0.0012554774293676019, 0.015772584825754166, 0.06601016223430634, 0.006837558466941118, 0.01238152477890253, 0.03337467834353447, -0.012704922817647457, -0.02431953139603138, -0.04963697865605354, -0.02407929301261902, -0.048195548355579376, -0.0019380782032385468, -0.043538615107536316, -0.027405673637986183, -0.05773117020726204, -0.04220806434750557, 0.029493900015950203, -0.004795530810952187, -0.018285848200321198, 0.010043819434940815, -0.022785700857639313, 0.0376804918050766, -0.05976395681500435, -0.015615505166351795, 0.0307320524007082, 0.0012335325591266155, 0.03531506657600403, -0.032099563628435135, -0.0006069488008506596, -0.004190314561128616, 0.0014691511169075966, 0.04287333786487579, -0.019329963251948357, 0.03182236850261688, 0.02193562686443329, -0.011263491585850716, -0.038844723254442215, 0.006283161696046591, -0.020826833322644234, 0.010819974355399609, -0.015125787816941738, 0.02657407894730568, -0.032007165253162384, -0.007974071428179741, -0.0307320524007082, 0.005100449081510305, 0.007904771715402603, -0.014100153930485249, 0.0307320524007082, -0.010062298737466335, -0.007327275350689888, 0.05994875729084015, -0.05592013895511627, 0.024060813710093498, -0.02679583802819252, -0.04187542572617531, 0.017990170046687126, -0.025298966094851494, -0.01682593859732151, 0.02644472010433674, 0.04934129863977432, 0.01860000751912594, 0.0011007082648575306, 0.03313443809747696, 0.05163280665874481, 0.006925337947905064, 0.03609121963381767, 0.06516008079051971, -0.05592013895511627, 0.00930000375956297, 0.02215738594532013, 0.03258004039525986, -0.05507006496191025, -0.013213119469583035, -0.022822661325335503, 0.026056641712784767, 0.06076187267899513, -0.030343975871801376, 0.045941002666950226, -0.024097774177789688, 0.02882862463593483, -0.010478096082806587, -0.05111537128686905, -0.013822956010699272, -0.01436811313033104, -0.0022441514302045107, 0.0008679772145114839, -0.04498004540801048, -0.03744025155901909, 0.04982177913188934, -0.07092580944299698, 0.027830710634589195, 0.03585098311305046, -0.0033032798673957586, 0.03110165148973465, 0.023765135556459427, -0.043316856026649475, -0.04697587341070175, -0.03634994104504585, -0.021399710327386856, -0.019348442554473877, 0.01312995981425047, -0.04438868910074234, 0.0670819953083992, 0.016373179852962494, -0.0037444871850311756, -0.04627363756299019, 0.09180808067321777, -0.041321028023958206, -0.010394936427474022, 0.011448290199041367, 0.036590177565813065, 0.018498368561267853, -0.004266544245183468, 0.06401433050632477, 0.04054487496614456, 0.004786290694028139, 0.03172996640205383, -0.0029244422912597656, -0.008020271547138691, -0.01583726331591606, -0.006236962042748928, -0.09372998774051666, 0.023081379011273384, -0.059098679572343826, 0.005682565271854401, 0.048195548355579376, 0.0028643826954066753, -0.045386604964733124, 0.06357081234455109, 0.04054487496614456, 0.018442928791046143, -0.014867070131003857, 0.02230522409081459, 0.06686023622751236, -0.06922566145658493, -0.01629002019762993, -0.007502834312617779, -0.03361491486430168, 0.02018003724515438, -0.02849598601460457, 0.021270351484417915, 0.0008922320557758212, 0.006929957773536444, 0.01688137836754322, -0.04838034510612488, 0.050006575882434845, 0.013915355317294598, 0.01689985767006874, -0.03601730242371559, 0.008145010098814964, 0.03115709125995636, -0.06892997771501541, 0.01653026044368744, 0.05518094450235367, 0.023155299946665764, -0.04631059989333153, -0.003804546780884266, -0.019570201635360718, 0.06054011359810829, -0.05089361220598221, 0.03171148896217346, 0.0011238082079216838, 0.03402147442102432, -0.02444889210164547, -0.032025646418333054, -0.00561326602473855, 0.003391059348359704, 0.0006144562503322959, 0.05048705264925957, 0.07436306774616241, 0.0011700078612193465, -0.06231418251991272, -0.001426416332833469, -0.03633145987987518, 0.01977347955107689, -0.0016504849772900343, 0.05920955911278725, 0.05983787775039673, -0.07731985300779343, 0.014913269318640232, 0.007539794314652681, 0.05547662451863289, -0.008911926299333572, -0.020937712863087654, 0.010228618048131466, 0.05484830588102341, -0.017380334436893463, -0.013822956010699272, -0.00027474394300952554, -0.06512312591075897, -0.02230522409081459, -0.02252698317170143, -0.08138542622327805, 0.006477200426161289, 0.015643224120140076, 0.0007923251832835376, 0.06612104177474976, -0.0053406874649226665, 0.003190090646967292, 0.02480001002550125, 0.02478152886033058, -0.05965307727456093, -0.03954695910215378, 0.06874518096446991, 0.09032969176769257, -0.0005295642768032849, 0.045312684029340744, -0.01984739862382412, -0.03814248740673065, -0.09232551604509354, -0.0008050301112234592, 0.02485544979572296, 0.009932939894497395, -0.07558274269104004, -0.015439946204423904, -0.005871984176337719, 0.014950228855013847, -0.012363044545054436, -0.06020747497677803, -0.0012704923283308744, -0.03398451209068298, -0.02906886301934719, -0.017260214313864708, -0.071775883436203, 0.016354700550436974, -0.02023547701537609, -0.006500300485640764, 0.038844723254442215, -0.0031762307044118643, 0.04224502295255661, -0.008639347739517689, -0.019514761865139008, 0.018535327166318893, -0.016216101124882698, -0.06172282621264458, 0.01770373247563839, 0.004716991446912289, -0.11132284253835678, -0.00016689648327883333, -0.021307310089468956, -0.017047695815563202, 0.041025351732969284, -0.03139732778072357, -0.0021101722959429026, -0.009498662315309048, -0.05592013895511627, -0.05858124420046806, 0.030436374247074127, -0.03973175957798958, 0.07458482682704926, 0.05957915633916855, 0.003090761136263609, 0.021639948710799217, 0.02640775963664055, 0.0335409976541996, 0.005576306022703648, 0.0009592216811142862, 0.06353385746479034, -0.015245907008647919, 0.016983017325401306, -0.018720125779509544, -0.027128474786877632, 0.005294487811625004, -0.013647397048771381, 0.0075952340848743916, 0.010422656312584877, 0.07318035513162613, -0.010958573780953884, 0.025705523788928986, -0.05059793218970299, 0.01656721904873848, 0.001488785957917571, -0.04431477189064026, -0.017250975593924522, 0.011623849160969257, -0.006569600198417902, -0.012455444782972336, 0.0402122363448143, 0.002172541804611683, -0.030343975871801376, 0.004425933118909597, 0.02881014533340931, 0.01688137836754322, -0.004564532078802586, 0.017112376168370247, -0.04265158250927925, 0.07543490082025528, -0.020605074241757393, 0.0031785406172275543, -0.040840551257133484, -0.02860686555504799, 0.027128474786877632, 0.011263491585850716, 0.015864983201026917, -0.08471180498600006, 0.023377057164907455, -0.003899256233125925, 0.006532640196382999, 0.050154414027929306, -0.04505396634340286, -0.02027243748307228, 0.003296349896118045, 0.035703144967556, -0.01649329997599125, 0.003118481021374464, -0.010413416661322117, 0.08973833173513412, -0.047715071588754654, -0.036460816860198975, 0.04261462017893791, -0.0044143833220005035, 0.012279885821044445, -0.0018110290402546525, -0.0109955333173275, 0.0001869644911494106, -0.053924310952425, 0.001455291174352169, 0.012834281660616398, 0.0202909167855978, -0.006795978639274836, -0.006634279619902372, -0.05484830588102341, 0.027405673637986183, 0.016798218712210655, -0.04889778420329094, 0.03832728788256645, -0.021824747323989868, 0.01960716024041176, 0.017408054322004318, 0.00359433819539845, -0.09890435636043549, 0.005151268560439348, 0.09084712713956833, 0.011411330662667751, 0.0683755874633789, 0.03821640834212303, -0.009766620583832264, -0.0181287694722414, -0.058507323265075684, -0.009221464395523071, -0.012806561775505543, 0.03817944973707199, -0.04590404033660889, -0.0650492012500763, 0.02195410616695881, -0.048121627420186996, -0.05518094450235367, 0.009498662315309048, -0.0009719266090542078, -0.03572162240743637, 0.04952609911561012, -0.04693891480565071, 0.002947542117908597, 0.001530365669168532, -0.017583612352609634, -0.0012762672267854214, 0.016280781477689743, -0.01971803978085518, 0.034150831401348114, 0.03076901286840439, 0.04368645325303078, -0.014460512436926365, 0.02685127779841423, -0.01664113812148571, 0.06589928269386292, 0.00826513022184372, -0.05196544528007507, -0.0287547055631876, 0.03318987786769867, -0.016336221247911453, -0.11620153486728668, -0.03300508111715317, -0.03341163694858551, -0.06523400545120239, 0.03612818196415901, 0.01242772489786148, -0.04069271311163902, 0.0004432285495568067, 0.03252460062503815, 0.0090643847361207, 0.0031231010798364878, -0.0533699169754982, -0.036405377089977264, -0.05070881173014641, -0.012806561775505543, 0.003943146206438541, 0.014395833015441895, 0.02424561232328415, 0.1263285130262375, -0.04291030019521713, 0.01699225604534149, 0.06456872820854187, 0.052002403885126114, 0.024892408400774002, -0.02666647732257843, 0.023561857640743256, 0.012880481779575348, 0.004855590406805277, -0.043095096945762634, 0.02648167870938778, 0.07225636392831802, -0.006578839849680662, -0.03806857019662857, 0.013083760626614094, -0.029974378645420074, 0.058803003281354904, 0.040729671716690063, 0.019089724868535995, -0.023487936705350876, 0.013647397048771381, 0.03158212825655937, -0.0014114014338701963, 0.0537395142018795, 0.007151716388761997, 0.016225341707468033, 0.015051868744194508, -0.004282713867723942, 0.015375266782939434, -0.02461520954966545, -0.05133712664246559, -0.04431477189064026, 0.027830710634589195, -0.03136036917567253, -0.01427571289241314, -0.02005067840218544, 0.027978550642728806, -0.00544694671407342, -0.03136036917567253, -0.02470760978758335, 0.005645605735480785, -0.032155003398656845, 0.008884206414222717, -0.04272549971938133, -0.010533535853028297, -0.012815802358090878, 0.02424561232328415, -0.01567094400525093, 0.04165366664528847, -0.03328227624297142, 0.013943075202405453, 0.05588318035006523, 0.02014307677745819, -0.025095688179135323, -0.001695529674179852, -0.025520725175738335, -0.016521019861102104, 0.007040837313979864, -0.00984978023916483, 0.04660627618432045, -0.001762519241310656, -0.018535327166318893, 0.0402122363448143, 0.02892102487385273, -0.0008945420850068331, -0.004176454618573189, 0.009692701511085033, 0.002577944425866008, -0.0008206224883906543, -0.0013467217795550823, -0.0015869603957980871, -0.010413416661322117, 0.016068262979388237, -0.017380334436893463, -0.0027280934154987335, 0.0146083515137434, 0.010838454589247704, -0.01094933319836855, 0.034446511417627335, -0.01124501135200262, -0.02247154340147972, -0.01807332970201969, -0.05532878264784813, -0.04623667895793915, 0.029456941410899162, 0.0371260941028595, -0.030916852876544, -0.015624744817614555, -0.03549986332654953, 0.00008669665839988738, 0.03139732778072357, -0.01988435909152031, 0.08249422162771225, -0.002681893762201071, 0.013093000277876854, -0.003495008684694767, 0.02657407894730568, 0.01865544728934765, -0.056918054819107056, 0.018997324630618095, 0.017223255708813667, -0.004663861822336912, 0.018221169710159302, 0.038696885108947754, 0.0020581975113600492, 0.0008379474165849388, -0.04368645325303078, 0.008570048026740551, 0.015957383438944817, -0.04228198155760765, 0.009470942430198193, 0.021658428013324738, -0.007766172755509615, 0.03359643742442131, 0.003820716869086027, -0.011365130543708801, 0.02882862463593483, -0.03097229264676571, 0.045201804488897324, 0.047936830669641495, 0.03766201063990593, 0.00713785644620657, 0.03742177411913872, -0.051817603409290314, -0.030140696093440056, -0.056548457592725754, -0.039842639118433, 0.0012935921549797058, 0.04194934666156769, 0.05059793218970299, 0.0010747209889814258, -0.0023839054629206657, -0.04279942065477371, -0.10400480777025223, -0.05954219773411751, 0.07373475283384323, -0.013758276589214802, -0.02228674478828907, -0.020475715398788452, 0.011531449854373932, -0.02027243748307228, 0.045867081731557846, 0.027073035016655922, -0.0022580113727599382, -0.08574667572975159, 0.02267482317984104, -0.023247698321938515, 0.007840092293918133, 0.034890029579401016, -0.013444118201732635, -0.03394755348563194, 0.04213414341211319, 0.007932491600513458, 0.018997324630618095, -0.013943075202405453, -0.03973175957798958, 0.05178064480423927, 0.011208051815629005, 0.07447394728660583, 0.005982863716781139, 0.03788376972079277, 0.02195410616695881, -0.016613418236374855, -0.04948914051055908, 0.009517142549157143, -0.06382953375577927, -0.011808648705482483, -0.02646319940686226, -0.07111060619354248, 0.03158212825655937, 0.02223130501806736, -0.008676307275891304, -0.07037141174077988, -0.010635175742208958, -0.0075675141997635365, 0.003957006148993969, 0.019366921856999397, 0.012067366391420364, 0.005280627869069576, 0.008108050562441349, 0.029253661632537842, -0.0751761868596077, -0.011411330662667751, -0.0028597626369446516, -0.05507006496191025, -0.0044628931209445, -0.020586594939231873, 0.03954695910215378, 0.01792549155652523, -0.04874994233250618, -0.0029244422912597656, 0.08434220403432846, -0.009831300005316734, 0.08582060039043427, -0.011429810896515846, 0.023395538330078125, 0.0492304190993309, 0.061279308050870895, 0.02417169325053692, 0.02197258733212948, 0.002413935260847211, -0.0018456787802278996, -0.01110641285777092, 0.0019080484053120017, -0.043095096945762634, -0.011503729969263077, -0.021455150097608566, -0.052002403885126114, 0.016668858006596565, -0.07680241018533707, -0.021492108702659607, 0.0622033029794693, -0.0022106566466391087, 0.03352251648902893, -0.005405367352068424, -0.0032386002130806446, -0.03161908686161041, 0.09897828102111816, -0.02648167870938778, 0.004100224934518337, -0.04690195620059967, -0.023321619257330894, 0.040840551257133484, 0.00440745335072279, -0.005460806656628847, -0.017343373969197273, -0.03999047726392746, 0.036941297352313995, 0.0452757254242897, 0.010006858967244625, -0.04431477189064026, 0.013203879818320274, 0.03080597333610058, 0.03346707671880722, 0.021824747323989868, -0.009720421396195889, 0.027886150404810905, -0.004786290694028139, -0.0004692159127444029, 0.0449061281979084, -0.02642623893916607, 0.041505828499794006, -0.00507734902203083, 0.007479734718799591, -0.020789872854948044, 0.08789034932851791, -0.05699197202920914, 0.009868260473012924, -0.003633607877418399, 0.03076901286840439, 0.052224162966012955, -0.018008651211857796, -0.017445014789700508, -0.04054487496614456, 0.003966245800256729, -0.04412997141480446, 0.012021167203783989, -0.021695388481020927, -0.05625277757644653, 0.03300508111715317, -0.04376037418842316, -0.017565133050084114, -0.01753741316497326, -0.03535202518105507, -0.0450909249484539, 0.010043819434940815, 0.03836424648761749, -0.0020270126406103373, 0.03548138588666916, 0.036516256630420685, 0.01232608500868082, -0.025964241474866867, -0.021418189629912376, 0.03500090911984444, 0.0013166919816285372, 0.02422713302075863, 0.030029818415641785, 0.04157974570989609, 0.01322236005216837, 0.04852818697690964, -0.011309691704809666, 0.0443517304956913, 0.0019750380888581276, -0.002938302233815193, -0.0012635623570531607, 0.02653711847960949, 0.05521790310740471, 0.005345307756215334, 0.0004934707540087402, 0.01129121147096157, 0.04272549971938133, -0.010274817235767841, -0.045793160796165466, -0.0066666193306446075, -0.003351789666339755, -0.0063524614088237286, 0.004474442917853594, -0.05107840895652771, 0.05495918542146683, 0.026130560785531998, 0.011633089743554592, 0.005590165965259075, 0.038512084633111954, -0.027978550642728806, 0.02467064931988716 ]
730,287
mmengine.fileio.io
copyfile_from_local
Copy a local file src to dst and return the destination file. Note: If the backend is the instance of LocalBackend, it does the same thing with :func:`copyfile`. 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 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: >>> # dst is a file >>> src = '/path/of/file' >>> dst = 's3://openmmlab/mmengine/file1' >>> # src will be copied to 's3://openmmlab/mmengine/file1' >>> copyfile_from_local(src, dst) s3://openmmlab/mmengine/file1 >>> # dst is a directory >>> dst = 's3://openmmlab/mmengine' >>> # src will be copied to 's3://openmmlab/mmengine/file'' >>> copyfile_from_local(src, dst) 's3://openmmlab/mmengine/file'
def copyfile_from_local( src: Union[str, Path], dst: Union[str, Path], backend_args: Optional[dict] = None, ) -> Union[str, Path]: """Copy a local file src to dst and return the destination file. Note: If the backend is the instance of LocalBackend, it does the same thing with :func:`copyfile`. 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 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: >>> # dst is a file >>> src = '/path/of/file' >>> dst = 's3://openmmlab/mmengine/file1' >>> # src will be copied to 's3://openmmlab/mmengine/file1' >>> copyfile_from_local(src, dst) s3://openmmlab/mmengine/file1 >>> # dst is a directory >>> dst = 's3://openmmlab/mmengine' >>> # src will be copied to 's3://openmmlab/mmengine/file'' >>> copyfile_from_local(src, dst) 's3://openmmlab/mmengine/file' """ backend = get_file_backend( dst, backend_args=backend_args, enable_singleton=True) return backend.copyfile_from_local(src, dst)
(src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path], backend_args: Optional[dict] = None) -> Union[str, pathlib.Path]
[ -0.03825429454445839, -0.0011165192117914557, -0.03821543604135513, -0.0020581840071827173, -0.007237036246806383, -0.05129067227244377, 0.01748545654118061, 0.04752158373594284, 0.07351662963628769, -0.054127201437950134, -0.022556237876415253, -0.03825429454445839, -0.03481548652052879, 0.004487933591008186, -0.031007543206214905, 0.05113524571061134, -0.014153505675494671, -0.007654744200408459, 0.008674729615449905, 0.023683078587055206, 0.022109387442469597, -0.0412268191576004, 0.10413560271263123, 0.05082439258694649, 0.006882470101118088, -0.030191553756594658, -0.020535696297883987, -0.04934784397482872, -0.016348902136087418, -0.012890666723251343, 0.08144336938858032, 0.027860160917043686, 0.025936760008335114, 0.016912322491407394, -0.005279636476188898, -0.01632947288453579, 0.015124919824302197, -0.009738427586853504, -0.09341119229793549, -0.11245091259479523, -0.011647257022559643, -0.04064397141337395, 0.08703871816396713, 0.042509086430072784, 0.08727185428142548, 0.011132407002151012, 0.022769950330257416, -0.08035538345575333, 0.026305897161364555, -0.024382498115301132, 0.018515154719352722, 0.10024994611740112, -0.016679182648658752, 0.007305034901946783, -0.02832643873989582, 0.03129896521568298, 0.005537061020731926, -0.015999192371964455, -0.10087165236473083, 0.028792718425393105, 0.0006550974794663489, -0.027860160917043686, 0.020457983016967773, 0.009709285572171211, -0.03881771117448807, -0.06660015881061554, -0.03265894576907158, -0.017514599487185478, 0.00616848049685359, 0.0025183914694935083, -0.05498204752802849, 0.046938735991716385, -0.004575361032038927, 0.0010916267056018114, 0.0102387061342597, 0.06547331809997559, 0.044995907694101334, -0.0035942327231168747, 0.009607287123799324, 0.03040526621043682, -0.01959342509508133, -0.05350549519062042, -0.024654492735862732, -0.03432977944612503, -0.05028039962053299, -0.04946441203355789, -0.05094096437096596, -0.04480162635445595, -0.008927296847105026, 0.015066634863615036, 0.012298104353249073, 0.041071392595767975, -0.012754669412970543, -0.014425501227378845, 0.021332256495952606, -0.0724286437034607, -0.017262030392885208, 0.0007492032600566745, -0.02480991929769516, 0.03273665904998779, -0.03631146252155304, 0.0036670886911451817, -0.029589278623461723, -0.015027778223156929, 0.042509086430072784, -0.015503771603107452, 0.02613104321062565, -0.010724413208663464, 0.0183985847979784, -0.01566891185939312, 0.02286709100008011, -0.020729979500174522, -0.01657232642173767, 0.006241336464881897, 0.02859843522310257, -0.0157757680863142, 0.013356945477426052, -0.03798229619860649, -0.03213438391685486, -0.013201519846916199, -0.021565396338701248, 0.036622315645217896, -0.025820190086960793, -0.051640380173921585, 0.05342778190970421, -0.03903142362833023, 0.08152108639478683, -0.06671673059463501, -0.05564260855317116, -0.005391349084675312, -0.00041558314114809036, 0.01246324460953474, -0.028307011350989342, 0.06283107399940491, 0.017514599487185478, -0.006047053728252649, 0.01828201673924923, 0.044995907694101334, 0.0014146219473332167, 0.0470164492726326, 0.07487660646438599, -0.049153558909893036, 0.004274222534149885, 0.01840830035507679, 0.019894564524292946, -0.015047206543385983, -0.017058033496141434, -0.06640587747097015, 0.0033125225454568863, 0.04791015014052391, 0.0017327601090073586, -0.006901897955685854, -0.030094413086771965, 0.06516246497631073, -0.022905947640538216, -0.03763258829712868, -0.02597561664879322, -0.010277562774717808, 0.034271493554115295, 0.008966153487563133, -0.06784357130527496, -0.01397865079343319, 0.07981139421463013, -0.022614523768424988, 0.02140996977686882, 0.024052215740084648, 0.01474606804549694, 0.010471845045685768, -0.04266451299190521, -0.02286709100008011, 0.0006314192432910204, 0.011093550361692905, 0.0027782446704804897, -0.02076883614063263, 0.013269518502056599, -0.03716630861163139, 0.03384407237172127, -0.0056002032943069935, 0.003322236705571413, -0.044995907694101334, 0.06259793043136597, -0.01175411231815815, 0.01579519547522068, 0.016892893239855766, 0.032037243247032166, 0.014328359626233578, -0.032833799719810486, 0.04503476247191429, 0.015639768913388252, 0.008077309466898441, 0.044451914727687836, 0.0008190236403606832, -0.028229298070073128, -0.02310023084282875, -0.012443816289305687, -0.05828485265374184, 0.05653630942106247, -0.06908698379993439, -0.003875942900776863, 0.041459959000349045, 0.013376373797655106, -0.022361956536769867, 0.03341665118932724, 0.020457983016967773, 0.0026446753181517124, 0.011530687101185322, -0.005167923867702484, 0.06255907565355301, -0.06069396063685417, 0.05004725977778435, -0.021487683057785034, -0.0002832279715221375, 0.0029385280795395374, -0.007183608133345842, 0.013735797256231308, -0.00022721986169926822, -0.04833757132291794, 0.08804898709058762, 0.0010746270418167114, 0.04441305994987488, -0.02848186530172825, -0.01893286406993866, -0.01696089282631874, 0.010840983130037785, 0.02556762285530567, -0.06838756054639816, 0.016135189682245255, 0.04336393252015114, 0.007620744872838259, -0.00394879886880517, 0.0067707570269703865, -0.039633702486753464, 0.03736058995127678, -0.03108525648713112, 0.023819077759981155, 0.007654744200408459, 0.05692487582564354, -0.03448520600795746, -0.017825450748205185, -0.022672807797789574, 0.005211637355387211, -0.013094663619995117, 0.04281993955373764, 0.04553990066051483, -0.010967266745865345, -0.04017769172787666, -0.018758008256554604, -0.030521836131811142, 0.04468505457043648, 0.005473919212818146, 0.0028268154710531235, 0.09636428952217102, -0.084085613489151, 0.043674785643815994, 0.03143496438860893, -0.003727802075445652, 0.0067756143398582935, -0.024615636095404625, -0.024091072380542755, 0.016271188855171204, -0.0367971695959568, -0.07779084891080856, 0.029705846682190895, -0.032037243247032166, -0.023993931710720062, -0.029433852061629295, -0.056342024356126785, 0.01775745302438736, 0.04134339094161987, 0.005687630269676447, 0.09869568794965744, 0.00225368095561862, 0.012774096801877022, 0.006610474083572626, 0.04491819441318512, -0.05078553780913353, -0.055836889892816544, 0.044607341289520264, 0.06399676948785782, 0.020185988396406174, 0.004638502839952707, -0.020535696297883987, -0.05401063337922096, -0.0857175961136818, -0.003591804066672921, 0.0181265901774168, -0.01292952336370945, -0.10071622580289841, 0.005503061693161726, -0.018991148099303246, 0.018097447231411934, 0.014950064942240715, -0.035301193594932556, -0.0406828299164772, -0.018175160512328148, -0.04297536611557007, -0.01813630387187004, -0.048881564289331436, 0.024984775111079216, 0.017708880826830864, -0.04857071116566658, 0.011452973820269108, -0.0062219081446528435, 0.049658697098493576, 0.009053580462932587, -0.030618976801633835, 0.013522086665034294, -0.04491819441318512, -0.04604503512382507, 0.0003242095117457211, 0.017262030392885208, -0.08058852702379227, -0.0031498107127845287, -0.044723913073539734, 0.0043349359184503555, 0.06302535533905029, -0.02086597867310047, -0.0011784469243139029, 0.014425501227378845, -0.045617613941431046, -0.014289503917098045, 0.043130792677402496, -0.05101867765188217, 0.08641701191663742, 0.01457121316343546, -0.0258590467274189, 0.049930691719055176, 0.02990012988448143, 0.03982798382639885, 0.023993931710720062, -0.012589528225362301, 0.0522620864212513, -0.010316419415175915, 0.001800759113393724, 0.010510701686143875, -0.024343641474843025, -0.02257566712796688, -0.04899813234806061, 0.034543491899967194, -0.026927603408694267, 0.1106635108590126, -0.027044173330068588, 0.027840731665492058, -0.022944804280996323, -0.0008153808303177357, 0.05467119440436363, -0.015707768499851227, -0.0013126234989613295, 0.04025540500879288, 0.013599799014627934, -0.024635065346956253, 0.01710660383105278, -0.0054107774049043655, -0.005833342671394348, -0.014376930892467499, 0.038196008652448654, 0.022614523768424988, -0.012715812772512436, 0.04899813234806061, -0.03668060153722763, 0.049153558909893036, -0.03419378027319908, 0.0024868205655366182, -0.04791015014052391, -0.0009908424690365791, -0.010491273365914822, 0.04487933963537216, -0.017466027289628983, -0.08175422251224518, 0.013619227334856987, 0.0030890973284840584, 0.0078441696241498, 0.07017496228218079, -0.022012246772646904, -0.030327552929520607, -0.014648926444351673, 0.032833799719810486, -0.03868171572685242, -0.011802682653069496, 0.01603804901242256, 0.06162652000784874, -0.029278425499796867, 0.00010101190127898008, 0.0420428067445755, 0.01945742778480053, 0.03386349976062775, 0.043674785643815994, -0.02300308831036091, -0.024440782144665718, -0.03149325028061867, 0.007941311225295067, 0.014425501227378845, 0.09162379056215286, 0.012842096388339996, -0.004050797317177057, -0.04961983859539032, -0.0022585380356758833, -0.005702201742678881, 0.013483230024576187, 0.01813630387187004, -0.00952957384288311, -0.005945055279880762, -0.03368864580988884, -0.009864711202681065, -0.09061352163553238, 0.028520721942186356, 0.05937283858656883, 0.015328916721045971, 0.024887632578611374, 0.05626431107521057, 0.016640326008200645, 0.017067749053239822, -0.05129067227244377, -0.007858741097152233, -0.02168196626007557, 0.028676148504018784, -0.02702474407851696, -0.08501817286014557, 0.019214574247598648, -0.014260360971093178, -0.034796059131622314, -0.02311965823173523, 0.02065226621925831, -0.07934511452913284, 0.03421320766210556, -0.05350549519062042, -0.01736888661980629, -0.000013328486602404155, -0.0341743528842926, 0.0036282322835177183, 0.006280193105340004, -0.023857934400439262, 0.05758543685078621, 0.0014559071278199553, 0.02286709100008011, 0.037671443074941635, 0.06714415550231934, 0.003249380737543106, 0.035437192767858505, 0.012618671171367168, -0.03246466442942619, -0.0423148050904274, 0.009791855700314045, -0.020049989223480225, -0.11602571606636047, -0.019816851243376732, -0.08532902598381042, -0.048104431480169296, 0.010277562774717808, 0.06605616956949234, -0.06372477114200592, 0.011025551706552505, -0.009141008369624615, 0.0007322034798562527, -0.005464205052703619, -0.031648676842451096, -0.018709437921643257, -0.03660288825631142, -0.007766456808894873, 0.03030812367796898, 0.013220948167145252, 0.03489319980144501, 0.133278027176857, -0.022089960053563118, 0.036389175802469254, 0.028171012178063393, 0.06434647738933563, 0.007722743321210146, -0.034388065338134766, -0.0017776880413293839, 0.010928410105407238, -0.00453893281519413, -0.021604252979159355, 0.05564260855317116, 0.07110752165317535, -0.029977843165397644, -0.03500976786017418, 0.0027296741027384996, -0.031648676842451096, 0.030385836958885193, 0.03240637853741646, -0.008082166314125061, 0.02729674056172371, 0.018962005153298378, 0.0030089556239545345, -0.022769950330257416, 0.036117181181907654, 0.06185965985059738, 0.049308985471725464, 0.03794344142079353, -0.03730230778455734, 0.043402787297964096, -0.013959222473204136, -0.05847913771867752, -0.061315666884183884, 0.035845186561346054, -0.030754974111914635, 0.01877743750810623, -0.021623680368065834, 0.007426461670547724, 0.02910356968641281, -0.013143234886229038, -0.02519848570227623, 0.00450493348762393, -0.03895371034741402, 0.00007460157939931378, -0.00398279819637537, -0.03957541659474373, -0.009621857665479183, 0.04017769172787666, -0.035709187388420105, 0.023061374202370644, -0.01273524109274149, -0.008655301295220852, 0.023275084793567657, 0.05381634831428528, -0.03813772276043892, 0.015979764983057976, -0.020049989223480225, -0.026286469772458076, -0.02506248652935028, -0.033086370676755905, 0.053583208471536636, -0.03279494494199753, -0.061160240322351456, 0.03281437233090401, 0.009082723408937454, 0.034524060785770416, -0.03186238557100296, 0.022400813177227974, 0.001848115585744381, 0.014930636622011662, 0.0069261835888028145, -0.0015676197363063693, 0.03660288825631142, 0.048376429826021194, -0.01865115389227867, -0.05012497305870056, -0.013862080872058868, -0.017194032669067383, -0.014338074252009392, -0.0061879088170826435, 0.01135583221912384, -0.017067749053239822, 0.00398279819637537, -0.057779718190431595, -0.031026970595121384, 0.039245136082172394, 0.006557045970112085, -0.03905085101723671, -0.007271035574376583, -0.0470164492726326, -0.014920922927558422, 0.020924262702465057, 0.004631217569112778, 0.044995907694101334, 0.007431318983435631, 0.02022484503686428, -0.01581462472677231, 0.018204303458333015, 0.007543031591922045, -0.00946643203496933, 0.00169754633679986, 0.07184579968452454, -0.020982546731829643, -0.01501806452870369, 0.026539037004113197, -0.017932306975126266, -0.009704427793622017, -0.0358063280582428, 0.017300887033343315, 0.0015372630441561341, -0.026033900678157806, 0.006833899300545454, 0.014483786188066006, 0.009029295295476913, 0.019408855587244034, -0.02374136447906494, 0.015853479504585266, 0.052417512983083725, -0.03092982992529869, 0.029861273244023323, 0.04305307939648628, 0.0475604422390461, -0.0183985847979784, 0.008339591324329376, -0.01971970871090889, -0.03928399085998535, -0.09473231434822083, -0.006654187571257353, 0.0018432585056871176, 0.02259509451687336, 0.04515133425593376, 0.022128816694021225, 0.011112978681921959, -0.09209007024765015, -0.06644473224878311, -0.06267564743757248, 0.044607341289520264, 0.0027612450066953897, -0.0036670886911451817, -0.026208756491541862, -0.03238695114850998, -0.003132810816168785, 0.046938735991716385, -0.020302558317780495, -0.015173490159213543, -0.06407448649406433, 0.01409522071480751, -0.003084240248426795, -0.015105491504073143, 0.0032615233212709427, -0.029589278623461723, -0.010889553464949131, 0.10716641694307327, -0.02012770250439644, 0.039497703313827515, -0.00887872651219368, 0.03149325028061867, 0.05929512530565262, 0.017971163615584373, 0.04200395196676254, -0.018884291872382164, 0.04142110422253609, 0.02595618925988674, -0.03565090149641037, -0.022264814004302025, -0.018826007843017578, -0.04678330942988396, 0.009107008576393127, -0.045384474098682404, -0.03973084315657616, 0.037030309438705444, 0.037652015686035156, 0.010889553464949131, -0.06108252704143524, -0.0236442219465971, -0.012511814944446087, 0.016611183062195778, -0.015639768913388252, -0.027918444946408272, 0.012084392830729485, 0.0032226666808128357, 0.008329876698553562, -0.05350549519062042, -0.02754930779337883, 0.01957399770617485, -0.04383021220564842, 0.00848530326038599, -0.0024212501011788845, 0.005823628511279821, 0.0008220592862926424, -0.022925376892089844, 0.024052215740084648, 0.03279494494199753, 0.03500976786017418, 0.0780239924788475, -0.02218710072338581, 0.03182353079319, 0.016290616244077682, 0.017718596383929253, 0.002054541138932109, 0.03825429454445839, 0.040799397975206375, 0.012434102594852448, 0.0181265901774168, 0.01777688041329384, -0.009738427586853504, -0.006906755268573761, -0.0341743528842926, -0.06454075872898102, 0.020011132583022118, -0.045889608561992645, -0.005167923867702484, 0.02832643873989582, 0.0040070838294923306, 0.04923127219080925, -0.03260066360235214, -0.02074940875172615, 0.0006775614456273615, 0.04557875543832779, 0.010228991508483887, 0.013735797256231308, 0.015571770258247852, -0.017466027289628983, 0.04390792176127434, 0.01578548178076744, -0.032581232488155365, 0.0194379985332489, -0.007737314328551292, 0.04724958911538124, 0.050979819148778915, 0.06119909882545471, -0.018233444541692734, -0.02139054238796234, 0.01788373664021492, 0.032192666083574295, -0.008864155039191246, -0.02752988040447235, 0.027899017557501793, 0.012259247712790966, 0.02074940875172615, 0.008155022747814655, -0.061315666884183884, 0.03157096356153488, -0.04072168469429016, 0.006542474962770939, -0.014066077768802643, 0.05840142443776131, -0.0511741004884243, 0.024071644991636276, -0.007353605702519417, 0.0203414149582386, 0.023411083966493607, 0.021584823727607727, 0.016106048598885536, -0.015707768499851227, -0.040410831570625305, -0.031026970595121384, 0.0046020750887691975, -0.014172933995723724, -0.1073218435049057, 0.0078441696241498, -0.03384407237172127, 0.008461018092930317, -0.045112475752830505, -0.060771673917770386, -0.02426592819392681, -0.00626562163233757, 0.038079436868429184, -0.0010321276495233178, 0.0428587980568409, 0.02440192550420761, 0.02873443253338337, -0.004186795558780432, -0.030094413086771965, 0.03825429454445839, 0.022750521078705788, -0.015960335731506348, 0.05323350057005882, 0.029861273244023323, 0.00282195839099586, 0.0472884438931942, 0.005532204173505306, 0.009893854148685932, 0.015192918479442596, -0.0009501645690761507, -0.023819077759981155, 0.006765900179743767, 0.07207893580198288, 0.0258590467274189, -0.010675842873752117, 0.024227071553468704, 0.01116154994815588, -0.00789759773761034, -0.044179920107126236, -0.017854593694210052, -0.008053024299442768, -0.03234809264540672, 0.015892336145043373, -0.058440279215574265, 0.013211233541369438, 0.028540151193737984, 0.030385836958885193, -0.029550421983003616, 0.030210983008146286, -0.040527403354644775, 0.005002783145755529 ]
730,288
mmengine.fileio.io
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. Note: If the backend is the instance of LocalBackend, it does the same thing with :func:`copyfile`. Args: src (str or Path): A file to be copied. dst (str or Path): Copy file to to local dst. backend_args (dict, optional): Arguments to instantiate the 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: >>> # dst is a file >>> src = 's3://openmmlab/mmengine/file' >>> dst = '/path/of/file' >>> # src will be copied to '/path/of/file' >>> copyfile_to_local(src, dst) '/path/of/file' >>> # dst is a directory >>> dst = '/path/of/dir' >>> # src will be copied to '/path/of/dir/file' >>> copyfile_to_local(src, dst) '/path/of/dir/file'
def copyfile_to_local( src: Union[str, Path], dst: Union[str, Path], backend_args: Optional[dict] = None, ) -> 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. Note: If the backend is the instance of LocalBackend, it does the same thing with :func:`copyfile`. Args: src (str or Path): A file to be copied. dst (str or Path): Copy file to to local dst. backend_args (dict, optional): Arguments to instantiate the 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: >>> # dst is a file >>> src = 's3://openmmlab/mmengine/file' >>> dst = '/path/of/file' >>> # src will be copied to '/path/of/file' >>> copyfile_to_local(src, dst) '/path/of/file' >>> # dst is a directory >>> dst = '/path/of/dir' >>> # src will be copied to '/path/of/dir/file' >>> copyfile_to_local(src, dst) '/path/of/dir/file' """ backend = get_file_backend( dst, backend_args=backend_args, enable_singleton=True) return backend.copyfile_to_local(src, dst)
(src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path], backend_args: Optional[dict] = None) -> Union[str, pathlib.Path]
[ -0.048464298248291016, -0.016639409586787224, -0.025790609419345856, 0.0061150542460381985, -0.010481592267751694, -0.039037518203258514, 0.016819963231682777, 0.04044393077492714, 0.06496116518974304, -0.07324761152267456, -0.013997630216181278, -0.038410332053899765, -0.041242167353630066, -0.0014681831235066056, -0.028546422719955444, 0.051353152841329575, -0.0021072467789053917, -0.014415753073990345, 0.007516717538237572, 0.03084610030055046, 0.03103615716099739, -0.03842933848500252, 0.10825593769550323, 0.03626269847154617, -0.0017449522856622934, -0.03812524676322937, -0.013104366138577461, -0.058689314872026443, -0.0172760970890522, -0.00044484998215921223, 0.0684581995010376, 0.01746615394949913, 0.025543536990880966, -0.0029292393010109663, -0.01055761519819498, -0.00802511814981699, 0.008129648864269257, -0.006172070745378733, -0.08978249132633209, -0.12216804176568985, -0.018378421664237976, -0.04987071454524994, 0.081648088991642, 0.04013984277844429, 0.09206315875053406, 0.0033212299458682537, 0.01719057187438011, -0.06518923491239548, 0.02337689697742462, -0.025847626850008965, 0.026094699278473854, 0.10939627885818481, -0.015090452507138252, 0.012230108492076397, -0.017209578305482864, 0.0257525984197855, 0.004022061824798584, -0.022464627400040627, -0.09943734109401703, 0.03660479933023453, 0.016667917370796204, -0.0292116180062294, 0.016715431585907936, 0.011935521848499775, -0.03555949032306671, -0.05131513997912407, -0.035901591181755066, -0.02556254155933857, 0.008262687362730503, 0.010282033123075962, -0.05177127569913864, 0.03261362388730049, -0.004808418452739716, 0.012182594276964664, 0.0207351166754961, 0.08408080786466599, 0.05408995971083641, -0.0007513154414482415, 0.012144583277404308, 0.018730025738477707, -0.029857808724045753, -0.04401698708534241, -0.02335789054632187, -0.02594265341758728, -0.03497031703591347, -0.05583847314119339, -0.037593092769384384, -0.0590314157307148, -0.02337689697742462, 0.03065604530274868, -0.00033883433206938207, 0.030009854584932327, 0.0017627701163291931, -0.0179032813757658, 0.038790445774793625, -0.06762195378541946, -0.009483798407018185, 0.006903786677867174, -0.031207207590341568, 0.04477721080183983, -0.031131185591220856, 0.012952321209013462, -0.013826579786837101, -0.012562706135213375, 0.0489964559674263, -0.027729181572794914, 0.025049390271306038, 0.00011076705413870513, 0.009650097228586674, -0.005288310348987579, 0.00670422799885273, -0.018416432663798332, -0.011545906774699688, 0.0032974728383123875, 0.03077007830142975, -0.02461226098239422, -0.000776854227297008, -0.026740889996290207, -0.023262863978743553, -0.005084000062197447, -0.02330087497830391, 0.0395696759223938, -0.01959478110074997, -0.050098780542612076, 0.04728595167398453, -0.04705788195133209, 0.07172716408967972, -0.04618362709879875, -0.041356202214956284, -0.010244022123515606, -0.0207351166754961, -0.008300699293613434, -0.030009854584932327, 0.07579436153173447, 0.013931110501289368, -0.0014681831235066056, 0.026645861566066742, 0.035483468323946, 0.0179032813757658, 0.05378586798906326, 0.06511320918798447, -0.05792909115552902, -0.003014764515683055, 0.008747330866754055, 0.028090286999940872, -0.031568314880132675, -0.01991787739098072, -0.054812170565128326, -0.008742579258978367, 0.03911354020237923, -0.004000680521130562, 0.0005271086120046675, -0.03736502304673195, 0.04253454878926277, -0.013142377138137817, -0.022597666829824448, -0.020050914958119392, -0.012952321209013462, 0.02820432186126709, 0.0050412374548614025, -0.0684962123632431, -0.013703042641282082, 0.07370374351739883, -0.02894553914666176, 0.025049390271306038, 0.029287640005350113, 0.010015955194830894, 0.032955724745988846, -0.02556254155933857, -0.015194983221590519, -0.007184119429439306, 0.0019326326437294483, 0.0011421182425692677, -0.011317838914692402, 0.011802482418715954, -0.04185034707188606, 0.043940965086221695, -0.011165793985128403, 0.0025491269771009684, -0.01839742809534073, 0.07739083468914032, -0.031131185591220856, 0.002066859742626548, 0.024897346273064613, 0.03911354020237923, 0.0012062621535733342, -0.03396302089095116, 0.056636709719896317, -0.0006634144810959697, 0.016411341726779938, 0.053747858852148056, -0.007625999860465527, -0.006091297138482332, -0.024346182122826576, -0.017152560874819756, -0.059449538588523865, 0.04401698708534241, -0.0665956512093544, -0.018863065168261528, 0.02976278029382229, 0.018321406096220016, -0.04371289536356926, 0.051733262836933136, 0.026531828567385674, 0.0000022875401555211283, 0.007925338111817837, -0.0027605644427239895, 0.05450808256864548, -0.04968065768480301, 0.046829815953969955, -0.013512986712157726, -0.01407365221530199, 0.008281693793833256, -0.01853046752512455, 0.017637204378843307, -0.006875278428196907, -0.033449869602918625, 0.08430887758731842, -0.010776178911328316, 0.06575939804315567, -0.03447617217898369, -0.028432387858629227, -0.006200579460710287, 0.021267274394631386, 0.026873929426074028, -0.05557239428162575, 0.02185644768178463, 0.050782982259988785, 0.002556254155933857, -0.02193247154355049, 0.014491776004433632, -0.03415307775139809, 0.04013984277844429, -0.03757408633828163, 0.032879699021577835, -0.0017972177593037486, 0.04888242110610008, -0.017048029229044914, -0.014301719143986702, -0.02812829799950123, 0.0069132898934185505, -0.002348380396142602, 0.048160210251808167, 0.06268049031496048, -0.01385508757084608, -0.04310471564531326, -0.008409981615841389, -0.04090006649494171, 0.04549942538142204, 0.003870016895234585, 0.028299348428845406, 0.08392876386642456, -0.09411576390266418, 0.03926558420062065, 0.026873929426074028, -0.00609604874625802, 0.0114603815600276, -0.018017316237092018, -0.019452238455414772, 0.026987962424755096, -0.03573054075241089, -0.0691043883562088, 0.036965906620025635, -0.03208146616816521, -0.022692695260047913, -0.030694056302309036, -0.0647330954670906, 0.012933315709233284, 0.04226846992969513, 0.00535483006387949, 0.09274736046791077, 0.004482947755604982, 0.010852201841771603, 0.008695065043866634, 0.04310471564531326, -0.06100799888372421, -0.05629460886120796, 0.05363382399082184, 0.07313358038663864, 0.025847626850008965, 0.02280672825872898, -0.01746615394949913, -0.05614256486296654, -0.08803397417068481, -0.009540814906358719, 0.020145943388342857, -0.01586017943918705, -0.09403974562883377, -0.008576280437409878, -0.01869201473891735, 0.010120485909283161, 0.023338885977864265, -0.047894131392240524, -0.043256763368844986, -0.019119640812277794, -0.04542339965701103, -0.02128628082573414, -0.0471339076757431, 0.03415307775139809, 0.005255050491541624, -0.03337384760379791, 0.015812665224075317, -0.01222060527652502, 0.05572444200515747, 0.012733756564557552, -0.012923813425004482, 0.009060923010110855, -0.04367488622665405, -0.06549332290887833, 0.016202280297875404, 0.02556254155933857, -0.09039066731929779, -0.011365353129804134, -0.04508129879832268, 0.014862384647130966, 0.05101104825735092, -0.031207207590341568, -0.008115394040942192, 0.001024521072395146, -0.05389990285038948, -0.02174241468310356, 0.030294938012957573, -0.04416903108358383, 0.09761279821395874, 0.03462821617722511, -0.027615146711468697, 0.04854032024741173, 0.01760869473218918, 0.03833431005477905, 0.012040052562952042, -0.01215408556163311, 0.055002227425575256, -0.019119640812277794, -0.008666557259857655, -0.0024327177088707685, -0.021628381684422493, -0.03058002144098282, -0.051353152841329575, 0.04044393077492714, -0.003703717840835452, 0.09502803534269333, -0.016164269298315048, 0.023034796118736267, -0.019765831530094147, 0.00002487061829015147, 0.059829652309417725, -0.024574249982833862, -0.0074834576807916164, 0.029553718864917755, 0.02455524541437626, -0.016477862372994423, 0.022274572402238846, -0.011764470487833023, -0.013921607285737991, -0.007245888002216816, 0.03521738946437836, 0.021020201966166496, -0.025581547990441322, 0.051733262836933136, -0.04759003967046738, 0.06036181002855301, -0.040976088494062424, 0.007654508575797081, -0.05272155627608299, 0.001354149542748928, -0.017342615872621536, 0.04728595167398453, -0.016069240868091583, -0.07606044411659241, 0.023852037265896797, 0.0036276953760534525, -0.002081114100292325, 0.07149909436702728, -0.022692695260047913, -0.038163259625434875, -0.007673514075577259, 0.041432224214076996, -0.028660455718636513, -0.007963349111378193, 0.019955888390541077, 0.07028273493051529, -0.04238250479102135, -0.014235199429094791, 0.03877143934369087, 0.014349233359098434, 0.03415307775139809, 0.04382693022489548, -0.027121001854538918, -0.013455970212817192, -0.04051995649933815, 0.016857974231243134, 0.018492456525564194, 0.07001665979623795, 0.0030860353726893663, 0.005497371777892113, -0.04854032024741173, 0.014083155430853367, 0.0037868672516196966, 0.0201079323887825, 0.018169360235333443, -0.0201079323887825, -0.005673173815011978, -0.017266593873500824, -0.0030218914616853, -0.0948759913444519, 0.02970576472580433, 0.06458105146884918, 0.023148829117417336, 0.03850536048412323, 0.052911609411239624, 0.0022474131546914577, 0.011289331130683422, -0.05515427142381668, -0.03170135244727135, -0.003081283997744322, 0.026721883565187454, -0.04101410135626793, -0.06355474889278412, 0.009578825905919075, -0.027101995423436165, -0.035635512322187424, -0.019556770101189613, 0.016382833942770958, -0.06492315232753754, 0.02771017514169216, -0.06401088833808899, -0.008818602189421654, -0.003713220590725541, -0.02894553914666176, 0.022939767688512802, 0.01651587337255478, -0.022939767688512802, 0.05941152945160866, 0.010700156912207603, 0.026056688278913498, 0.03529341146349907, 0.06705178320407867, 0.006666216999292374, 0.03820127248764038, 0.02003191038966179, -0.029990848153829575, -0.03744104504585266, 0.005307315848767757, -0.024669278413057327, -0.10779980570077896, -0.002544375602155924, -0.0879579484462738, -0.04793214052915573, 0.012021047063171864, 0.06036181002855301, -0.05792909115552902, 0.011954527348279953, 0.009003906510770321, 0.000706771039403975, -0.010852201841771603, -0.038467347621917725, -0.030104881152510643, -0.04264858365058899, -0.004711014684289694, 0.03649076446890831, 0.002477856120094657, 0.04656373709440231, 0.13790468871593475, -0.03386799246072769, 0.03417208045721054, 0.0210392065346241, 0.055002227425575256, 0.004067199770361185, -0.03573054075241089, -0.00684677017852664, 0.009227222763001919, -0.009692859835922718, -0.026170721277594566, 0.04477721080183983, 0.0747680589556694, -0.02398507669568062, -0.04059597849845886, 0.008414732292294502, -0.03077007830142975, 0.03544545918703079, 0.031112179160118103, -0.006575940176844597, 0.024156127125024796, 0.02845139428973198, 0.010120485909283161, -0.019936881959438324, 0.032062459737062454, 0.05507824942469597, 0.044891245663166046, 0.018245382234454155, -0.04348482936620712, 0.03312677517533302, -0.0004386137879919261, -0.06838217377662659, -0.06769797205924988, 0.04090006649494171, -0.0358065627515316, -0.0035683028399944305, -0.02651282213628292, 0.017703723162412643, 0.016972007229924202, 0.0014800616772845387, -0.01629730872809887, 0.011954527348279953, -0.04439709708094597, 0.002097743796184659, -0.008994403295218945, -0.03481827303767204, -0.01834041066467762, 0.04675379395484924, -0.03424810618162155, 0.04219244793057442, -0.01347497571259737, -0.0069322953931987286, 0.018901076167821884, 0.04698185995221138, -0.029686758294701576, 0.013227902352809906, -0.024004081264138222, -0.037973202764987946, -0.02588563784956932, -0.029914826154708862, 0.04496726766228676, -0.028470398858189583, -0.04736197367310524, 0.033639926463365555, 0.005839472636580467, 0.02771017514169216, -0.04565146937966347, 0.015223491005599499, 0.010386564768850803, 0.016230788081884384, 0.015679625794291496, -0.009602583013474941, 0.02776719257235527, 0.046639759093523026, -0.009483798407018185, -0.04166029021143913, -0.03327881917357445, -0.01891057938337326, -0.004245377611368895, -0.005231293383985758, 0.0012496187118813396, -0.01984185352921486, -0.009559820406138897, -0.06378281861543655, -0.04006382077932358, 0.034001030027866364, 0.00946954358369112, -0.03379197046160698, -0.015090452507138252, -0.03240456059575081, -0.012116074562072754, 0.02003191038966179, 0.009060923010110855, 0.055002227425575256, 0.004844054114073515, 0.02613271027803421, -0.020621083676815033, 0.0295157078653574, 0.007426441181451082, -0.0146058090031147, 0.005696930922567844, 0.06891433149576187, -0.028356365859508514, -0.01822637766599655, 0.019271686673164368, 0.007635502610355616, -0.0016855597496032715, -0.04861634224653244, 0.03877143934369087, 0.015442055650055408, -0.03021891601383686, 0.005782456137239933, 0.009559820406138897, -0.0006533177802339196, 0.03046598844230175, -0.019300194457173347, 0.0166489128023386, 0.04781810939311981, -0.03559750318527222, 0.028318354859948158, 0.03586358204483986, 0.050098780542612076, -0.021438324823975563, 0.018825054168701172, -0.017817756161093712, -0.02932565286755562, -0.08073581755161285, -0.03177737444639206, 0.0029791288543492556, 0.0345521941781044, 0.052037354558706284, 0.0144442617893219, 0.017209578305482864, -0.08522114157676697, -0.07625049352645874, -0.06005771830677986, 0.06074192002415657, -0.0058727324940264225, -0.016933996230363846, -0.018787043169140816, -0.028679462149739265, -0.00989241898059845, 0.04686782881617546, -0.01557509507983923, -0.023833030834794044, -0.06762195378541946, 0.014548792503774166, -0.012344141490757465, -0.0010963859967887402, -0.0047799102030694485, -0.030694056302309036, -0.022825734689831734, 0.08567728102207184, -0.015071447007358074, 0.040101829916238785, 0.0001521933445474133, 0.011859498918056488, 0.04675379395484924, 0.025923648849129677, 0.04956662282347679, -0.002974377479404211, 0.04793214052915573, 0.03173936530947685, -0.04036790877580643, -0.021628381684422493, -0.015499073080718517, -0.04329477250576019, -0.008723573759198189, -0.05412796884775162, -0.05412796884775162, 0.027121001854538918, 0.03164433687925339, 0.00968810822814703, -0.062148336321115494, -0.01779875159263611, -0.015251999720931053, 0.006419144105166197, -0.014710339717566967, -0.018245382234454155, 0.02174241468310356, 0.018159857019782066, -0.0025134915485978127, -0.055382341146469116, -0.021210256963968277, 0.023034796118736267, -0.03964569792151451, 0.005468863528221846, -0.011346347630023956, 0.00828644447028637, 0.013741053640842438, -0.030009854584932327, 0.013246907852590084, 0.05762500315904617, 0.014776859432458878, 0.06807808578014374, -0.02155235782265663, 0.024460216984152794, 0.02480231784284115, 0.02795724757015705, 0.023262863978743553, 0.024080105125904083, 0.027805203571915627, 0.022825734689831734, 0.013512986712157726, 0.011080268770456314, -0.026284754276275635, -0.005231293383985758, -0.028470398858189583, -0.06268049031496048, 0.02111523039638996, -0.055116262286901474, -0.005445106420665979, 0.04036790877580643, 0.002368573797866702, 0.05066894739866257, -0.0204120222479105, -0.026284754276275635, -0.0019064999651163816, 0.05576245114207268, -0.010405570268630981, 0.01510945800691843, 0.011422369629144669, -0.0313972644507885, 0.042610570788383484, 0.004487698897719383, -0.03033294901251793, 0.010633637197315693, -0.013493981212377548, 0.045005276799201965, 0.05614256486296654, 0.05063093826174736, -0.022084515541791916, -0.008752082474529743, 0.017637204378843307, 0.030618034303188324, 0.008006111718714237, -0.015166474506258965, 0.024669278413057327, 0.009835401549935341, 0.011935521848499775, 0.006419144105166197, -0.055116262286901474, 0.035635512322187424, -0.024460216984152794, 0.009707113727927208, -0.029420679435133934, 0.06385883688926697, -0.05735892429947853, 0.014368238858878613, -0.022502638399600983, 0.0043831681832671165, 0.017266593873500824, 0.015812665224075317, 0.010443581268191338, -0.026208732277154922, -0.02763415314257145, -0.020336000248789787, 0.013218400068581104, -0.009060923010110855, -0.09175907075405121, 0.004038691520690918, -0.03886646777391434, 0.004946209490299225, -0.03544545918703079, -0.07127102464437485, -0.025828620418906212, -0.010348552837967873, 0.02995283715426922, -0.004098084289580584, 0.04257256165146828, 0.04059597849845886, 0.02738708071410656, -0.007797050289809704, -0.02757713571190834, 0.03856237605214119, 0.018606489524245262, -0.025714587420225143, 0.046525727957487106, 0.041926369071006775, 0.0019742073491215706, 0.039987798780202866, -0.012486684136092663, 0.02060207910835743, 0.017428141087293625, -0.002110810251906514, -0.01717156544327736, 0.010187005624175072, 0.06119805574417114, 0.03312677517533302, -0.014900396578013897, 0.030884111300110817, 0.014862384647130966, 0.005525880493223667, -0.03856237605214119, -0.010652642697095871, 0.004273885861039162, -0.022825734689831734, 0.014216193929314613, -0.070966936647892, 0.0034994075540453196, 0.023414907976984978, 0.022445622831583023, -0.017561180517077446, 0.03793519362807274, -0.04158426821231842, 0.013712545856833458 ]
730,289
mmengine.fileio.io
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. 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 corresponding backend. Defaults to None. Returns: str: The destination directory. Raises: FileExistsError: If dst had already existed, a FileExistsError will be raised. Examples: >>> src = '/path/of/dir1' >>> dst = '/path/of/dir2' >>> copytree(src, dst) '/path/of/dir2'
def copytree( src: Union[str, Path], dst: Union[str, Path], backend_args: Optional[dict] = None, ) -> Union[str, Path]: """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. 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 corresponding backend. Defaults to None. Returns: str: The destination directory. Raises: FileExistsError: If dst had already existed, a FileExistsError will be raised. Examples: >>> src = '/path/of/dir1' >>> dst = '/path/of/dir2' >>> copytree(src, dst) '/path/of/dir2' """ backend = get_file_backend( src, backend_args=backend_args, enable_singleton=True) return backend.copytree(src, dst)
(src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path], backend_args: Optional[dict] = None) -> Union[str, pathlib.Path]
[ -0.04716005548834801, -0.008245397359132767, -0.003663563635200262, -0.060672417283058167, -0.03648338466882706, 0.033780910074710846, 0.025521239265799522, 0.0494057722389698, 0.08533724397420883, -0.08883903920650482, 0.01930745504796505, -0.014987305738031864, -0.032886430621147156, 0.006770455744117498, -0.03454216942191124, -0.018955372273921967, 0.006066290196031332, 0.0038134364876896143, 0.012332411482930183, 0.05252693593502045, -0.009401560761034489, -0.014968274161219597, 0.0901331752538681, 0.032144200056791306, -0.059682779014110565, -0.03210613876581192, 0.00383008923381567, -0.005224146414548159, -0.04735036939382553, 0.039319075644016266, 0.060329850763082504, -0.014682801440358162, 0.03024105168879032, -0.008616510778665543, -0.038595881313085556, -0.0012620262568816543, -0.04407695308327675, 0.009230276569724083, -0.0834340900182724, -0.0985831618309021, -0.032905463129282, -0.07262419909238815, 0.04099384695291519, 0.03992808610200882, 0.06516385078430176, -0.020839491859078407, 0.00851659569889307, -0.05522941052913666, 0.002181485528126359, -0.055457789450883865, 0.03039330430328846, 0.07513635605573654, -0.03985195979475975, -0.021201089024543762, 0.02729116939008236, 0.05435395985841751, -0.029765265062451363, -0.013150765560567379, -0.004605622962117195, 0.039319075644016266, 0.037682369351387024, -0.0012762999394908547, -0.016414668411016464, 0.017537526786327362, -0.043315690010786057, -0.036064691841602325, -0.07692531496286392, -0.03252483159303665, 0.015529703348875046, -0.0006512341205962002, -0.1080227866768837, 0.044609833508729935, 0.031649380922317505, -0.012303863652050495, -0.0028975456953048706, 0.06790439039468765, 0.013369628228247166, -0.007741061970591545, -0.00275005167350173, 0.010495871305465698, -0.05743706226348877, -0.037530116736888885, -0.04084159806370735, -0.025521239265799522, 0.027253106236457825, 0.0021695909090340137, -0.03397122398018837, -0.007598326075822115, -0.046741362661123276, -0.010914565064013004, -0.024455476552248, -0.036464352160692215, 0.02982235886156559, 0.019830821081995964, 0.007584052160382271, -0.008664090186357498, 0.004788801074028015, 0.03701626509428024, -0.024664822965860367, 0.025958964601159096, -0.012294348329305649, 0.03553180769085884, -0.048111628741025925, -0.01947873830795288, 0.0268153827637434, -0.01979275979101658, -0.003901457181200385, 0.019925979897379875, 0.042249929159879684, -0.03437088802456856, 0.03878619521856308, -0.02820468135178089, 0.05450621247291565, -0.006984560284763575, -0.0061186267994344234, 0.011133426800370216, -0.027234075590968132, -0.03313383832573891, -0.03284836560487747, 0.0016640666872262955, -0.004776906222105026, 0.02264748327434063, 0.04506658762693405, -0.011028753593564034, 0.05393526703119278, -0.004669853951781988, 0.07163456082344055, -0.00795040838420391, -0.07254807651042938, -0.008259670808911324, -0.013559943065047264, -0.0025264315772801638, -0.0017294874414801598, 0.050395410507917404, 0.08503273874521255, 0.003161607775837183, 0.015339388512074947, 0.004681748803704977, -0.004971979185938835, -0.01254175789654255, 0.051537297666072845, -0.05477265268564224, 0.009392044506967068, 0.03440894931554794, 0.041108038276433945, -0.04065128043293953, -0.02550220862030983, 0.026301531121134758, 0.047540683299303055, 0.05248887464404106, -0.006361278705298901, 0.04944383352994919, -0.0016236247029155493, 0.055191345512866974, -0.04906320571899414, -0.03534149378538132, -0.03520827367901802, 0.001093121711164713, 0.026948602870106697, 0.012303863652050495, -0.05850282683968544, -0.03364768996834755, 0.04464789479970932, -0.07894265651702881, 0.04084159806370735, 0.028052428737282753, 0.01768977753818035, -0.0009295697673223913, -0.048111628741025925, -0.027595672756433487, -0.04030871391296387, -0.03966164216399193, -0.027843082323670387, -0.02567349188029766, -0.01556776650249958, -0.04221186414361, 0.04898707941174507, 0.05347851291298866, -0.03511311486363411, -0.03265805169939995, 0.0705307349562645, 0.021638814359903336, 0.0016129194991663098, 0.011675824411213398, -0.0010282957227900624, -0.0035850584972649813, -0.004529496654868126, 0.06995978951454163, 0.03168744593858719, 0.011323741637170315, 0.0008629595395177603, 0.020972711965441704, -0.01494924258440733, -0.020192420110106468, 0.02664409764111042, -0.04784518852829933, 0.02934657223522663, -0.04499046504497528, 0.015339388512074947, 0.1070331484079361, -0.0028142828959971666, -0.024817073717713356, 0.10010568797588348, 0.0013452890561893582, 0.028299838304519653, -0.03827234357595444, -0.05591454356908798, 0.07486991584300995, -0.031401973217725754, -0.055952608585357666, 0.005062378942966461, 0.012988997623324394, 0.039890021085739136, -0.036711759865283966, -0.026872476562857628, -0.01719495840370655, -0.003789647249504924, 0.003937141504138708, -0.014178466983139515, 0.0047792852856218815, 0.014035730622708797, 0.012399021536111832, -0.03886232152581215, -0.02826177515089512, -0.008069355972111225, -0.07901878654956818, -0.02875659428536892, -0.0033305122051388025, 0.0784858986735344, -0.06120530143380165, 0.013578974641859531, -0.030831027776002884, 0.04499046504497528, -0.04636073112487793, 0.04620847851037979, -0.040460966527462006, 0.03684498369693756, -0.06839920580387115, 0.01050538755953312, 0.019488254562020302, -0.023808404803276062, -0.031154563650488853, 0.03176357224583626, 0.04658911004662514, 0.026016058400273323, -0.03203001245856285, 0.024836106225848198, -0.04244024306535721, 0.05180374160408974, -0.005257451441138983, -0.06744763255119324, 0.03692110627889633, -0.07167262583971024, -0.006166205741465092, 0.009625180624425411, 0.06272782385349274, 0.020554019138216972, 0.014207013882696629, 0.002854724880307913, 0.06215687468647957, 0.007726788520812988, -0.02736729569733143, -0.01328398659825325, -0.027843082323670387, -0.03764430433511734, -0.030983280390501022, -0.0427066832780838, -0.04042290523648262, 0.023009082302451134, 0.015501155517995358, 0.0861746296286583, -0.02413194067776203, 0.03863394260406494, 0.025806711986660957, 0.051042478531599045, -0.014321203343570232, -0.04514271393418312, 0.06661024689674377, 0.059835031628608704, -0.001724729547277093, 0.008093144744634628, -0.029936548322439194, -0.06817083060741425, -0.10558675229549408, -0.004341560881584883, 0.007788640912622213, 0.029555918648838997, -0.02028757706284523, 0.009867832064628601, -0.015957912430167198, 0.0484161339700222, -0.024265160784125328, -0.046322669833898544, -0.0067419083788990974, 0.012123065069317818, -0.03153519332408905, -0.011085848324000835, -0.03317190334200859, 0.006727634929120541, 0.028642406687140465, -0.030355241149663925, 0.020991742610931396, 0.015929363667964935, 0.06276588141918182, 0.02125818468630314, -0.012418053112924099, 0.03465636074542999, -0.008116934448480606, -0.05484877899289131, 0.01630999520421028, -0.04529496654868126, -0.08282507956027985, 0.01652885600924492, -0.03722561150789261, -0.03680691868066788, 0.006023469381034374, 0.005704691633582115, -0.03853878378868103, -0.034332823008298874, -0.031325846910476685, -0.0732712671160698, 0.024721916764974594, -0.03168744593858719, 0.027119886130094528, -0.011171489953994751, 0.010029600001871586, 0.013778804801404476, 0.07391834259033203, 0.07601180672645569, -0.025311892852187157, -0.019678570330142975, 0.007417526561766863, 0.017566073685884476, 0.029955578967928886, 0.02500738948583603, 0.018936341628432274, 0.01573904976248741, -0.03794880956411362, -0.04716005548834801, 0.022932955995202065, 0.07372802495956421, -0.005319303832948208, 0.05914989858865738, -0.01042926125228405, 0.06253750622272491, 0.02801436558365822, -0.009905895218253136, -0.015339388512074947, 0.0407274067401886, 0.035512775182724, 0.011790013872087002, 0.05427783355116844, -0.005209872964769602, -0.020325640216469765, -0.012674978002905846, 0.02616831101477146, 0.05248887464404106, 0.008683121763169765, 0.005195599049329758, -0.06466903537511826, 0.03534149378538132, 0.03496086224913597, -0.005638081580400467, -0.0031354394741356373, -0.01679529808461666, 0.01563437655568123, -0.03144003450870514, -0.01137132104486227, -0.03509408235549927, 0.013245923444628716, 0.019459707662463188, 0.015253745950758457, 0.03747302293777466, -0.03448507562279701, -0.0011514057405292988, 0.002388453111052513, -0.0033352700993418694, -0.04491433873772621, 0.008359585888683796, 0.001516572549007833, 0.036369193345308304, -0.034922800958156586, 0.0033209966495633125, 0.008973351679742336, 0.027576642110943794, -0.02004016749560833, 0.0436963215470314, 0.018850699067115784, -0.03136391192674637, -0.04327762871980667, -0.06364133208990097, -0.028394997119903564, 0.008183544501662254, 0.011181005276739597, -0.04814969375729561, -0.05328819528222084, 0.054315898567438126, 0.015187135897576809, -0.057246748358011246, -0.002662030979990959, 0.010248461738228798, 0.0140928253531456, 0.029517855495214462, 0.009058993309736252, -0.0541255846619606, 0.023618090897798538, 0.0635652095079422, -0.0020708648953586817, 0.042097676545381546, 0.003278175601735711, 0.005885491147637367, -0.02331358566880226, -0.006066290196031332, 0.033952195197343826, -0.008411922492086887, -0.010162820108234882, -0.010020083747804165, -0.023484868928790092, -0.0034375644754618406, -0.03379994258284569, -0.027348263189196587, -0.0265679731965065, -0.0005197977880015969, -0.01605306938290596, 0.08411922305822372, -0.026358626782894135, 0.00046091910917311907, -0.019269391894340515, -0.015919849276542664, 0.021886223927140236, -0.007503168657422066, 0.010438777506351471, 0.034028321504592896, 0.02477901242673397, 0.058312512934207916, 0.013778804801404476, 0.0033971224911510944, -0.0019055288285017014, 0.012046938762068748, 0.03284836560487747, -0.06463097035884857, -0.04708392918109894, 0.03705433011054993, -0.01519665215164423, -0.08526111394166946, -0.027157949283719063, -0.035893406718969345, -0.049824465066194534, -0.007869524881243706, 0.010162820108234882, 0.004588969983160496, 0.004957705270498991, 0.034256696701049805, 0.02249523252248764, -0.042973123490810394, -0.05393526703119278, -0.040384840220212936, -0.0281856507062912, -0.0020185282919555902, -0.009867832064628601, 0.036388225853443146, -0.05043347179889679, 0.15118622779846191, 0.009472928941249847, 0.018784089013934135, 0.0484161339700222, 0.09766965359449387, -0.006185237318277359, -0.036140818148851395, -0.0312877856194973, 0.051308922469615936, 0.0047340854071080685, -0.01221822202205658, 0.017547041177749634, 0.05245080962777138, -0.015063431113958359, -0.07220550626516342, -0.05344044789671898, -0.05355463922023773, 0.0009735801140777767, -0.020154356956481934, 0.05823638662695885, 0.060900796204805374, -0.004272571299225092, -0.0526411272585392, -0.03950939327478409, 0.04609429091215134, 0.04205961152911186, 0.01100020669400692, 0.01679529808461666, -0.0065278043039143085, 0.009625180624425411, -0.032391611486673355, -0.04540915787220001, -0.040460966527462006, 0.0030069767963141203, -0.06573479622602463, 0.009368255734443665, -0.05583841726183891, -0.0001590914325788617, -0.020554019138216972, -0.01185662392526865, -0.02713891677558422, -0.003137818304821849, -0.04377244785428047, 0.022457169368863106, -0.015415513888001442, 0.044685959815979004, 0.007155843544751406, 0.04422920197248459, -0.0010390009265393019, 0.006113869138062, -0.05290756747126579, -0.008307249285280704, 0.06086273491382599, 0.015758080407977104, 0.009101814590394497, 0.018460553139448166, -0.011904202401638031, -0.05256500095129013, -0.02127721533179283, 0.007707756944000721, 0.06984560191631317, 0.03381897509098053, 0.02394162490963936, 0.05793188139796257, 0.05344044789671898, 0.05857895314693451, 0.01018185168504715, 0.018622322008013725, -0.017975250259041786, 0.015044399537146091, -0.005067136604338884, 0.04034677892923355, -0.004175035282969475, 0.000028194124752189964, 0.019117141142487526, 0.021619781851768494, 0.017623167484998703, -0.032962556928396225, -0.025368988513946533, 0.0227236095815897, -0.01494924258440733, 0.012027907185256481, 0.02281876653432846, -0.014968274161219597, 0.0010657639941200614, 0.05077603831887245, 0.01622435264289379, -0.011171489953994751, -0.022381043061614037, -0.031401973217725754, -0.004470023326575756, 0.09721289575099945, -0.01785154640674591, 0.03096424788236618, -0.012284833006560802, 0.005266967229545116, 0.020877555012702942, 0.006280394736677408, 0.002235011663287878, -0.023180365562438965, -0.023104239255189896, 0.007617357652634382, 0.06428840011358261, -0.0112381000071764, 0.026948602870106697, 0.020401766523718834, 0.011675824411213398, -0.039319075644016266, 0.0201162938028574, -0.0007053549052216113, -0.04202155023813248, -0.0007791019743308425, 0.00409652991220355, 0.005290756467729807, -0.024836106225848198, -0.022438136860728264, -0.027747925370931625, 0.00245268433354795, 0.007208180148154497, 0.02304714545607567, 0.033952195197343826, 0.03357156366109848, 0.0022373904939740896, -0.011276163160800934, -0.013750257901847363, 0.0034423223696649075, -0.036959171295166016, -0.026206374168395996, 0.043886635452508926, 0.057322874665260315, 0.06093886122107506, 0.0432015024125576, 0.022057507187128067, -0.04978640004992485, -0.09919217228889465, -0.022266853600740433, 0.06577286124229431, -0.0069702863693237305, 0.0015962669858708978, -0.019754696637392044, 0.01833684928715229, 0.025768648833036423, 0.03505602106451988, -0.026758287101984024, 0.03680691868066788, -0.06394583731889725, 0.01946922391653061, 0.00270009390078485, 0.04986252635717392, 0.006589656695723534, 0.02664409764111042, -0.037606243044137955, 0.02729116939008236, -0.015301325358450413, 0.026587003841996193, -0.05678999423980713, -0.033533502370119095, 0.04529496654868126, 0.026282500475645065, 0.037035297602415085, -0.008816341869533062, 0.0012620262568816543, -0.0018662763759493828, -0.045751724392175674, -0.043544068932533264, -0.01019136793911457, -0.059187959879636765, -0.007488894741982222, 0.00472694868221879, -0.04563753306865692, 0.02207653783261776, -0.019364550709724426, -0.06558254361152649, -0.03831040859222412, -0.00149635155685246, -0.000048916899686446413, -0.017156897112727165, -0.004703158978372812, 0.0023492006585001945, 0.009582359343767166, -0.020972711965441704, 0.013978635892271996, -0.04350600764155388, -0.06310845166444778, -0.024303223937749863, -0.0061804791912436485, -0.0814548134803772, -0.010096210055053234, -0.007940893061459064, -0.0071986643597483635, -0.02182913012802601, 0.030850060284137726, 0.026606036350131035, 0.0749841034412384, 0.05614292249083519, -0.008954320102930069, 0.038595881313085556, 0.03787268325686455, 0.020173389464616776, 0.005338335409760475, -0.004665096290409565, -0.002076812321320176, 0.003915730863809586, 0.02908013015985489, -0.009791705757379532, -0.016157742589712143, -0.0025288104079663754, -0.05899764597415924, -0.06550642102956772, 0.04236411675810814, -0.08198769390583038, -0.00993444211781025, -0.0033186175860464573, -0.04335375502705574, 0.019925979897379875, -0.0163861196488142, -0.007236727513372898, -0.0031901549082249403, 0.03595050051808357, 0.03838653489947319, -0.006132900714874268, 0.01865086890757084, -0.05062378570437431, 0.04308731481432915, 0.017480431124567986, -0.019849853590130806, 0.026853444054722786, -0.05020509287714958, 0.04830194264650345, 0.03853878378868103, 0.04807356745004654, -0.021448498591780663, -0.02418903447687626, 0.03307674452662468, 0.05058572441339493, -0.0004766795609612018, -0.026377657428383827, -0.0060425009578466415, 0.004691264592111111, -0.012579821050167084, 0.0006173342699185014, -0.06535416841506958, 0.08122643828392029, -0.024950295686721802, -0.016252899542450905, 0.037111423909664154, 0.053250133991241455, -0.03233451768755913, 0.02436031773686409, -0.008492805995047092, 0.014321203343570232, 0.05271725356578827, -0.04255443066358566, -0.0412222258746624, -0.03977583348751068, -0.0032710388768464327, -0.02738632634282112, -0.023979688063263893, -0.030126862227916718, -0.08038905262947083, 0.002073243958875537, -0.04883482679724693, -0.02592090144753456, 0.02974623255431652, 0.018222659826278687, -0.027824051678180695, 0.051689550280570984, 0.019374065101146698, -0.015919849276542664, 0.023998720571398735, 0.07559311389923096, -0.017642199993133545, -0.007384221535176039, -0.00900189857929945, 0.019526317715644836, 0.025388019159436226, 0.02624443732202053, 0.023503901436924934, 0.05907377228140831, 0.017566073685884476, 0.05378301441669464, -0.011495024897158146, 0.024303223937749863, -0.00719390669837594, 0.0028785141184926033, -0.0279382411390543, 0.022114600986242294, 0.03543665260076523, 0.01947873830795288, -0.01414040382951498, 0.022990049794316292, 0.013683647848665714, -0.019849853590130806, -0.01866989955306053, -0.02673925645649433, 0.008916256949305534, -0.023599058389663696, -0.01128567848354578, -0.00038865889655426145, 0.005661870818585157, -0.026282500475645065, 0.009116088040173054, 0.013293501920998096, 0.02592090144753456, -0.007113022729754448, 0.0016688245814293623 ]
730,290
mmengine.fileio.io
copytree_from_local
Recursively copy an entire directory tree rooted at src to a directory named dst and return the destination directory. Note: If the backend is the instance of LocalBackend, it does the same thing with :func:`copytree`. Args: src (str or Path): A local directory to be copied. dst (str or Path): Copy directory to dst. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: str: The destination directory. Examples: >>> src = '/path/of/dir' >>> dst = 's3://openmmlab/mmengine/dir' >>> copyfile_from_local(src, dst) 's3://openmmlab/mmengine/dir'
def copytree_from_local( src: Union[str, Path], dst: Union[str, Path], backend_args: Optional[dict] = None, ) -> Union[str, Path]: """Recursively copy an entire directory tree rooted at src to a directory named dst and return the destination directory. Note: If the backend is the instance of LocalBackend, it does the same thing with :func:`copytree`. Args: src (str or Path): A local directory to be copied. dst (str or Path): Copy directory to dst. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: str: The destination directory. Examples: >>> src = '/path/of/dir' >>> dst = 's3://openmmlab/mmengine/dir' >>> copyfile_from_local(src, dst) 's3://openmmlab/mmengine/dir' """ backend = get_file_backend( dst, backend_args=backend_args, enable_singleton=True) return backend.copytree_from_local(src, dst)
(src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path], backend_args: Optional[dict] = None) -> Union[str, pathlib.Path]
[ -0.029071833938360214, 0.002927239518612623, -0.025538135319948196, -0.022672973573207855, -0.02015163190662861, -0.005138188600540161, 0.02725723199546337, 0.034840356558561325, 0.07273688912391663, -0.07590766996145248, -0.0057780747301876545, -0.0447729155421257, -0.032510027289390564, -0.001801470061764121, -0.04446730017662048, 0.02190893143415451, -0.017525235190987587, -0.0005897456430830061, 0.016092654317617416, 0.025328023359179497, -0.0059977369382977486, -0.037056080996990204, 0.11093903332948685, 0.06242230907082558, -0.02884262055158615, -0.04072348773479462, -0.011575250886380672, -0.015567375347018242, -0.03021789900958538, 0.008628910407423973, 0.06448522210121155, 0.020858371630311012, 0.025461731478571892, 0.003798726014792919, -0.022042639553546906, -0.022978590801358223, -0.008180034346878529, -0.009588738903403282, -0.07476159930229187, -0.11261992901563644, -0.024946002289652824, -0.035680804401636124, 0.056806594133377075, 0.05359761416912079, 0.091226726770401, -0.007248857524245977, 0.04763807728886604, -0.08244023472070694, 0.031134750694036484, -0.04397067055106163, 0.020934777334332466, 0.08931662142276764, -0.035260580480098724, 0.0074923960492014885, 0.008839021436870098, 0.03348418325185776, -0.0047108023427426815, -0.0404178723692894, -0.04618639498949051, 0.013848278671503067, 0.004266702104359865, 0.0003518775920383632, 0.0007497171172872186, 0.02771565690636635, -0.056004349142313004, -0.06257511675357819, -0.0676560029387474, -0.005534536205232143, -0.021125787869095802, 0.007129475940018892, -0.11223790794610977, 0.043474044650793076, 0.019750509411096573, 0.004548443015664816, -0.012215136550366879, 0.06280432641506195, 0.049395374953746796, -0.019444892182946205, -0.017802201211452484, 0.03136396408081055, -0.04053247720003128, -0.02962576597929001, -0.025939257815480232, -0.03191789239645004, -0.02502240613102913, -0.017047708854079247, -0.03927180916070938, -0.0059977369382977486, -0.006236500572413206, -0.022997692227363586, -0.005157290026545525, 0.024735890328884125, -0.007134250830858946, 0.017439279705286026, 0.015338161960244179, -0.03155497461557388, -0.0042117866687476635, 0.01912972517311573, -0.04973919689655304, 0.02089657448232174, -0.02825048752129078, 0.02618757262825966, -0.06524926424026489, -0.02295949123799801, 0.035585299134254456, 0.0028747115284204483, 0.006398859433829784, 0.003509822301566601, 0.05134368687868118, -0.008509527891874313, 0.01555782463401556, -0.017763998359441757, 0.029301047325134277, 0.009622165933251381, 0.003958697430789471, 0.012893225066363811, -0.00863846018910408, -0.032299917191267014, -0.029702169820666313, -0.022615671157836914, -0.004956728778779507, 0.022558368742465973, 0.019960621371865273, -0.040341466665267944, 0.03671226277947426, -0.00986570492386818, 0.09879074990749359, -0.046224597841501236, -0.07674811035394669, -0.014039289206266403, 0.005744647700339556, 0.01574883610010147, -0.02677970565855503, 0.06444702297449112, 0.07071217149496078, 0.000006202252734510694, -0.00043574324809014797, 0.015806138515472412, -0.01100221835076809, 0.014688725583255291, 0.07330992072820663, -0.046797629445791245, 0.002197817200794816, 0.022883085533976555, 0.01715276390314102, -0.027963971719145775, -0.03445833548903465, -0.020915675908327103, 0.01534771267324686, 0.04492572695016861, -0.010515141300857067, 0.002256314270198345, -0.021813426166772842, 0.08694808930158615, -0.04007405415177345, -0.02725723199546337, -0.03300665691494942, 0.0037772373761981726, 0.052833568304777145, 0.012969628907740116, -0.08541999757289886, -0.01844208687543869, 0.0670829713344574, -0.04878414049744606, 0.02889992482960224, 0.014507265761494637, 0.00809885561466217, -0.03384710103273392, -0.08106495440006256, -0.006131444592028856, -0.011976373381912708, -0.005023582372814417, -0.005539311561733484, -0.015080297365784645, -0.02206173911690712, -0.052298739552497864, 0.030676323920488358, 0.02110668644309044, -0.023952746763825417, -0.033465079963207245, 0.05233694240450859, 0.016398271545767784, 0.03734260052442551, 0.0016223974525928497, 0.00739689078181982, 0.0016868636012077332, -0.013456705957651138, 0.0383167527616024, 0.03401901200413704, 0.017582537606358528, 0.027371838688850403, 0.01724826917052269, -0.02609206736087799, -0.028193185105919838, 0.016369620338082314, -0.022577468305826187, 0.045689769089221954, -0.04496392607688904, -0.005295772571116686, 0.08221101760864258, 0.0005285625229589641, -0.029912281781435013, 0.06368298083543777, -0.004281028173863888, -0.008657561615109444, 0.011355588212609291, -0.051993124186992645, 0.08053012937307358, -0.025805549696087837, 0.0044839768670499325, -0.01605445146560669, 0.01877635531127453, 0.015834789723157883, -0.01862354762852192, -0.01168985664844513, -0.0035551872570067644, -0.06929869204759598, 0.058487486094236374, 0.016551081091165543, 0.017229167744517326, 0.00673312833532691, -0.005023582372814417, -0.017983660101890564, -0.01602580025792122, -0.013046033680438995, -0.08213461935520172, -0.015385914593935013, 0.012835921719670296, 0.058029063045978546, -0.03969202935695648, 0.03281564265489578, -0.054896485060453415, 0.022558368742465973, -0.05539311468601227, 0.027161726728081703, -0.02804037556052208, 0.05741782858967781, -0.05753243342041969, 0.011642104014754295, -0.001055931206792593, -0.02498420514166355, -0.024754991754889488, 0.029129138216376305, 0.02958756312727928, 0.001594939618371427, -0.024754991754889488, 0.00230884226039052, -0.04614819213747978, 0.06486724317073822, 0.01479378156363964, -0.07117059826850891, 0.06532566994428635, -0.08106495440006256, 0.027849365025758743, 0.03487855941057205, 0.014583669602870941, 0.01646512560546398, -0.0035217604599893093, -0.024105554446578026, 0.038966190069913864, -0.0035695130936801434, -0.06650993973016739, 0.022042639553546906, -0.029014531522989273, -0.0395774245262146, -0.03021789900958538, -0.03453474119305611, -0.02385724149644375, 0.03380890190601349, 0.003490721108391881, 0.07418856769800186, -0.008490427397191525, 0.04641560837626457, 0.025595437735319138, 0.04989200457930565, -0.032357219606637955, -0.07350093126296997, 0.0628807321190834, 0.041716743260622025, 0.010257276706397533, -0.025576338171958923, -0.02477409318089485, -0.07216385751962662, -0.08671887218952179, -0.018795456737279892, 0.006589870434254408, -0.008648010902106762, -0.06211668998003006, 0.003860804485157132, -0.0331212617456913, 0.02164151705801487, -0.009884805418550968, -0.03566170483827591, -0.025175215676426888, -0.0011848635040223598, -0.055163901299238205, -0.017611190676689148, -0.014937039464712143, 0.015939846634864807, 0.04332123324275017, -0.04931897297501564, 0.003932433668524027, 0.009517109952867031, 0.0537504218518734, 0.0190151184797287, -0.02867071144282818, 0.04358864948153496, -0.02471678890287876, -0.0408380962908268, 0.00517161563038826, -0.0343819335103035, -0.05566052719950676, -0.001374083454720676, -0.05031222850084305, -0.011613452807068825, 0.016656136140227318, 0.007229756563901901, -0.022711176425218582, 0.004622459877282381, -0.03820214793086052, -0.049127962440252304, 0.0456133633852005, -0.04821110889315605, 0.06628072261810303, -0.024353869259357452, -0.001671343925409019, 0.04725605621933937, 0.06819083541631699, 0.0743795782327652, -0.010467388667166233, -0.011623003520071507, 0.018270177766680717, 0.011489295400679111, 0.0074923960492014885, 0.03333137184381485, 0.01984601467847824, -0.015261758118867874, -0.03927180916070938, -0.011298284865915775, -0.030657222494482994, 0.10123568773269653, -0.018910063430666924, 0.05363581329584122, -0.025843752548098564, 0.032299917191267014, 0.06257511675357819, 0.010820758529007435, -0.00562049075961113, 0.06677735596895218, 0.03931000828742981, -0.006303354166448116, 0.04148753359913826, -0.010142670013010502, -0.010677499696612358, -0.028651610016822815, 0.04015045613050461, 0.04133472219109535, 0.012387046590447426, 0.033407777547836304, -0.03180328756570816, 0.04977739602327347, 0.0096126152202487, -0.012635360471904278, -0.047217853367328644, 0.0005563187878578901, -0.023933645337820053, 0.009149414487183094, -0.0268752109259367, -0.028002174571156502, 0.0060502649284899235, 0.015299960039556026, -0.0034453561529517174, 0.06677735596895218, -0.019826915115118027, -0.005376952234655619, -0.00022772060765419155, 0.006618522107601166, -0.052413344383239746, 0.0018313154578208923, 0.036960575729608536, 0.041296519339084625, -0.010190422646701336, 0.013007830828428268, 0.013046033680438995, 0.041831351816654205, 0.015729734674096107, 0.0658223032951355, -0.0052575706504285336, -0.033140361309051514, -0.04026506468653679, -0.027390940114855766, -0.012186485342681408, 0.07315710932016373, 0.034210022538900375, -0.030065089464187622, -0.04985380172729492, 0.028689812868833542, -0.010381433181464672, -0.01513760071247816, 0.0006124281790107489, 0.010534241795539856, -0.004085242282599211, -0.01849938929080963, -0.009674693457782269, -0.05466727167367935, 0.030122393742203712, 0.05069424957036972, 0.01325614470988512, 0.008982280269265175, 0.04660661891102791, 0.02343701757490635, 0.00826598983258009, -0.012864572927355766, 0.03390440717339516, -0.018996017053723335, 0.011546598747372627, 0.010858960449695587, -0.055736932903528214, 0.019330287352204323, -0.02286398597061634, -0.019826915115118027, -0.023666230961680412, 0.004452937748283148, -0.05436165630817413, 0.07036835700273514, -0.04507853463292122, -0.022138144820928574, -0.004875549115240574, -0.03487855941057205, 0.04370325803756714, -0.009521884843707085, -0.012597157619893551, 0.05883130803704262, 0.005768524017184973, 0.054323453456163406, 0.04400887340307236, 0.03027520142495632, 0.006207848899066448, 0.012558955699205399, 0.026168471202254295, -0.04874594137072563, -0.06551668047904968, 0.03501226752996445, -0.03287294879555702, -0.09710986167192459, -0.026168471202254295, -0.07208745181560516, -0.028441498056054115, -0.03443923592567444, 0.04630100354552269, -0.021737022325396538, 0.0059499843046069145, 0.010171322152018547, 0.0028651610482484102, -0.04641560837626457, -0.03741900250315666, -0.01748703233897686, -0.011021319776773453, 0.011527498252689838, 0.018547141924500465, 0.03455384075641632, -0.02265387400984764, 0.1651860773563385, -0.0033211992122232914, 0.04206056520342827, 0.03159317746758461, 0.07659530639648438, -0.0009837052784860134, -0.0447729155421257, -0.0460335873067379, 0.035432491451501846, 0.010858960449695587, -0.023952746763825417, 0.043053820729255676, 0.07281329482793808, -0.028193185105919838, -0.07449419051408768, -0.05703580752015114, -0.05577513575553894, -0.023303309455513954, -0.010276377201080322, 0.010295478627085686, 0.08114136010408401, 0.01650332845747471, -0.046644821763038635, -0.05390322953462601, 0.04618639498949051, 0.05577513575553894, 0.016369620338082314, 0.0258246511220932, -0.02995048277080059, 0.03768641874194145, -0.020972978323698044, -0.05569873005151749, -0.06406500190496445, 0.020304441452026367, -0.04454370215535164, 0.026111166924238205, -0.03673136606812477, -0.013007830828428268, 0.010257276706397533, 0.005844928324222565, -0.026684200391173363, 0.012415697798132896, -0.04989200457930565, 0.029281945899128914, 0.009827502071857452, 0.021775223314762115, 0.008275540545582771, 0.056959401816129684, -0.0187381524592638, -0.0029988684691488743, -0.0264549870043993, -0.00950755923986435, 0.035699907690286636, 0.04821110889315605, -0.013007830828428268, 0.02549993246793747, -0.008881999179720879, -0.047752685844898224, -0.03571900725364685, -0.016512878239154816, 0.07063577324151993, -0.001868323772214353, -0.011527498252689838, 0.04798189550638199, 0.016044901683926582, 0.08748291432857513, -0.013934233225882053, 0.033044856041669846, 0.001206949120387435, 0.02223365008831024, 0.00007147980068111792, 0.02867071144282818, 0.03604372590780258, 0.038603268563747406, 0.014860635623335838, -0.02947295643389225, 0.005577513482421637, -0.046797629445791245, -0.026703301817178726, 0.0002920374972745776, 0.012348843738436699, 0.00711514987051487, 0.01841343566775322, -0.043359436094760895, -0.0033259743358939886, 0.05271896347403526, 0.004381308797746897, -0.014621871523559093, -0.014001087285578251, -0.04133472219109535, -0.007874418050050735, 0.07380654662847519, 0.0097893001511693, -0.0018910062499344349, -0.006203073542565107, 0.01235839445143938, 0.0035695130936801434, 0.006136219948530197, -0.0008553699590265751, 0.01793590746819973, -0.0031731659546494484, 0.05569873005151749, 0.030924638733267784, -0.026684200391173363, 0.01668478734791279, 0.006207848899066448, 0.0007909038104116917, -0.04419988393783569, 0.02893812581896782, -0.025328023359179497, -0.025996562093496323, -0.003865579841658473, 0.006585095077753067, 0.00572554673999548, -0.018671300262212753, -0.02068646252155304, -0.009096886031329632, 0.021928032860159874, -0.01089716237038374, 0.017391527071595192, 0.043626852333545685, 0.0464538112282753, -0.01706680841743946, -0.013666817918419838, 0.010983116924762726, -0.004104343242943287, -0.06440882384777069, -0.008557280525565147, 0.03560440242290497, 0.02962576597929001, 0.05623356252908707, 0.04068528860807419, 0.017286472022533417, -0.0910739153623581, -0.07258407771587372, -0.028957227244973183, 0.05042683333158493, -0.007339587435126305, -0.007100824266672134, -0.026283077895641327, -0.009951659478247166, 0.02005612663924694, 0.018308378756046295, -0.049662791192531586, 0.01113592553883791, -0.051038067787885666, 0.017744896933436394, 0.012587607838213444, 0.02498420514166355, -0.005524985492229462, -0.002733841072767973, -0.008447449654340744, 0.07502901554107666, -0.02206173911690712, 0.04030326381325722, -0.03455384075641632, 0.015070746652781963, 0.06016838178038597, 0.016990404576063156, 0.026378583163022995, -0.027601052075624466, 0.020781967788934708, 0.0033641764894127846, -0.036750465631484985, -0.02286398597061634, -0.02899543009698391, -0.04630100354552269, 0.028116781264543533, -0.01876680552959442, -0.03892798721790314, 0.005496333818882704, 0.01002806331962347, -0.026550492271780968, -0.05867849662899971, -0.01145109347999096, -0.012902774848043919, -0.0009610227425582707, -0.008796044625341892, -0.03919540345668793, 0.007435092702507973, -0.01907242275774479, -0.0070005436427891254, -0.04790549352765083, -0.07575485855340958, 0.00423088762909174, -0.02337971329689026, -0.03445833548903465, 0.003918107599020004, -0.02567184343934059, -0.007349138148128986, -0.00968424417078495, 0.04274820163846016, 0.025461731478571892, 0.07770317047834396, 0.0627279281616211, -0.018069615587592125, 0.03772462159395218, 0.026760604232549667, -0.006279477849602699, 0.0017274533165618777, 0.022310053929686546, 0.023035895079374313, 0.02370443195104599, 0.030943740159273148, 0.008862897753715515, -0.004593808203935623, 0.012110080569982529, -0.06265152245759964, -0.06941330432891846, 0.03518417850136757, -0.05974815785884857, -0.00905868411064148, -0.014325805008411407, -0.024487575516104698, 0.04099090397357941, -0.02507971040904522, -0.015433667227625847, 0.005501109175384045, 0.02211904339492321, 0.06670095026493073, -0.008428349159657955, 0.045957181602716446, -0.022520165890455246, 0.040456075221300125, 0.01619771122932434, -0.023933645337820053, 0.051725707948207855, -0.019263433292508125, 0.05596614629030228, 0.04504033178091049, 0.07308071106672287, -0.013284796848893166, -0.04133472219109535, 0.03547069430351257, 0.038813382387161255, -0.026970716193318367, -0.037896528840065, 0.011603902094066143, 0.03010329231619835, 0.01167075615376234, -0.0027601050678640604, -0.08587842434644699, 0.06402679532766342, -0.03667405992746353, -0.004285803530365229, 0.02836509421467781, 0.03512687608599663, -0.03715158998966217, 0.02905273251235485, -0.013494908809661865, 0.01637917011976242, 0.025480832904577255, -0.004429061431437731, 0.00976064894348383, -0.02206173911690712, -0.02911003679037094, -0.02259656973183155, -0.01446906290948391, -0.029377451166510582, -0.10643117874860764, 0.0017035769997164607, -0.04572797194123268, -0.012272439897060394, 0.0074446434155106544, 0.005453356541693211, -0.03218530863523483, 0.010400534607470036, 0.029835877940058708, -0.017391527071595192, 0.025098809972405434, 0.053521208465099335, -0.0028365093749016523, -0.0038679675199091434, -0.019884217530488968, 0.01637917011976242, 0.04011225327849388, -0.003774849697947502, 0.0464538112282753, 0.03233811631798744, 0.00446726381778717, 0.029969584196805954, 0.005338749848306179, 0.004708414431661367, -0.0015603189822286367, -0.001609265455044806, -0.029816776514053345, -0.001782368985004723, 0.045422352850437164, 0.027429141104221344, -0.020648259669542313, 0.03652125224471092, -0.012367945164442062, -0.024621283635497093, -0.025270720943808556, -0.02958756312727928, 0.007430317811667919, -0.024888698011636734, -0.004791982006281614, -0.007669080980122089, -0.016971303150057793, -0.003204205073416233, 0.02005612663924694, -0.00989435613155365, 0.027066221460700035, -0.019206129014492035, 0.004775268491357565 ]
730,291
mmengine.fileio.io
copytree_to_local
Recursively copy an entire directory tree rooted at src to a local directory named dst and return the destination directory. Note: If the backend is the instance of LocalBackend, it does the same thing with :func:`copytree`. 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 corresponding backend. Defaults to None. Returns: str: The destination directory. Examples: >>> src = 's3://openmmlab/mmengine/dir' >>> dst = '/path/of/dir' >>> copytree_to_local(src, dst) '/path/of/dir'
def copytree_to_local( src: Union[str, Path], dst: Union[str, Path], backend_args: Optional[dict] = None, ) -> Union[str, Path]: """Recursively copy an entire directory tree rooted at src to a local directory named dst and return the destination directory. Note: If the backend is the instance of LocalBackend, it does the same thing with :func:`copytree`. 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 corresponding backend. Defaults to None. Returns: str: The destination directory. Examples: >>> src = 's3://openmmlab/mmengine/dir' >>> dst = '/path/of/dir' >>> copytree_to_local(src, dst) '/path/of/dir' """ backend = get_file_backend( dst, backend_args=backend_args, enable_singleton=True) return backend.copytree_to_local(src, dst)
(src: Union[str, pathlib.Path], dst: Union[str, pathlib.Path], backend_args: Optional[dict] = None) -> Union[str, pathlib.Path]
[ -0.03889044001698494, -0.004102903883904219, -0.0219135582447052, -0.016015928238630295, -0.019765539094805717, 0.013707749545574188, 0.031391218304634094, 0.03493356332182884, 0.07506759464740753, -0.0785345733165741, 0.006561819929629564, -0.050045061856508255, -0.046050503849983215, -0.009604846127331257, -0.044769227504730225, 0.023364411666989326, -0.016298562288284302, 0.000033378782973159105, 0.025060215964913368, 0.03732653334736824, -0.009152631275355816, -0.02956351824104786, 0.10664723813533783, 0.038362856954336166, -0.039907924830913544, -0.04978127032518387, -0.0030712897423654795, -0.014018647372722626, -0.02673717774450779, 0.024570317938923836, 0.06413908302783966, 0.01748562417924404, 0.021404815837740898, -0.013858487829566002, -0.019803224131464958, -0.014649863354861736, -0.0107495142146945, -0.00895007699728012, -0.06526961922645569, -0.12654466927051544, -0.035065460950136185, -0.04145298898220062, 0.05558469146490097, 0.04857536777853966, 0.08690053969621658, -0.011211149394512177, 0.049705903977155685, -0.07668802887201309, 0.035894520580768585, -0.052042342722415924, 0.016025349497795105, 0.10084381699562073, -0.02509790100157261, 0.011060411110520363, 0.004856594372540712, 0.02962004579603672, 0.0024141655303537846, -0.05189160630106926, -0.0525699257850647, 0.00761227635666728, 0.016006506979465485, 0.010655302554368973, -0.007956147193908691, 0.03284207358956337, -0.05758196860551834, -0.06873659044504166, -0.06658857315778732, -0.010985041968524456, -0.023854311555624008, 0.016722513362765312, -0.12239937484264374, 0.01982206478714943, 0.013688907958567142, 0.008446046151220798, -0.0033445025328546762, 0.0872773826122284, 0.05799650028347969, -0.02587043307721615, -0.012756215408444405, 0.04375174641609192, -0.04186752066016197, -0.022497666999697685, -0.03174922242760658, -0.007772435434162617, -0.01415996439754963, -0.02187587320804596, -0.0390411801636219, -0.00020814817980863154, -0.01156915258616209, -0.010542248375713825, -0.021291762590408325, 0.022177349776029587, 0.012077894061803818, 0.017155885696411133, 0.02798076719045639, -0.0165717750787735, 0.00708469282835722, 0.02112218178808689, -0.04782167449593544, 0.021367130801081657, -0.015328184701502323, 0.044053222984075546, -0.052871402353048325, -0.024476105347275734, 0.03521619737148285, -0.021216394379734993, 0.0018488975474610925, 0.004573960322886705, 0.05517015978693962, -0.0026049434673041105, 0.013396852649748325, -0.020556913688778877, 0.0239862073212862, 0.011880049481987953, 0.005709207151085138, 0.009816821664571762, -0.025305164977908134, -0.019953962415456772, -0.023383254185318947, -0.016072453930974007, -0.003068934427574277, 0.03152311220765114, 0.02229040302336216, -0.04126456752419472, 0.03404797613620758, -0.005186334252357483, 0.10589354485273361, -0.028922881931066513, -0.06715384125709534, -0.03336965665221214, -0.0023788362741470337, 0.006359265185892582, -0.042998056858778, 0.0697917565703392, 0.07442695647478104, -0.0019254442304372787, -0.0043761166743934155, 0.006623057182878256, 0.001782949548214674, 0.0006636010948568583, 0.052080027759075165, -0.05155244469642639, -0.0010392687981948256, 0.016797881573438644, 0.01953943260014057, -0.021630924195051193, -0.035103145986795425, -0.01497960276901722, 0.013905593194067478, 0.029375094920396805, -0.009986401535570621, -0.00017487979494035244, -0.02392967976629734, 0.07193978130817413, -0.04017171636223793, -0.0007690000347793102, -0.030317209661006927, -0.0060012624599039555, 0.05430341511964798, 0.022516509518027306, -0.07423853129148483, -0.02594580315053463, 0.05999378114938736, -0.04755788296461105, 0.034274086356163025, 0.012275737710297108, 0.0019560628570616245, -0.020462702959775925, -0.07755477726459503, -0.004406735301017761, -0.007296668365597725, -0.014291860163211823, -0.010042929090559483, -0.010127718560397625, -0.01820163056254387, -0.05117559805512428, 0.03271017596125603, 0.02074533700942993, -0.034311771392822266, -0.01669424958527088, 0.05196697264909744, 0.016373930498957634, 0.032295648008584976, 0.010636460036039352, 0.004248931538313627, -0.011239413172006607, -0.014103437773883343, 0.05347435548901558, 0.017202990129590034, 0.021668607369065285, 0.02954467572271824, 0.0036648211535066366, -0.017674047499895096, -0.020783022046089172, 0.009769716300070286, -0.013867909088730812, 0.04706798493862152, -0.05347435548901558, -0.00577044440433383, 0.08509168028831482, 0.0018500752048566937, -0.03289860114455223, 0.08592074364423752, -0.0011599770514294505, 0.0010810751700773835, 0.0006771439802832901, -0.04895221069455147, 0.07529370486736298, -0.028922881931066513, 0.0037825852632522583, -0.009797979146242142, 0.021706292405724525, 0.010853146202862263, -0.01699572615325451, -0.018474843353033066, -0.008620337583124638, -0.06078515574336052, 0.05686596408486366, 0.01621377095580101, 0.03193764388561249, -0.00456218421459198, -0.024155788123607635, -0.01236994843930006, -0.0006677228375338018, -0.013387431390583515, -0.0724673643708229, -0.009779136627912521, 0.00914792064577341, 0.06153884530067444, -0.04812315106391907, 0.03555535897612572, -0.047633253037929535, 0.017984945327043533, -0.04947979375720024, 0.0325029119849205, -0.03770337626338005, 0.06044599413871765, -0.05268298089504242, 0.006769084837287664, -0.0008320038905367255, -0.019266217947006226, -0.02954467572271824, 0.03399145230650902, 0.03612062707543373, 0.0040746405720710754, -0.021310605108737946, 0.003259712364524603, -0.05015811696648598, 0.060935892164707184, 0.006594793871045113, -0.07069618999958038, 0.06511887907981873, -0.07254273444414139, 0.02345862425863743, 0.03442482277750969, 0.006076631136238575, 0.028527192771434784, -0.004387893248349428, -0.028074979782104492, 0.03798601031303406, -0.013585275039076805, -0.0674930065870285, 0.03926728665828705, -0.02229040302336216, -0.03938033804297447, -0.032992810010910034, -0.03497124835848808, -0.03118395246565342, 0.03851359710097313, 0.004599868785589933, 0.06786984950304031, -0.005671522580087185, 0.05317287892103195, 0.02588927559554577, 0.04853768274188042, -0.03320007398724556, -0.07276883721351624, 0.07582128793001175, 0.04691724851727486, 0.012209789827466011, -0.015733294188976288, -0.026247279718518257, -0.0770648717880249, -0.0868251696228981, -0.018531370908021927, -0.0010651769116520882, -0.010410352610051632, -0.05878787487745285, -0.0024235867895185947, -0.037062741816043854, 0.020500387996435165, 0.00555375823751092, -0.04537218064069748, -0.02963888645172119, 0.0027132865507155657, -0.04164141044020653, -0.02513558603823185, -0.014866549521684647, 0.026040013879537582, 0.041076142340898514, -0.036667052656412125, 0.008658021688461304, 0.007739461492747068, 0.053323619067668915, 0.022912196815013885, -0.0075463284738361835, 0.035084303468465805, -0.02345862425863743, -0.055697742849588394, 0.01741025596857071, -0.03725116327404976, -0.056564487516880035, -0.015139762312173843, -0.052909087389707565, -0.008394230157136917, 0.01993511989712715, 0.006396949756890535, -0.036610525101423264, -0.013330904766917229, -0.0477839894592762, -0.04657808691263199, 0.033030495047569275, -0.037910643965005875, 0.06587256491184235, -0.013641801662743092, -0.015733294188976288, 0.0494421124458313, 0.06312159448862076, 0.07495453953742981, -0.012652582488954067, -0.021329447627067566, 0.004734119866043329, 0.01704283058643341, -0.003992205485701561, 0.031033214181661606, 0.031146269291639328, -0.0222338754683733, -0.052080027759075165, -0.007607565727084875, -0.014056331478059292, 0.09074436128139496, -0.004960226826369762, 0.04740714654326439, -0.0048471735790371895, 0.0291866734623909, 0.07141219824552536, 0.006674873176962137, -0.012982322834432125, 0.05795881524682045, 0.05015811696648598, -0.00009700824011815712, 0.03736421838402748, -0.022987566888332367, -0.01953943260014057, -0.01742909848690033, 0.034632086753845215, 0.038739703595638275, -0.011889470741152763, 0.0380236953496933, -0.0469549298286438, 0.04951747879385948, -0.007004613056778908, -0.009336343966424465, -0.04013403132557869, 0.015064393170177937, -0.027735818177461624, 0.015554292127490044, -0.027735818177461624, -0.028301086276769638, 0.0072731152176856995, 0.0165717750787735, -0.007470959331840277, 0.06010683253407478, -0.02112218178808689, -0.018974164500832558, 0.008921814151108265, 0.002380013931542635, -0.04149067401885986, -0.01030672062188387, 0.033821869641542435, 0.05162781476974487, -0.030317209661006927, 0.009025446139276028, 0.007946726866066456, 0.04537218064069748, 0.0015238684136420488, 0.07397474348545074, -0.0039498102851212025, -0.024871792644262314, -0.04005866125226021, -0.01909663900732994, -0.01218152604997158, 0.06006915122270584, 0.013886751607060432, -0.02715170755982399, -0.04390248283743858, 0.02994036301970482, -0.009048999287188053, -0.01456507295370102, -0.004199470393359661, 0.0038791517727077007, -0.0073579056188464165, -0.007734750863164663, -0.009317501448094845, -0.04608818516135216, 0.036742422729730606, 0.04130225256085396, 0.012812742032110691, 0.010448037646710873, 0.046050503849983215, 0.00895007699728012, -0.0004993201000615954, -0.005826971493661404, 0.014273017644882202, 0.00033150616218335927, -0.0020443859975785017, 0.018154524266719818, -0.03414218872785568, -0.0005181623855605721, -0.026529913768172264, -0.016797881573438644, -0.02311946265399456, 0.010561090894043446, -0.04333721473813057, 0.06843511760234833, -0.0486130490899086, -0.007122377399355173, -0.014338965527713299, -0.0190589539706707, 0.05769502371549606, -0.00740501144900918, -0.016892092302441597, 0.05991841107606888, 0.020425017923116684, 0.044015537947416306, 0.05279603600502014, 0.03770337626338005, 0.01218152604997158, 0.005638548638671637, 0.030505631119012833, -0.03284207358956337, -0.06127505376935005, 0.0219135582447052, -0.031391218304634094, -0.0909704715013504, -0.008389519527554512, -0.07691413909196854, -0.029318569228053093, -0.02185703068971634, 0.058222606778144836, -0.015262236818671227, 0.015092656947672367, 0.012548950500786304, -0.003916836343705654, -0.034632086753845215, -0.04092540591955185, -0.018314683809876442, -0.018512528389692307, 0.007287247106432915, 0.02801845222711563, 0.027698133140802383, -0.021404815837740898, 0.15465733408927917, -0.008224650286138058, 0.04145298898220062, 0.010146561078727245, 0.08365967124700546, -0.006524135358631611, -0.04503301903605461, -0.05875018984079361, 0.04533449560403824, 0.002189235994592309, -0.016835566610097885, 0.03453787788748741, 0.06952796876430511, -0.01783420704305172, -0.08237839490175247, -0.057355862110853195, -0.06033294275403023, -0.023402096703648567, -0.02311946265399456, 0.00477887038141489, 0.09737683832645416, 0.01741967722773552, -0.054868683218955994, -0.05392657220363617, 0.041980572044849396, 0.049705903977155685, 0.028150347992777824, 0.017155885696411133, -0.033049337565898895, 0.022459983825683594, -0.016920356079936028, -0.056526802480220795, -0.06293317675590515, 0.023307885974645615, -0.05302214249968529, 0.004072285257279873, -0.049216002225875854, -0.012501844204962254, -0.0027721687220036983, 0.015686187893152237, -0.012313421815633774, 0.010551669634878635, -0.042018257081508636, 0.018814004957675934, 0.007211877964437008, 0.026624124497175217, -0.0012753859627991915, 0.06504350900650024, -0.011851786635816097, -0.0024494947865605354, -0.024890635162591934, -0.014414334669709206, 0.023270200937986374, 0.04292268678545952, -0.00095153454458341, 0.023684730753302574, 0.0031655009370297194, -0.0542280450463295, -0.04092540591955185, -0.008398940786719322, 0.05426573008298874, -0.011927155777812004, 0.01011829823255539, 0.03205069899559021, 0.01942637749016285, 0.07646192610263824, -0.015478922985494137, 0.02031196467578411, 0.0028993538580834866, 0.02880982682108879, 0.003212606767192483, 0.020406175404787064, 0.03352039307355881, 0.04043550789356232, 0.020990286022424698, -0.02359052002429962, 0.005388888530433178, -0.050911806523799896, -0.021216394379734993, -0.009647240862250328, -0.0002714464208111167, 0.012548950500786304, 0.018908215686678886, -0.03568725660443306, -0.013048270717263222, 0.054906368255615234, -0.0013001164188608527, 0.002018478000536561, -0.010466880165040493, -0.033463869243860245, -0.012360528111457825, 0.08109711855649948, 0.006345133762806654, 0.009901612065732479, -0.003033605171367526, 0.021009128540754318, 0.0023988562170416117, 0.009077262133359909, 0.0034858195576816797, 0.013952699489891529, -0.010448037646710873, 0.05528321489691734, 0.03497124835848808, -0.045975133776664734, 0.007828962057828903, 0.02592696063220501, 0.00789490994066, -0.04654040187597275, 0.03777874633669853, -0.007023455109447241, -0.032992810010910034, -0.0029488150030374527, -0.004018113482743502, -0.014009226113557816, -0.015045550651848316, -0.025813907384872437, -0.015281079337000847, 0.017739994451403618, 0.0008131616050377488, 0.019972803071141243, 0.030505631119012833, 0.05385120213031769, -0.010410352610051632, -0.011842365376651287, 0.020425017923116684, 0.005153360310941935, -0.06244327500462532, -0.025682011619210243, 0.03815559297800064, 0.03777874633669853, 0.06052136421203613, 0.03615831211209297, 0.03357692062854767, -0.07951436936855316, -0.07646192610263824, -0.029073618352413177, 0.05841102823615074, -0.01903069019317627, -0.01578039862215519, -0.021235235035419464, -0.008356546051800251, 0.01702398806810379, 0.029469307512044907, -0.0639883428812027, 0.013415694236755371, -0.0542280450463295, 0.020406175404787064, 0.008050358854234219, 0.04378943145275116, -0.007616986520588398, 0.004357274621725082, -0.024532632902264595, 0.05599921941757202, -0.029412779957056046, 0.028677931055426598, -0.03610178455710411, 0.003033605171367526, 0.055697742849588394, 0.030675211921334267, 0.023232515901327133, -0.02114102430641651, 0.013293219730257988, 0.013387431390583515, -0.03557420149445534, -0.014696968719363213, -0.035724937915802, -0.042018257081508636, -0.0025460615288466215, -0.015968821942806244, -0.04635198041796684, 0.00832828227430582, -0.005888208746910095, -0.03841938450932503, -0.0527583509683609, -0.007946726866066456, -0.00576102314516902, -0.01948290504515171, -0.011710469610989094, -0.03210722282528877, 0.021159866824746132, -0.02068880945444107, -0.02268609032034874, -0.04066161438822746, -0.07763013988733292, -0.006769084837287664, -0.01217210479080677, -0.046050503849983215, -0.003276199335232377, -0.02679370529949665, 0.00035123166162520647, -0.004632842727005482, 0.05528321489691734, 0.02833877131342888, 0.0826798677444458, 0.039116546511650085, -0.0279430840164423, 0.04495765268802643, 0.026906758546829224, -0.0058222608640789986, 0.008766365237534046, 0.015742715448141098, 0.019784381613135338, 0.032634809613227844, 0.02396736480295658, 0.013387431390583515, -0.025437060743570328, 0.013151902705430984, -0.055810797959566116, -0.07732866704463959, 0.033087022602558136, -0.06082284078001976, -0.00850257370620966, -0.018324105069041252, -0.02999689057469368, 0.0525699257850647, -0.023439781740307808, -0.02359052002429962, 0.012831584550440311, 0.02792424149811268, 0.05471794679760933, -0.003667176468297839, 0.05298445746302605, -0.03766569495201111, 0.04831157624721527, 0.003657755209133029, -0.014075173996388912, 0.05912703648209572, -0.01708051562309265, 0.06304622441530228, 0.04092540591955185, 0.07031933963298798, -0.012040209025144577, -0.031485430896282196, 0.032597124576568604, 0.039116546511650085, -0.017937839031219482, -0.033859554678201675, 0.00018135682330466807, 0.03201301395893097, 0.006199106108397245, -0.012765636667609215, -0.0893123522400856, 0.06530729681253433, -0.031410060822963715, -0.01010887697339058, 0.026529913768172264, 0.03206954151391983, -0.039568763226270676, 0.01989743486046791, -0.030486788600683212, 0.009911032393574715, 0.024909477680921555, -0.002567258896306157, 0.0008290598052553833, -0.030166471377015114, -0.018333526328206062, -0.016081875190138817, -0.006882138084620237, -0.017325464636087418, -0.09458818286657333, -0.0020785375963896513, -0.04009634628891945, -0.013858487829566002, 0.008135149255394936, -0.007098824251443148, -0.03080710768699646, 0.015657924115657806, 0.02549358829855919, -0.019219113513827324, 0.03312470763921738, 0.06734226644039154, -0.011710469610989094, 0.0008231715764850378, -0.014320123940706253, 0.01736314967274666, 0.042395103722810745, -0.013773697428405285, 0.035046618431806564, 0.05354972556233406, -0.0013719525886699557, 0.03193764388561249, 0.0017134686931967735, 0.014875970780849457, 0.0007966746343299747, -0.01052340678870678, -0.02720823511481285, 0.007781856693327427, 0.03685547411441803, 0.036685895174741745, -0.021216394379734993, 0.0365540012717247, -0.013726592063903809, -0.010495143011212349, -0.010542248375713825, -0.028282243758440018, 0.02021775394678116, -0.032615967094898224, -0.006623057182878256, -0.0113713089376688, -0.022799143567681313, -0.011861207894980907, 0.020556913688778877, -0.0034363586455583572, 0.029733099043369293, -0.017221832647919655, 0.014819443225860596 ]
730,292
mmengine.registry.utils
count_registered_modules
Scan all modules in MMEngine's root and child registries and dump to json. Args: save_path (str, optional): Path to save the json file. verbose (bool): Whether to print log. Defaults to True. Returns: dict: Statistic results of all registered modules.
def count_registered_modules(save_path: Optional[str] = None, verbose: bool = True) -> dict: """Scan all modules in MMEngine's root and child registries and dump to json. Args: save_path (str, optional): Path to save the json file. verbose (bool): Whether to print log. Defaults to True. Returns: dict: Statistic results of all registered modules. """ # import modules to trigger registering import mmengine.dataset import mmengine.evaluator import mmengine.hooks import mmengine.model import mmengine.optim import mmengine.runner import mmengine.visualization # noqa: F401 registries_info = {} # traverse all registries in MMEngine for item in dir(root): if not item.startswith('__'): registry = getattr(root, item) if isinstance(registry, Registry): registries_info[item] = traverse_registry_tree( registry, verbose) scan_data = dict( scan_date=datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'), registries=registries_info) if verbose: print_log( f'Finish registry analysis, got: {scan_data}', logger='current') if save_path is not None: json_path = osp.join(save_path, 'modules_statistic_results.json') dump(scan_data, json_path, indent=2) print_log(f'Result has been saved to {json_path}', logger='current') return scan_data
(save_path: Optional[str] = None, verbose: bool = True) -> dict
[ 0.01538863591849804, -0.03350253030657768, -0.031940050423145294, 0.04182365909218788, 0.06137285754084587, 0.05276103690266609, -0.04701982066035271, -0.01775052770972252, 0.002829728415235877, 0.0050644418224692345, 0.05930165946483612, -0.018313748762011528, 0.01254528108984232, -0.04076988995075226, 0.02118435502052307, -0.018204737454652786, 0.04000682011246681, -0.0018815649673342705, -0.021129850298166275, -0.04146029055118561, -0.05970136448740959, 0.012508943676948547, 0.04396753013134003, 0.01965820975601673, -0.03257594257593155, -0.036209624260663986, 0.0637710839509964, 0.006218135356903076, 0.009583831764757633, 0.01773235946893692, -0.06834952533245087, -0.04941805079579353, 0.011382503435015678, 0.005877477582544088, -0.025799129158258438, -0.029178451746702194, -0.023927783593535423, 0.03197638690471649, -0.1039959266781807, 0.0033702384680509567, 0.03993414342403412, 0.007340034004300833, -0.007903254590928555, -0.004991767928004265, 0.026380518451333046, 0.013744395226240158, 0.033066488802433014, 0.024472836405038834, 0.09396696835756302, -0.058829281479120255, -0.025126898661255836, -0.016124455258250237, -0.01646965555846691, 0.01372622698545456, 0.028869589790701866, 0.016178961843252182, 0.008734459057450294, 0.019349347800016403, 0.046220410615205765, -0.017850453034043312, 0.022238122299313545, -0.007340034004300833, 0.007480839267373085, 0.06464316695928574, 0.012781470082700253, 0.016978370025753975, -0.08531881123781204, -0.009393063373863697, -0.03381139412522316, -0.011836713179945946, -0.03393857181072235, -0.05708511546254158, 0.07870551198720932, 0.04734685271978378, -0.011200819164514542, -0.028796914964914322, -0.017105549573898315, -0.022092776373028755, 0.0035837171599268913, 0.04513030871748924, 0.01566116139292717, -0.03786294907331467, -0.013099417090415955, 0.008166695944964886, -0.03671833872795105, 0.007380913011729717, 0.03034123033285141, 0.015016183257102966, -0.03613694757223129, -0.018513601273298264, -0.025817297399044037, 0.00885709561407566, 0.039425428956747055, 0.0706387460231781, -0.04654744267463684, -0.08757169544696808, -0.04044286161661148, 0.044149212539196014, -0.045929718762636185, -0.018931474536657333, -0.03141316398978233, 0.01636972837150097, -0.05101687088608742, 0.025744624435901642, 0.011827629059553146, -0.012272754684090614, -0.02619883418083191, -0.017823200672864914, 0.007812412455677986, 0.009492989629507065, -0.06951230019330978, 0.013980584219098091, 0.04978141933679581, -0.03749958053231239, 0.010837451554834843, -0.03379322588443756, 0.05570431798696518, -0.012672459706664085, 0.04810992628335953, -0.00401294557377696, -0.0014977575046941638, 0.08001364022493362, 0.0609368160367012, 0.02034860849380493, 0.044839613139629364, -0.0004987794090993702, 0.03537387773394585, 0.04640209674835205, -0.02118435502052307, -0.01620621420443058, 0.07790610194206238, -0.03232158347964287, 0.02672571688890457, -0.00213024509139359, 0.016814855858683586, -0.03417476266622543, 0.010147051885724068, -0.02092999778687954, -0.041096922010183334, -0.020820988342165947, -0.037753935903310776, 0.009801852516829967, -0.07826947420835495, 0.02538125589489937, 0.05457787588238716, -0.04792824015021324, 0.009683758020401001, 0.04920002818107605, -0.03906206041574478, -0.038989387452602386, 0.025690119713544846, -0.07027537375688553, 0.0016590021550655365, 0.026980075985193253, -0.06471584737300873, 0.02676205523312092, 0.04785556718707085, -0.007748823147267103, -0.06162721663713455, -0.014525636099278927, -0.032503269612789154, 0.016378814354538918, 0.017505254596471786, 0.00043178341002203524, -0.05559530854225159, 0.05087152123451233, -0.04353148862719536, -0.006554250605404377, -0.053560446947813034, -0.001188894733786583, -0.0028887756634503603, -0.021402375772595406, -0.06122751161456108, -0.025544771924614906, -0.029414640739560127, 0.007508091628551483, 0.01803213730454445, -0.0003772781929001212, -0.02370976284146309, 0.04033384844660759, 0.032357923686504364, -0.057557493448257446, -0.029287463054060936, -0.04651110619306564, -0.02703458070755005, -0.038989387452602386, 0.01212740782648325, -0.01815931685268879, -0.014716404490172863, 0.00186339661013335, 0.013081248849630356, 0.05842957645654678, 0.07289162278175354, -0.00879804790019989, 0.00186112558003515, -0.002952365204691887, 0.006894908379763365, 0.02757963351905346, -0.040370188653469086, 0.032067228108644485, -0.02676205523312092, -0.0035360250622034073, 0.017850453034043312, -0.02923295646905899, -0.010564925149083138, -0.047601211816072464, -0.003170385956764221, 0.04534832760691643, -0.007303697057068348, 0.007412707433104515, -0.011827629059553146, 0.0015817864332348108, -0.01747800223529339, 0.036500316113233566, 0.01280872244387865, 0.020275935530662537, 0.07267360389232635, 0.007907796651124954, 0.0692942813038826, -0.06271731853485107, -0.041750986129045486, 0.023201048374176025, -0.038444336503744125, -0.0019247150048613548, -0.06962130963802338, -0.04320445656776428, -0.03521035984158516, -0.0038789536338299513, 0.035392045974731445, -0.03433827683329582, 0.0678771436214447, -0.001141202636063099, -0.03103162907063961, -0.006336229853332043, -0.04407653957605362, -0.02592630870640278, 0.03350253030657768, 0.041532963514328, 0.04345881566405296, -0.028742410242557526, 0.012772385962307453, -0.012835974805057049, -0.06809516996145248, -0.031122470274567604, -0.04087890312075615, -0.06271731853485107, 0.040660880506038666, -0.07078409194946289, -0.0063044349662959576, -0.00921137910336256, 0.057702843099832535, 0.008716289885342121, 0.054795898497104645, -0.003772214287891984, -0.020875493064522743, -0.039679788053035736, -0.007494465447962284, 0.06671436876058578, -0.01370805874466896, -0.016651339828968048, 0.01095554605126381, 0.0050780680030584335, -0.008371090516448021, -0.008243911899626255, -0.015970025211572647, 0.013362858444452286, 0.03301198408007622, 0.02647135965526104, 0.022910352796316147, -0.014979846775531769, -0.018658947199583054, -0.026816559955477715, -0.032357923686504364, -0.02547209896147251, -0.018713453784585, 0.020820988342165947, 0.035809919238090515, -0.03709987550973892, -0.0013444616924971342, 0.010028957389295101, -0.03210356459021568, -0.007353660184890032, -0.0055913254618644714, -0.03339352086186409, 0.005577699281275272, 0.06424346566200256, 0.0023687053471803665, 0.04007949307560921, -0.022928521037101746, -0.008584569208323956, 0.024054963141679764, -0.03408392146229744, -0.012290922924876213, 0.00585022522136569, 0.0036949985660612583, 0.010564925149083138, -0.0706387460231781, -0.03008687123656273, 0.034992340952157974, 0.045639023184776306, -0.037608589977025986, 0.004687447566539049, 0.010664851404726505, -0.031812869012355804, 0.016969285905361176, -0.005573156755417585, 0.05138023942708969, -0.015597572550177574, -0.02343723736703396, 0.04131494462490082, -0.023110205307602882, 0.041351281106472015, 0.12063818424940109, 0.01448021549731493, -0.006790440063923597, -0.028996767476201057, -0.0071992287412285805, -0.00502356281504035, 0.0077261123806238174, -0.01747800223529339, 0.039570778608322144, 0.04251405969262123, 0.08132176101207733, -0.030413903295993805, 0.06573327630758286, -0.004860047250986099, 0.0249452143907547, -0.010973714292049408, 0.046220410615205765, -0.07652530819177628, -0.004224153235554695, -0.05570431798696518, 0.03697269409894943, -0.012590701691806316, 0.03862601891160011, -0.004308182280510664, 0.008471016772091389, 0.005954693537205458, -0.01954920031130314, 0.06358940154314041, 0.0006642821826972067, -0.030123209580779076, -0.038735032081604004, 0.005568614695221186, -0.05472322180867195, -0.030849944800138474, 0.017259981483221054, 0.03335718438029289, -0.037753935903310776, 0.005545904394239187, 0.034992340952157974, 0.03917107358574867, -0.005118947010487318, 0.0064361561089754105, -0.012309091165661812, -0.02381877414882183, 0.02163856476545334, -0.013580880127847195, -0.016315223649144173, -0.012000229209661484, -0.012627039104700089, 0.09033329039812088, -0.057303138077259064, -0.014525636099278927, 0.04861864075064659, -0.03833532705903053, -0.002511781407520175, 0.05334242433309555, 0.09120537340641022, -0.0816851332783699, 0.014925341121852398, 0.02147505059838295, -0.024182140827178955, 0.015733834356069565, 0.011137229390442371, 0.07674332708120346, 0.07965026795864105, 0.027198096737265587, -0.034138426184654236, -0.05606768652796745, 0.017659686505794525, -0.00762164406478405, -0.01965820975601673, -0.08219384402036667, 0.06427980214357376, 0.010092547163367271, 0.08691763132810593, -0.015615740790963173, -0.024908877909183502, -0.031249649822711945, -0.0443672351539135, -0.003315733280032873, -0.08401068300008774, 0.04505763575434685, 0.0013285643653944135, 0.024436499923467636, 0.023055700585246086, 0.00928405299782753, -0.06395277380943298, -0.0006676887278445065, -0.01010163128376007, -0.02478169836103916, 0.027652306482195854, -0.03090444952249527, -0.0018213822040706873, -0.02134787105023861, 0.0009862035512924194, -0.09106002748012543, 0.011273493058979511, 0.005486857146024704, 0.00962925236672163, 0.0032771253027021885, -0.03197638690471649, 0.007449044380337, -0.015143361873924732, 0.011482429690659046, 0.007948675192892551, 0.009047864004969597, 0.004448987077921629, -0.013544542714953423, 0.016651339828968048, -0.006072788033634424, -0.004165105987340212, 0.02369159460067749, 0.055340949445962906, 0.027089085429906845, -0.038844041526317596, 0.015706581994891167, -0.042332373559474945, 0.026980075985193253, -0.020748313516378403, -0.027198096737265587, -0.04360416159033775, -0.029432808980345726, -0.02022143080830574, -0.08844377845525742, -0.010664851404726505, -0.038044631481170654, -0.02785215899348259, 0.04792824015021324, -0.01608811877667904, 0.041096922010183334, 0.02828820049762726, -0.01854085363447666, 0.03228524699807167, 0.010274230502545834, -0.022328965365886688, 0.04687447473406792, -0.006940328981727362, -0.018713453784585, -0.06257197260856628, -0.03212173283100128, 0.047746557742357254, -0.06409811973571777, 0.07587124407291412, -0.03228524699807167, 0.00443763192743063, 0.010583093389868736, 0.025998981669545174, -0.0429501011967659, -0.0038312615361064672, -0.027670474722981453, 0.025599276646971703, 0.008439222350716591, 0.009420315735042095, -0.023927783593535423, 0.02134787105023861, -0.03350253030657768, 0.07176518440246582, 0.04487594962120056, 0.005732130259275436, 0.03117697685956955, 0.0008726509986445308, -0.047310516238212585, 0.002693465445190668, 0.00313632027246058, -0.027470622211694717, -0.016587749123573303, -0.017532506957650185, -0.03808096796274185, 0.030413903295993805, 0.01053767278790474, 0.0526520274579525, -0.01965820975601673, 0.02592630870640278, -0.008266622200608253, 0.028488053008913994, -0.049127355217933655, 0.004732868634164333, -0.033302679657936096, -0.002829728415235877, -0.03949810191988945, -0.016805771738290787, 0.026816559955477715, 0.016151707619428635, -0.015988193452358246, -0.019640041515231133, 0.06486119329929352, 0.015179699286818504, -0.009592915885150433, -0.011863965541124344, -0.00928405299782753, 0.04240504652261734, 0.0033021068666130304, -0.04949072375893593, 0.0003892012173309922, 0.05068983882665634, -0.009243173524737358, 0.027325274422764778, 0.009038779884576797, -0.04643843322992325, -0.013880657963454723, -0.026634875684976578, 0.05196162685751915, -0.004887300077825785, -0.0075853075832128525, 0.016306139528751373, 0.04999943822622299, 0.014016921631991863, 0.020566629245877266, -0.038735032081604004, -0.03244876489043236, 0.022674163803458214, -0.0429864376783371, 0.01247260719537735, -0.00922500528395176, -0.036518484354019165, -0.0051961624994874, 0.01114631351083517, 0.07710669189691544, 0.04927270486950874, 0.037354230880737305, -0.048291608691215515, -0.02507239393889904, 0.009070574305951595, -0.06685971468687057, 0.12696078419685364, -0.019567368552088737, 0.022328965365886688, 0.002489070873707533, 0.0159246027469635, -0.023237384855747223, -0.0032498727086931467, -0.023201048374176025, 0.032503269612789154, 0.04999943822622299, 0.08553683012723923, -0.0664963498711586, 0.03757225349545479, -0.03477431833744049, 0.021929260343313217, -0.020275935530662537, -0.03437461331486702, -0.05555896833539009, 0.02839720994234085, -0.004028842784464359, 0.003077272791415453, -0.053415097296237946, -0.013962415978312492, 0.00879804790019989, 0.012254586443305016, 0.025544771924614906, 0.004137853160500526, 0.0045034922659397125, -0.01996707171201706, -0.03481065481901169, -0.015733834356069565, 0.02745245397090912, -0.050653502345085144, 0.023164711892604828, 0.029051272198557854, 0.004819168243557215, 0.03508318215608597, -0.07281894981861115, 0.04087890312075615, 0.05835690349340439, -0.01662408746778965, 0.026271507143974304, 0.03217623755335808, -0.016978370025753975, 0.014234942384064198, 0.027361610904335976, 0.01927667297422886, -0.003658661851659417, 0.01716913841664791, 0.03154034540057182, 0.03228524699807167, 0.03531937301158905, -0.008816216140985489, 0.04665645211935043, -0.01884063147008419, 0.0581752210855484, 0.010492251254618168, -0.04251405969262123, 0.044839613139629364, -0.02145688235759735, -0.07129280269145966, 0.02607165463268757, -0.008293874561786652, -0.01965820975601673, -0.003243059618398547, 0.0026889233849942684, -0.0017646059859544039, -0.04520298168063164, -0.044839613139629364, -0.02948731556534767, 0.06122751161456108, 0.03542838245630264, 0.014262194745242596, 0.051307562738657, -0.06297167390584946, -0.04349515214562416, 0.014589225873351097, -0.018876967951655388, 0.025944476947188377, 0.01413501612842083, 0.009193210862576962, -0.006313519552350044, 0.03155851364135742, 0.03502867743372917, -0.035955265164375305, 0.04865497723221779, -0.029341967776417732, -0.012926816940307617, -0.01605178229510784, 0.023037532344460487, -0.06398911029100418, 0.0623902902007103, 0.03286663815379143, -0.026253338903188705, -0.044839613139629364, -0.05170726776123047, 0.006413445342332125, -0.04225970059633255, 0.025435760617256165, -0.06042810156941414, 0.0030954412650316954, -0.012672459706664085, 0.026525866240262985, 0.04269574210047722, 0.034574467688798904, 0.024491004645824432, -0.03197638690471649, -0.0013739853166043758, -0.0011003237450495362, 0.0664963498711586, -0.008203033357858658, 0.028488053008913994, 0.07710669189691544, -0.03255777433514595, 0.025163235142827034, -0.007889628410339355, -0.041750986129045486, 0.03808096796274185, -0.0056867096573114395, -0.01482541486620903, 0.04255039617419243, -0.029051272198557854, -0.029687166213989258, 0.0037267932202667, -0.027470622211694717, -0.004342247731983662, 0.016560496762394905, -0.03551922366023064, -0.005573156755417585, -0.060210078954696655, 0.010837451554834843, 0.04422188922762871, 0.004510305356234312, -0.049672409892082214, 0.0776154100894928, -0.05781185254454613, 0.060064733028411865, 0.027597801759839058, -0.09244082123041153, 0.08640891313552856, -0.07797877490520477, 0.06998468190431595, 0.011536934413015842, 0.024581845849752426, 0.02783399075269699, 0.026253338903188705, -0.03404758498072624, 0.04389485716819763, -0.05457787588238716, 0.04672912880778313, -0.03417476266622543, 0.00928405299782753, 0.005777551326900721, -0.004103787709027529, -0.03268495202064514, -0.013580880127847195, 0.06402544677257538, 0.010574009269475937, -0.014870836399495602, 0.049381714314222336, 0.03749958053231239, 0.025163235142827034, -0.013608132489025593, -0.026634875684976578, -0.01407142635434866, -0.028161020949482918, 0.015279625542461872, 0.020294103771448135, -0.012590701691806316, 0.026289675384759903, -0.05250667780637741, 0.010773861780762672, -0.002350536873564124, -0.0021370581816881895, 0.005582241341471672, 0.013599048368632793, 0.0021381936967372894, 0.04284108802676201, -0.02258332259953022, -0.02948731556534767, 0.03337535262107849, -0.00619542459025979, 0.014362121000885963, 0.002231306629255414, 0.0007250327616930008, 0.015361382625997066, 0.016969285905361176, 0.06297167390584946, 0.005723046138882637, 0.009965367615222931, 0.05654006451368332, 0.027488790452480316, 0.10290582478046417, -0.010837451554834843, -0.040261175483465195, -0.048982009291648865, -0.0679861530661583, -0.00838017463684082, -0.01095554605126381, -0.013108501210808754, 0.03174019604921341, -0.019313009455800056, 0.008580027148127556, -0.019294841215014458, 0.07470846176147461, 0.0030068703927099705, 0.024890709668397903, -0.00602282490581274, -0.03362971171736717, -0.01788679137825966, 0.015179699286818504, -0.010655767284333706, 0.022783175110816956, -0.012572533451020718, 0.04284108802676201, 0.00230511580593884, 0.0032407885883003473, -0.010355988517403603, -0.0006824505398981273, 0.07550787180662155, -0.024218479171395302, -0.014680068008601665, 0.030432071536779404, 0.017287233844399452, 0.0526883639395237, -0.07416341453790665, -0.018186569213867188, -0.05552263185381889, 0.01746891811490059, 0.03811730444431305, -0.03268495202064514, -0.039825133979320526 ]
730,293
mmengine.utils.misc
deprecated_api_warning
A decorator to check if some arguments are deprecate and try to replace deprecate src_arg_name to dst_arg_name. Args: name_dict(dict): key (str): Deprecate argument names. val (str): Expected argument names. Returns: func: New function.
def deprecated_api_warning(name_dict: dict, cls_name: Optional[str] = None) -> Callable: """A decorator to check if some arguments are deprecate and try to replace deprecate src_arg_name to dst_arg_name. Args: name_dict(dict): key (str): Deprecate argument names. val (str): Expected argument names. Returns: func: New function. """ def api_warning_wrapper(old_func): @functools.wraps(old_func) def new_func(*args, **kwargs): # get the arg spec of the decorated method args_info = getfullargspec(old_func) # get name of the function func_name = old_func.__name__ if cls_name is not None: func_name = f'{cls_name}.{func_name}' if args: arg_names = args_info.args[:len(args)] for src_arg_name, dst_arg_name in name_dict.items(): if src_arg_name in arg_names: warnings.warn( f'"{src_arg_name}" is deprecated in ' f'`{func_name}`, please use "{dst_arg_name}" ' 'instead', DeprecationWarning) arg_names[arg_names.index(src_arg_name)] = dst_arg_name if kwargs: for src_arg_name, dst_arg_name in name_dict.items(): if src_arg_name in kwargs: assert dst_arg_name not in kwargs, ( f'The expected behavior is to replace ' f'the deprecated key `{src_arg_name}` to ' f'new key `{dst_arg_name}`, but got them ' f'in the arguments at the same time, which ' f'is confusing. `{src_arg_name} will be ' f'deprecated in the future, please ' f'use `{dst_arg_name}` instead.') warnings.warn( f'"{src_arg_name}" is deprecated in ' f'`{func_name}`, please use "{dst_arg_name}" ' 'instead', DeprecationWarning) kwargs[dst_arg_name] = kwargs.pop(src_arg_name) # apply converted arguments to the decorated method output = old_func(*args, **kwargs) return output return new_func return api_warning_wrapper
(name_dict: dict, cls_name: Optional[str] = None) -> Callable
[ -0.02806941047310829, -0.05718645825982094, 0.014675931073725224, -0.004822736606001854, -0.0200315173715353, -0.020284393802285194, -0.007550201844424009, 0.032512832432985306, 0.05866759642958641, -0.021115276962518692, -0.03796776011586189, -0.028737729415297508, 0.04555409029126167, -0.02790684625506401, -0.02024826966226101, 0.017981402575969696, 0.02326473779976368, 0.03504160791635513, -0.01925482042133808, -0.044723205268383026, 0.02340923808515072, -0.024709751829504967, 0.036992378532886505, 0.004533733706921339, -0.03843739256262779, 0.08446110785007477, 0.040532663464546204, 0.012264562770724297, 0.014612711034715176, -0.04815511405467987, -0.03045368567109108, 0.01825234293937683, 0.023517614230513573, 0.04736035689711571, -0.0006835596868768334, -0.03840126469731331, -0.006606426555663347, 0.005771027412265539, -0.07318999618291855, -0.06321939080953598, 0.015813879668712616, -0.01677120290696621, -0.009157780557870865, -0.04891374707221985, 0.0247458778321743, 0.04519283398985863, -0.048118989914655685, 0.06097961962223053, -0.06076286733150482, -0.005116255022585392, 0.011424647644162178, -0.08915740996599197, 0.03934052586555481, 0.03159163519740105, 0.02861129119992256, 0.05140639841556549, 0.02727465331554413, 0.057692211121320724, -0.0018040105933323503, -0.004298918880522251, 0.016482198610901833, 0.016129976138472557, -0.017882056534290314, -0.0066786776296794415, -0.002519744448363781, -0.06350839883089066, -0.017602086067199707, -0.035276420414447784, -0.008521071635186672, 0.041074544191360474, -0.01925482042133808, -0.029622802510857582, 0.013863109983503819, 0.0025174866896122694, 0.016184164211153984, -0.013826984912157059, -0.062424637377262115, -0.036992378532886505, 0.03408428654074669, -0.02658827044069767, 0.0004227797035127878, -0.06964971125125885, 0.00761342141777277, 0.0065703014843165874, 0.021205591037869453, -0.04298918694257736, -0.015940317884087563, -0.03083300217986107, 0.007965643890202045, 0.020356643944978714, -0.07427375763654709, -0.013321229256689548, -0.028466790914535522, 0.0030187261290848255, -0.00818691123276949, -0.003899281844496727, 0.0048317681066691875, -0.010449262335896492, 0.04660172387957573, 0.027310777455568314, 0.05006976053118706, -0.017638210207223892, 0.023625990375876427, 0.004310207907110453, 0.039232149720191956, -0.09190293401479721, -0.025540634989738464, -0.004314723424613476, -0.03285602107644081, -0.005694261286407709, 0.009519034065306187, -0.08987991511821747, -0.008661056868731976, 0.020356643944978714, 0.015958381816744804, -0.0070805721916258335, -0.06173825263977051, -0.0697580873966217, -0.01236390694975853, 0.02458331361413002, 0.0000984275175142102, -0.0065386914648115635, -0.015335218980908394, -0.02366211637854576, -0.0012801927514374256, -0.009582254104316235, -0.011514960788190365, 0.04887762293219566, 0.08959091454744339, 0.03244058042764664, -0.009735786356031895, 0.006236141547560692, -0.03847351670265198, 0.0186226274818182, 0.08308834582567215, -0.033506277948617935, 0.008778464049100876, 0.07199785858392715, 0.0003728250740095973, 0.004791127052158117, 0.010539576411247253, 0.012743223458528519, 0.031031690537929535, 0.02982149086892605, 0.01847812533378601, -0.03643243387341499, -0.0026529566384851933, 0.02180165983736515, -0.0139082670211792, -0.0013366385828703642, 0.01000672671943903, 0.04382007196545601, 0.009708692319691181, -0.016942797228693962, 0.0372452549636364, -0.04645722359418869, 0.0022171945311129093, -0.06964971125125885, -0.002928412752225995, 0.0009178101317957044, 0.031338755041360855, -0.06170212849974632, 0.016247384250164032, -0.049744632095098495, 0.05617494881153107, -0.02689533680677414, 0.041616424918174744, -0.01963413693010807, 0.028087474405765533, 0.04183317720890045, -0.021765533834695816, 0.01839684322476387, 0.03000211901962757, 0.03807613626122475, 0.02496263012290001, 0.06184662878513336, -0.019435448572039604, -0.04204992949962616, 0.016879579052329063, 0.00026713014813140035, 0.035276420414447784, 0.02835841476917267, -0.05718645825982094, -0.012887724675238132, 0.021079152822494507, 0.051370274275541306, -0.022849295288324356, 0.043567195534706116, -0.04898599907755852, 0.018839379772543907, 0.007992737926542759, 0.02875579334795475, 0.05725870653986931, 0.023138297721743584, -0.026263142004609108, -0.008697181940078735, -0.10302954912185669, 0.03594474121928215, 0.08525586873292923, -0.009175843559205532, 0.04129129648208618, 0.049275003373622894, 0.010521513409912586, 0.034427475184202194, 0.027726219967007637, 0.008218521252274513, 0.02196422405540943, 0.001989152980968356, -0.0636528953909874, -0.044939957559108734, 0.07300937175750732, 0.016030631959438324, -0.02861129119992256, -0.033434029668569565, -0.010214447975158691, 0.005269788205623627, 0.0926254466176033, 0.030959440395236015, -0.05519956350326538, -0.005071098450571299, 0.07358737289905548, -0.006674161646515131, 0.026172829791903496, -0.0064303153194487095, 0.035601548850536346, -0.02759978175163269, 0.070227712392807, -0.026913398876786232, 0.041146792471408844, -0.025757387280464172, -0.009789974428713322, -0.04671010002493858, -0.022921545431017876, 0.018640689551830292, -0.022162912413477898, -0.027003712952136993, -0.001976734958589077, -0.03887089714407921, 0.05743933469057083, -0.02241579070687294, -0.0051433490589261055, 0.00014647707575932145, 0.00773082859814167, 0.1122053936123848, 0.029550550505518913, -0.06076286733150482, -0.009771912358701229, 0.04204992949962616, 0.0020873688627034426, 0.005680714268237352, -0.001583871548064053, -0.027310777455568314, -0.012779348529875278, 0.038292888551950455, -0.04717973247170448, 0.01530812494456768, -0.07441826164722443, -0.014115987345576286, 0.01715954951941967, -0.05292366445064545, -0.03365078195929527, 0.012264562770724297, -0.05364617332816124, -0.0023504067212343216, 0.005265272222459316, -0.05975135788321495, 0.0579812154173851, -0.021765533834695816, -0.014982996508479118, 0.007279261481016874, 0.011758807115256786, 0.0033415965735912323, -0.018351687118411064, -0.01174977608025074, 0.0027297232300043106, 0.003034530906006694, 0.02727465331554413, -0.02953248843550682, 0.06285814195871353, -0.026028327643871307, 0.0726119875907898, -0.06983033567667007, -0.04631272330880165, 0.0605822429060936, 0.014197269454598427, -0.006868335418403149, -0.0318264476954937, 0.0010436844313517213, 0.021602969616651535, -0.007897908799350262, 0.019200632348656654, -0.03639630973339081, 0.043783947825431824, 0.02079014852643013, -0.017981402575969696, 0.06206338107585907, -0.02187390998005867, -0.015163622796535492, 0.03926827386021614, -0.05386292189359665, 0.024998754262924194, 0.04353106766939163, -0.04020753502845764, -0.0074598887003958225, 0.06806019693613052, -0.07579102367162704, -0.007505045272409916, -0.048118989914655685, -0.05812571570277214, 0.01228262484073639, -0.002892287215217948, -0.04884149879217148, -0.002720691729336977, -0.057547710835933685, 0.007306355517357588, -0.005599432159215212, -0.011596242897212505, 0.034590039402246475, 0.031880635768175125, 0.10685884207487106, 0.01892969198524952, -0.003000663360580802, -0.05895660072565079, 0.02543225884437561, 0.008159817196428776, -0.035204172134399414, 0.04844411835074425, -0.00997060164809227, 0.08164332807064056, -0.008001768961548805, -0.05675295367836952, -0.044181324541568756, -0.012336812913417816, -0.03301858529448509, -0.02705790102481842, 0.00440503703430295, -0.014161144383251667, -0.034355223178863525, 0.016328666359186172, -0.001834491384215653, -0.007247651927173138, 0.02048308402299881, -0.05621107295155525, 0.037751007825136185, -0.037064626812934875, -0.015136528760194778, -0.012499377131462097, 0.0233369879424572, 0.07380412518978119, 0.0007947580888867378, -0.00703541561961174, -0.058089591562747955, -0.04436195269227028, 0.011397553607821465, 0.08388310670852661, 0.029893742874264717, -0.00042898874380625784, -0.02673277258872986, 0.0296950526535511, -0.09847775101661682, -0.012661941349506378, -0.04577084258198738, 0.0152629679068923, -0.013167697004973888, 0.057078082114458084, 0.022596416994929314, 0.04848024249076843, -0.0709502249956131, 0.0007947580888867378, -0.00577554339542985, 0.006597395520657301, 0.017593054100871086, 0.022289352491497993, -0.00587488804012537, -0.042772434651851654, -0.030977502465248108, 0.002400079043582082, 0.043856196105480194, -0.07680252939462662, 0.012770317494869232, 0.008245615288615227, -0.028033286333084106, 0.04396457225084305, 0.03858189284801483, 0.04530121013522148, -0.016211258247494698, -0.046962980180978775, -0.012472283095121384, 0.0014111471828073263, -0.012752254493534565, -0.019345134496688843, -0.011533023789525032, -0.025305820629000664, 0.018134934827685356, -0.04179704934358597, -0.030977502465248108, 0.0002359438076382503, 0.010142196901142597, -0.03023693338036537, -0.027798470109701157, 0.011054362170398235, -0.02041083201766014, 0.014269520528614521, -0.025847701355814934, -0.014215332455933094, 0.04739648103713989, 0.040388163179159164, 0.04512058570981026, 0.002122365403920412, 0.07405700534582138, -0.0075727803632617, -0.04551796242594719, 0.012725160457193851, -0.011803964152932167, 0.046348847448825836, 0.06957745552062988, -0.05624719709157944, -0.0035493173636496067, -0.020916588604450226, -0.021151402965188026, 0.0225061047822237, -0.05830634385347366, 0.028177786618471146, 0.07221461087465286, 0.00044987371074967086, -0.03403009846806526, -0.043711695820093155, -0.05472993105649948, 0.012969006784260273, 0.008588805794715881, 0.014838495291769505, -0.015515845268964767, -0.020970776677131653, -0.044795457273721695, 0.004642109852284193, -0.025775449350476265, 0.013709576800465584, 0.014432084746658802, 0.010358949191868305, 0.053682297468185425, -0.01622029021382332, -0.00653417594730854, 0.03952115401625633, 0.027075963094830513, -0.07076959311962128, -0.04967238008975983, -0.02759978175163269, -0.0028561619110405445, 0.038220640271902084, -0.059028852730989456, 0.09753849357366562, 0.0624607615172863, 0.0011650430969893932, -0.021548781543970108, -0.0020873688627034426, -0.04389232397079468, -0.03375915810465813, -0.06101574748754501, 0.0258115753531456, 0.049419503659009933, 0.02550450898706913, -0.00784823577851057, -0.035601548850536346, 0.03213351592421532, -0.013465730473399162, 0.03858189284801483, 0.03626986965537071, -0.04035203531384468, -0.052743036299943924, -0.0001508516288595274, 0.096165731549263, -0.05404355004429817, 0.05093676969408989, 0.005572338122874498, -0.04822736606001854, 0.0412551686167717, -0.009862225502729416, 0.028773855417966843, 0.02489037811756134, 0.05465768277645111, 0.017873026430606842, -0.025775449350476265, 0.02868354134261608, 0.028737729415297508, 0.002553611993789673, -0.0480828657746315, -0.02891835756599903, -0.014468209818005562, -0.03233220428228378, 0.07192561030387878, -0.05606657266616821, -0.0037976792082190514, 0.02774428203701973, -0.02387886866927147, -0.0016775717958807945, -0.017376301810145378, 0.02505294233560562, -0.021819721907377243, -0.001973348204046488, -0.023463426157832146, -0.02759978175163269, -0.050828393548727036, -0.020284393802285194, 0.014215332455933094, 0.07622452825307846, -0.070227712392807, -0.0038970240857452154, 0.04251955822110176, -0.01916450820863247, 0.015714535489678383, -0.06675968319177628, 0.0417248010635376, 0.05906497687101364, 0.026245079934597015, -0.007947580888867378, -0.048118989914655685, -0.0692884549498558, 0.034192658960819244, -0.0022668668534606695, -0.04280856251716614, 0.009139718487858772, 0.04519283398985863, 0.04613209515810013, -0.043169815093278885, 0.036360181868076324, -0.012345844879746437, 0.02682308666408062, -0.04306143894791603, 0.025287756696343422, 0.007401184644550085, -0.07795854657888412, 0.010241542011499405, 0.024601375684142113, -0.026913398876786232, 0.026877272874116898, 0.05285141244530678, -0.022740919142961502, -0.002176553476601839, -0.051442522555589676, 0.014856557361781597, 0.02698564901947975, 0.040171410888433456, -0.009600316174328327, 0.0104312002658844, -0.020699836313724518, 0.006850272882729769, -0.03879864513874054, 0.025378070771694183, -0.03580024093389511, -0.031952887773513794, -0.07008321583271027, 0.03500548005104065, 0.027997160330414772, 0.01410695631057024, -0.03966565430164337, 0.021837785840034485, -0.004651141352951527, 0.00031948371906764805, -0.014414021745324135, -0.003084203228354454, -0.06061836704611778, 0.0006914621335454285, 0.05920947715640068, -0.042700186371803284, -0.06097961962223053, 0.04616821929812431, 0.07658577710390091, 0.04584309086203575, -0.053284917026758194, -0.017981402575969696, -0.016093851998448372, -0.029315736144781113, 0.0010882767383009195, -0.040388163179159164, -0.07665803283452988, 0.023318925872445107, 0.07214236259460449, -0.03372303023934364, 0.004384716507047415, -0.043097563087940216, 0.0038315467536449432, 0.030580123886466026, -0.03495129197835922, -0.04295306280255318, 0.014666899107396603, -0.004278598353266716, -0.02147653140127659, -0.0021201076451689005, 0.05227340757846832, 0.015714535489678383, -0.05140639841556549, -0.018803253769874573, 0.0024136260617524385, -0.07326224446296692, 0.007496013771742582, 0.03796776011586189, -0.037714883685112, 0.0066470676101744175, 0.04204992949962616, 0.025919951498508453, -0.019345134496688843, -0.019381260499358177, -0.004549538716673851, -0.02673277258872986, 0.024366561323404312, 0.03778713569045067, 0.0010171548929065466, -0.03363271802663803, -0.035204172134399414, -0.004858862143009901, -0.026335394009947777, 0.01847812533378601, 0.05736708268523216, 0.02156684547662735, 0.06126862391829491, 0.016491230577230453, -0.004064104054123163, -0.00761342141777277, 0.033199213445186615, 0.012237468734383583, -0.04049653932452202, 0.027148213237524033, 0.015019121579825878, 0.004768548533320427, -0.017042143270373344, -0.03316308930516243, -0.024872316047549248, -0.016202228143811226, -0.02373436652123928, -0.011316271498799324, -0.02519744448363781, -0.005260756704956293, 0.08128207921981812, -0.05447705462574959, -0.03300052508711815, 0.002114462899044156, 0.004129581153392792, -0.010530544444918633, 0.008412695489823818, 0.019688325002789497, 0.0645921602845192, 0.0015951608074828982, -0.006001326721161604, 0.03468035161495209, -0.023011859506368637, 0.02272285707294941, 0.008046925999224186, -0.048805370926856995, 0.038690268993377686, -0.02534194476902485, -0.03077881410717964, 0.08475011587142944, -0.019688325002789497, 0.021115276962518692, 0.008877809159457684, 0.01422436349093914, -0.038762520998716354, -0.012661941349506378, 0.01994120329618454, -0.018035590648651123, 0.043711695820093155, -0.03036337159574032, 0.0015059763099998236, 0.03077881410717964, -0.0054458994418382645, 0.036071181297302246, -0.005920044612139463, 0.01344766840338707, 0.06733768433332443, -0.029550550505518913, 0.05270691215991974, -0.00019629058078862727, -0.017123423516750336, -0.03507773205637932, 0.005689745303243399, -0.022596416994929314, 0.027094025164842606, 0.017818838357925415, -0.016960861161351204, -0.005161412060260773, -0.009844162501394749, 0.003928633872419596, -0.02776234596967697, 0.007739860098809004, -0.05288754031062126, 0.06347227096557617, 0.007527623791247606, 0.006705771666020155, -0.01747564598917961, -0.02658827044069767, 0.0516231507062912, -0.009482908993959427, 0.005098192486912012, -0.031085878610610962, 0.011216926388442516, -0.04530121013522148, -0.02519744448363781, 0.004520186688750982, 0.020519208163022995, -0.016518324613571167, 0.006073577329516411, 0.011352396570146084, -0.03114006668329239, 0.003772843163460493, 0.01109048817306757, 0.0030074368696659803, -0.0080740200355649, -0.059787485748529434, 0.007283777464181185, -0.022903483361005783, 0.004549538716673851, -0.00016298750415444374, 0.05881210044026375, -0.02304798550903797, 0.020139893516898155, -0.047107480466365814, -0.02041083201766014, -0.06925232708454132, 0.04013528302311897, 0.01306835189461708, 0.03731750696897507, 0.04443420097231865, 0.02265060506761074, 0.0035086763091385365, 0.003824773244559765, -0.010196384973824024, 0.0009149878169409931, -0.02689533680677414, -0.01878519169986248, -0.02835841476917267, 0.06289426237344742, 0.03616149351000786, -0.050575513392686844, 0.022379664704203606, 0.02597413957118988, -0.001495816046372056, -0.020970776677131653, 0.024095620959997177, -0.007067025173455477, 0.03408428654074669, -0.0008828137069940567, 0.07998156547546387, -0.023463426157832146, 0.03330758959054947, 0.032259952276945114, -0.0020004422403872013, 0.011605274863541126, 0.035438984632492065, 0.0255767609924078, -0.007207010872662067, 0.0346442274749279, 0.046565599739551544, -0.07199785858392715, 0.014088893309235573, 0.03507773205637932, -0.08301609754562378, 0.05454930663108826, 0.030869126319885254, 0.028286162763834, -0.013501856476068497, -0.005463961977511644, 0.06816857308149338, 0.028322288766503334, 0.008471398614346981, 0.0039015398360788822, 0.010756328701972961, -0.042086053639650345, 0.051514774560928345 ]
730,294
mmengine.utils.misc
deprecated_function
Marks functions as deprecated. Throw a warning when a deprecated function is called, and add a note in the docstring. Modified from https://github.com/pytorch/pytorch/blob/master/torch/onnx/_deprecation.py Args: since (str): The version when the function was first deprecated. removed_in (str): The version when the function will be removed. instructions (str): The action users should take. Returns: Callable: A new function, which will be deprecated soon.
def deprecated_function(since: str, removed_in: str, instructions: str) -> Callable: """Marks functions as deprecated. Throw a warning when a deprecated function is called, and add a note in the docstring. Modified from https://github.com/pytorch/pytorch/blob/master/torch/onnx/_deprecation.py Args: since (str): The version when the function was first deprecated. removed_in (str): The version when the function will be removed. instructions (str): The action users should take. Returns: Callable: A new function, which will be deprecated soon. """ # noqa: E501 from mmengine import print_log def decorator(function): @functools.wraps(function) def wrapper(*args, **kwargs): print_log( f"'{function.__module__}.{function.__name__}' " f'is deprecated in version {since} and will be ' f'removed in version {removed_in}. Please {instructions}.', logger='current', level=logging.WARNING, ) return function(*args, **kwargs) indent = ' ' # Add a deprecation note to the docstring. docstring = function.__doc__ or '' # Add a note to the docstring. deprecation_note = textwrap.dedent(f"""\ .. deprecated:: {since} Deprecated and will be removed in version {removed_in}. Please {instructions}. """) # Split docstring at first occurrence of newline pattern = '\n\n' summary_and_body = re.split(pattern, docstring, 1) if len(summary_and_body) > 1: summary, body = summary_and_body body = textwrap.indent(textwrap.dedent(body), indent) summary = '\n'.join( [textwrap.dedent(string) for string in summary.split('\n')]) summary = textwrap.indent(summary, prefix=indent) # Dedent the body. We cannot do this with the presence of the # summary because the body contains leading whitespaces when the # summary does not. new_docstring_parts = [ deprecation_note, '\n\n', summary, '\n\n', body ] else: summary = summary_and_body[0] summary = '\n'.join( [textwrap.dedent(string) for string in summary.split('\n')]) summary = textwrap.indent(summary, prefix=indent) new_docstring_parts = [deprecation_note, '\n\n', summary] wrapper.__doc__ = ''.join(new_docstring_parts) return wrapper return decorator
(since: str, removed_in: str, instructions: str) -> Callable
[ -0.028736479580402374, -0.010696771554648876, 0.024439087137579918, -0.006903855130076408, 0.04600078985095024, -0.00951031781733036, -0.046112895011901855, 0.044431306421756744, 0.000944141938816756, -0.014031922444701195, -0.03550020232796669, -0.014966138638556004, 0.026008570566773415, -0.029259640723466873, -0.004885949194431305, 0.036042049527168274, 0.005311017390340567, -0.02161775529384613, 0.003003504127264023, -0.03492099046707153, -0.015237061306834221, 0.005493189208209515, 0.026830680668354034, 0.0022678091190755367, -0.025242513045668602, 0.0648345798254013, 0.026625152677297592, -0.014975480735301971, 0.037555478513240814, -0.05317556858062744, -0.034528620541095734, -0.010257690213620663, -0.008627483621239662, -0.025803042575716972, 0.02201012521982193, 0.0026835352182388306, -0.0017493192572146654, 0.013695605099201202, -0.07735307514667511, -0.03174465522170067, -0.0011298173340037465, -0.004932659678161144, 0.025149092078208923, -0.01928221620619297, -0.011771120131015778, 0.02724173478782177, -0.009117946960031986, 0.030193857848644257, -0.0026041266974061728, 0.016899965703487396, 0.050186075270175934, -0.04394551366567612, 0.0390128567814827, 0.003159985179081559, -0.009585054591298103, 0.007651227992027998, 0.044991835951805115, 0.037761006504297256, 0.03570573031902313, 0.000023483122276957147, 0.053511884063482285, 0.05093345046043396, 0.002634488744661212, 0.001109965262003243, -0.014424293301999569, 0.008403271436691284, 0.03284703195095062, -0.025933831930160522, 0.014844690449535847, 0.03615415468811989, -0.04338498413562775, 0.008720905520021915, 0.05788401514291763, -0.0006790581392124295, 0.02109459415078163, -0.03228650242090225, -0.0775025486946106, -0.020048271864652634, 0.02473803609609604, -0.025971202179789543, 0.0058108228258788586, -0.05119502916932106, 0.015517326071858406, 0.013256522826850414, 0.029427800327539444, -0.07118725031614304, -0.009183341637253761, -0.01868431828916073, -0.015937723219394684, 0.027914369478821754, -0.06580616533756256, 0.0025177118368446827, -0.038900747895240784, -0.0018170499242842197, -0.013835737481713295, -0.01645154133439064, 0.005301675293594599, -0.02335539646446705, 0.033706508576869965, 0.012014016509056091, 0.04809343442320824, 0.020515380427241325, 0.012864152900874615, -0.029894908890128136, 0.0456644706428051, -0.04899027943611145, -0.06255509704351425, 0.006427405402064323, 0.022645393386483192, -0.02559751458466053, -0.02783963270485401, -0.10769640654325485, -0.0025247184094041586, -0.011920594610273838, 0.015078243799507618, -0.020478012040257454, -0.031669918447732925, -0.04450604319572449, -0.01394784264266491, -0.022383812814950943, -0.002849358366802335, -0.04316077381372452, -0.07040251046419144, -0.05112029239535332, -0.01950642839074135, -0.02767147496342659, 0.035687047988176346, 0.02503698505461216, 0.06169561669230461, -0.055193472653627396, -0.04345972090959549, 0.015536010265350342, 0.049662914127111435, 0.045514997094869614, 0.014536399394273758, -0.019001951441168785, -0.0006504477933049202, 0.04577657952904701, -0.004708447959274054, 0.0232246071100235, -0.042525507509708405, 0.016993386670947075, 0.02079564519226551, 0.030978597700595856, -0.006273259408771992, -0.006889841984957457, -0.0007164268172346056, 0.014975480735301971, -0.010407164692878723, -0.05317556858062744, 0.04039549455046654, -0.0025667580775916576, 0.0071887909434735775, -0.023467503488063812, 0.009725186973810196, 0.02135617472231388, 0.01578824780881405, -0.04054496809840202, 0.028512269258499146, 0.012266254052519798, 0.05287661775946617, -0.006731025408953428, 0.014620478264987469, 0.02395329438149929, 0.040059175342321396, -0.006007008254528046, 0.044767625629901886, -0.03581783547997475, -0.0038045940455049276, 0.01688128150999546, -0.011948620900511742, 0.03905022516846657, 0.05728611722588539, 0.08751734346151352, -0.01651693694293499, 0.05399767681956291, -0.010500586591660976, 0.02918490394949913, -0.022365128621459007, -0.005684703588485718, 0.0031413009855896235, 0.036789420992136, -0.052988722920417786, -0.04297393187880516, 0.000943558057770133, 0.02724173478782177, 0.025821726769208908, 0.0034752830397337675, -0.012686651200056076, -0.02378513664007187, 0.04189024120569229, 0.014218765310943127, 0.0804920420050621, 0.023971978574991226, -0.029409116134047508, -0.03017517365515232, -0.03385598212480545, 0.006539511028677225, 0.05694979801774025, -0.032230447977781296, 0.03637836501002312, 0.09050683677196503, 0.04428183287382126, -0.004682756960391998, 0.014900743030011654, 0.05728611722588539, -0.013069679960608482, 0.02201012521982193, -0.11681435257196426, -0.0030245238449424505, 0.0775025486946106, -0.008193072862923145, -0.0073943184688687325, 0.05646400898694992, -0.01569482684135437, -0.004731803201138973, 0.03830284997820854, 0.0743635818362236, -0.07021566480398178, -0.03204360604286194, 0.030249910429120064, -0.0032113671768456697, 0.014442977495491505, -0.027129629626870155, 0.03473414480686188, -0.006362010259181261, 0.07869834452867508, -0.049177125096321106, 0.04125497490167618, -0.037854425609111786, 0.01528377179056406, -0.02204749546945095, -0.01251849252730608, 0.03609810024499893, 0.003568704705685377, -0.048579227179288864, -0.023859873414039612, -0.013116390444338322, 0.02944648452103138, -0.04271234944462776, -0.05455820634961128, -0.03800390288233757, 0.05567926540970802, 0.07141146063804626, 0.05313820019364357, 0.009281435050070286, -0.013518103398382664, 0.02109459415078163, -0.03267887234687805, -0.003921370953321457, -0.04207708314061165, -0.030268594622612, 0.005311017390340567, 0.02273881435394287, -0.050522394478321075, 0.04248813912272453, -0.021991441026329994, -0.026905417442321777, 0.01714286208152771, -0.0382281132042408, -0.002461658790707588, -0.06300351768732071, -0.05485715717077255, -0.012079411186277866, 0.04375867173075676, -0.06670301407575607, -0.0022724801674485207, 0.0031926827505230904, 0.015554694458842278, 0.011901910416781902, 0.06595563888549805, 0.0319688655436039, -0.026214096695184708, -0.036789420992136, 0.007459713611751795, -0.03325808420777321, -0.006427405402064323, -0.029764117673039436, 0.03712574020028114, -0.014144028536975384, 0.028381478041410446, -0.04338498413562775, -0.06401247531175613, 0.05055976286530495, 0.01793694496154785, -0.0022047495003789663, -0.015601404942572117, -0.019917482510209084, 0.036639947444200516, -0.009594396688044071, 0.013209812343120575, -0.02161775529384613, 0.05478242039680481, -0.010257690213620663, -0.02365434542298317, 0.03897548466920853, -0.03550020232796669, 0.02283223532140255, 0.03990970179438591, -0.0541471503674984, -0.0022864933125674725, -0.02776489593088627, -0.04129234328866005, -0.014022580347955227, 0.012116779573261738, -0.05993929132819176, 0.012200859375298023, -0.05055976286530495, -0.048317644745111465, -0.01750720478594303, -0.013434024527668953, -0.031184125691652298, -0.006833788938820362, -0.038414955139160156, 0.0009493968682363629, 0.017329704016447067, -0.023318028077483177, 0.03365045413374901, 0.06838460266590118, 0.0684967115521431, 0.024457771331071854, 0.006609577219933271, 0.007459713611751795, 0.02944648452103138, 0.023205922916531563, -0.028979375958442688, 0.04469288885593414, -0.05799612030386925, 0.035556256771087646, 0.008300508372485638, -0.027484631165862083, -0.04207708314061165, -0.006885170936584473, 0.019132740795612335, -0.07690465450286865, 0.009080578573048115, 0.010360454209148884, -0.04181550443172455, 0.00992137286812067, 0.022383812814950943, 0.02542935684323311, 0.015255745500326157, -0.028175950050354004, 0.0257656741887331, -0.023205922916531563, -0.007842741906642914, 0.022757498547434807, 0.0192448478192091, 0.05732348561286926, 0.00329778203740716, 0.027989108115434647, 0.030773071572184563, -0.06696459650993347, 0.009659792296588421, 0.052951354533433914, 0.01592838019132614, 0.022327760234475136, 0.006796420551836491, 0.023037763312458992, -0.10216584801673889, -0.05620242655277252, -0.024569878354668617, 0.04076918214559555, 0.034528620541095734, 0.046449214220047, 0.0180023405700922, 0.034565988928079605, -0.012051384896039963, 0.03342624381184578, 0.0025293894577771425, 0.01701207086443901, 0.00708135636523366, 0.04936396703124046, 0.04398288205265999, -0.01671312190592289, -0.07249515503644943, -0.008356560952961445, 0.013107048347592354, -0.07765202224254608, 0.0013616196811199188, -0.032454658299684525, 0.0003871156950481236, 0.012966915965080261, -0.017983656376600266, 0.03860180079936981, 0.042525507509708405, -0.028119897469878197, 0.007725965231657028, -0.03701363131403923, -0.049961864948272705, -0.018347999081015587, -0.02780226431787014, -0.024794088676571846, 0.010136242024600506, -0.07810045033693314, -0.0016570653533563018, 0.023598292842507362, -0.0071887909434735775, -0.004572986625134945, -0.05579137057065964, 0.023486187681555748, -0.020048271864652634, -0.030081750825047493, 0.009977425448596478, -0.028157265856862068, 0.045328155159950256, 0.027391210198402405, 0.026606468483805656, 0.021898020058870316, 0.04794395714998245, 0.0047621652483940125, -0.0461876317858696, -0.04921449348330498, -0.014396267011761665, 0.04816817119717598, 0.0533624105155468, -0.03419230133295059, -0.020814329385757446, -0.00429272186011076, -0.036471787840127945, 0.026643836870789528, -0.052166614681482315, 0.05201714113354683, 0.06920671463012695, -0.02447645552456379, -0.036733366549015045, -0.02914753556251526, -0.051082924008369446, -0.019104715436697006, 0.003867653664201498, 0.014349555596709251, -0.021169330924749374, -0.013760999776422977, -0.02408408559858799, -0.026774626225233078, -0.04678552970290184, 0.016339436173439026, 0.015806932002305984, 0.00749241141602397, 0.03882601112127304, 0.02352355606853962, 0.012051384896039963, 0.049737654626369476, -0.0027395880315452814, -0.05085871368646622, -0.005857533309608698, -0.012312965467572212, -0.017525888979434967, -0.0048252250999212265, -0.040320757776498795, 0.06920671463012695, 0.04764501005411148, -0.008211757987737656, 0.014153370633721352, -0.031146757304668427, -0.05470767989754677, -0.04286182299256325, -0.05691242963075638, 0.01701207086443901, 0.06625459343194962, 0.01638614572584629, 0.04603815823793411, -0.031202809885144234, 0.03254808112978935, -0.008258468471467495, 0.013415340334177017, 0.06969250738620758, -0.07137409597635269, -0.056800324469804764, 0.007165435701608658, 0.1107606366276741, -0.07455042749643326, 0.03628494590520859, 0.005852862261235714, 0.01349007710814476, 0.025186460465192795, -0.05369872972369194, -0.0024966918863356113, 0.0467107929289341, 0.020123010501265526, -0.0031903472263365984, -0.049625545740127563, 0.010192295536398888, 0.027484631165862083, -0.006319970358163118, 0.014601794071495533, 0.001437524682842195, -0.0653577446937561, 0.022925658151507378, 0.03916233032941818, -0.07675517350435257, 0.03228650242090225, 0.0546703115105629, -0.06651616841554642, 0.01506890170276165, 0.003998443949967623, 0.036471787840127945, -0.01997353509068489, -0.010407164692878723, -0.018235893920063972, -0.010640718974173069, -0.04708448052406311, -0.046449214220047, -0.01984274573624134, 0.06748775392770767, -0.0013394319685176015, 0.03243597596883774, 0.011257301084697247, -0.0257656741887331, -0.0221782848238945, -0.020440643653273582, 0.02701752260327339, 0.059042442589998245, 0.040059175342321396, -0.02810121327638626, -0.039237067103385925, -0.07537253946065903, 0.08534996211528778, 0.007782018277794123, -0.08131414651870728, 0.021075909957289696, 0.04958817735314369, 0.01694667525589466, -0.07014092803001404, 0.02638225629925728, -0.007623201701790094, -0.01605917140841484, -0.016404829919338226, 0.01753523200750351, 0.02184196747839451, -0.049102384597063065, 0.03228650242090225, -0.0012436748947948217, -0.01757260039448738, 0.019898798316717148, 0.026475677266716957, -0.019992219284176826, -0.02313118427991867, -0.026662521064281464, 0.0045309471897780895, 0.000781821901910007, 0.010911641642451286, 0.012845468707382679, 0.02092643640935421, -0.030978597700595856, -0.001682756352238357, -0.01612456515431404, 0.030231226235628128, -0.06266719847917557, -0.06203193590044975, -0.05530558153986931, 0.016031144186854362, 0.02019774727523327, -0.024663299322128296, 0.02234644442796707, 0.031146757304668427, -0.023673029616475105, 0.01744181104004383, -0.026868049055337906, 0.009500975720584393, -0.06143403425812721, 0.015900354832410812, 0.05044765770435333, -0.013658235780894756, -0.0019116392359137535, 0.06812302023172379, 0.09454264491796494, -0.03122149407863617, -0.07682991027832031, -0.019824061542749405, -0.012966915965080261, -0.011705724522471428, 0.04428183287382126, -0.018319973722100258, -0.0937952771782875, 0.028418846428394318, 0.0440949909389019, -0.041105497628450394, 0.013284550048410892, -0.0533624105155468, -0.04469288885593414, -0.01037913840264082, -0.02914753556251526, -0.027783580124378204, 0.030604911968111992, 0.0090011702850461, -0.018945898860692978, 0.07570885121822357, 0.007324252277612686, 0.02243986539542675, -0.009603738784790039, -0.04779448360204697, -0.012200859375298023, -0.06076139956712723, 0.03195018321275711, 0.010565981268882751, -0.04274971783161163, 0.0076792542822659016, 0.050746604800224304, 0.07578359544277191, -0.0658809021115303, 0.012378360144793987, 0.008165046572685242, -0.010734140872955322, 0.014087975025177002, 0.04484236240386963, -0.010154926218092442, -0.04738342761993408, -0.020010903477668762, -0.011799146421253681, -0.02187933586537838, 0.06225614622235298, -0.015237061306834221, 0.00996808335185051, 0.049401335418224335, 0.01822655089199543, -0.014648504555225372, -0.008090309798717499, 0.05780927836894989, -0.004591670818626881, 0.037555478513240814, 0.037947848439216614, 0.01202335860580206, -0.036901526153087616, -0.0007765669724904001, -0.007599845994263887, -0.024196190759539604, -0.09910161793231964, -0.007623201701790094, 0.014499030075967312, -0.03734995052218437, -0.0032744265627115965, 0.08968472480773926, -0.018366683274507523, -0.020478012040257454, -0.011014404706656933, 0.008991828188300133, -0.004652394913136959, 0.02118801698088646, -0.023486187681555748, 0.012705336324870586, 0.010098873637616634, 0.00569871673360467, -0.02832542546093464, 0.010285716503858566, 0.026195412501692772, 0.030903860926628113, -0.0546703115105629, 0.049139756709337234, -0.01344336662441492, -0.014629820361733437, 0.09790582209825516, 0.02793305553495884, 0.010248348116874695, 0.00338419689796865, -0.00008174389222403988, -0.04484236240386963, -0.009337487630546093, 0.011014404706656933, -0.0446181483566761, 0.04846711829304695, -0.05366136133670807, 0.05011133849620819, 0.057958751916885376, 0.018843134865164757, 0.042002346366643906, 0.02823200449347496, 0.03942390903830528, 0.02641962468624115, -0.03708837181329727, 0.058818232268095016, 0.02853095345199108, 0.015274429693818092, -0.026214096695184708, 0.04136708006262779, -0.014078632928431034, 0.0076792542822659016, 0.02770884335041046, -0.08236046880483627, -0.007520437706261873, -0.007198133505880833, 0.051867663860321045, -0.01937563717365265, -0.04424446448683739, -0.05751032754778862, 0.04009654372930527, -0.001973530976101756, 0.007674583233892918, -0.07111251354217529, -0.050260815769433975, 0.038377586752176285, 0.006964579224586487, 0.010650061070919037, -0.0005395096959546208, 0.011995331384241581, -0.027447262778878212, -0.04925186187028885, 0.028904639184474945, 0.03813469037413597, -0.04730869084596634, 0.030717017129063606, 0.03852706402540207, -0.02158038690686226, 0.012695993296802044, 0.005376412533223629, -0.028007792308926582, 0.0009330480825155973, -0.1067248210310936, -0.04450604319572449, 0.00929544772952795, 0.026270151138305664, 0.009884003549814224, 0.06330246478319168, -0.005250293295830488, 0.030604911968111992, -0.08684470504522324, -0.026139359921216965, -0.05197977274656296, 0.011369407176971436, 0.008258468471467495, 0.0059976656921207905, -0.02875516377389431, 0.05112029239535332, -0.004720125813037157, -0.00212300568819046, -0.014592451974749565, -0.01868431828916073, -0.001688595162704587, -0.0270735751837492, -0.05254030227661133, 0.032585449516773224, 0.04349708929657936, -0.01818918250501156, 0.022664077579975128, 0.03447256609797478, -0.00754379341378808, -0.013069679960608482, 0.03361308574676514, -0.03252939507365227, -0.02372908405959606, 0.010883615352213383, 0.047757115215063095, -0.03389335051178932, 0.018123788759112358, -0.0007310239016078413, -0.0022993388120085, -0.014583109878003597, 0.040619704872369766, 0.04760764166712761, 0.013125733472406864, 0.03516388684511185, -0.002550409408286214, -0.06382562965154648, -0.012154148891568184, 0.07690465450286865, -0.061508774757385254, 0.054408732801675797, 0.029782801866531372, 0.007184119895100594, -0.0369202122092247, 0.009519659914076328, 0.03961075469851494, 0.023149868473410606, -0.01161230355501175, -0.014863374643027782, 0.018973924219608307, -0.049961864948272705, 0.05201714113354683 ]
730,295
mmengine.fileio.parse
dict_from_file
Load a text file and parse the content as a dict. Each line of the text file will be two or more columns split by whitespaces or tabs. The first column will be parsed as dict keys, and the following columns will be parsed as dict values. ``dict_from_file`` supports loading a text file which can be storaged in different backends and parsing the content as a dict. Args: filename(str): Filename. key_type(type): Type of the dict keys. str is user by default and type conversion will be performed if specified. encoding (str): Encoding used to open the file. Defaults to utf-8. file_client_args (dict, optional): Arguments to instantiate a FileClient. See :class:`mmengine.fileio.FileClient` for details. Defaults to None. It will be deprecated in future. Please use ``backend_args`` instead. backend_args (dict, optional): Arguments to instantiate the prefix of uri corresponding backend. Defaults to None. New in v0.2.0. Examples: >>> dict_from_file('/path/of/your/file') # disk {'key1': 'value1', 'key2': 'value2'} >>> dict_from_file('s3://path/of/your/file') # ceph or petrel {'key1': 'value1', 'key2': 'value2'} Returns: dict: The parsed contents.
def dict_from_file(filename, key_type=str, encoding='utf-8', file_client_args=None, backend_args=None): """Load a text file and parse the content as a dict. Each line of the text file will be two or more columns split by whitespaces or tabs. The first column will be parsed as dict keys, and the following columns will be parsed as dict values. ``dict_from_file`` supports loading a text file which can be storaged in different backends and parsing the content as a dict. Args: filename(str): Filename. key_type(type): Type of the dict keys. str is user by default and type conversion will be performed if specified. encoding (str): Encoding used to open the file. Defaults to utf-8. file_client_args (dict, optional): Arguments to instantiate a FileClient. See :class:`mmengine.fileio.FileClient` for details. Defaults to None. It will be deprecated in future. Please use ``backend_args`` instead. backend_args (dict, optional): Arguments to instantiate the prefix of uri corresponding backend. Defaults to None. New in v0.2.0. Examples: >>> dict_from_file('/path/of/your/file') # disk {'key1': 'value1', 'key2': 'value2'} >>> dict_from_file('s3://path/of/your/file') # ceph or petrel {'key1': 'value1', 'key2': 'value2'} Returns: dict: The parsed contents. """ if file_client_args is not None: warnings.warn( '"file_client_args" will be deprecated in future. ' 'Please use "backend_args" instead', DeprecationWarning) if backend_args is not None: raise ValueError( '"file_client_args" and "backend_args" cannot be set at the ' 'same time.') mapping = {} if file_client_args is not None: file_client = FileClient.infer_client(file_client_args, filename) text = file_client.get_text(filename, encoding) else: text = get_text(filename, encoding, backend_args=backend_args) with StringIO(text) as f: for line in f: items = line.rstrip('\n').split() assert len(items) >= 2 key = key_type(items[0]) val = items[1:] if len(items) > 2 else items[1] mapping[key] = val return mapping
(filename, key_type=<class 'str'>, encoding='utf-8', file_client_args=None, backend_args=None)
[ 0.02222765050828457, 0.02220744453370571, -0.05601368099451065, -0.006713761016726494, 0.002139411401003599, 0.028148289769887924, -0.0022038209717720747, 0.020570680499076843, 0.04397033527493477, -0.04946662858128548, 0.009093130007386208, 0.011992827989161015, -0.021520407870411873, 0.036271486431360245, 0.02194475382566452, 0.002753197681158781, -0.03691810742020607, 0.0070623308420181274, -0.026733802631497383, -0.07618021965026855, -0.023136964067816734, -0.014902629889547825, 0.04950704053044319, 0.005455878097563982, 0.01821657083928585, -0.025420350953936577, -0.03534196689724922, -0.007799884770065546, 0.043121643364429474, 0.026572147384285927, 0.06991606950759888, -0.038373008370399475, -0.023015722632408142, 0.041626326739788055, -0.03307878598570824, -0.05480126291513443, 0.020570680499076843, -0.00418536551296711, -0.021783098578453064, -0.00033562490716576576, -0.016216082498431206, 0.05338677763938904, 0.033159613609313965, 0.03976728767156601, -0.03121974691748619, 0.03584713861346245, -0.039060045033693314, -0.10451037436723709, -0.020297886803746223, -0.022854067385196686, 0.013245658949017525, -0.04966869577765465, 0.00021485677279997617, 0.012002931907773018, -0.007936282083392143, -0.06049962341785431, -0.05112359672784805, 0.01530676893889904, -0.05839810147881508, -0.014266110956668854, 0.03354354575276375, -0.022470135241746902, -0.00401360634714365, -0.016216082498431206, -0.00006598833715543151, -0.025440556928515434, 0.038716528564691544, -0.053467605262994766, 0.0029628449119627476, -0.03564507141709328, 0.023925036191940308, 0.0049254451878368855, -0.000243588539888151, -0.06062086671590805, 0.03061353787779808, 0.03744348883628845, -0.01141692977398634, 0.055447887629270554, -0.03847404196858406, 0.030391260981559753, -0.0030840865802019835, 0.01667073741555214, -0.008173713460564613, -0.03809010982513428, 0.015902873128652573, -0.023278413340449333, 0.024874761700630188, 0.02614779956638813, 0.0004215044609736651, 0.03346271812915802, -0.04207088053226471, -0.0035968380980193615, 0.0013185038696974516, 0.05059821531176567, 0.006132810842245817, -0.05306346341967583, 0.043444953858852386, -0.027804771438241005, -0.0065369498915970325, 0.0009604618535377085, -0.002514502964913845, 0.040474530309438705, 0.06344983726739883, -0.032533198595047, 0.008764767087996006, -0.08001954108476639, -0.015417907387018204, -0.014286317862570286, -0.025177866220474243, -0.009578096680343151, -0.06894613057374954, -0.08414176106452942, -0.014064040966331959, 0.030957056209445, 0.002841603010892868, 0.021924545988440514, -0.020570680499076843, 0.008638473227620125, 0.0009434122475795448, -0.012073655612766743, -0.004546565003693104, 0.02932029217481613, -0.030653951689600945, 0.03982790932059288, -0.0040742275305092335, -0.08301017433404922, 0.025784075260162354, -0.05423546954989433, 0.06300529092550278, 0.04384909197688103, -0.012326243333518505, -0.02744104526937008, -0.011053204536437988, -0.00340487202629447, 0.0408988781273365, 0.04037349671125412, -0.0059105344116687775, 0.05407381430268288, 0.01896422728896141, 0.04849669337272644, 0.0800599604845047, -0.0068855201825499535, 0.0345538929104805, -0.05439712479710579, -0.02736021764576435, -0.05282098054885864, -0.01202313881367445, -0.08398010581731796, -0.05641781911253929, 0.04150508716702461, -0.0013538660714402795, 0.0031371298246085644, -0.005309377796947956, 0.008244438096880913, 0.019620953127741814, -0.043525781482458115, -0.005814551375806332, -0.030532710254192352, -0.05071945860981941, 0.05132566764950752, -0.04110094904899597, 0.04821379482746124, 0.06328818202018738, -0.0013740729773417115, 0.01043689250946045, 0.015185527503490448, -0.009204268455505371, -0.043444953858852386, 0.03653417527675629, -0.06700626760721207, -0.05750899389386177, 0.006698605604469776, -0.025440556928515434, -0.007289659231901169, 0.03726162761449814, -0.02669338881969452, 0.042232535779476166, 0.003377087414264679, -0.010356064885854721, -0.007916075177490711, 0.07638229429721832, -0.038514457643032074, -0.018580295145511627, 0.04817338287830353, 0.037706177681684494, 0.004930497147142887, 0.020085712894797325, 0.0734320729970932, 0.04817338287830353, 0.03204823285341263, 0.02309655025601387, -0.04166674241423607, -0.0463547557592392, -0.006147966254502535, 0.017782120034098625, -0.054962918162345886, 0.03588755428791046, -0.027946218848228455, -0.04768841341137886, 0.0411817766726017, -0.05540747195482254, -0.02188413217663765, -0.013740729540586472, 0.025278901681303978, -0.03380623832345009, -0.025157660245895386, 0.0030537762213498354, -0.030532710254192352, -0.030936848372220993, 0.04938580095767975, -0.04368743672966957, -0.06906737387180328, -0.024490829557180405, 0.01530676893889904, 0.04946662858128548, -0.036473553627729416, -0.025076832622289658, 0.08616245537996292, -0.01687280833721161, -0.02147999405860901, 0.06296487152576447, 0.09650842100381851, -0.03184616193175316, 0.008653628639876842, 0.051851049065589905, -0.03705955669283867, -0.0064763291738927364, 0.056943200528621674, -0.001923449570313096, 0.02424834668636322, 0.00819897186011076, -0.01036616787314415, -0.012174691073596478, -0.001722642919048667, 0.11291646957397461, -0.06757205724716187, 0.009729648940265179, -0.0017845267429947853, 0.022793445736169815, 0.0008815284236334264, 0.05480126291513443, 0.006668295245617628, -0.05403339862823486, -0.04966869577765465, -0.08794067054986954, -0.04712262004613876, 0.022065995261073112, 0.014013523235917091, -0.05071945860981941, -0.011093618348240852, 0.06437935680150986, 0.008441455662250519, 0.0013664953876286745, 0.061954524368047714, 0.011002687737345695, 0.047041792422533035, 0.04017142578959465, -0.06563219428062439, -0.013114314526319504, -0.029886087402701378, 0.05399298667907715, 0.0030689314007759094, -0.0030436727683991194, -0.01746891252696514, 0.028895946219563484, -0.014013523235917091, -0.00761802215129137, 0.05908513814210892, 0.005258860066533089, -0.0016582332318648696, 0.15042057633399963, 0.06082293763756752, 0.028006840497255325, -0.029886087402701378, -0.030734779313206673, -0.016084736213088036, 0.031462229788303375, -0.01828729547560215, 0.08022161573171616, 0.051851049065589905, -0.06547053903341293, -0.012154484167695045, -0.04023204743862152, -0.05019407719373703, 0.045344408601522446, 0.008426300249993801, -0.052133943885564804, -0.014943043701350689, 0.028774704784154892, 0.011821068823337555, -0.01477128453552723, -0.024672692641615868, -0.06898654252290726, -0.014205489307641983, -0.03748390078544617, -0.0073250215500593185, -0.02628924883902073, -0.07217924296855927, 0.07052227109670639, -0.01354876346886158, 0.003869632026180625, 0.05540747195482254, 0.08567748963832855, 0.020954612642526627, 0.005420515779405832, 0.04611227288842201, 0.026390284299850464, -0.05548829957842827, -0.06619798392057419, -0.0020964716095477343, -0.00822423119097948, -0.011942310258746147, -0.04902207478880882, 0.0361502431333065, -0.03172491863369942, 0.023884620517492294, -0.021661857143044472, 0.015296665020287037, 0.01801450178027153, -0.046556826680898666, -0.016155460849404335, -0.013599281199276447, -0.021863926202058792, -0.012649553827941418, 0.05391215905547142, -0.04841586574912071, 0.07626105099916458, 0.018135743215680122, 0.09723587334156036, 0.0463547557592392, 0.04017142578959465, 0.013134521432220936, 0.00039371990715153515, 0.037099968641996384, -0.030512502416968346, -0.019257228821516037, 0.015367389656603336, -0.029178842902183533, 0.01856008917093277, -0.01949971169233322, 0.039726875722408295, -0.050436560064554214, 0.013235555961728096, -0.0503961481153965, -0.050436560064554214, -0.023399654775857925, 0.019277434796094894, -0.08988054096698761, 0.05282098054885864, -0.024369588121771812, -0.01787305250763893, 0.0026066971477121115, -0.012548519298434258, 0.03338189050555229, -0.04696096479892731, -0.04308122768998146, -0.012780899181962013, -0.0895572304725647, 0.0003542531921993941, 0.02980525977909565, -0.004341969732195139, 0.010330805554986, -0.052255187183618546, -0.03920149430632591, -0.035321757197380066, 0.019186504185199738, 0.03475596383213997, -0.02879491075873375, 0.016074633225798607, 0.019964471459388733, 0.019691677764058113, 0.0007369224331341684, -0.021358752623200417, 0.054154641926288605, 0.031340986490249634, -0.017519431188702583, -0.03061353787779808, 0.015215837396681309, -0.02925967238843441, 0.07779677957296371, 0.0007167154690250754, 0.014740973711013794, -0.02661256119608879, -0.007168417330831289, -0.006789537146687508, 0.03184616193175316, 0.062277838587760925, -0.004814307205379009, -0.02796642668545246, -0.022793445736169815, 0.0463547557592392, -0.0014195386320352554, 0.02154061384499073, -0.025844696909189224, 0.0138922818005085, -0.013437625020742416, -0.031462229788303375, -0.018994538113474846, 0.0008928948664106429, 0.02424834668636322, -0.002611749107018113, 0.016771772876381874, -0.029178842902183533, 0.00526391202583909, -0.013387108221650124, 0.05350801721215248, -0.009396234527230263, -0.004129796754568815, -0.014720766805112362, 0.008375783450901508, 0.06514722108840942, -0.020348403602838516, 0.0008423774852417409, -0.02208620309829712, 0.018135743215680122, 0.049143314361572266, -0.03435182571411133, -0.02899698168039322, 0.00825959350913763, 0.003387190867215395, 0.00196386338211596, -0.004443004261702299, -0.009325509890913963, -0.016690945252776146, 0.02816849574446678, 0.03522072359919548, -0.0030613536946475506, -0.030573124065995216, 0.02784518525004387, -0.006294466555118561, 0.017175912857055664, -0.014690456911921501, 0.0007223986322060227, -0.029300086200237274, -0.027137940749526024, 0.02966381050646305, -0.0006971399416215718, -0.0017340093618258834, 0.05488209053874016, -0.040272463113069534, -0.04728427529335022, 0.008557645604014397, 0.022672204300761223, 0.02580428309738636, -0.04708220809698105, -0.026855044066905975, -0.03530155122280121, -0.015963494777679443, 0.03530155122280121, 0.003503380808979273, -0.05318470671772957, 0.025218280032277107, 0.030916642397642136, -0.024430209770798683, -0.006653140299022198, 0.02410689741373062, 0.009790269657969475, 0.03087622858583927, 0.021237511187791824, 0.01617566868662834, 0.006016620900481939, -0.0029577931854873896, 0.02093440666794777, -0.08794067054986954, 0.032068438827991486, 0.002798663452267647, -0.03075498715043068, 0.058963894844055176, -0.010179254226386547, -0.01273038238286972, -0.032674647867679596, 0.03988853096961975, -0.011002687737345695, 0.019519919529557228, 0.011608895845711231, 0.030633743852376938, 0.062075767666101456, 0.01930774562060833, -0.03368499502539635, -0.02430896833539009, 0.03061353787779808, -0.0009017353877425194, -0.024490829557180405, -0.010739997029304504, 0.02784518525004387, -0.00813329964876175, 0.00935076829046011, -0.030573124065995216, -0.029158636927604675, 0.015882667154073715, -0.07686726003885269, -0.010260081849992275, 0.06607674807310104, 0.031340986490249634, 0.02946174144744873, -0.006233845837414265, 0.027077320963144302, 0.035665277391672134, -0.009229526855051517, -0.01585235632956028, 0.03303837403655052, -0.011376515962183475, -0.027865391224622726, 0.07323000580072403, -0.025036418810486794, 0.024753520265221596, -0.008997146971523762, 0.015619976446032524, -0.00138038769364357, -0.049143314361572266, -0.021116267889738083, 0.009497269056737423, 0.06381356716156006, -0.027723943814635277, -0.02107585407793522, 0.026248835027217865, -0.025278901681303978, 0.016953635960817337, -0.03503886237740517, -0.0002928429748862982, -0.031664300709962845, -0.02350068837404251, 0.02269241027534008, 0.029825465753674507, 0.02925967238843441, -0.0067491233348846436, 0.029300086200237274, -0.0315430574119091, 0.03285650908946991, -0.004263667389750481, -0.008810232393443584, -0.011336102150380611, 0.013164831325411797, -0.05031532049179077, 0.0286534633487463, -0.029845673590898514, 0.002040902618318796, -0.004685487598180771, 0.022712618112564087, 0.003803959349170327, 0.06074211001396179, 0.039868324995040894, -0.015185527503490448, -0.030168984085321426, 0.049830351024866104, -0.05156815052032471, 0.04199005290865898, -0.06021672859787941, -0.03374561667442322, -0.023278413340449333, 0.006208586972206831, -0.04045432433485985, 0.018509570509195328, -0.005008799023926258, -0.01638784073293209, 0.011305791325867176, 0.023945242166519165, -0.04801172763109207, -0.007143158931285143, -0.036473553627729416, -0.01255862321704626, -0.02105564810335636, -0.07731181383132935, 0.049224141985177994, -0.009401286020874977, 0.021500200033187866, 0.016630323603749275, 0.08284851908683777, -0.027663322165608406, 0.004372280091047287, 0.014478283934295177, 0.0276431143283844, 0.03273526951670647, -0.0008101726416498423, -0.021237511187791824, 0.010709686204791069, 0.00954778678715229, 0.007865557447075844, 0.000690193846821785, -0.039403561502695084, 0.014882422983646393, 0.000036704041121993214, 0.012205000966787338, 0.0679761990904808, -0.04247502237558365, 0.06510680913925171, -0.00789081584662199, 0.0022467607632279396, -0.002806240925565362, 0.0006412551156245172, -0.003228061133995652, 0.01255862321704626, 0.02451103739440441, 0.006072190124541521, 0.016084736213088036, -0.045829374343156815, 0.055447887629270554, 0.04930497333407402, -0.008168661966919899, 0.0015420432901009917, -0.04615268483757973, -0.040555357933044434, -0.012245414778590202, 0.02358151786029339, 0.02424834668636322, -0.03144202381372452, 0.05629657953977585, -0.015296665020287037, 0.04566771909594536, -0.03188657760620117, -0.025097038596868515, -0.06413687765598297, -0.021843718364834785, -0.06886530667543411, 0.06866323202848434, 0.002441252814605832, 0.030189191922545433, -0.05160856619477272, 0.027259182184934616, -0.03996935859322548, 0.02228827215731144, 0.0020105920266360044, 0.05427588149905205, 0.058357685804367065, 0.0239048283547163, 0.020156437531113625, -0.04017142578959465, -0.040131013840436935, -0.007582659833133221, -0.035402584820985794, -0.023864414542913437, 0.020712129771709442, 0.01754974015057087, 0.018065018579363823, 0.0550033338367939, 0.048860419541597366, 0.012043345719575882, 0.0006845106254331768, 0.004773893393576145, 0.007380590308457613, 0.017529534175992012, -0.02626904286444187, -0.020893992856144905, 0.022247858345508575, -0.014943043701350689, -0.00792617816478014, 0.0731491819024086, -0.054962918162345886, 0.06838034093379974, -0.019964471459388733, 0.03889838978648186, 0.024005863815546036, -0.03677665814757347, -0.009542734362185001, -0.04942621290683746, -0.0069158305414021015, 0.002575123915448785, -0.05678154528141022, -0.053346361964941025, 0.020297886803746223, 0.02723897621035576, 0.021823512390255928, -0.0009554101270623505, 0.01452880073338747, -0.013781143352389336, -0.08470755815505981, -0.021722476929426193, 0.0410403273999691, 0.060984592884778976, 0.007809988223016262, 0.027319803833961487, 0.01816605217754841, 0.05177022144198418, 0.032614026218652725, 0.04498068243265152, -0.00836062803864479, 0.00859805941581726, -0.012528312392532825, 0.0036625107750296593, 0.032007817178964615, 0.05047697573900223, 0.057670652866363525, -0.0365745909512043, 0.00565794762223959, 0.004253563936799765, 0.00650158803910017, 0.02222765050828457, 0.00782514363527298, -0.00974985584616661, -0.0022795971017330885, 0.03380623832345009, 0.06640005856752396, -0.026390284299850464, -0.004228305537253618, -0.021661857143044472, -0.04962828382849693, 0.02139916643500328, -0.02818870358169079, -0.019671471789479256, 0.05831727385520935, -0.04300040006637573, -0.050032421946525574, 0.021318338811397552, 0.023520896211266518, -0.050638630986213684, -0.04671848192811012, -0.07019896060228348, 0.04110094904899597, 0.04869876429438591, -0.0434853695333004, -0.01916629821062088, -0.001091175596229732, 0.03564507141709328, -0.021298130974173546, 0.04120198264718056, 0.02459186501801014, -0.044131990522146225, 0.0070825377479195595, 0.006057034712284803, -0.053548432886600494, -0.004498573485761881, 0.012134277261793613, 0.017357774078845978, 0.01746891252696514, -0.05221477150917053, -0.027319803833961487, -0.04518275335431099, -0.0018729321891441941, -0.06627881526947021, 0.04235377907752991, 0.06401563435792923, -0.040615979582071304, -0.08688990771770477, -0.029825465753674507, -0.033301062881946564, -0.04546564817428589, -0.028754496946930885, -0.06361149251461029, 0.04768841341137886, 0.0161251500248909, -0.03794866427779198, 0.02925967238843441, -0.08971888571977615, -0.012427277863025665, -0.0184994675219059, 0.014235800132155418, 0.0621970109641552, 0.014619732275605202, 0.021560821682214737, 0.05411422625184059, -0.04336412623524666, 0.019277434796094894, -0.026976285502314568, 0.06579384952783585, -0.016569703817367554, -0.026107385754585266, 0.010078218765556812, 0.026592353358864784, 0.009143647737801075, 0.005218446254730225, 0.0019929111003875732, -0.004723375663161278, 0.011790758930146694, -0.034574102610349655, -0.03554403409361839, -0.06850157678127289, 0.004834514111280441, 0.020358508452773094 ]
730,296
mmengine.utils.version_utils
digit_version
Convert a version string into a tuple of integers. This method is usually used for comparing two versions. For pre-release versions: alpha < beta < rc. Args: version_str (str): The version string. length (int): The maximum number of version levels. Defaults to 4. Returns: tuple[int]: The version info in digits (integers).
def digit_version(version_str: str, length: int = 4): """Convert a version string into a tuple of integers. This method is usually used for comparing two versions. For pre-release versions: alpha < beta < rc. Args: version_str (str): The version string. length (int): The maximum number of version levels. Defaults to 4. Returns: tuple[int]: The version info in digits (integers). """ assert 'parrots' not in version_str version = parse(version_str) assert version.release, f'failed to parse version {version_str}' release = list(version.release) release = release[:length] if len(release) < length: release = release + [0] * (length - len(release)) if version.is_prerelease: mapping = {'a': -3, 'b': -2, 'rc': -1} val = -4 # version.pre can be None if version.pre: if version.pre[0] not in mapping: warnings.warn(f'unknown prerelease version {version.pre[0]}, ' 'version checking may go wrong') else: val = mapping[version.pre[0]] release.extend([val, version.pre[-1]]) else: release.extend([val, 0]) elif version.is_postrelease: release.extend([1, version.post]) # type: ignore else: release.extend([0, 0]) return tuple(release)
(version_str: str, length: int = 4)
[ -0.000987748964689672, 0.09741954505443573, -0.09366413950920105, -0.0026876896154135466, 0.045543450862169266, -0.012149829417467117, -0.00562850059941411, 0.01931086555123329, 0.05563149228692055, -0.04189850389957428, 0.010695531964302063, 0.06851767748594284, 0.03017207607626915, 0.021704014390707016, -0.008753400295972824, -0.018942689523100853, 0.008302383124828339, -0.000964162580203265, 0.007354328408837318, 0.010916437953710556, 0.025496233254671097, 0.03862173110246658, -0.023692168295383453, 0.06225867196917534, 0.0008209188818000257, 0.05680965632200241, 0.08394427597522736, 0.007262284401804209, -0.024833515286445618, -0.03619176521897316, 0.05231790244579315, 0.02280854433774948, 0.032252274453639984, 0.0035782167688012123, -0.048415228724479675, 0.03910036012530327, 0.011615972965955734, -0.022109007462859154, -0.05496877431869507, 0.08416518568992615, 0.014828315004706383, -0.03258363530039787, 0.00004296592669561505, -0.04642707481980324, -0.06634543091058731, -0.046832069754600525, -0.02093084342777729, -0.04484391584992409, -0.04697934165596962, -0.03910036012530327, 0.04381301999092102, -0.010934846475720406, 0.02573554776608944, -0.04315030202269554, -0.01684408262372017, 0.04664798080921173, 0.021704014390707016, 0.10647668689489365, 0.026269404217600822, 0.02317672036588192, 0.010870415717363358, 0.025533050298690796, -0.044033925980329514, -0.0015912135131657124, -0.01018008403480053, 0.04292939603328705, 0.04539618268609047, -0.07687528431415558, 0.004020028747618198, 0.02915959060192108, 0.0103089464828372, 0.026803260669112206, -0.06119095906615257, -0.0412357859313488, 0.02667439915239811, 0.07761164009571075, -0.003840542631223798, 0.01940291002392769, 0.04042579606175423, -0.0017833556048572063, 0.06560908257961273, -0.027723701670765877, 0.04985111951828003, -0.05154472962021828, 0.024833515286445618, 0.009116974659264088, -0.020709937438368797, 0.008965101093053818, -0.04377620294690132, 0.01876780390739441, -0.05021929368376732, 0.001227639033459127, -0.001019964343868196, -0.002492095809429884, -0.03554745391011238, -0.02761324867606163, 0.040094438940286636, -0.04418119788169861, -0.02665598876774311, -0.05776691809296608, 0.020139262080192566, -0.008518687449395657, -0.10375218093395233, -0.03976307809352875, -0.04572753980755806, -0.007653472013771534, -0.03650471568107605, 0.009130780585110188, 0.017368733882904053, -0.015896026045084, 0.0003445903421379626, -0.041162148118019104, 0.021041296422481537, -0.026158951222896576, -0.06288456916809082, -0.017387142404913902, -0.002586440881714225, -0.032878175377845764, -0.014754679054021835, -0.031865689903497696, 0.025901228189468384, -0.0033273964654654264, -0.023305581882596016, 0.06421000510454178, 0.011855288408696651, 0.027189845219254494, -0.024299658834934235, 0.0413094200193882, -0.05563149228692055, -0.020507439970970154, 0.05515286326408386, 0.062074583023786545, -0.01584080047905445, -0.009462139569222927, -0.042045772075653076, -0.08600606769323349, -0.0013887162785977125, 0.05301743745803833, -0.021041296422481537, -0.021519925445318222, 0.02385784685611725, -0.030890021473169327, 0.021022886037826538, -0.020838798955082893, -0.023655349388718605, 0.0004231155035085976, -0.001912217470817268, -0.03703857213258743, 0.00619457196444273, 0.038216736167669296, 0.024520564824342728, 0.011625178158283234, 0.0795997902750969, 0.01318072434514761, 0.005108451005071402, -0.050734743475914, 0.007690289989113808, -0.09359050542116165, 0.07871616631746292, -0.03517927974462509, 0.04473346471786499, -0.0032813744619488716, 0.003923382610082626, -0.024060344323515892, 0.04823113977909088, 0.029417313635349274, 0.0444021038711071, -0.022090598940849304, 0.009673841297626495, 0.013263563625514507, 0.028091877698898315, 0.06277412176132202, 0.017874976620078087, 0.006963140796869993, -0.019163595512509346, 0.02220105193555355, 0.03238113597035408, 0.0111097302287817, 0.07834798842668533, -0.009627819061279297, 0.0347926951944828, -0.010667918249964714, -0.024870332330465317, 0.08372337371110916, 0.020838798955082893, 0.027815746143460274, 0.006323433946818113, 0.07098446041345596, -0.00811369251459837, -0.09263324737548828, 0.04094124212861061, -0.022421957924962044, -0.005200495012104511, -0.018197130411863327, -0.010898028500378132, 0.0411989688873291, -0.011615972965955734, -0.008495676331222057, -0.00532015273347497, -0.004588401410728693, 0.03460860624909401, 0.003405634080991149, -0.04256122186779976, -0.01645749621093273, 0.061411865055561066, -0.04561708867549896, 0.005237312987446785, -0.0008140155696310103, -0.020176080986857414, -0.014082756824791431, 0.05798782408237457, 0.02411556988954544, 0.060822781175374985, -0.0032215456012636423, -0.031258199363946915, -0.06822313368320465, -0.008495676331222057, 0.001642988296225667, 0.05169200152158737, -0.038584914058446884, 0.07790617644786835, -0.0015451913932338357, 0.06295821070671082, 0.037646062672138214, 0.040094438940286636, -0.024980785325169563, 0.027778929099440575, 0.05180245637893677, 0.012784934602677822, 0.034461334347724915, 0.03869536519050598, -0.03554745391011238, -0.00546282110735774, 0.003796821692958474, 0.05831918120384216, -0.011542337946593761, -0.03431406244635582, 0.011551542207598686, 0.022955814376473427, -0.060454607009887695, 0.030190484598279, 0.03943172097206116, -0.01655874401330948, 0.02639826573431492, 0.011431884951889515, -0.012840161100029945, -0.044623009860515594, -0.024336475878953934, -0.02256922796368599, -0.04664798080921173, -0.04893067851662636, -0.04027852416038513, 0.00007773417019052431, 0.038548097014427185, 0.02216423489153385, -0.02253241091966629, -0.013475265353918076, -0.023250356316566467, 0.006148550193756819, -0.027097800746560097, 0.02950935810804367, -0.017635662108659744, -0.044291652739048004, 0.021501516923308372, 0.03965262696146965, -0.05044019967317581, 0.055447403341531754, 0.003081178292632103, 0.05117655545473099, 0.03902672603726387, 0.03862173110246658, -0.041419874876737595, -0.04977748170495033, 0.02442852035164833, 0.017930202186107635, -0.002106660744175315, 0.0010458518518134952, 0.04322393983602524, 0.04893067851662636, 0.02448374778032303, -0.007170240394771099, 0.026968939229846, -0.03679925575852394, 0.02604849822819233, 0.027079392224550247, 0.038916271179914474, 0.007593643385916948, 0.004091362934559584, -0.004263945855200291, 0.023600123822689056, 0.014588999561965466, 0.010511443018913269, -0.036964934319257736, 0.025201691314578056, 0.014653430320322514, 0.045580267906188965, -0.0029177998658269644, 0.01711100898683071, 0.021998554468154907, -0.0222194604575634, -0.014819109812378883, -0.007602847646921873, 0.03514246270060539, 0.0070275720208883286, 0.00887765921652317, 0.011082117445766926, 0.06421000510454178, -0.023103084415197372, -0.00952657125890255, -0.023655349388718605, -0.002244726987555623, 0.004482550546526909, 0.016604766249656677, -0.015297739766538143, 0.002811949234455824, 0.035068824887275696, -0.004763285629451275, -0.02858891710639, -0.04407074674963951, 0.002319512888789177, -0.019458135589957237, 0.0317368283867836, 0.027502795681357384, 0.052207447588443756, 0.017948612570762634, -0.007064389530569315, -0.023066267371177673, -0.02757643163204193, 0.02036016806960106, 0.018611330538988113, -0.039836712181568146, 0.06487272679805756, 0.01875860057771206, 0.04543299973011017, 0.03943172097206116, 0.007266886532306671, -0.008422041311860085, -0.01907155103981495, -0.04035216197371483, 0.00460681039839983, 0.08593243360519409, -0.009563388302922249, -0.0006690460140816867, 0.014635021798312664, 0.01613534241914749, 0.020470621064305305, 0.03324635326862335, 0.03690971061587334, -0.0018236249452456832, -0.010447012260556221, -0.059202805161476135, 0.0004625219153240323, -0.03517927974462509, 0.024226022884249687, -0.013447652570903301, -0.050661105662584305, 0.029951170086860657, -0.03311748802661896, 0.06071233004331589, 0.01932927407324314, -0.046500712633132935, -0.0028694767970591784, 0.003900371491909027, 0.00650752242654562, -0.05055065453052521, -0.023397626355290413, -0.010134062729775906, -0.022771725431084633, -0.026968939229846, 0.006917119026184082, -0.006797461304813623, 0.01614454574882984, 0.03644948825240135, -0.02954617701470852, -0.00005281752964947373, 0.044549375772476196, -0.013420038856565952, 0.005366174504160881, -0.022974222898483276, -0.0826188400387764, -0.06214821711182594, -0.036964934319257736, -0.013622536323964596, 0.018482467159628868, -0.00887765921652317, -0.015187286771833897, -0.027447570115327835, -0.014828315004706383, 0.0026968938764184713, 0.089025117456913, -0.056662388145923615, 0.05585239827632904, 0.010511443018913269, 0.00099350162781775, 0.03136865049600601, 0.041751231998205185, -0.00603349506855011, -0.055447403341531754, 0.04878340661525726, -0.03400111198425293, -0.007487792521715164, 0.039468538016080856, -0.03939490020275116, 0.006967742927372456, 0.012600845657289028, 0.03711220622062683, 0.08475426584482193, -0.011882901191711426, -0.024980785325169563, -0.09712500125169754, -0.005269528366625309, 0.005310948006808758, -0.01619056798517704, -0.04200895503163338, 0.021151749417185783, -0.02475987933576107, 0.059165988117456436, 0.014708656817674637, -0.016761241480708122, -0.04572753980755806, 0.016098523512482643, -0.014027530327439308, 0.008813228458166122, 0.04068351909518242, -0.002358631696552038, 0.036026086658239365, 0.03580518066883087, -0.005338561255484819, -0.028091877698898315, 0.0007386544020846486, 0.004901351872831583, 0.061448682099580765, 0.031202971935272217, -0.01617215946316719, -0.007740913890302181, -0.017267484217882156, 0.040462613105773926, 0.049041129648685455, -0.011597564443945885, 0.004850727505981922, 0.02348967082798481, 0.03976307809352875, 0.0037208853755146265, 0.02569873072206974, 0.08394427597522736, 0.009876338765025139, 0.0035483024548739195, -0.031810462474823, -0.023434443399310112, -0.04502800479531288, -0.08438608795404434, -0.022974222898483276, 0.01092564221471548, 0.0041903103701770306, 0.017635662108659744, -0.010833597742021084, -0.05879781022667885, 0.01443252433091402, -0.05121337249875069, -0.03646789863705635, -0.009139985777437687, 0.024373294785618782, 0.024189205840229988, 0.01804986037313938, -0.04230349883437157, 0.00842664297670126, 0.04499118775129318, -0.04259803891181946, -0.05611012130975723, -0.011790857650339603, 0.04072033613920212, -0.009729067794978619, 0.08063068985939026, 0.04149350896477699, 0.0015371375484392047, 0.00018121194443665445, 0.017092600464820862, -0.046500712633132935, -0.014165597036480904, -0.03832719102501869, -0.019439727067947388, 0.0445125587284565, 0.026103723794221878, 0.052833348512649536, -0.033209532499313354, 0.0028257558587938547, -0.030061623081564903, 0.01614454574882984, -0.04885704070329666, -0.03322794288396835, -0.03455337882041931, -0.03586040437221527, -0.02757643163204193, 0.02220105193555355, 0.030227303504943848, 0.011818470433354378, -0.025901228189468384, 0.03151592239737511, -0.06454136967658997, -0.020433804020285606, -0.008159714750945568, -0.01524251326918602, 0.05747237429022789, -0.05198654159903526, 0.046500712633132935, 0.01457979530096054, -0.046832069754600525, -0.027797337621450424, 0.009876338765025139, -0.013327994383871555, -0.09012964367866516, -0.002844164613634348, 0.11001118272542953, -0.016724424436688423, 0.02185128442943096, 0.08379700779914856, 0.03359612077474594, -0.017276689410209656, -0.024833515286445618, -0.005669920239597559, 0.003704777453094721, 0.0018857547547668219, 0.06825995445251465, -0.01616295427083969, -0.008546300232410431, -0.04101487994194031, -0.03987353295087814, -0.05055065453052521, -0.0004622342821676284, 0.04410756379365921, -0.006420080550014973, 0.022587638348340988, -0.030890021473169327, -0.020562665536999702, -0.03109251894056797, 0.019807903096079826, -0.05997597798705101, -0.019586997106671333, 0.035363368690013885, -0.026140542700886726, -0.008675162680447102, -0.04598526284098625, 0.005619296338409185, -0.015509441494941711, -0.036339037120342255, 0.029582994058728218, 0.031552739441394806, 0.034774284809827805, 0.013300381600856781, -0.027742110192775726, -0.022679680958390236, 0.05511604622006416, 0.02507282979786396, 0.01319913286715746, 0.0012794138165190816, -0.022918997332453728, -0.009784294292330742, -0.037959013134241104, 0.01411037053912878, -0.008353007957339287, -0.00269459281116724, -0.047126609832048416, -0.006797461304813623, -0.03987353295087814, -0.04985111951828003, 0.020765163004398346, -0.022587638348340988, -0.08939328789710999, 0.0349767804145813, 0.01253641489893198, 0.029417313635349274, -0.08490153402090073, -0.001810968853533268, -0.010124857537448406, -0.03245477005839348, -0.031552739441394806, -0.051323823630809784, -0.045543450862169266, 0.04278212785720825, 0.05231790244579315, 0.06255321204662323, 0.027208253741264343, 0.017709296196699142, -0.011036095209419727, -0.008274770341813564, 0.03453496843576431, 0.008647548966109753, 0.007750118616968393, 0.07190489768981934, -0.033817026764154434, 0.0021400267723947763, -0.03112933598458767, 0.024281250312924385, -0.036983344703912735, -0.038916271179914474, -0.08077795803546906, -0.04929885268211365, 0.0035114847123622894, -0.010124857537448406, -0.006424682680517435, 0.020525848492980003, 0.0127205029129982, 0.02827596664428711, 0.028091877698898315, 0.03195773437619209, -0.032509997487068176, -0.012729708105325699, -0.006171561311930418, -0.02599327079951763, -0.012149829417467117, 0.02282695285975933, -0.06119095906615257, -0.0381431020796299, -0.0666767880320549, -0.001209230162203312, -0.003840542631223798, 0.015086038038134575, 0.007115013897418976, -0.014616613276302814, -0.03773810714483261, -0.022955814376473427, 0.08821512758731842, -0.005610091611742973, -0.021777648478746414, 0.030724341049790382, 0.023728985339403152, -0.03924763202667236, 0.004482550546526909, 0.03738833963871002, -0.03738833963871002, 0.03142387792468071, -0.020783571526408195, 0.020709937438368797, -0.042082592844963074, -0.04186168685555458, -0.009609410539269447, 0.04572753980755806, -0.015003198757767677, 0.04694252461194992, 0.07842162996530533, 0.029656630009412766, -0.018905870616436005, -0.021206974983215332, -0.00999599602073431, 0.06822313368320465, 0.0475316047668457, 0.013300381600856781, -0.015757961198687553, -0.0005275281146168709, -0.0029247032944113016, 0.009006521664559841, -0.01686249114573002, 0.04885704070329666, -0.059202805161476135, -0.03077956847846508, 0.012140625156462193, 0.015711938962340355, 0.02128061093389988, -0.05102928355336189, 0.036964934319257736, -0.014736270532011986, 0.00020839374337811023, 0.020047219470143318, 0.06122777611017227, -0.035124052315950394, -0.009784294292330742, 0.019550180062651634, 0.01781054586172104, -0.021206974983215332, -0.045837994664907455, 0.010759962722659111, -0.0539746955037117, 0.06273730099201202, 0.035749953240156174, 0.021777648478746414, -0.012278690934181213, -0.006139345467090607, 0.027097800746560097, 0.023397626355290413, -0.021759239956736565, 0.04889385774731636, -0.011045299470424652, 0.010833597742021084, -0.11899469047784805, 0.012379939667880535, -0.013834238052368164, -0.024299658834934235, 0.045837994664907455, 0.004689650144428015, -0.020525848492980003, 0.0057159424759447575, -0.002050283830612898, -0.010005200281739235, -0.02724507264792919, -0.09049782156944275, -0.020396986976265907, -0.04506482183933258, 0.0206547100096941, 0.04164078086614609, -0.0792316123843193, 0.046868886798620224, -0.04215622693300247, 0.0028717778623104095, 0.0729357972741127, -0.023618532344698906, -0.04477028176188469, -0.05305425450205803, -0.018215538933873177, -0.008725786581635475, -0.029012320563197136, 0.010281332768499851, 0.024833515286445618, -0.03994716703891754, -0.06085960194468498, 0.04513845592737198, 0.02888345904648304, -0.01773690991103649, 0.04160396009683609, -0.05813509225845337, 0.028809823095798492, -0.07731709629297256, -0.03304385393857956, 0.04918840155005455, 0.016245795413851738, -0.022642863914370537, -0.01140427216887474, 0.03335680440068245, 0.003983211237937212, 0.003134103724732995, 0.027097800746560097, -0.03398270532488823, -0.0000765117074479349, -0.045837994664907455, -0.07974706590175629, -0.008458858355879784, -0.0006379811093211174, 0.008928284049034119, -0.025846000760793686, 0.09300142526626587, -0.05846645310521126, 0.03142387792468071, 0.018850645050406456, -0.015546259470283985, -0.034074749797582626, -0.0072070579044520855, 0.04407074674963951, -0.032252274453639984, 0.036983344703912735, -0.020102445036172867, -0.03416679427027702, 0.015279331244528294, -0.0005465121939778328, -0.03628380969166756, -0.037296295166015625, 0.0238394383341074, -0.05007202550768852, -0.003488473827019334, -0.01431286707520485, -0.032509997487068176, -0.05113973841071129, -0.004102868493646383, -0.017681684345006943, -0.018924279138445854, 0.008532494306564331, 0.010226106271147728, 0.013751397840678692, -0.023103084415197372, 0.023323990404605865 ]
730,297
mmengine.fileio.io
dump
Dump data to json/yaml/pickle strings or files. This method provides a unified api for dumping data as strings or to files, and also supports custom arguments for each file format. ``dump`` supports dumping data as strings or to files which is saved to different backends. Args: obj (any): The python object to be dumped. file (str or :obj:`Path` or file-like object, optional): If not specified, then the object is dumped to a str, otherwise to a file specified by the filename or file-like object. file_format (str, optional): Same as :func:`load`. file_client_args (dict, optional): Arguments to instantiate a FileClient. See :class:`mmengine.fileio.FileClient` for details. Defaults to None. It will be deprecated in future. Please use ``backend_args`` instead. backend_args (dict, optional): Arguments to instantiate the prefix of uri corresponding backend. Defaults to None. New in v0.2.0. Examples: >>> dump('hello world', '/path/of/your/file') # disk >>> dump('hello world', 's3://path/of/your/file') # ceph or petrel Returns: bool: True for success, False otherwise.
def dump(obj, file=None, file_format=None, file_client_args=None, backend_args=None, **kwargs): """Dump data to json/yaml/pickle strings or files. This method provides a unified api for dumping data as strings or to files, and also supports custom arguments for each file format. ``dump`` supports dumping data as strings or to files which is saved to different backends. Args: obj (any): The python object to be dumped. file (str or :obj:`Path` or file-like object, optional): If not specified, then the object is dumped to a str, otherwise to a file specified by the filename or file-like object. file_format (str, optional): Same as :func:`load`. file_client_args (dict, optional): Arguments to instantiate a FileClient. See :class:`mmengine.fileio.FileClient` for details. Defaults to None. It will be deprecated in future. Please use ``backend_args`` instead. backend_args (dict, optional): Arguments to instantiate the prefix of uri corresponding backend. Defaults to None. New in v0.2.0. Examples: >>> dump('hello world', '/path/of/your/file') # disk >>> dump('hello world', 's3://path/of/your/file') # ceph or petrel Returns: bool: True for success, False otherwise. """ if isinstance(file, Path): file = str(file) if file_format is None: if is_str(file): file_format = file.split('.')[-1] elif file is None: raise ValueError( 'file_format must be specified since file is None') if file_format not in file_handlers: raise TypeError(f'Unsupported format: {file_format}') if file_client_args is not None: warnings.warn( '"file_client_args" will be deprecated in future. ' 'Please use "backend_args" instead', DeprecationWarning) if backend_args is not None: raise ValueError( '"file_client_args" and "backend_args" cannot be set at the ' 'same time.') handler = file_handlers[file_format] if file is None: return handler.dump_to_str(obj, **kwargs) elif is_str(file): if file_client_args is not None: file_client = FileClient.infer_client(file_client_args, file) file_backend = file_client else: file_backend = get_file_backend(file, backend_args=backend_args) if handler.str_like: with StringIO() as f: handler.dump_to_fileobj(obj, f, **kwargs) file_backend.put_text(f.getvalue(), file) else: with BytesIO() as f: handler.dump_to_fileobj(obj, f, **kwargs) file_backend.put(f.getvalue(), file) elif hasattr(file, 'write'): handler.dump_to_fileobj(obj, file, **kwargs) else: raise TypeError('"file" must be a filename str or a file-object')
(obj, file=None, file_format=None, file_client_args=None, backend_args=None, **kwargs)
[ -0.01113194227218628, -0.015443542040884495, -0.05112871527671814, -0.02136722393333912, 0.0357901006937027, -0.05715732276439667, 0.023561179637908936, 0.0584164634346962, -0.03010489232838154, -0.06948163360357285, -0.00978695135563612, 0.007578687276691198, -0.04197133332490921, -0.013888695277273655, -0.00032581438426859677, 0.038651783019304276, -0.07432741671800613, -0.0241907499730587, 0.06268990784883499, 0.036972928792238235, -0.00031687162118032575, 0.020279783755540848, 0.023370400071144104, 0.019116034731268883, 0.010130353271961212, 0.0025135104078799486, -0.010588222183287144, 0.02752937749028206, -0.017637498676776886, 0.03907149285078049, 0.03771696612238884, -0.06765015423297882, 0.05112871527671814, 0.015577087178826332, -0.034511882811784744, -0.03172651305794716, -0.001253178110346198, 0.04124637320637703, -0.10401259362697601, -0.05753888189792633, 0.009930036030709743, 0.06509371846914291, 0.02203494869172573, 0.0205277968198061, 0.04197133332490921, 0.0863083228468895, -0.044222522526979446, 0.028578661382198334, -0.03411124646663666, -0.009238462895154953, 0.02819710411131382, -0.05112871527671814, -0.037869587540626526, -0.005546892993152142, -0.026480095461010933, 0.032413315027952194, -0.006682026665657759, -0.019020644947886467, -0.045061949640512466, -0.008632740005850792, 0.02077580988407135, 0.00658663734793663, 0.07451818883419037, -0.04353571683168411, -0.04197133332490921, -0.015777405351400375, -0.023026999086141586, -0.04132268577814102, -0.06185048073530197, 0.007488067261874676, -0.009796490892767906, -0.021271834149956703, 0.04998404160141945, 0.013659760355949402, 0.03599995747208595, 0.0038871176075190306, 0.0014403797686100006, 0.030200282111763954, -0.038098521530628204, 0.008565966971218586, 0.004313985351473093, -0.068451426923275, -0.034874361008405685, -0.06246097385883331, -0.014880744740366936, -0.07646413892507553, -0.030123969539999962, 0.020317940041422844, -0.03082985058426857, -0.023923659697175026, -0.01970744878053665, -0.004750391468405724, 0.0025874371640384197, 0.040445100516080856, -0.03359614312648773, -0.07814298570156097, 0.013020651414990425, 0.02495386451482773, -0.019783759489655495, 0.02724321000277996, -0.059408511966466904, -0.048763055354356766, -0.005289341788738966, 0.00981556810438633, -0.01509060151875019, -0.03937673941254616, 0.022054027765989304, 0.025640668347477913, -0.05452457442879677, 0.00314308051019907, -0.021958637982606888, -0.06341486424207687, 0.0000277411727438448, -0.007488067261874676, 0.06089658662676811, -0.06276621669530869, -0.003403016598895192, -0.0026899809017777443, -0.001397454529069364, -0.06444507092237473, -0.04563428461551666, -0.024114437401294708, -0.005532584618777037, 0.01365022175014019, 0.03746895119547844, -0.0883687287569046, 0.030085813254117966, -0.019011106342077255, 0.020623186603188515, 0.002184417098760605, 0.007402216549962759, 0.0011720971670001745, -0.044756703078746796, 0.033557988703250885, 0.044031742960214615, 0.001609695958904922, -0.014365642331540585, 0.01610172912478447, -0.004530996084213257, 0.010464216582477093, 0.06249912828207016, -0.057805970311164856, -0.0019387893844395876, -0.003455480793491006, -0.019898226484656334, -0.04471854493021965, -0.0030667688697576523, -0.07127495110034943, -0.03334813192486763, 0.0789061039686203, 0.025240032002329826, 0.02461046352982521, -0.030085813254117966, 0.009753565303981304, 0.0055802795104682446, -0.07310643047094345, -0.04094112664461136, -0.03649597987532616, -0.029608866199851036, 0.01457549910992384, -0.033252742141485214, 0.024209827184677124, 0.05112871527671814, 0.018276607617735863, 0.030200282111763954, 0.025659745559096336, -0.007998400367796421, -0.013516676612198353, 0.030868006870150566, 0.011885518208146095, -0.05872170999646187, 0.003493636380881071, -0.09111594408750534, 0.05979007109999657, 0.038461003452539444, 0.017933204770088196, 0.030868006870150566, 0.004061203449964523, -0.04078850522637367, -0.009538939222693443, 0.02256912924349308, -0.04555797204375267, 0.034511882811784744, 0.016492825001478195, -0.005728133022785187, -0.004271059762686491, -0.015720171853899956, 0.054448265582323074, 0.06078211963176727, 0.0342257134616375, 0.02962794527411461, 0.024763086810708046, -0.0013163735857233405, -0.011666122823953629, 0.04395543038845062, -0.052540477365255356, -0.0032623172737658024, -0.06486478447914124, 0.05368515104055405, 0.017265480011701584, -0.017685193568468094, -0.021901404485106468, 0.03205083683133125, -0.019020644947886467, -0.009658175520598888, 0.019974539056420326, 0.031039707362651825, 0.012276615016162395, -0.06291884183883667, 0.015643859282135963, -0.013316359370946884, -0.041933175176382065, -0.08371373265981674, 0.013688378036022186, 0.08829241991043091, 0.02125275693833828, 0.04132268577814102, 0.031173253431916237, -0.07253409177064896, 0.0362861230969429, 0.005055637564510107, 0.06719228625297546, -0.08012709021568298, 0.050022196024656296, -0.025888681411743164, -0.003569948021322489, 0.016206657513976097, 0.03256593644618988, 0.05368515104055405, -0.032413315027952194, -0.00011342395009705797, 0.005060407333076, -0.019612058997154236, 0.02808263711631298, 0.017990438267588615, 0.05028928816318512, -0.03071538358926773, 0.006305238697677851, 0.010273437015712261, -0.006443553138524294, 0.057805970311164856, -0.03674399480223656, -0.02047056332230568, -0.04910646006464958, 0.03872809186577797, -0.02514464408159256, 0.01737040840089321, -0.05689023435115814, -0.012372003868222237, -0.002618438797071576, 0.09737349301576614, 0.02441968396306038, -0.023007921874523163, 0.00008115550735965371, -0.05059453472495079, -0.00046919655869714916, 0.040483258664608, -0.04555797204375267, -0.01968836970627308, 0.003317166119813919, -0.03910965099930763, -0.006472170352935791, 0.014003162272274494, 0.002630362519994378, -0.026441939175128937, -0.013945928774774075, -0.03275671601295471, -0.04956432804465294, 0.029952269047498703, 0.014833049848675728, 0.027643846347928047, 0.016387896612286568, -0.010073119774460793, 0.03620981425046921, -0.05238785222172737, -0.04857227951288223, -0.02939900942146778, -0.02077580988407135, 0.07959290593862534, 0.009119225665926933, -0.017637498676776886, -0.020623186603188515, 0.036610446870326996, -0.07390770316123962, 0.06513187289237976, -0.028941141441464424, -0.044642236083745956, -0.024171670898795128, 0.01598726212978363, -0.01373607199639082, 0.017284557223320007, 0.0039896611124277115, -0.07047367841005325, -0.0019089801935479045, -0.06494110077619553, -0.011914134956896305, -0.05231154337525368, -0.09126856923103333, 0.0673830658197403, -0.06593314558267593, -0.01729409582912922, 0.002618438797071576, 0.09668668359518051, 0.03937673941254616, -0.023446712642908096, 0.022912532091140747, 0.004888706374913454, -0.06131630018353462, -0.05437195301055908, 0.012486470863223076, 0.019440358504652977, -0.04830518737435341, 0.033195506781339645, 0.02108105458319187, 0.022950688377022743, 0.048877522349357605, 0.004578690975904465, -0.024591384455561638, 0.014728122390806675, -0.03186005726456642, -0.04063588008284569, 0.022645441815257072, -0.010244820266962051, 0.04807625338435173, 0.09592357277870178, -0.03815575689077377, 0.023065155372023582, 0.013440364971756935, 0.049182768911123276, -0.007993631064891815, -0.004089820198714733, 0.037678807973861694, 0.05334174633026123, 0.04693157970905304, 0.03500790521502495, 0.007101740222424269, -0.006949116941541433, -0.020146239548921585, -0.0024276599287986755, 0.012553243897855282, 0.0678790882229805, 0.02167247049510479, 0.025468967854976654, -0.03041013702750206, -0.04773285239934921, 0.014079473912715912, 0.022187571972608566, -0.013030190952122211, 0.018581854179501534, 0.04502379149198532, -0.07829561084508896, 0.043383095413446426, 0.0012054834514856339, -0.027739234268665314, -0.056966543197631836, -0.047503918409347534, 0.008046095259487629, -0.003965814132243395, -0.01029251515865326, -0.018524618819355965, 0.027014276012778282, -0.020813964307308197, -0.02226388454437256, -0.02430521696805954, 0.00814625434577465, 0.0033386286813765764, 0.05811121687293053, -0.006290930323302746, -0.00831795483827591, 0.0018589007668197155, 0.004168516490608454, -0.01068361196666956, -0.004566767252981663, -0.013869617134332657, -0.017341790720820427, 0.0389188714325428, 0.021710624918341637, 0.0010838619200512767, -0.016178039833903313, 0.045061949640512466, 0.05868355184793472, 0.00658663734793663, -0.0009515091660432518, -0.041933175176382065, 0.029055608436465263, 0.024534150958061218, 0.010855312459170818, 0.03741171956062317, -0.039300430566072464, -0.04536719620227814, 0.047503918409347534, 0.019974539056420326, -0.015500776469707489, -0.017856894060969353, -0.004271059762686491, -0.011980907060205936, -0.017551647499203682, 0.05769150331616402, -0.04536719620227814, 0.06478847563266754, 0.017131933942437172, -0.02100474387407303, -0.027853701263666153, -0.0028974527958780527, -0.06795540452003479, 0.07657860219478607, 0.010950702242553234, -0.007235285360366106, 0.04082665964961052, 0.06352933496236801, 0.07535761594772339, -0.0013390285894274712, -0.052960190922021866, -0.0215580016374588, 0.017217785120010376, 0.03180282190442085, -0.04071219265460968, 0.02268359810113907, -0.01304926909506321, -0.019259117543697357, -0.0021307605784386396, 0.07844823598861694, -0.004395066294819117, 0.0023108080495148897, 0.02760569006204605, -0.06932900846004486, -0.0360381118953228, -0.06620023399591446, 0.06501740962266922, 0.01669314317405224, 0.03800313174724579, -0.06345302611589432, -0.0028545274399220943, -0.005694746505469084, 0.04029247909784317, -0.011036552488803864, 0.00034697892260737717, -0.014317947439849377, 0.034149400889873505, 0.01645467057824135, 0.008661356754601002, -0.07016843557357788, -0.0047766235657036304, -0.010864851996302605, -0.051929984241724014, 0.0000038239595596678555, 0.0013616835931316018, -0.012438776902854443, 0.050785310566425323, 0.06536081433296204, 0.03519868478178978, -0.03376784548163414, 0.02449599653482437, -0.0006182424840517342, -0.039300430566072464, -0.05967560410499573, 0.09218430519104004, -0.000838830485008657, -0.011999985203146935, 0.0241907499730587, 0.004707466345280409, -0.012228920124471188, 0.08226381242275238, -0.039491206407547, 0.004156592767685652, 0.04986957460641861, 0.011971368454396725, 0.042963381856679916, -0.016311585903167725, -0.0273576769977808, 0.01950713060796261, 0.05757703632116318, -0.049297235906124115, 0.06555158644914627, 0.05410486087203026, 0.05704285576939583, 0.003791728289797902, -0.028273414820432663, -0.0683751180768013, -0.06165970116853714, 0.018066750839352608, -0.030963396653532982, 0.015271841548383236, 0.03922411799430847, 0.019783759489655495, -0.02758661098778248, 0.03300473093986511, 0.02251189574599266, 0.06665810942649841, 0.010759923607110977, 0.02047056332230568, 0.02497294172644615, -0.04758022725582123, -0.03695385158061981, -0.018944332376122475, 0.0073402137495577335, -0.02724321000277996, 0.012162147089838982, -0.040025386959314346, -0.03634335845708847, 0.02449599653482437, -0.0012925262562930584, -0.01987914927303791, 0.0007040929631330073, -0.03563747555017471, -0.020222550258040428, 0.02573605813086033, 0.02220665104687214, -0.008957063779234886, -0.004356910474598408, -0.03926227241754532, 0.024801241233944893, -0.002992842113599181, 0.028158947825431824, -0.02094751037657261, 0.04841965436935425, -0.008399035781621933, -0.001815975527279079, -0.010302054695785046, 0.0022619208320975304, -0.013373592868447304, -0.044222522526979446, 0.03411124646663666, -0.011532577686011791, -0.006438783835619688, -0.025545278564095497, -0.02136722393333912, 0.01075038406997919, 0.024457840248942375, 0.016864843666553497, 0.00472892913967371, 0.01181874517351389, 0.015014289878308773, -0.03065815009176731, -0.001453495817258954, 0.04281076043844223, 0.03359614312648773, 0.007521453313529491, 0.021233677864074707, -0.042467355728149414, 0.05765334889292717, 0.016912538558244705, -0.04704604670405388, -0.051929984241724014, 0.024591384455561638, -0.09806029498577118, 0.04078850522637367, -0.023675646632909775, 0.01754210889339447, -0.03945305198431015, 0.04231473430991173, -0.075204998254776, 0.063681960105896, 0.07451818883419037, -0.023084232583642006, 0.016492825001478195, 0.0410555936396122, 0.0061907717026770115, 0.016559598967432976, -0.03794590011239052, -0.0489538349211216, 0.03647690266370773, -0.035523008555173874, 0.026728106662631035, 0.03884255886077881, 0.04826703295111656, 0.05280756577849388, 0.024629540741443634, -0.009648636914789677, -0.035408541560173035, 0.005718593951314688, 0.04353571683168411, 0.04395543038845062, -0.026594562456011772, 0.01627342961728573, 0.02060410939157009, -0.013821923173964024, 0.045405350625514984, 0.0415516197681427, -0.06089658662676811, 0.004540535155683756, 0.025297267362475395, -0.006295699626207352, -0.018877560272812843, 0.005723363254219294, 0.00686803599819541, 0.020756730809807777, 0.011036552488803864, -0.006858497392386198, 0.010282976552844048, -0.014222558587789536, 0.012171686626970768, 0.010731306858360767, -0.043077848851680756, 0.06497925519943237, 0.0011887903092429042, -0.015329075045883656, -0.02884575165808201, 0.07295380532741547, -0.025049254298210144, 0.004903014749288559, 0.016426052898168564, -0.01813352294266224, -0.02915099821984768, 0.019049260765314102, 0.06101105362176895, -0.029322698712348938, 0.026670873165130615, 0.03573286533355713, -0.0011661353055387735, -0.03825114667415619, 0.005289341788738966, 0.019182806834578514, -0.04861043393611908, 0.01831476390361786, -0.017637498676776886, 0.02772015705704689, -0.0005320939235389233, 0.007492836564779282, -0.002366849221289158, 0.05811121687293053, 0.041284527629613876, 0.01068361196666956, 0.03859454765915871, 0.022912532091140747, 0.024267060682177544, -0.0767693817615509, -0.017503952607512474, -0.016445130109786987, -0.06413982808589935, -0.014108090661466122, -0.026594562456011772, 0.026174848899245262, 0.01711285673081875, 0.008179640397429466, -0.044565923511981964, 0.0051844133995473385, 0.0032146223820745945, -0.03088708408176899, -0.010550066828727722, 0.02018439583480358, -0.026480095461010933, 0.01634974218904972, 0.0005699516041204333, -0.028998374938964844, 0.01784735545516014, 0.022359272465109825, -0.04975510761141777, 0.06230834871530533, -0.035351309925317764, 0.016149424016475677, -0.006686796434223652, -0.06497925519943237, -0.04883936792612076, 0.03859454765915871, 0.04586321860551834, 0.10782817006111145, -0.03500790521502495, 0.010855312459170818, 0.044336989521980286, 0.004709850996732712, 0.010788540355861187, 0.019230501726269722, 0.0011810398427769542, -0.05601264908909798, 0.0022416505962610245, -0.02861681766808033, -0.009219384752213955, 0.013526215218007565, 0.001645467011258006, -0.032069914042949677, 0.06303331255912781, -0.0020651803351938725, 0.016311585903167725, 0.014747199602425098, -0.005513506941497326, -0.015309996902942657, 0.013354514725506306, 0.014251175336539745, -0.02976148948073387, 0.04200948774814606, -0.009400624781847, -0.04101743921637535, 0.008856904692947865, -0.0410555936396122, 0.007106509525328875, 0.025526201352477074, 0.040864814072847366, -0.008852135390043259, -0.026365628466010094, 0.020317940041422844, 0.018095366656780243, -0.021233677864074707, -0.03731632977724075, 0.0038751941174268723, 0.012457854114472866, 0.05910326540470123, 0.00459299935027957, 0.02651824988424778, 0.005065176635980606, -0.024820320308208466, -0.03495067358016968, 0.03477897122502327, -0.010282976552844048, 0.021100133657455444, -0.02945624478161335, -0.032775793224573135, 0.00817487109452486, 0.05368515104055405, -0.03531315177679062, -0.03418755903840065, 0.03987276554107666, 0.049297235906124115, -0.030581839382648468, -0.003834653412923217, -0.0325850173830986, -0.027682000771164894, 0.032184381037950516, -0.015252763405442238, -0.037507109344005585, -0.043802808970212936, 0.020031772553920746, 0.009395855478942394, -0.0658186823129654, 0.07165651023387909, -0.019526207819581032, -0.046130310744047165, 0.019840992987155914, 0.006290930323302746, 0.01968836970627308, 0.03758342191576958, -0.006462631281465292, -0.0037607266567647457, -0.02621300518512726, -0.002761522773653269, -0.021271834149956703, 0.011294104158878326, -0.06620023399591446, 0.035408541560173035, 0.059484824538230896, 0.002205879660323262, 0.03138310834765434, -0.004645463544875383, -0.02604130282998085, 0.029608866199851036, -0.007826699875295162, 0.08340848237276077, 0.02377103641629219, -0.022111261263489723, 0.03107786364853382, 0.001751587726175785, 0.021214600652456284, -0.03227977082133293, 0.05093793570995331, 0.05547846853733063, 0.005432425998151302, -0.0194594357162714, -0.028578661382198334, 0.04090297222137451, -0.05273125693202019, -0.07268671691417694, -0.0194594357162714, 0.014327486976981163, -0.01730363629758358, 0.018829865381121635, 0.039185963571071625, -0.050441909581422806, 0.00948647502809763 ]
730,298
mmengine.fileio.io
exists
Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: bool: Return ``True`` if ``filepath`` exists, ``False`` otherwise. Examples: >>> filepath = '/path/of/file' >>> exists(filepath) True
def exists( filepath: Union[str, Path], backend_args: Optional[dict] = None, ) -> bool: """Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: bool: Return ``True`` if ``filepath`` exists, ``False`` otherwise. Examples: >>> filepath = '/path/of/file' >>> exists(filepath) True """ backend = get_file_backend( filepath, backend_args=backend_args, enable_singleton=True) return backend.exists(filepath)
(filepath: Union[str, pathlib.Path], backend_args: Optional[dict] = None) -> bool
[ -0.008589010685682297, -0.07514362037181854, -0.03640904650092125, -0.005146138835698366, 0.035882167518138885, 0.042150191962718964, 0.03166715055704117, -0.011273359879851341, -0.011554966680705547, -0.04135079309344292, 0.055340297520160675, 0.043748993426561356, 0.025816993787884712, -0.07892260700464249, -0.024109184741973877, -0.010019754990935326, 0.046583231538534164, -0.0025776114780455828, 0.011972835287451744, -0.018640559166669846, -0.018340785056352615, 0.006118136923760176, 0.07245472818613052, 0.024454379454255104, 0.04520244896411896, -0.0007289985078386962, -0.0072718169540166855, -0.009420204907655716, -0.005473166238516569, 0.03815319389104843, 0.00831194594502449, 0.022782906889915466, 0.00021148905216250569, 0.003009106032550335, 0.029323453083634377, 0.032757241278886795, -0.010882743634283543, 0.0069992938078939915, -0.045820169150829315, -0.05679375305771828, -0.002931891242042184, 0.013716980814933777, 0.04291325807571411, 0.05679375305771828, -0.00803033821284771, 0.0040923841297626495, -0.06718595325946808, -0.007857740856707096, -0.022837411612272263, -0.04265890270471573, 0.077178455889225, -0.000397712952690199, -0.03593667224049568, 0.031558141112327576, -0.048509057611227036, -0.01345354225486517, 0.027234112843871117, 0.0712919682264328, -0.021947169676423073, -0.0015999359311535954, 0.03386550024151802, -0.04498443007469177, 0.0007051527500152588, -0.026343870908021927, -0.029941171407699585, -0.030667899176478386, 0.004823653493076563, -0.07387185096740723, 0.015361201949417591, -0.04356731101870537, -0.009206729009747505, 0.06493309885263443, 0.026198524981737137, -0.06540547311306, 0.004069673828780651, 0.04262256622314453, 0.017305197194218636, 0.07387185096740723, -0.04135079309344292, 0.02082074247300625, -0.03887991979718208, -0.03522811457514763, -0.017287028953433037, -0.010882743634283543, 0.03092225454747677, 0.027106935158371925, 0.026979757472872734, 0.011191602796316147, -0.024127352982759476, 0.08662591874599457, 0.0005416390486061573, 0.023800324648618698, 0.05141596868634224, -0.02212885208427906, 0.049853503704071045, -0.05973699688911438, 0.029214443638920784, -0.03742646425962448, 0.0076124700717628, -0.03682691603899002, -0.03655439242720604, -0.0416051484644413, 0.0356459841132164, -0.010610220953822136, 0.012526964768767357, 0.032466549426317215, 0.016442209482192993, 0.00877069216221571, 0.021056927740573883, -0.0475643128156662, 0.0010247993050143123, -0.06406102329492569, 0.02467239834368229, 0.014688978902995586, -0.0017112160567194223, -0.05388684198260307, 0.027234112843871117, -0.008107553236186504, -0.012881244532763958, -0.06035471707582474, -0.014452792704105377, 0.0005470327450893819, 0.009656391106545925, 0.004074215888977051, 0.05334179848432541, -0.05217903107404709, 0.0341561920940876, -0.003165806643664837, -0.031994178891181946, 0.0033088810741901398, -0.028160689398646355, 0.004344467539340258, 0.024418042972683907, 0.01989416405558586, -0.014216606505215168, 0.02883291244506836, 0.021456629037857056, 0.0024663314688950777, -0.015642808750271797, 0.0638066753745079, 0.02420002408325672, -0.03475574031472206, -0.02572615258395672, 0.03359297662973404, 0.033356789499521255, 0.04127812013030052, -0.01144595816731453, -0.030958591029047966, 0.04916311427950859, 0.052106358110904694, -0.016351368278265, 0.0152249401435256, 0.003043171251192689, 0.034574057906866074, -0.020094014704227448, -0.03386550024151802, 0.002573069417849183, 0.04436671361327171, 0.010719230398535728, 0.027088766917586327, -0.026234861463308334, 0.040333375334739685, -0.01929461397230625, -0.01914926804602146, -0.021202273666858673, 0.04516611248254776, -0.07601569592952728, 0.042731575667858124, 0.002134762005880475, 0.03092225454747677, -0.011500461958348751, -0.039279621094465256, -0.014307446777820587, 0.021765487268567085, 0.010019754990935326, -0.04044238477945328, 0.06860307604074478, 0.07209136337041855, -0.0022528551053255796, -0.0007119658403098583, 0.05388684198260307, -0.05468624085187912, -0.009029588662087917, -0.021293114870786667, 0.021656479686498642, 0.022183356806635857, -0.008248357102274895, -0.008747981861233711, 0.0638066753745079, 0.025816993787884712, -0.013853242620825768, 0.006390659604221582, 0.056394051760435104, 0.010810071602463722, -0.0022846495267003775, -0.04988984018564224, 0.08706194907426834, -0.027397625148296356, -0.08967816829681396, 0.022056179121136665, 0.054286543279886246, -0.04066040366888046, -0.0035836747847497463, -0.0045761121436953545, -0.021656479686498642, -0.03392000496387482, 0.018604222685098648, 0.018785905092954636, -0.022819243371486664, 0.02690708450973034, -0.05061656981706619, -0.10602954030036926, -0.01841345801949501, 0.03341129422187805, 0.04487542062997818, 0.06744030863046646, 0.0036063850857317448, 0.06972949951887131, -0.04051505774259567, 0.008325571194291115, 0.09912563115358353, 0.0152249401435256, 0.010891827754676342, 0.005981875583529472, 0.027542971074581146, -0.0077260215766727924, -0.01321735605597496, 0.07470758259296417, -0.038262203335762024, -0.017287028953433037, -0.010128764435648918, 0.02053005062043667, 0.052687741816043854, 0.0222923643887043, 0.012445207685232162, 0.01976698823273182, 0.03392000496387482, 0.023854829370975494, 0.008879701606929302, 0.011082594282925129, 0.019966837018728256, 0.013607972301542759, 0.02883291244506836, -0.013853242620825768, -0.037535473704338074, -0.03693592548370361, 0.02868756651878357, 0.010455791838467121, -0.01737787015736103, -0.04847272112965584, 0.021929001435637474, 0.0652964636683464, -0.02806984819471836, -0.011609471403062344, -0.006949331611394882, -0.0260168444365263, -0.04342196509242058, 0.00545954005792737, -0.0030954049434512854, 0.04665590450167656, -0.012608721852302551, 0.0669679343700409, 0.04378532990813255, 0.0031544514931738377, -0.018985755741596222, -0.04741896688938141, -0.018967587500810623, 0.023854829370975494, 0.006377033423632383, -0.027252281084656715, -0.0062771085649728775, 0.004140075761824846, 0.024854078888893127, 0.004162785597145557, 0.00261849001981318, -0.014016755856573582, 0.00242999498732388, -0.022692065685987473, 0.02481774240732193, 0.04669224098324776, -0.06035471707582474, -0.012163600884377956, 0.00486907409504056, -0.060391053557395935, -0.0001028347760438919, 0.006408827845007181, -0.007376283872872591, 0.08248356729745865, -0.011927414685487747, 0.006163557525724173, -0.01455271802842617, -0.03873457387089729, -0.025744320824742317, 0.005255148280411959, -0.01573364995419979, 0.05930096283555031, -0.02287374809384346, -0.013944083824753761, 0.04098742827773094, -0.08212020248174667, 0.0033792827744036913, 0.04676491394639015, -0.03804418444633484, 0.03444688394665718, 0.0018054635729640722, -0.005209727678447962, -0.03655439242720604, 0.0024708735290914774, -0.028342371806502342, 0.000950991059653461, -0.012227189727127552, -0.024926751852035522, -0.009006878361105919, -0.010646557435393333, 0.07470758259296417, 0.025762489065527916, -0.07063791155815125, -0.06972949951887131, -0.041387129575014114, 0.01663297601044178, -0.00426498195156455, 0.028124352917075157, 0.0021938085556030273, 0.02185632847249508, -0.02481774240732193, -0.00912951398640871, -0.03190333768725395, 0.01798650436103344, -0.008738897740840912, 0.013108346611261368, 0.0341561920940876, -0.023436961695551872, 0.0921490415930748, -0.05366882309317589, -0.026507385075092316, -0.005259689874947071, -0.006345239467918873, 0.008007627911865711, 0.025944171473383904, 0.06057273596525192, 0.012136348523199558, -0.029341621324419975, -0.029341621324419975, -0.01617876999080181, -0.026689065620303154, -0.023418793454766273, -0.025053929537534714, 0.00033582758624106646, 0.06813070178031921, -0.03490108624100685, 0.0028115268796682358, 0.004932662937790155, -0.044185031205415726, 0.017168937250971794, -0.0016158331418409944, 0.004882700275629759, 0.04651055857539177, 0.06126312538981438, 0.005336904898285866, -0.005573091097176075, 0.02972315438091755, -0.05152497813105583, -0.046147193759679794, -0.039606645703315735, -0.0009657526970840991, -0.016605723649263382, 0.07067424803972244, 0.03620919585227966, -0.09316646307706833, 0.0786319151520729, 0.055958013981580734, -0.01721435785293579, 0.03659072890877724, -0.01871323212981224, 0.012336199171841145, -0.045384131371974945, -0.004255897831171751, -0.046437885612249374, 0.044802747666835785, -0.020148519426584244, 0.00262076104991138, 0.005500418599694967, -0.010001586750149727, 0.01721435785293579, 0.03279357776045799, 0.05752047896385193, 0.012063676491379738, -0.005323278717696667, -0.025598974898457527, -0.06718595325946808, -0.008221104741096497, -0.023291615769267082, -0.01090999599546194, -0.07318145781755447, 0.021274946630001068, -0.06456973403692245, 0.02583516202867031, 0.03673607483506203, -0.015579219907522202, 0.0461108572781086, -0.00011702867050189525, -0.0504712238907814, 0.027215944603085518, 0.0152431083843112, -0.03728111833333969, 0.05955531820654869, 0.03949763998389244, 0.04116911068558693, 0.01811368204653263, -0.042731575667858124, -0.0022960046771913767, -0.05552197992801666, -0.03957030922174454, -0.02096608839929104, -0.03508276864886284, 0.09447456896305084, -0.039751991629600525, -0.020893415436148643, 0.001480707200244069, -0.02747029811143875, -0.023872997611761093, -0.007989460602402687, -0.027143271639943123, 0.03134012222290039, 0.021474797278642654, 0.03324778378009796, -0.028160689398646355, -0.02705243043601513, 0.01885857805609703, -0.011754817329347134, -0.05334179848432541, -0.12267159670591354, 0.05686642602086067, -0.005123428534716368, -0.011718480847775936, -0.04116911068558693, 0.00701746204867959, -0.06050006300210953, -0.015433874912559986, -0.02538095787167549, -0.04487542062997818, -0.006717687007039785, -0.04814569652080536, -0.005564007442444563, -0.025598974898457527, -0.0017282487824559212, -0.04596551135182381, -0.04531145840883255, 0.06028204411268234, 0.011246107518672943, -0.03917061164975166, 0.04040604829788208, 0.07216403633356094, -0.0017112160567194223, -0.044039685279130936, -0.025617143139243126, -0.04578383266925812, 0.0002852973120752722, -0.020911583676934242, -0.012935749255120754, -0.001901982119306922, 0.052215367555618286, 0.04694659635424614, -0.07986734807491302, 0.040042683482170105, -0.005100718699395657, 0.039424967020750046, -0.002600321779027581, 0.0152431083843112, 0.0549769327044487, -0.00043291383190080523, 0.028596725314855576, -0.06903911381959915, -0.0078077781945466995, 0.02568981610238552, -0.004551130812615156, 0.00838916003704071, 0.0245270524173975, -0.05581267178058624, 0.008330113254487514, 0.009783568792045116, -0.020548218861222267, -0.03644538298249245, 0.07339947670698166, 0.033175110816955566, -0.0371721088886261, 0.03208501636981964, 0.014570886269211769, 0.0075988443568348885, -0.06471507996320724, 0.024145521223545074, -0.03435604274272919, 0.026689065620303154, -0.005754773039370775, 0.04294959455728531, -0.028178857639431953, -0.04029703885316849, 0.06936613470315933, -0.026180356740951538, -0.02243771031498909, 0.01441645622253418, -0.015788154676556587, 0.040951091796159744, 0.09767217189073563, -0.04483908414840698, -0.02363681048154831, -0.016251442953944206, 0.03462856262922287, -0.023891165852546692, 0.006113594863563776, 0.005632137879729271, 0.07016553729772568, -0.03967931866645813, -0.004823653493076563, 0.05686642602086067, 0.04149613901972771, -0.03608201816678047, -0.05108894035220146, -0.03495559096336365, 0.0036722447257488966, 0.0021313554607331753, -0.02479957416653633, 0.027579307556152344, 0.02256488800048828, -0.007308152969926596, 0.043458301573991776, 0.006463332567363977, -0.013898663222789764, 0.014570886269211769, 0.007439872715622187, 0.01962164230644703, 0.01814093440771103, -0.033066101372241974, -0.02185632847249508, 0.007058340590447187, -0.0032725445926189423, 0.04869074001908302, -0.008961457759141922, 0.025907834991812706, -0.031013095751404762, 0.014852493070065975, 0.04098742827773094, -0.05537663400173187, -0.024745071306824684, 0.026507385075092316, -0.0609724335372448, -0.03702676668763161, -0.09229438751935959, 0.04120544716715813, -0.008589010685682297, 0.01573364995419979, -0.00972906406968832, 0.02716143988072872, 0.02434537000954151, 0.0550132691860199, 0.10290461033582687, 0.021801823750138283, -0.04847272112965584, -0.02761564403772354, -0.006508753169327974, -0.004882700275629759, -0.061154115945100784, -0.03997001051902771, 0.015779070556163788, -0.0005683235940523446, -0.038988929241895676, 0.03982466459274292, -0.010601136833429337, 0.03519177809357643, -0.07652440667152405, 0.006826696451753378, 0.005995501764118671, 0.017614057287573814, -0.021129600703716278, -0.032920755445957184, -0.038843583315610886, 0.07492560148239136, 0.01694183424115181, 0.02587149851024151, 0.0017089450266212225, -0.01943995989859104, -0.00564576406031847, -0.05693909898400307, 0.051924679428339005, -0.021129600703716278, 0.0230372603982687, 0.0009453134844079614, 0.03688142076134682, -0.08582651615142822, -0.04098742827773094, 0.012072760611772537, 0.03404718264937401, 0.0728180930018425, 0.013135598972439766, 0.0461108572781086, 0.0029591433703899384, 0.016296863555908203, -0.046147193759679794, 0.10341332107782364, -0.019131101667881012, -0.03964298218488693, -0.06162649020552635, -0.01693275012075901, -0.06180817261338234, -0.004841821733862162, 0.02051188237965107, 0.014361951500177383, -0.02481774240732193, -0.04549314081668854, -0.020911583676934242, 0.03166715055704117, -0.028033511713147163, 0.02065722830593586, 0.030867749825119972, 0.07292710244655609, 0.03887991979718208, 0.01203642413020134, -0.05076191574335098, -0.016542134806513786, 0.006000043824315071, 0.018622390925884247, 0.009220355190336704, 0.05842888727784157, 0.04545680433511734, 0.01405309233814478, -0.006159015465527773, 0.028560390695929527, -0.015506547875702381, -0.054577235132455826, -0.026107683777809143, 0.05094359442591667, -0.02481774240732193, 0.005877408664673567, -0.023545969277620316, -0.014380119740962982, -0.0877160057425499, -0.016369536519050598, -0.010764651000499725, 0.05766582489013672, -0.024617893621325493, -0.05316011607646942, -0.06951148062944412, -0.017332449555397034, 0.02676173858344555, 0.022092515602707863, -0.0008635566337034106, 0.009392952546477318, -0.03873457387089729, 0.059664323925971985, 0.020566387102007866, 0.025489965453743935, 0.026779906824231148, -0.06453339755535126, -0.01203642413020134, 0.009601886384189129, 0.032611895352602005, 0.015270360745489597, -0.023400625213980675, -0.03324778378009796, 0.042695239186286926, 0.02361864224076271, -0.015860827639698982, -0.01814093440771103, 0.035900335758924484, -0.031140271574258804, -0.019421791657805443, 0.008230188861489296, -0.04949014261364937, -0.014979669824242592, 0.044330377131700516, -0.024109184741973877, 0.0505438968539238, -0.03697226196527481, -0.016087928786873817, 0.042404547333717346, 0.040333375334739685, -0.04800035059452057, -0.0034224321134388447, -0.049054104834795, 0.031013095751404762, 0.006599593907594681, 0.012681394815444946, -0.004258168861269951, 0.030359040945768356, 0.0016862348420545459, -0.028160689398646355, 0.06286192685365677, -0.00757613405585289, 0.0341198556125164, -0.02988666668534279, -0.025144770741462708, 0.0009748367592692375, -0.0004814569547306746, 0.01345354225486517, 0.01477073598653078, -0.028651230037212372, 0.03953397646546364, 0.03844388201832771, 0.02289191633462906, -0.03359297662973404, 0.028433213010430336, 0.026343870908021927, 0.012899412773549557, -0.01810459792613983, 0.03179432824254036, 0.02970498614013195, -0.06482408940792084, -0.0062180617824196815, 0.038080520927906036, -0.003953851759433746, -0.0475643128156662, 0.010292277671396732, 0.06747664511203766, -0.0063497815281152725, -0.0081620579585433, -0.03982466459274292, -0.01091908011585474, 0.006095426622778177, 0.028996426612138748, -0.018304448574781418, 0.024181855842471123, -0.02256488800048828, 0.0018997110892087221, -0.07150998711585999, -0.06373400241136551, -0.04218652844429016, -0.018804073333740234, -0.02320077456533909, -0.015815407037734985, 0.024726903066039085, 0.02483591064810753, -0.03804418444633484, -0.03935229405760765, 0.03964298218488693, 0.011691228486597538, -0.014334699138998985, 0.019385455176234245, -0.01646946184337139, 0.023945670574903488, 0.04411235824227333, 0.006962957791984081, -0.01091908011585474, 0.025598974898457527, -0.08219287544488907, 0.05039855092763901, 0.03775349259376526, 0.05868324264883995, -0.02658005803823471, 0.010728314518928528, 0.000982217607088387, 0.010564800351858139, 0.0013058384647592902, -0.04396701231598854, 0.026816243305802345, -0.026035012677311897, -0.015924416482448578, -0.024708734825253487, 0.051197949796915054, -0.05777483433485031, -0.01691458187997341, -0.04800035059452057, 0.018531549721956253, -0.000981082092039287, -0.01958530582487583, 0.029141772538423538, -0.01091908011585474, -0.054431889206171036, 0.015215856954455376 ]
730,300
mmengine.utils.path
fopen
null
def fopen(filepath, *args, **kwargs): if is_str(filepath): return open(filepath, *args, **kwargs) elif isinstance(filepath, Path): return filepath.open(*args, **kwargs) raise ValueError('`filepath` should be a string or a Path')
(filepath, *args, **kwargs)
[ 0.010292649269104004, -0.05164291709661484, -0.0008491649641655385, 0.017624985426664352, -0.002810586243867874, -0.03266611322760582, 0.005304607097059488, 0.08254653215408325, 0.0324607752263546, -0.007999690249562263, 0.028028860688209534, 0.017967218533158302, -0.007541953586041927, 0.0003168326220475137, -0.009856302291154861, 0.010309760458767414, -0.02465786784887314, -0.01735975407063961, -0.021851560100913048, 0.06071208417415619, 0.009676630608737469, 0.004915317520499229, -0.007892741821706295, -0.014356662519276142, 0.023990513756871223, 0.05472301319241524, -0.04774146527051926, 0.014870012179017067, -0.006729150656610727, -0.02866199053823948, 0.04346355423331261, -0.005856457632035017, 0.0016202580882236362, 0.03098917379975319, -0.029329344630241394, -0.01142201665788889, -0.011088340543210506, 0.042368412017822266, -0.04798102751374245, -0.0877484679222107, -0.022074010223150253, 0.04907617345452309, 0.003627666737884283, 0.020551074296236038, -0.06553756445646286, -0.02346005290746689, -0.08104071021080017, -0.02896999940276146, -0.028679102659225464, 0.005223326850682497, 0.05359364300966263, -0.020619520917534828, -0.028336869552731514, -0.0242471881210804, -0.037885162979364395, 0.05219049006700516, 0.017778988927602768, 0.037029579281806946, -0.02821708843111992, -0.037679821252822876, 0.030527159571647644, -0.0039463709108531475, 0.022074010223150253, -0.01588815450668335, -0.029055558145046234, 0.01070332806557417, -0.011456239968538284, -0.008500205352902412, 0.004795535933226347, 0.016786515712738037, 0.002650164533406496, 0.05301184952259064, 0.005766621325165033, -0.03300834447145462, 0.028028860688209534, 0.02274136431515217, -0.04904194921255112, 0.02383650839328766, 0.005458611994981766, 0.03150252252817154, -0.017710544168949127, -0.038535404950380325, -0.019661270081996918, 0.0069387685507535934, 0.0041260430589318275, -0.05728975683450699, -0.012559941038489342, -0.005022265017032623, -0.004367745015770197, 0.013937427662312984, -0.029021333903074265, -0.003937815316021442, -0.05106112360954285, -0.034257493913173676, 0.031348519027233124, -0.030184926465153694, 0.038124725222587585, 0.034976184368133545, 0.022878257557749748, 0.026523035019636154, -0.04637253284454346, -0.03410349041223526, 0.002562467474490404, -0.007426450029015541, -0.01629883423447609, -0.056707963347435, 0.05592082813382149, 0.033641476184129715, 0.0020084783900529146, -0.02126976288855076, -0.05715286359190941, -0.03461683914065361, -0.018805688247084618, 0.08631109446287155, -0.013809090480208397, 0.0009122641058638692, 0.017539426684379578, 0.009659518487751484, 0.031998760998249054, -0.041067928075790405, -0.05472301319241524, -0.0077301817946136, -0.05657107010483742, 0.0488366074860096, 0.07857663184404373, 0.03454839438199997, -0.014852900058031082, -0.032580554485321045, 0.07207421213388443, 0.00727672316133976, 0.005775177385658026, 0.023288937285542488, 0.01595660112798214, 0.02770373784005642, -0.026933714747428894, 0.011576022021472454, -0.03194742277264595, 0.046817436814308167, -0.003751726122573018, 0.019421707838773727, 0.05400432273745537, -0.037987831979990005, -0.01739397831261158, -0.004128182306885719, -0.025804346427321434, 0.043155547231435776, 0.06872033327817917, -0.06687227636575699, -0.022724252194166183, 0.08651643246412277, 0.05859024077653885, -0.018360786139965057, 0.00009805769514059648, 0.07631789892911911, 0.05496257543563843, -0.0638948455452919, 0.007062827702611685, -0.01239738054573536, 0.017308419570326805, 0.05023976415395737, -0.020208843052387238, 0.030937837436795235, 0.006523811258375645, -0.010198535397648811, 0.05030820891261101, 0.02814864180982113, -0.047228116542100906, -0.019165031611919403, 0.038569629192352295, -0.0460987463593483, 0.009676630608737469, -0.012671166099607944, -0.005711008328944445, 0.028507985174655914, 0.020243065431714058, -0.018514789640903473, -0.004241546615958214, 0.02828553505241871, 0.018292339518666267, 0.009710853919386864, 0.006117410026490688, -0.017693432047963142, -0.018805688247084618, 0.018566126003861427, 0.025735899806022644, 0.05037665739655495, -0.029192451387643814, 0.00006005783143336885, 0.006844654213637114, -0.011738582514226437, -0.004478970542550087, 0.03297412395477295, 0.025496337562799454, -0.009479846805334091, -0.031177401542663574, -0.07871352881193161, -0.016726624220609665, -0.039048753678798676, -0.021594883874058723, 0.11184165626764297, 0.046440981328487396, 0.045756515115499496, 0.02588990516960621, 0.011841252446174622, -0.01534058153629303, 0.01705174520611763, 0.019490152597427368, 0.017257085070014, -0.06293659657239914, 0.02397340163588524, -0.040657248347997665, -0.04664631932973862, -0.06851498782634735, 0.047775689512491226, 0.041991956532001495, 0.07221110165119171, -0.03406926617026329, 0.05280650779604912, -0.05633150413632393, 0.013287185691297054, 0.09630428999662399, 0.05968538671731949, -0.046714767813682556, 0.01670951209962368, 0.09062322229146957, -0.023288937285542488, 0.041444383561611176, -0.011327902786433697, -0.007875630632042885, 0.06146499514579773, -0.023956291377544403, -0.0577346608042717, 0.015297802165150642, -0.00018889641796704382, 0.044866710901260376, -0.038603849709033966, -0.0031635137274861336, -0.012602720409631729, -0.015511698089540005, -0.03232388198375702, 0.03400082141160965, -0.014955569989979267, 0.037269141525030136, 0.042436856776475906, -0.02239913120865822, -0.02465786784887314, -0.013526747934520245, -0.002607385627925396, -0.010900111868977547, -0.04308709874749184, 0.05855602025985718, 0.0443875826895237, -0.032683223485946655, 0.01701752282679081, -0.027789296582341194, 0.042984429746866226, 0.004173100460320711, -0.02575301192700863, -0.0032854340970516205, 0.0037923662457615137, -0.0030030920170247555, 0.033675700426101685, 0.031211623921990395, -0.040862586349248886, -0.008367589674890041, -0.06892567127943039, -0.04993175342679024, -0.040315013378858566, 0.09144458174705505, -0.023015150800347328, -0.026386143639683723, 0.07522275298833847, 0.020294399932026863, 0.015058239921927452, -0.030458712950348854, -0.06379217654466629, -0.009591071866452694, -0.007790072355419397, 0.08302565664052963, 0.01439944189041853, -0.06403174251317978, -0.003424466121941805, -0.030869390815496445, 0.015374804846942425, 0.020448405295610428, 0.014065764844417572, -0.007041438017040491, -0.014048653654754162, -0.0058051226660609245, 0.005424388684332371, 0.022450465708971024, 0.036858465522527695, -0.005796566605567932, 0.023545611649751663, 0.0007229666225612164, 0.06341572105884552, -0.018001440912485123, -0.04188928380608559, 0.08364167809486389, -0.05660529062151909, 0.02705349586904049, -0.009462734684348106, 0.07426450401544571, -0.00018582167103886604, 0.01338985562324524, -0.04733078554272652, -0.011516131460666656, -0.06844654679298401, -0.02369961515069008, 0.022570248693227768, 0.027241725474596024, -0.020585298538208008, -0.04941840469837189, -0.01729130744934082, 0.018429232761263847, 0.07371693104505539, -0.021817335858941078, 0.0013721393188461661, 0.027173278853297234, 0.011961033567786217, 0.045653846114873886, -0.010617770254611969, -0.0023079318925738335, -0.0004954353207722306, -0.0009577168966643512, 0.0013111791340634227, 0.012808059342205524, -0.03406926617026329, 0.009454178623855114, 0.0587613582611084, 0.036379337310791016, 0.0292095635086298, 0.033128127455711365, -0.013004843145608902, -0.027036385610699654, 0.018069887533783913, -0.0040297904051840305, -0.02192000485956669, -0.019575711339712143, 0.01470745075494051, 0.05585237964987755, -0.030356042087078094, -0.016529841348528862, -0.011413461528718472, -0.03376125916838646, 0.035831764340400696, 0.032649002969264984, -0.02773796208202839, 0.06741984933614731, -0.038706522434949875, -0.0034758010879158974, -0.015768373385071754, -0.06392907351255417, -0.06427130848169327, -0.05338830500841141, 0.04784413427114487, 0.010805997997522354, 0.05290917679667473, 0.016897739842534065, -0.046714767813682556, -0.011618800461292267, -0.012140706181526184, -0.029021333903074265, -0.009616739116609097, 0.005030821077525616, 0.020362846553325653, 0.07351158559322357, 0.04637253284454346, -0.05355942249298096, 0.06519533693790436, 0.034907735884189606, 0.008940829895436764, 0.0024897430557757616, 0.044456031173467636, -0.013150292448699474, 0.023271825164556503, 0.03061271645128727, -0.047912582755088806, 0.02695082686841488, 0.0005828650901094079, -0.01354386005550623, -0.009291618131101131, 0.07535964250564575, 0.02657437138259411, -0.044182244688272476, 0.0028383927419781685, -0.040759917348623276, -0.0016459254547953606, 0.013877537101507187, -0.035078853368759155, 0.03252921998500824, -0.008949385955929756, 0.08220429718494415, -0.009283063001930714, 0.016632510349154472, -0.015794040635228157, 0.07166352868080139, 0.04931573569774628, 0.0147758973762393, 0.04705699905753136, -0.042779091745615005, -0.03009936772286892, -0.07323779910802841, -0.0013785561313852668, -0.022450465708971024, 0.10239603370428085, -0.014253992587327957, 0.05616039037704468, 0.0000017337229110125918, -0.037987831979990005, 0.022690029814839363, -0.019712604582309723, -0.04360044747591019, -0.011250901035964489, 0.06872033327817917, 0.03454839438199997, -0.011926810257136822, 0.013124625198543072, -0.0027913355734199286, -0.026865268126130104, -0.024572309106588364, -0.035592202097177505, -0.007131274323910475, 0.022792698815464973, 0.00296245189383626, -0.0038394234143197536, 0.013637973926961422, 0.023083597421646118, 0.05390165373682976, 0.021047312766313553, -0.02582145854830742, -0.009967528283596039, 0.01183269638568163, -0.033538807183504105, 0.014031541533768177, -0.022416243329644203, -0.03252921998500824, 0.032204098999500275, 0.049349959939718246, -0.0066307587549090385, 0.06054096668958664, -0.038090500980615616, 0.018514789640903473, 0.009488401934504509, -0.07337469607591629, -0.08247808367013931, 0.017573650926351547, -0.00538588734343648, 0.02530810981988907, 0.005916348192840815, -0.002417018637061119, -0.010386763140559196, 0.04890505596995354, 0.037679821252822876, -0.03263188898563385, -0.05492835119366646, -0.028952887281775475, 0.0031720695551484823, 0.007041438017040491, 0.020260177552700043, 0.0072981128469109535, 0.019233478233218193, 0.03187897801399231, -0.11779650300741196, -0.025017211213707924, -0.004363466985523701, 0.007755849044770002, -0.005180547945201397, 0.004945262800902128, -0.038569629192352295, 0.008166528306901455, -0.007670290768146515, -0.042710643261671066, -0.006117410026490688, 0.011678691953420639, 0.033607251942157745, 0.014322439208626747, -0.0074007827788591385, -0.00006129441317170858, 0.001358236069791019, -0.02482898347079754, -0.08446303755044937, -0.030253373086452484, 0.06262858957052231, 0.007576176896691322, -0.02958601899445057, -0.0026373309083282948, -0.0066564264707267284, 0.011670135892927647, 0.028713325038552284, 0.038227394223213196, 0.07029460370540619, -0.00071815395494923, -0.05797422304749489, 0.03160519152879715, 0.07885041832923889, -0.041239041835069656, 0.036516230553388596, -0.06632470339536667, 0.027378616854548454, -0.036687348037958145, -0.04989752918481827, -0.033538807183504105, 0.05369631573557854, -0.015776928514242172, 0.02958601899445057, 0.011285124346613884, -0.007126996293663979, -0.0026244972832500935, -0.04479826241731644, -0.019609935581684113, 0.017068857327103615, 0.00027044405578635633, -0.00019451117259450257, -0.027139054611325264, -0.018531901761889458, -0.018035665154457092, 0.005796566605567932, -0.07159508764743805, 0.016007935628294945, 0.02907267026603222, -0.015776928514242172, -0.021252652630209923, -0.040657248347997665, 0.017984328791499138, -0.02794330194592476, 0.020431293174624443, 0.00864565372467041, 0.038056276738643646, 0.04387423396110535, 0.05965116247534752, -0.03482218086719513, -0.004851148929446936, 0.016273165121674538, -0.007939798757433891, -0.001763568026944995, -0.01282517146319151, 0.009146169759333134, 0.008003967814147472, 0.016752291470766068, -0.02725883573293686, 0.018737241625785828, -0.08227274566888809, 0.010070198215544224, 0.030595604330301285, -0.07207421213388443, -0.019917944446206093, -0.0285250972956419, 0.02688238024711609, -0.023545611649751663, 0.036858465522527695, -0.05530480667948723, -0.0047784242779016495, 0.06772785633802414, -0.008264920674264431, 0.05297762528061867, -0.004457581322640181, -0.019524376839399338, -0.023494277149438858, -0.07186887413263321, 0.03249499574303627, -0.027549734339118004, -0.025941239669919014, 0.004543139599263668, -0.05160869285464287, -0.034873515367507935, 0.06700916588306427, 0.009445623494684696, -0.01248293835669756, -0.0027678071055561304, 0.045106273144483566, 0.016512729227542877, 0.04832325875759125, -0.0019304064335301518, 0.017180083319544792, -0.011464796029031277, 0.007353725377470255, -0.035968657582998276, -0.010497989133000374, 0.001448072143830359, -0.01556303258985281, -0.01433099526911974, -0.10383340716362, 0.0066649820655584335, -0.019524376839399338, 0.038364287465810776, -0.020653745159506798, 0.0491788424551487, -0.07104751467704773, -0.02140665613114834, -0.005531336180865765, -0.05639995262026787, 0.005509946960955858, 0.0021143564954400063, -0.0069045452401041985, 0.009488401934504509, -0.00020627542107831687, -0.010865888558328152, 0.05879558250308037, -0.05284073203802109, -0.0635526180267334, -0.04733078554272652, -0.048015251755714417, 0.014219769276678562, 0.004607308190315962, 0.05793999880552292, 0.04147860407829285, -0.027823520824313164, -0.009223171509802341, 0.02332315966486931, 0.01588815450668335, 0.042984429746866226, 0.036858465522527695, -0.006250025238841772, 0.02753262221813202, 0.055681262165308, -0.0005523849977180362, 0.011533242650330067, -0.014450776390731335, 0.0038693686947226524, 0.03335057944059372, -0.022484689950942993, 0.046817436814308167, 0.035968657582998276, -0.0005673576961271465, 0.024093182757496834, -0.017257085070014, -0.04715966805815697, -0.018412120640277863, -0.041239041835069656, 0.021577773615717888, -0.005244716536253691, 0.0035014685709029436, 0.031416963785886765, -0.02944912575185299, -0.05462034046649933, 0.040143899619579315, 0.0040640137158334255, 0.019883720204234123, -0.002536799991503358, -0.07296401262283325, -0.033709924668073654, -0.010711884126067162, -0.040794141590595245, -0.009531181305646896, -0.05544169992208481, -0.01119956560432911, -0.04715966805815697, 0.08733779191970825, -0.03335057944059372, 0.020995978266000748, 0.02219379134476185, -0.009719409048557281, -0.040349237620830536, 0.037816714495420456, -0.006635036785155535, 0.05954849347472191, -0.06878877431154251, 0.040657248347997665, 0.039219871163368225, 0.017034633085131645, 0.0037688377778977156, 0.021834447979927063, 0.04572229087352753, -0.07248488813638687, -0.05304607003927231, 0.039698995649814606, -0.06522955745458603, -0.00709705101326108, 0.008260642178356647, -0.02729305997490883, 0.05065044388175011, 0.004241546615958214, 0.038398511707782745, 0.06468198448419571, -0.026967938989400864, 0.0138347577303648, 0.028713325038552284, 0.009745076298713684, 0.041444383561611176, -0.018069887533783913, 0.02380228601396084, -0.0020844112150371075, -0.04582495987415314, -0.017898771911859512, 0.004859704524278641, 0.0003930328821297735, 0.043018653988838196, 0.023956291377544403, 0.003157096914947033, 0.038569629192352295, 0.006134521681815386, -0.0328030064702034, -0.05438077822327614, -0.05133490636944771, -0.012243375182151794, -0.021081535145640373, 0.018668795004487038, 0.046167194843292236, 0.010643437504768372, 0.012269043363630772, 0.030492935329675674, 0.03478795662522316, -0.038295842707157135, 0.004932429175823927, -0.09705720096826553, -0.040896810591220856, 0.009950416162610054, 0.005013709422200918, -0.05171136558055878, -0.05273806303739548, -0.027857743203639984, 0.004192350897938013, -0.018429232761263847, 0.02541077882051468, -0.00595057150349021, -0.07405915856361389, -0.0016534117748960853, -0.015699926763772964, -0.0580768920481205, 0.013167403638362885, -0.035968657582998276, 0.046030301600694656, -0.013826201669871807, -0.0030415933579206467, -0.02794330194592476, -0.04887083172798157, 0.05205359682440758, 0.025462115183472633, -0.04401112720370293, 0.028131529688835144, -0.021714666858315468, -0.00574523163959384, -0.06505843997001648, -0.014390885829925537, -0.039151422679424286, 0.002068368950858712, -0.020311512053012848, 0.07748148590326309, 0.031588081270456314, -0.029671577736735344, 0.036721572279930115, -0.05044510215520859, -0.02811441756784916, 0.07132130116224289, -0.03187897801399231, 0.038603849709033966, -0.0007005076040513813, -0.021800223737955093, 0.022553136572241783, -0.025325221940875053, 0.0032854340970516205, 0.015058239921927452, 0.040965255349874496, 0.07227955013513565, -0.04647520184516907, -0.010369651019573212, 0.008705545216798782, 0.017342643812298775, -0.01667528972029686, -0.06646159291267395, 0.038124725222587585, 0.009822078980505466, -0.005783732980489731, -0.05078733712434769, 0.030732497572898865, -0.041444383561611176, 0.001213856739923358 ]
730,301
mmengine.fileio.io
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'. Defaults to 'get_object'. expires_in (int): expires, in seconds. Defaults to 3600. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: str: Generated presigned url.
def generate_presigned_url( url: str, client_method: str = 'get_object', expires_in: int = 3600, backend_args: Optional[dict] = None, ) -> 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'. Defaults to 'get_object'. expires_in (int): expires, in seconds. Defaults to 3600. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: str: Generated presigned url. """ backend = get_file_backend( url, backend_args=backend_args, enable_singleton=True) return backend.generate_presigned_url(url, client_method, expires_in)
(url: str, client_method: str = 'get_object', expires_in: int = 3600, backend_args: Optional[dict] = None) -> str
[ -0.03448725491762161, -0.04452597349882126, -0.07045623660087585, 0.03169048950076103, -0.02407810464501381, 0.03031989000737667, 0.028060251846909523, 0.0353948138654232, 0.041192080825567245, 0.014372776262462139, 0.033746387809515, 0.034820642322301865, -0.006848368793725967, 0.023022372275590897, -0.004838773049414158, 0.012168703600764275, 0.06082499772310257, -0.050860363990068436, -0.004931380972266197, -0.05230505019426346, 0.05011950060725212, 0.015243291854858398, 0.015141423791646957, 0.02759721130132675, 0.019521785899996758, 0.056120503693819046, 0.004132636357098818, -0.015345160849392414, -0.019688481464982033, 0.011603794060647488, 0.1045360192656517, 0.047415345907211304, 0.03919174522161484, 0.025263488292694092, 0.043525803834199905, 0.03900652751326561, -0.027097128331661224, 0.034820642322301865, -0.1512845754623413, -0.04241450875997543, 0.033653780817985535, -0.015585942193865776, 0.09008915722370148, -0.01746588572859764, 0.05434243008494377, 0.05619459226727486, -0.010029456578195095, -0.03415386378765106, -0.011187057942152023, -0.044118497520685196, 0.057157713919878006, 0.02407810464501381, 0.05445355921983719, -0.0036580197047442198, -0.05030471831560135, 0.006181590259075165, 0.00188225950114429, 0.07245657593011856, -0.023022372275590897, 0.04182181507349014, -0.014983989298343658, -0.03522811830043793, 0.029523460194468498, 0.010937015525996685, 0.03393160551786423, 0.01648424006998539, -0.02330019697546959, -0.03130153566598892, -0.024226278066635132, -0.03298700228333473, 0.0334315225481987, -0.033135175704956055, -0.02454114519059658, 0.015817463397979736, -0.003046806203201413, -0.049897242337465286, -0.002653221832588315, 0.008658857084810734, 0.0009885914623737335, 0.016132330521941185, 0.03076440840959549, -0.048711858689785004, 0.0408957339823246, -0.07178979367017746, 0.05541668459773064, -0.0415254682302475, 0.004269232973456383, -0.09431208670139313, -0.03617272153496742, 0.06960424035787582, -0.005380530375987291, 0.009659023955464363, -0.01658610999584198, -0.022577853873372078, -0.0032227616757154465, -0.010205412283539772, 0.018493836745619774, -0.008908898569643497, 0.0124928317964077, -0.035024382174015045, 0.01909578964114189, 0.04426666721701622, -0.07304926216602325, -0.029690155759453773, 0.04493344575166702, -0.025133837014436722, 0.01327073946595192, -0.03739514946937561, -0.02109612338244915, 0.01806783862411976, 0.016539806500077248, -0.009381200186908245, -0.006019526161253452, -0.02168881520628929, 0.0590839646756649, -0.025615399703383446, -0.03522811830043793, -0.04293311387300491, 0.025467226281762123, -0.011261144652962685, -0.013205913826823235, -0.0033130545634776354, -0.03656167536973953, -0.012020530179142952, -0.005672245752066374, -0.04204407334327698, 0.04578544199466705, -0.01739180088043213, -0.04141433909535408, -0.026059918105602264, -0.04648926481604576, 0.04856368526816368, -0.0009903277968987823, 0.027115650475025177, -0.07934661209583282, -0.008908898569643497, 0.045081619173288345, 0.02920859307050705, 0.006903933361172676, 0.06852999329566956, -0.015039554797112942, 0.04648926481604576, 0.027430517598986626, 0.06334393471479416, -0.00017624477914068848, -0.029097463935613632, 0.025726528838276863, -0.01798449270427227, 0.03908061608672142, 0.030745888128876686, 0.047156043350696564, -0.040599387139081955, 0.014048648066818714, 0.037098802626132965, 0.07823532074689865, -0.07690176367759705, -0.0049499026499688625, 0.02135542593896389, -0.03758036345243454, -0.004769316874444485, 0.009501590393483639, 0.02933824434876442, 0.015798941254615784, -0.048008035868406296, 0.021077603101730347, 0.0009694909676909447, 0.10809216648340225, 0.04500753432512283, 0.021596208214759827, 0.04730421304702759, 0.02420775592327118, -0.0023348815739154816, -0.04467414319515228, -0.039117660373449326, 0.0720490962266922, 0.00416504917666316, 0.07860574871301651, -0.0012513669207692146, -0.00961272045969963, -0.011872357688844204, 0.024652274325489998, -0.02759721130132675, 0.043599892407655716, 0.015622985549271107, 0.06767799705266953, 0.01985517516732216, 0.007065997458994389, 0.014567253179848194, -0.011400056071579456, -0.058713532984256744, -0.05523146688938141, 0.016799109056591988, -0.006320502609014511, -0.001104930299334228, -0.0288937259465456, -0.043488759547472, -0.010686974041163921, -0.02083682082593441, -0.024392971768975258, 0.019892219454050064, 0.009205244481563568, 0.011335230432450771, -0.008649596013128757, -0.05141601338982582, 0.024170713499188423, 0.0021612413693219423, -0.020095955580472946, -0.019262483343482018, -0.006107504013925791, 0.0590839646756649, 0.038524966686964035, 0.007408647332340479, 0.00038056139601394534, -0.034116823226213455, -0.04278494045138359, -0.03608011454343796, -0.03139414265751839, 0.08875560015439987, -0.06871520727872849, 0.04234042018651962, 0.035024382174015045, -0.0008531520725227892, -0.02472636103630066, -0.010798104107379913, 0.04315537214279175, -0.04604474455118179, -0.0016055927844718099, 0.0010042190551757812, -0.05593528971076012, -0.05782449245452881, -0.024244798347353935, 0.02013299986720085, 0.012594700790941715, 0.02259637415409088, -0.00478783855214715, -0.0026462762616574764, 0.006186220794916153, 0.012242790311574936, 0.01985517516732216, -0.0020605300087481737, 0.00979793630540371, 0.020818298682570457, 0.007232692092657089, 0.03396864980459213, -0.0020512694027274847, 0.043488759547472, 0.011020363308489323, 0.030227281153202057, -0.012446528300642967, 0.01431721169501543, 0.07456804066896439, -0.03226466104388237, -0.024522623047232628, 0.04048825800418854, 0.013965300284326077, 0.034116823226213455, -0.0428219810128212, -0.013418912887573242, -0.011603794060647488, 0.01922544091939926, -0.011631576344370842, -0.026337742805480957, -0.03900652751326561, -0.04252563789486885, 0.0013960669748485088, -0.046192917972803116, -0.037876710295677185, 0.01834566332399845, -0.01424312498420477, 0.016437936574220657, -0.0428590252995491, -0.0004971896996721625, -0.026004353538155556, -0.0301902387291193, 0.03169048950076103, -0.053231131285429, -0.057417020201683044, 0.008635704405605793, -0.010548061691224575, -0.04626700282096863, -0.00920061394572258, -0.01275213435292244, 0.07038214802742004, -0.0681225135922432, 0.04752647504210472, 0.018364185467362404, -0.011687141843140125, 0.016261981800198555, 0.04756351560354233, -0.02622661180794239, 0.027560168877243996, -0.009390460327267647, -0.044303711503744125, -0.011150014586746693, -0.02330019697546959, -0.0017607114277780056, 0.018567923456430435, -0.04678560793399811, -0.003896485548466444, -0.023448370397090912, -0.022300029173493385, 0.045415010303258896, -0.013752302154898643, 0.017428843304514885, -0.009010767564177513, 0.03626532852649689, -0.02265194058418274, -0.050008371472358704, -0.01048323605209589, -0.03348708525300026, -0.020410824567079544, -0.03169048950076103, -0.08090242743492126, -0.027023041620850563, -0.0064779361709952354, 0.029227115213871002, 0.012261311523616314, -0.011770488694310188, 0.035542987287044525, -0.013344826176762581, 0.009983152151107788, 0.03941400349140167, -0.0036695958115160465, 0.07219727337360382, -0.01346521731466055, -0.01795670948922634, -0.016437936574220657, 0.05108262598514557, -0.025337575003504753, 0.01827157661318779, -0.022614896297454834, 0.06601104885339737, -0.033783432096242905, 0.04708195477724075, -0.01653054542839527, -0.008056904189288616, -0.0017433473840355873, -0.027615733444690704, 0.03228318318724632, -0.006371437106281519, 0.04234042018651962, -0.09816458076238632, -0.03845088183879852, 0.0034056627191603184, -0.019188396632671356, 0.06089908257126808, -0.01690097711980343, -0.0025143097154796124, 0.07667950540781021, -0.04660039395093918, -0.001449316623620689, 0.04556318372488022, -0.012002008967101574, 0.014789512380957603, -0.005575007293373346, 0.01197422668337822, -0.012650265358388424, -0.02467079646885395, -0.01954030804336071, -0.011798270978033543, 0.02168881520628929, -0.03804340586066246, -0.006630739662796259, -0.03608011454343796, -0.03674689307808876, 0.02265194058418274, 0.04126616567373276, -0.05108262598514557, 0.014178299345076084, 0.07164162397384644, -0.011631576344370842, 0.001541924779303372, 0.0029194701928645372, 0.013205913826823235, -0.018160447478294373, -0.020410824567079544, 0.007362343370914459, 0.011270404793322086, 0.02000334858894348, 0.07123414427042007, -0.01801227405667305, 0.011964965611696243, 0.04548909515142441, -0.005051771644502878, 0.05434243008494377, 0.01588228903710842, 0.07682767510414124, 0.0043826778419315815, 0.0038478663191199303, -0.04189590364694595, -0.008607922121882439, 0.004389623645693064, 0.02759721130132675, -0.01057584397494793, 0.0506381057202816, -0.07942070066928864, -0.07616090029478073, 0.02680078335106373, 0.013326304964721203, 0.04200703278183937, 0.06067682430148125, 0.011094450019299984, -0.0480450801551342, 0.004463710356503725, -0.029782762750983238, -0.03357969596982002, 0.050526976585388184, 0.024522623047232628, 0.04071051999926567, -0.020151522010564804, -0.012474310584366322, -0.04141433909535408, -0.07004876434803009, -0.03576524555683136, 0.019299527630209923, -0.002627754583954811, -0.07245657593011856, -0.0428590252995491, -0.026578523218631744, -0.003215816104784608, 0.04548909515142441, 0.05737997591495514, -0.005111966747790575, 0.053712695837020874, -0.030227281153202057, 0.002172817476093769, 0.011400056071579456, -0.006709456443786621, 0.034950293600559235, 0.023670628666877747, 0.07779079675674438, -0.029782762750983238, 0.04752647504210472, -0.013196653686463833, 0.005922287702560425, 0.034765079617500305, 0.02654147893190384, 0.025022707879543304, -0.0141134737059474, 0.01788262277841568, -0.025022707879543304, -0.04919341951608658, -0.049230463802814484, -0.0030005022417753935, 0.08290276676416397, -0.0002098152181133628, -0.03519107401371002, -0.02835659869015217, 0.06693713366985321, 0.03204239904880524, -0.01304848026484251, 0.051119666546583176, -0.019966304302215576, -0.01801227405667305, 0.015335900709033012, -0.014919163659214973, 0.012242790311574936, -0.0050239888951182365, -0.08231007307767868, -0.006579805165529251, 0.07801305502653122, 0.026893390342593193, 0.0590839646756649, -0.025467226281762123, 0.025726528838276863, 0.03837679326534271, -0.0013891214039176702, 0.013409651815891266, -0.07234544306993484, -0.011789010837674141, 0.010511018335819244, -0.03332039341330528, -0.03871018439531326, 0.019632916897535324, 0.012539136223495007, 0.0036927477922290564, -0.010020195506513119, 0.004936011508107185, -0.05082332342863083, 0.02128133922815323, -0.009112636558711529, -0.0003904009936377406, -0.02070716954767704, 0.06445523351430893, -0.019577350467443466, 0.020984994247555733, -0.03328334912657738, 0.043007198721170425, -0.0022179638035595417, 0.02291124314069748, -0.0024749513249844313, 0.05745406076312065, -0.013743041083216667, 0.05308295786380768, -0.11068519204854965, -0.0012513669207692146, -0.005186053458601236, 0.02148507721722126, -0.011733445338904858, -0.028967812657356262, 0.03856201097369194, -0.02298532985150814, 0.03322778269648552, -0.0019030963303521276, 0.03915470093488693, 0.021911075338721275, -0.030523627996444702, 0.03393160551786423, -0.06593696027994156, 0.04256267845630646, 0.05408312752842903, -0.0157341156154871, -0.013798605650663376, 0.008117099292576313, -0.028004687279462814, 0.02026265114545822, 0.007015062961727381, -0.016826890408992767, -0.039376962929964066, -0.061899248510599136, 0.049637939780950546, -0.017475146800279617, 0.020670127123594284, 0.020429344847798347, -0.008218968287110329, 0.027800949290394783, -0.013289261609315872, -0.03648759052157402, 0.016734283417463303, 0.07912435382604599, 0.04719308391213417, 0.021596208214759827, -0.03382047638297081, 0.01645645871758461, 0.013446695171296597, 0.013678215444087982, -0.030986668542027473, -0.05108262598514557, 0.06319576501846313, 0.018651269376277924, 0.0012062204768881202, 0.05023062974214554, -0.08549579232931137, -0.018956877291202545, -0.002639330690726638, -0.004456764552742243, 0.026560001075267792, -0.0005672245752066374, 0.02902337722480297, -0.03915470093488693, -0.02850477211177349, 0.004259972367435694, 0.06345506757497787, -0.03558003157377243, -0.020299693569540977, 0.0538979098200798, 0.032097965478897095, -0.017975231632590294, -0.024763405323028564, -0.03298700228333473, -0.04626700282096863, -0.008149512112140656, -0.03285735100507736, -0.0033315762411803007, -0.06919676810503006, 0.04941567778587341, 0.016086025163531303, 0.027819471433758736, -0.0006887727067805827, -0.05675024166703224, 0.06741869449615479, 0.008501422591507435, -0.005741701927036047, -0.036506108939647675, -0.031060755252838135, -0.012863264419138432, 0.0059778522700071335, -0.007158605847507715, 0.08290276676416397, 0.024004017934203148, -0.01612306945025921, 0.00009282514656661078, 0.048711858689785004, -0.004100223537534475, -0.07779079675674438, -0.009603459388017654, 0.03263509273529053, 0.006274198181927204, -0.044563014060258865, 0.04745238646864891, -0.050341758877038956, -0.014641339890658855, -0.020299693569540977, 0.035209596157073975, 0.0095756771042943, -0.026337742805480957, 0.03296848013997078, 0.025930266827344894, 0.021003516390919685, 0.02057751826941967, 0.002551353070884943, 0.007515146862715483, 0.0025073641445487738, -0.013381869532167912, -0.04652630537748337, -0.055861201137304306, -0.04048825800418854, 0.0031185776460915804, 0.030393976718187332, 0.0024217015597969294, -0.027560168877243996, 0.04941567778587341, -0.06041752174496651, -0.048452556133270264, 0.005301813594996929, 0.0008589400677010417, -0.07756853848695755, 0.04311832785606384, 0.01959587261080742, -0.0007148187141865492, -0.0016924128867685795, 0.011557490564882755, -0.006978020071983337, 0.03915470093488693, -0.003241283353418112, -0.0019274059450253844, 0.011464881710708141, -0.027226779609918594, -0.026374785229563713, -0.059935957193374634, 0.023207588121294975, -0.03591341897845268, 0.03194979205727577, 0.010733278468251228, 0.03926583379507065, -0.04900820180773735, 0.0061630685813724995, 0.03915470093488693, 0.003570042084902525, -0.028745552524924278, -0.01860496588051319, -0.04200703278183937, -0.08060608804225922, -0.0029889261350035667, -0.023059414699673653, 0.041451383382081985, -0.02026265114545822, -0.051193755120038986, 0.006741869263350964, -0.03900652751326561, 0.07449395209550858, -0.01804005727171898, 0.07027102261781693, -0.019818132743239403, 0.014613557606935501, 0.000693403126206249, 0.05919509381055832, -0.021985162049531937, 0.005667615216225386, -0.0006910879164934158, 0.057417020201683044, -0.03096814639866352, 0.03672837093472481, -0.05308295786380768, -0.017975231632590294, 0.021929597482085228, 0.033005524426698685, -0.026467394083738327, -0.024633752182126045, 0.03367230296134949, -0.020355259999632835, -0.025356095284223557, -0.06015821918845177, 0.007746667135506868, 0.08416223526000977, -0.01628050208091736, -0.03558003157377243, -0.02433740720152855, -0.049563851207494736, -0.008649596013128757, 0.014919163659214973, -0.014335732907056808, 0.012844742275774479, 0.009047810919582844, -0.0707525834441185, -0.007885579019784927, 0.056120503693819046, 0.00680206436663866, -0.02744903974235058, -0.03174605593085289, 0.01788262277841568, -0.0036186613142490387, 0.01845679245889187, -0.05412017181515694, 0.007820753380656242, 0.0331166535615921, 0.005218466278165579, 0.0012513669207692146, -0.02757869102060795, 0.01896613836288452, -0.028652943670749664, 0.03622828796505928, 0.030801452696323395, 0.008080055937170982, -0.062417857348918915, 0.022892720997333527, 0.04460005834698677, 0.000510502140969038, 0.030986668542027473, -0.06478862464427948, -0.011872357688844204, -0.021929597482085228, 0.02505975030362606, -0.05004541575908661, 0.04019191116094589, 0.010603627189993858, -0.011205579154193401, 0.02291124314069748, -0.0014319526962935925, -0.005366639234125614, -0.017512191087007523, -0.04563726857304573, -0.0025073641445487738, -0.03298700228333473, 0.001296513364650309, -0.04226633533835411, -0.03663576394319534, -0.02013299986720085, 0.029967978596687317, -0.037098802626132965, 0.019114309921860695, 0.04263676702976227, 0.01909578964114189, -0.03652463108301163, -0.012326137162744999, -0.013946779072284698, -0.033394478261470795, -0.04363693296909332, 0.008802399039268494, 0.009418243542313576, -0.043266501277685165, 0.04337763041257858, 0.009529372677206993, -0.03219057247042656, 0.08268050849437714, 0.04182181507349014, 0.014743208885192871, -0.026448871940374374, -0.001661157701164484, -0.01749366894364357, 0.030690321698784828, 0.04519274830818176, -0.050860363990068436, 0.009603459388017654, -0.0030028175096958876, -0.06467749178409576, -0.04460005834698677, 0.04811916500329971, -0.030801452696323395, -0.05374973639845848, -0.09001506865024567, 0.04837846755981445, 0.04597065970301628, -0.029097463935613632, -0.006774282082915306, 0.06919676810503006, -0.01723436638712883, 0.015363682992756367 ]
730,302
mmengine.fileio.io
get
Read bytes from a given ``filepath`` with 'rb' mode. Args: filepath (str or Path): Path to read data. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: bytes: Expected bytes object. Examples: >>> filepath = '/path/of/file' >>> get(filepath) b'hello world'
def get( filepath: Union[str, Path], backend_args: Optional[dict] = None, ) -> bytes: """Read bytes from a given ``filepath`` with 'rb' mode. Args: filepath (str or Path): Path to read data. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: bytes: Expected bytes object. Examples: >>> filepath = '/path/of/file' >>> get(filepath) b'hello world' """ backend = get_file_backend( filepath, backend_args=backend_args, enable_singleton=True) return backend.get(filepath)
(filepath: Union[str, pathlib.Path], backend_args: Optional[dict] = None) -> bytes
[ 0.02663027122616768, -0.08098520338535309, -0.04924776032567024, 0.029731055721640587, -0.021760214120149612, -0.013388094492256641, 0.011874182149767876, 0.03837677463889122, 0.09258578717708588, -0.09732816368341446, 0.08426839113235474, 0.06464224308729172, -0.046767134219408035, -0.003141824621707201, -0.00036793321487493813, -0.00900595635175705, -0.01210218109190464, 0.005458293482661247, 0.03440047428011894, -0.00007880211342126131, -0.009767472743988037, 0.0027405465953052044, 0.06059298664331436, 0.04476074129343033, -0.0012209340929985046, 0.01364345382899046, -0.04344746842980385, -0.021468374878168106, -0.0012380339903756976, 0.030387692153453827, 0.07974489033222198, -0.03467407077550888, -0.0066758072935044765, 0.017446475103497505, -0.00016629669698886573, 0.03244880214333534, 0.00731420423835516, 0.026046592742204666, -0.028490740805864334, -0.02424084208905697, -0.005111735314130783, -0.036333903670310974, 0.11855942010879517, -0.00005682159826392308, -0.004327418748289347, -0.0011576643446460366, -0.03881452977657318, -0.030880169942975044, -0.05074343457818031, 0.031938083469867706, 0.08528982847929001, 0.023821324110031128, 0.002544467570260167, 0.016370320692658424, 0.00016401670291088521, 0.008632037788629532, -0.06785246729850769, 0.008112200535833836, -0.029348017647862434, 0.07164636999368668, 0.009913391433656216, -0.06628383696079254, 0.01578664407134056, -0.0496855191886425, -0.012804417870938778, -0.02619251236319542, 0.0026197072584182024, -0.05493861436843872, 0.00969451293349266, -0.03361615538597107, 0.015649843961000443, 0.044614821672439575, -0.04946663975715637, -0.03790253400802612, -0.02442324161529541, 0.0005281024496071041, 0.006479728501290083, 0.030934888869524002, -0.03638862445950508, 0.04924776032567024, 0.025244036689400673, -0.012001861818134785, 0.0026379472110420465, -0.0021910693030804396, 0.012512579560279846, -0.0435933880507946, 0.023274127393960953, 0.0021956292912364006, -0.025608835741877556, 0.008390359580516815, 0.007145485375076532, -0.015458324924111366, -0.0034040233585983515, 0.04169643670320511, 0.06683103740215302, -0.09550417214632034, 0.02661203034222126, 0.047898005694150925, -0.039142850786447525, 0.012950336560606956, -0.057273320853710175, 0.013606973923742771, 0.03097136877477169, -0.0139444125816226, -0.0017749713733792305, 0.006853646598756313, 0.035239510238170624, 0.005973570980131626, 0.035038869827985764, -0.05738276243209839, 0.000853855861350894, -0.01646151952445507, -0.013059776276350021, 0.029147379100322723, -0.040930360555648804, 0.03374383598566055, -0.022799888625741005, 0.013233055360615253, 0.03268592059612274, -0.022964049130678177, -0.03376207500696182, 0.0078112417832016945, -0.008463318459689617, 0.002046290086582303, 0.07930713146924973, 0.03582318499684334, 0.018805349245667458, -0.0435933880507946, -0.019078947603702545, 0.019954463467001915, 0.01944374479353428, 0.00047623267164453864, 0.0018844108562916517, 0.04103980213403702, -0.006694047246128321, 0.026995068415999413, 0.04979495704174042, 0.017501194030046463, 0.014993206597864628, 0.07223004847764969, 0.06307361274957657, -0.03162800520658493, 0.05129063129425049, -0.02987697534263134, -0.004293219186365604, -0.0024464281741529703, 0.04651177302002907, -0.06566368043422699, 0.009685392491519451, 0.06518944352865219, 0.003809861373156309, 0.036516301333904266, -0.013771132566034794, 0.025189317762851715, 0.03551310673356056, -0.034309271723032, -0.01604200154542923, 0.0321204848587513, -0.05304166302084923, 0.029092658311128616, -0.07128157466650009, 0.052895743399858475, 0.019680865108966827, -0.0984225645661354, 0.02832658216357231, 0.03834029287099838, -0.07098973542451859, 0.032813601195812225, 0.01602376252412796, -0.03250352293252945, -0.08871892839670181, 0.023037007078528404, -0.06464224308729172, 0.00867763813585043, 0.07212060689926147, -0.06278177350759506, 0.04297323152422905, 0.0484452061355114, 0.028946738690137863, -0.005294134374707937, 0.030916649848222733, -0.048773523420095444, -0.02506163716316223, -0.008230759762227535, 0.07285020500421524, 0.0360238254070282, 0.035038869827985764, 0.031062569469213486, 0.06934814155101776, 0.017920712009072304, -0.004705897066742182, 0.0044733383692801, -0.009968111291527748, -0.0021910693030804396, -0.020775258541107178, -0.10462412983179092, 0.05665316432714462, -0.012594658881425858, -0.05818531662225723, 0.048335764557123184, 0.02402196265757084, -0.04082092270255089, 0.02460564114153385, -0.012932097539305687, -0.04085740074515343, -0.0017145517049357295, 0.03295952081680298, 0.026958588510751724, -0.0267944298684597, 0.048335764557123184, -0.03708174079656601, -0.0435933880507946, -0.04118571802973747, -0.006643887609243393, 0.02963985502719879, 0.014318330213427544, -0.029767535626888275, 0.03983596712350845, -0.05147302895784378, 0.029110899195075035, 0.07828570157289505, 0.06048354506492615, -0.030187053605914116, 0.028235383331775665, 0.0076470826752483845, -0.02073877863585949, 0.0047970968298614025, 0.030661290511488914, -0.04870056360960007, -0.020155102014541626, -0.011308744549751282, -0.00010986696725012735, 0.09324242919683456, -0.033068958669900894, 0.039361730217933655, 0.03925228863954544, 0.015768403187394142, 0.0035567826125770807, -0.024970438331365585, 0.03801197558641434, 0.03505710884928703, -0.014874647371470928, 0.018586469814181328, 0.0690927803516388, -0.052202627062797546, -0.05074343457818031, 0.04859112203121185, 0.014199770987033844, -0.02989521436393261, -0.03983596712350845, 0.031080808490514755, 0.013415454886853695, 0.004172379616647959, -0.02684914879500866, 0.0069494061172008514, 0.03600558638572693, 0.011390824802219868, -0.10703179985284805, -0.009867792017757893, 0.048773523420095444, 0.0020690900273621082, 0.0492112822830677, 0.014810808002948761, -0.046329375356435776, -0.009119955822825432, -0.014965847134590149, -0.04585513845086098, 0.01330601517111063, 0.06103074178099632, 0.012995936907827854, -0.051181189715862274, -0.00780212227255106, 0.015713684260845184, 0.03171920403838158, -0.011126345954835415, -0.08587349951267242, 0.034819990396499634, 0.05665316432714462, 0.012083941139280796, 0.004920216277241707, -0.10119502991437912, 0.0036593822296708822, 0.0076972427777945995, -0.06084834411740303, -0.0017065716674551368, 0.007368924096226692, -0.02901969850063324, -0.04771560803055763, -0.03812141343951225, 0.009712752886116505, 0.01318745594471693, -0.04924776032567024, -0.05555877089500427, -0.03489295020699501, 0.055960047990083694, -0.048335764557123184, -0.06591904163360596, -0.05172839015722275, 0.10491596907377243, -0.04056556150317192, 0.007555883377790451, 0.01876886934041977, 0.031336165964603424, 0.04497962072491646, 0.0024031084030866623, -0.023037007078528404, 0.00044944279943592846, -0.0623440183699131, -0.04443242400884628, 0.011874182149767876, 0.004154139664024115, -0.05606948584318161, 0.030260013416409492, 0.025043398141860962, -0.017938952893018723, -0.017656235024333, 0.015586004592478275, 0.033287838101387024, 0.02418612316250801, -0.031938083469867706, 0.00286138616502285, -0.00041153799975290895, 0.013543134555220604, 0.017966313287615776, -0.0008287759847007692, 0.024167882278561592, -0.02225269190967083, 0.05471973493695259, -0.0002399688382865861, 0.0445418618619442, 0.06296417117118835, 0.052421506494283676, 0.031536806374788284, -0.024386761710047722, -0.008226200006902218, -0.007487483788281679, 0.013141856528818607, -0.022398611530661583, -0.03772013634443283, -0.013141856528818607, 0.06562720239162445, -0.039398208260536194, 0.04297323152422905, 0.007382604293525219, 0.003011865308508277, 0.0103511493653059, 0.02745106630027294, -0.026940349489450455, 0.04512554034590721, -0.035421907901763916, 0.012047461234033108, 0.0011109246406704187, -0.056799083948135376, -0.031956326216459274, -0.061359062790870667, -0.011965381912887096, -0.0043798587284982204, 0.029530417174100876, 0.008955796249210835, 0.009667152538895607, -0.01875062845647335, -0.010515308938920498, -0.05865955352783203, -0.015339765697717667, -0.03505710884928703, -0.009466513991355896, 0.045052580535411835, 0.03365263715386391, -0.06511647999286652, 0.04231659322977066, 0.015467444434762001, 0.026684990152716637, 0.019279586151242256, 0.042462512850761414, -0.009384434670209885, -0.03385327383875847, -0.03885101154446602, -0.05304166302084923, 0.03533070906996727, 0.0679619088768959, 0.012795297428965569, -0.005850451532751322, -0.03768365830183029, 0.012384899891912937, -0.005631572566926479, 0.01647976040840149, -0.02617427334189415, 0.010889226570725441, -0.0070360456593334675, -0.040018364787101746, 0.034619349986314774, -0.03812141343951225, 0.013606973923742771, -0.015038806945085526, -0.008978595957159996, -0.018878309056162834, 0.0414045974612236, 0.035403668880462646, 0.031299687922000885, 0.03184688463807106, -0.017054317519068718, 0.015540404245257378, -0.03834029287099838, 0.031117288395762444, -0.04260843247175217, 0.04268139228224754, 0.01964438520371914, 0.042426034808158875, -0.012348419986665249, -0.013078016228973866, -0.011883302591741085, 0.029147379100322723, -0.02701330929994583, -0.024149643257260323, 0.025371717289090157, 0.04038316383957863, -0.01966262422502041, -0.023255886510014534, 0.026776188984513283, -0.03316015750169754, -0.050962310284376144, 0.010834507644176483, -0.0037551417481154203, -0.0345463901758194, 0.033287838101387024, 0.001556092407554388, 0.02487923949956894, 0.006452368572354317, 0.010296429507434368, 0.03925228863954544, 0.035221267491579056, -0.08477910608053207, -0.008714118041098118, -0.0072002047672867775, -0.009247634559869766, -0.0031623446848243475, -0.024149643257260323, 0.0008145260508172214, 0.06777951121330261, -0.006128610111773014, -0.03230288252234459, 0.007145485375076532, 0.006698607467114925, -0.013014176860451698, -0.05610596761107445, -0.04596457630395889, -0.02008214220404625, -0.008312840014696121, 0.049831438809633255, -0.03527598828077316, -0.019571425393223763, -0.058805473148822784, 0.09112659841775894, -0.033506717532873154, -0.010962186381220818, -0.02292756922543049, -0.0054947733879089355, -0.0030483452137559652, -0.020629338920116425, -0.018823588266968727, 0.0012152340495958924, 0.006689487490803003, 0.04990439862012863, -0.12665794789791107, 0.04297323152422905, -0.010378509759902954, 0.01865031011402607, 0.03855917230248451, -0.04559977725148201, -0.014154171571135521, 0.040200766175985336, -0.0054856534115970135, -0.07255836576223373, -0.029968174174427986, 0.037428297102451324, -0.0034747030586004257, 0.004373018629848957, -0.009046996012330055, -0.04946663975715637, -0.07146397233009338, -0.008135000243782997, -0.012065701186656952, -0.043483950197696686, 0.07091677188873291, 0.0017829512944445014, -0.04705896973609924, 0.035038869827985764, 0.04399466514587402, 0.04388522729277611, -0.03292303904891014, -0.018376709893345833, 0.06580960005521774, -0.02571827545762062, 0.010725067928433418, -0.008764277212321758, 0.031773924827575684, 0.007551323156803846, -0.002818066393956542, 0.00960331317037344, 0.03801197558641434, -0.03073425032198429, -0.04870056360960007, 0.04009132459759712, 0.03753773868083954, -0.028308343142271042, -0.031153768301010132, -0.017802152782678604, -0.009316034615039825, 0.028399541974067688, -0.018048392608761787, 0.01863206923007965, 0.05588708817958832, -0.017683593556284904, -0.027086269110441208, -0.03801197558641434, 0.03877805173397064, -0.0014113131910562515, -0.01222074031829834, -0.022289171814918518, 0.05326054245233536, 0.030843690037727356, -0.007099885493516922, 0.007332444190979004, 0.023657165467739105, 0.03837677463889122, -0.03666222095489502, 0.0059781307354569435, -0.05344294011592865, 0.000144423043821007, 0.01198362186551094, 0.043958187103271484, 0.0033014239743351936, 0.00016700918786227703, -0.01492936722934246, -0.03533070906996727, -0.06041058525443077, -0.01089834701269865, 0.00047794266720302403, -0.021468374878168106, -0.03181040659546852, 0.028417780995368958, 0.036333903670310974, -0.012266340665519238, -0.008645717985928059, -0.0021158296149224043, -0.04238955304026604, -0.022325651720166206, -0.019808543846011162, 0.031062569469213486, -0.01988150365650654, -0.006899246480315924, -0.07733722031116486, 0.004382138606160879, 0.016114961355924606, -0.006242609582841396, 0.011071626096963882, -0.0076972427777945995, -0.0016073922161012888, -0.026684990152716637, -0.011053386144340038, 0.04826280474662781, -0.02119477652013302, -0.04231659322977066, 0.010870987549424171, -0.008504359051585197, 0.04136811941862106, 0.055266931653022766, 0.024094922468066216, 0.025900673121213913, -0.06128610298037529, -0.002526227617636323, 0.03202928602695465, 0.011737382970750332, 0.007451003883033991, 0.0557776503264904, 0.018376709893345833, 0.023219406604766846, 0.014446009881794453, -0.002843146212399006, -0.02881905995309353, 0.031117288395762444, -0.03246704116463661, -0.019790302962064743, 0.045307938009500504, 0.0180119127035141, 0.024514440447092056, -0.007742842193692923, 0.03011409379541874, -0.06019170582294464, -0.033889755606651306, 0.026210753247141838, -0.020209820941090584, 0.030697770416736603, -0.009740112349390984, 0.04399466514587402, 0.03139088675379753, -0.057236842811107635, 0.0015743323601782322, 0.041732918471097946, 0.0014192931121215224, 0.004815336782485247, -0.02900145947933197, 0.01666215807199478, -0.008864596486091614, -0.0018513510003685951, 0.06154146045446396, -0.002886465983465314, -0.04866408184170723, 0.03268592059612274, 0.016178801655769348, 0.0009057255811057985, -0.020793499425053596, -0.012466979213058949, 0.026320191100239754, 0.030843690037727356, 0.01210218109190464, 0.004765176679939032, -0.046365853399038315, -0.03485647216439247, 0.028089463710784912, 0.03421807289123535, 0.02750578708946705, 0.017838632687926292, 0.06132258102297783, 0.006142290309071541, 0.011947141960263252, -0.024076683446764946, -0.00616964977234602, -0.019151907414197922, 0.061577942222356796, 0.0326494425535202, -0.035914383828639984, 0.019917983561754227, 0.019553184509277344, 0.03376207500696182, -0.0640585720539093, 0.025590594857931137, 0.034345753490924835, 0.007847721688449383, 0.01526680588722229, -0.015458324924111366, -0.019899742677807808, -0.012211620807647705, 0.030424172058701515, -0.025408197194337845, -0.02334708720445633, -0.0046785371378064156, -0.016133202239871025, 0.056178927421569824, -0.015412724576890469, 0.006279089488089085, 0.0032740640453994274, -0.03009585291147232, -0.0004121079982724041, -0.024788038805127144, -0.003041505115106702, 0.11513032019138336, -0.014674008823931217, -0.00047167271259240806, 0.019553184509277344, 0.022781649604439735, 0.002886465983465314, 0.0012733738403767347, 0.005535813048481941, -0.062489934265613556, -0.04209771379828453, -0.03558606654405594, 0.01472872868180275, 0.05479269474744797, -0.022343890741467476, -0.011308744549751282, 0.08944852650165558, -0.04180587828159332, -0.029092658311128616, -0.009466513991355896, 0.008932996541261673, -0.011728262528777122, -0.013105376623570919, 0.0025763874873518944, 0.01646151952445507, 0.03148208558559418, -0.0061058104038238525, -0.03910636901855469, 0.06628383696079254, -0.02026454173028469, -0.02529875747859478, 0.030223533511161804, 0.03987244516611099, 0.027323387563228607, -0.058805473148822784, -0.04125867784023285, 0.011482024565339088, 0.0370270200073719, -0.03361615538597107, -0.01014139037579298, 0.017264075577259064, 0.012567298486828804, -0.01896950788795948, -0.003912460990250111, 0.022818129509687424, 0.0008093960350379348, -0.0467306524515152, 0.03527598828077316, -0.02725042775273323, 0.02555411495268345, -0.007546763401478529, -0.04122219979763031, 0.0007575263152830303, -0.02134069614112377, -0.02484275959432125, -0.03684462234377861, -0.024751558899879456, 0.006242609582841396, -0.04078444093465805, -0.013652573339641094, 0.0067168474197387695, -0.09929807484149933, 0.03790253400802612, -0.04556329920887947, 0.004888296127319336, -0.04804392531514168, 0.023219406604766846, 0.042644914239645004, -0.01821255125105381, 0.00026875370531342924, 0.011308744549751282, -0.028016503900289536, -0.02051990106701851, -0.0781397819519043, 0.02617427334189415, 0.06296417117118835, -0.06584607809782028, 0.039580605924129486, -0.040711481124162674, -0.04315562918782234, -0.040893882513046265, -0.02639315091073513, -0.07241244614124298, 0.09725520759820938, 0.04366634786128998, -0.00930691510438919, 0.04038316383957863, -0.02442324161529541, -0.006566368043422699, 0.06194273754954338, -0.014245370402932167, 0.026575550436973572, -0.009493873454630375, 0.046329375356435776, 0.016014643013477325, -0.01733703538775444, 0.0020861898083239794, -0.011992741376161575, 0.03365263715386391, -0.031755685806274414, 0.012530818581581116, -0.04662121459841728, -0.005184694658964872, -0.05989987030625343, 0.0063474890775978565, -0.007751962170004845, 0.053515899926424026, -0.008463318459689617, 0.002822626382112503, -0.00994075182825327, 0.0222709309309721, -0.05183782801032066, 0.03403567522764206 ]
730,303
mmengine.fileio.io
get_file_backend
Return a file backend based on the prefix of uri or backend_args. Args: uri (str or Path): Uri to be parsed that contains the file prefix. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. enable_singleton (bool): Whether to enable the singleton pattern. If it is True, the backend created will be reused if the signature is same with the previous one. Defaults to False. Returns: BaseStorageBackend: Instantiated Backend object. Examples: >>> # get file backend based on the prefix of uri >>> uri = 's3://path/of/your/file' >>> backend = get_file_backend(uri) >>> # get file backend based on the backend_args >>> backend = get_file_backend(backend_args={'backend': 'petrel'}) >>> # backend name has a higher priority if 'backend' in backend_args >>> backend = get_file_backend(uri, backend_args={'backend': 'petrel'})
def get_file_backend( uri: Union[str, Path, None] = None, *, backend_args: Optional[dict] = None, enable_singleton: bool = False, ): """Return a file backend based on the prefix of uri or backend_args. Args: uri (str or Path): Uri to be parsed that contains the file prefix. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. enable_singleton (bool): Whether to enable the singleton pattern. If it is True, the backend created will be reused if the signature is same with the previous one. Defaults to False. Returns: BaseStorageBackend: Instantiated Backend object. Examples: >>> # get file backend based on the prefix of uri >>> uri = 's3://path/of/your/file' >>> backend = get_file_backend(uri) >>> # get file backend based on the backend_args >>> backend = get_file_backend(backend_args={'backend': 'petrel'}) >>> # backend name has a higher priority if 'backend' in backend_args >>> backend = get_file_backend(uri, backend_args={'backend': 'petrel'}) """ global backend_instances if backend_args is None: backend_args = {} if uri is None and 'backend' not in backend_args: raise ValueError( 'uri should not be None when "backend" does not exist in ' 'backend_args') if uri is not None: prefix = _parse_uri_prefix(uri) else: prefix = '' if enable_singleton: # TODO: whether to pass sort_key to json.dumps unique_key = f'{prefix}:{json.dumps(backend_args)}' if unique_key in backend_instances: return backend_instances[unique_key] backend = _get_file_backend(prefix, backend_args) backend_instances[unique_key] = backend return backend else: backend = _get_file_backend(prefix, backend_args) return backend
(uri: Union[str, pathlib.Path, NoneType] = None, *, backend_args: Optional[dict] = None, enable_singleton: bool = False)
[ 0.010759115219116211, -0.057544395327568054, -0.04292399436235428, 0.014067448675632477, -0.006438599433749914, 0.04393617808818817, -0.005285836756229401, 0.05297083407640457, 0.024367334321141243, -0.08359869569540024, 0.056082356721162796, 0.0460355170071125, -0.06717886030673981, -0.005056221503764391, -0.021368276327848434, -0.031246419996023178, 0.003800366772338748, 0.00384019804187119, 0.01518272329121828, -0.009442341513931751, 0.027066484093666077, 0.05368310958147049, 0.08502324670553207, 0.02485468052327633, 0.057019561529159546, 0.023842498660087585, 0.01411430910229683, -0.012089946307241917, 0.04708518460392952, -0.003760535502806306, 0.051358841359615326, -0.01223989948630333, 0.011846273206174374, 0.047909926623106, 0.050234194844961166, -0.002408617176115513, 0.006724447011947632, 0.0762135237455368, -0.05087149515748024, -0.03105897828936577, 0.000005550926744035678, -0.06429227441549301, 0.07685082405805588, -0.007689767982810736, 0.0395500548183918, 0.10114318132400513, 0.007164933253079653, -0.01383314747363329, -0.0028022434562444687, -0.005862218327820301, 0.08914694935083389, 0.01996246911585331, 0.00152881583198905, 0.004901582840830088, -0.028322339057922363, 0.03692588210105896, -0.013776915147900581, 0.01787250116467476, -0.06088084727525711, 0.10046838968992233, 0.021536974236369133, -0.02880968526005745, 0.025004632771015167, -0.012577292509377003, -0.020674744620919228, -0.03216487914323807, -0.03158381208777428, -0.03660723194479942, -0.04146195575594902, 0.010224907658994198, -0.0017326580127701163, -0.024011194705963135, 0.011846273206174374, -0.06586677581071854, 0.005777869839221239, 0.0030623178463429213, 0.01411430910229683, -0.014198658056557178, -0.06627915054559708, 0.029446985572576523, -0.010487325489521027, -0.031527578830718994, -0.011743180453777313, -0.01660727523267269, 0.043786223977804184, -0.011555739678442478, -0.01659790240228176, -0.026297975331544876, -0.026972763240337372, -0.007014980539679527, -0.05769434943795204, -0.01580127887427807, 0.04146195575594902, 0.047010209411382675, 0.037225786596536636, -0.12303628772497177, -0.006054345052689314, 0.008233346976339817, 0.011602599173784256, -0.03668220713734627, -0.017610084265470505, -0.019999956712126732, -0.031733766198158264, -0.02826610766351223, 0.0052952091209590435, 0.004151818808168173, 0.07340190559625626, -0.008083394728600979, -0.023448873311281204, -0.008523880504071712, 0.008716007694602013, -0.03030921332538128, 0.008219288662075996, 0.05630728602409363, 0.01223989948630333, -0.00743672251701355, -0.020262375473976135, 0.024648495018482208, 0.046447888016700745, -0.047385092824697495, -0.0908714085817337, 0.04138697683811188, -0.023842498660087585, 0.030440423637628555, 0.04667281731963158, -0.04187432676553726, 0.08809728175401688, -0.046260446310043335, -0.0032591307535767555, -0.009671957232058048, 0.010759115219116211, 0.06219293177127838, -0.062080468982458115, -0.00048148914356715977, -0.0034676590003073215, 0.01383314747363329, -0.0016365944175049663, 0.04251162335276604, -0.03328952565789223, 0.05788178741931915, 0.014386098831892014, -0.017103994265198708, -0.017760036513209343, 0.006855655461549759, -0.021743159741163254, -0.0071977353654801846, -0.003038887633010745, -0.04292399436235428, -0.0060121710412204266, 0.009999978356063366, -0.01358010247349739, 0.04067470133304596, 0.014086193405091763, 0.038537874817848206, -0.013008407317101955, -0.0709276869893074, -0.031902462244033813, 0.03696336969733238, -0.03940010443329811, 0.02865973301231861, -0.03492026403546333, 0.05953127145767212, -0.017038390040397644, -0.09709445387125015, 0.004402521066367626, 0.04716016352176666, -0.021630695089697838, 0.007774116471409798, -0.02616676688194275, -0.012268015183508396, -0.04577310010790825, 0.016719739884138107, -0.0531957633793354, 0.028772197663784027, -0.0039854650385677814, 0.006251158192753792, 0.03951256722211838, 0.03012177348136902, -0.004294742364436388, -0.03756318241357803, 0.08104950189590454, -0.00739923445507884, -0.011124624870717525, -0.01347700972110033, 0.027216436341404915, 0.03696336969733238, 0.05533258989453316, 0.056794632226228714, 0.10256773233413696, 0.006101205479353666, -0.0013706624740734696, 0.03996242582798004, -0.0186691265553236, -0.02672909013926983, -0.008584799244999886, -0.07272712141275406, 0.04843476042151451, -0.021724414080381393, -0.030421677976846695, 0.058893971145153046, -0.0426240898668766, 0.0005391858285292983, 0.012521060183644295, 0.0009805508889257908, -0.00612932164222002, -0.014283006079494953, 0.05263344198465347, 0.022924037650227547, -0.07628849893808365, 0.05990615114569664, -0.04007489234209061, -0.04697272181510925, -0.05184618756175041, 0.03351445496082306, 0.03447040542960167, -0.0011064878199249506, 0.012183667160570621, 0.07925006747245789, -0.027178948745131493, -0.00414947560057044, 0.02262413129210472, 0.039250150322914124, 0.020112421363592148, 0.017806896939873695, -0.022174272686243057, -0.053233250975608826, 0.045473191887140274, 0.0432988777756691, -0.03263348340988159, -0.022755339741706848, -0.017947478219866753, -0.020618513226509094, 0.06369245797395706, -0.02091841772198677, 0.051658745855093, -0.0036504140589386225, 0.08367367088794708, 0.015248327516019344, 0.05469529330730438, 0.020787209272384644, 0.06155563145875931, 0.01347700972110033, -0.00033885822631418705, 0.00856136903166771, -0.048547226935625076, 0.010018723085522652, 0.05833164602518082, -0.018200524151325226, 0.004943756852298975, -0.046635325998067856, 0.029859354719519615, 0.08622287213802338, 0.007600733544677496, -0.003887058235704899, 0.0029217370320111513, -0.02281157299876213, -0.031227674335241318, -0.03090902604162693, -0.019737539812922478, -0.008678519167006016, -0.027834992855787277, 0.017010273411870003, 0.06028103455901146, -0.049821823835372925, -0.011630715802311897, 0.0006589723634533584, -0.0018228639382869005, 0.0057356953620910645, 0.03977498412132263, 0.028697220608592033, -0.025773141533136368, 0.021986832842230797, 0.023617569357156754, 0.036569744348526, -0.015407652594149113, -0.07089019566774368, -0.04224920645356178, 0.01848168484866619, 0.006335506681352854, -0.016719739884138107, -0.07051531225442886, -0.04787243902683258, 0.01714148186147213, -0.06200549006462097, 0.0350327268242836, -0.007164933253079653, -0.018519174307584763, -0.0014210372464731336, 0.05289585888385773, -0.022380458191037178, -0.023842498660087585, 0.0010080812498927116, -0.0903465747833252, -0.00531863933429122, -0.023261431604623795, -0.011546366848051548, -0.07673835754394531, -0.05150879546999931, 0.1027926579117775, -0.0029170510824769735, -0.02807866595685482, 0.04828481003642082, 0.018022455275058746, 0.04386119917035103, 0.002111054491251707, -0.04161190614104271, 0.020656000822782516, -0.05462031438946724, -0.017760036513209343, 0.00819585844874382, 0.02262413129210472, -0.0175163634121418, 0.013308312743902206, -0.012905314564704895, -0.005384243559092283, 0.08892202377319336, -0.010309256613254547, -0.004559502936899662, -0.006405796855688095, 0.03857536241412163, -0.032689716666936874, 0.05953127145767212, -0.06882834434509277, 0.08037471026182175, 0.020843442529439926, 0.015482628718018532, -0.027572574093937874, 0.03499523922801018, 0.007877209223806858, 0.020955907180905342, -0.0011603770544752479, 0.04997177794575691, -0.007446094881743193, 0.012202410958707333, -0.017750665545463562, 0.0070384107530117035, 0.03846289962530136, -0.037956807762384415, -0.023073989897966385, -0.012596037238836288, 0.05986866354942322, -0.0074788969941437244, -0.021761903539299965, -0.024536030367016792, -0.06080586835741997, -0.017272690311074257, 0.03765690326690674, -0.03673844039440155, 0.10009350627660751, -0.07104014605283737, -0.011283949948847294, -0.005492022261023521, -0.02333640865981579, 0.030009308829903603, 0.03520142659544945, -0.029896844178438187, -0.04614797979593277, -0.0006853312370367348, -0.006344878580421209, -0.024179892614483833, 0.008983111009001732, -0.06230539828538895, -0.027403878048062325, -0.005899706389755011, 0.0019540726207196712, -0.015735674649477005, 0.07032787054777145, 0.023767521604895592, -0.06125572696328163, -0.015267071314156055, 0.011255833320319653, -0.009015913121402264, 0.046822767704725266, -0.010665394365787506, 0.005641974974423647, -0.023655056953430176, -0.03141511604189873, -0.03184622898697853, 0.015192095190286636, 0.020412327721714973, 0.06234288588166237, 0.00801310408860445, 0.0294094979763031, 0.026691602542996407, -0.013130243867635727, -0.005684148985892534, 0.025735652074217796, 0.026635369285941124, 0.015238955616950989, -0.02997181937098503, 0.02241794764995575, -0.024198636412620544, 0.02093716338276863, -0.017038390040397644, 0.021368276327848434, -0.025754397734999657, -0.037019602954387665, 0.012661641463637352, -0.019531354308128357, 0.0550701729953289, 0.017619457095861435, -0.03574500232934952, 0.036569744348526, 0.027834992855787277, -0.034957751631736755, 0.004051069263368845, 0.06279274076223373, 0.04562314599752426, -0.016879064962267876, -0.00437909085303545, -0.016438577324151993, -0.04689774662256241, -0.06729132682085037, -0.030402934178709984, -0.01432049460709095, 0.06193051487207413, 0.025004632771015167, -0.022455435246229172, -0.02223050594329834, 0.009493888355791569, -0.03321455046534538, 0.014301749877631664, -0.01956884376704693, -0.016532298177480698, 0.03244604170322418, -0.0006765449652448297, -0.016841575503349304, -0.03134014084935188, -0.0180693157017231, 0.05289585888385773, 0.004147132858633995, -0.055107660591602325, -0.0062652165070176125, -0.03799429535865784, 0.03895024582743645, -0.0489221066236496, 0.014901561662554741, -0.0018474656390026212, 0.026860298588871956, -0.033458221703767776, -0.02221176214516163, -0.04592305049300194, -0.04033730924129486, 0.036457277834415436, -0.030271725729107857, -0.02149948664009571, -0.045135799795389175, 0.005290523171424866, 0.057956766337156296, 0.017394527792930603, -0.04554817080497742, -0.004463439341634512, 0.053945526480674744, -0.003730076365172863, 0.04104958474636078, -0.06912825256586075, 0.042099256068468094, -0.022267993539571762, 0.017103994265198708, -0.018247384577989578, 0.014226773753762245, 0.03223985806107521, 0.06601672619581223, -0.04299897328019142, -0.002066537272185087, 0.010159303434193134, 0.0762135237455368, 0.02502337656915188, -0.03943759202957153, -0.02749759890139103, 0.02031860686838627, 0.010412349365651608, -0.06372994929552078, -0.024611007422208786, 0.007619477808475494, 0.03638230264186859, 0.026091791689395905, -0.024611007422208786, -0.015004654414951801, -0.06316762417554855, -0.02772252820432186, 0.018322359770536423, -0.04367375746369362, 0.08749747276306152, 0.013036523014307022, -0.051321353763341904, 0.04412361606955528, 0.032895900309085846, 0.007689767982810736, -0.047610022127628326, -0.02824736200273037, 0.03555756434798241, -0.0072820838540792465, 0.09432032704353333, -0.007216479629278183, 0.04104958474636078, 0.005398301407694817, 0.018781591206789017, -0.015932487323880196, 0.008814414031803608, 0.05615733191370964, -0.048509739339351654, -0.038725316524505615, 0.06901578605175018, -0.017432015389204025, -0.0432988777756691, -0.08187424391508102, 0.020581025630235672, -0.02489216811954975, -0.00023386196698993444, -0.005618544761091471, 0.04044977203011513, -0.0017607741756364703, -0.00010858399764401838, -0.042324185371398926, 0.03523891419172287, -0.006298018619418144, -0.025323282927274704, -0.006157437805086374, 0.04029982164502144, 0.02828485146164894, -0.030046796426177025, 0.03604491055011749, 0.015370164066553116, 0.004015923943370581, -0.005805986002087593, 0.012089946307241917, -0.009212726727128029, 0.04539821669459343, 0.050009265542030334, 0.029803123325109482, 0.02073097787797451, -0.03694462776184082, -0.008973739109933376, -0.02224924974143505, -0.057169511914253235, -0.01698215678334236, -0.022549156099557877, 0.07167744636535645, -0.07182740420103073, 0.010543557815253735, 0.03728201985359192, -0.024573517963290215, -0.030946513637900352, -0.02942824177443981, -0.041911814361810684, 0.009737561456859112, -0.024161148816347122, 0.06320511549711227, 0.012783478014171124, 0.045510679483413696, -0.04633542150259018, 0.04273655265569687, -0.004770373925566673, -0.011227717623114586, 0.01622302085161209, 0.02805992215871811, -0.0018872967921197414, -0.03186497464776039, -0.021143347024917603, 0.004240853246301413, 0.020468560978770256, -0.026485417038202286, 0.04877215623855591, 0.02753508649766445, 0.0033551943488419056, 0.05364562198519707, 0.006827539298683405, 0.02695401944220066, -0.0164104625582695, -0.02204306423664093, 0.023430127650499344, 0.01956884376704693, -0.015370164066553116, 0.0068978299386799335, 0.023823754861950874, 0.03105897828936577, -0.014807840809226036, -0.002248120727017522, -0.007371118292212486, -0.0018123204354196787, -0.0018404365982860327, -0.009662585332989693, 0.022005576640367508, -0.033589430153369904, 0.027216436341404915, -0.013805031776428223, 0.03373938426375389, -0.07932504266500473, -0.012521060183644295, -0.0306840967386961, 0.02957819402217865, 0.0312839075922966, -0.018125547096133232, 0.0002461627882439643, 0.020843442529439926, -0.05345818027853966, -0.03160255774855614, 0.02489216811954975, 0.020018702372908592, -0.017863130196928978, 0.021724414080381393, -0.004411892965435982, -0.03353320062160492, 0.027797503396868706, -0.02281157299876213, 0.02716020494699478, -0.06642910093069077, 0.0021157406736165285, -0.027816249057650566, 0.012905314564704895, 0.01810680329799652, -0.028753453865647316, -0.006738504860550165, 0.0025374828837811947, -0.003983121830970049, 0.0171321090310812, 0.017778782173991203, 0.0018111489480361342, -0.03842541202902794, -0.013420777395367622, 0.07017792016267776, 0.022136785089969635, 0.03670095279812813, -0.0007480068597942591, -0.0030037425458431244, 0.015248327516019344, 0.0001321605668636039, -0.012867826037108898, -0.02204306423664093, 0.031715020537376404, -0.05896894633769989, 0.010384232737123966, -0.05720699951052666, 0.013683195225894451, -0.060018617659807205, -0.005820043850690126, 0.03220236673951149, -0.046260446310043335, 0.019268937408924103, -0.03036544658243656, -0.03850038722157478, -0.031152699142694473, 0.01411430910229683, -0.011911877430975437, -0.07250218838453293, 0.00792406965047121, -0.05552003160119057, 0.0015850481577217579, -0.02506086602807045, 0.008355183526873589, 0.029728146269917488, -0.05428292229771614, -0.0007755372207611799, -0.004761002026498318, 0.04131200164556503, 0.047909926623106, -0.01714148186147213, 0.027366390451788902, 0.018134919926524162, 0.019268937408924103, -0.04805988073348999, 0.03334575891494751, 0.024048684164881706, -0.049821823835372925, -0.04251162335276604, 0.03962503373622894, -0.037375740706920624, 0.031358882784843445, -0.013205219991505146, -0.015304559841752052, 0.04374873638153076, -0.04656035080552101, -0.025885606184601784, 0.02714146114885807, 0.0006841597496531904, 0.00015419952978845686, -0.005285836756229401, -0.010459208860993385, 0.023073989897966385, 0.014198658056557178, -0.0012242242228239775, -0.010984044522047043, 0.08089954406023026, -0.02432984486222267, -0.005492022261023521, 0.041199538856744766, 0.005356127396225929, -0.0005506080342456698, -0.07523883134126663, -0.010543557815253735, 0.05480775609612465, 0.028378572314977646, -0.039475079625844955, -0.030215494334697723, 0.016447950154542923, 0.04104958474636078, -0.017638200893998146, -0.009095575660467148, 0.004397835116833448, 0.012671013362705708, -0.0312839075922966, 0.012989663518965244, -0.05237102136015892, 0.0678536519408226, 0.017610084265470505, -0.027741272002458572, -0.016822831705212593, -0.03074032813310623, -0.01488281786441803, -0.042661577463150024, -0.0030318587087094784, 0.05533258989453316, 0.03981247544288635, -0.03218362480401993, 0.007736628409475088, -0.0205435361713171, 0.007760058622807264, -0.02654164843261242, 0.012596037238836288, -0.034582868218421936, -0.009090890176594257, 0.037600670009851456, -0.02333640865981579, 0.025529468432068825, -0.04052475094795227, -0.0306840967386961, 0.00588564807549119, -0.08374865353107452, 0.037431973963975906, -0.023673800751566887, 0.0017607741756364703, -0.037956807762384415, -0.006602609995752573, 0.01825675554573536, -0.06414231657981873, 0.06181805208325386, -0.07707574963569641, 0.03415175527334213, 0.06781616061925888, 0.028940893709659576, 0.017207086086273193, -0.0194376353174448, 0.027760015800595284, 0.03321455046534538, 0.015267071314156055, 0.04749755561351776, -0.03943759202957153, 0.012642897665500641, 0.04764750972390175, -0.027741272002458572, 0.02562318742275238, -0.01600746437907219, 0.08854714035987854, -0.05053409934043884, -0.036438535898923874, -0.0008177114650607109, 0.0039292327128350735, -0.052670929580926895, -0.043786223977804184, -0.05731946602463722, 0.0076663377694785595, 0.035538818687200546, -0.011911877430975437, 0.0046063633635640144, -0.012371107935905457, -0.0398874506354332, -0.03424547612667084 ]
730,304
mmengine.utils.version_utils
get_git_hash
Get the git hash of the current repo. Args: fallback (str, optional): The fallback string when git hash is unavailable. Defaults to 'unknown'. digits (int, optional): kept digits of the hash. Defaults to None, meaning all digits are kept. Returns: str: Git commit hash.
def get_git_hash(fallback='unknown', digits=None): """Get the git hash of the current repo. Args: fallback (str, optional): The fallback string when git hash is unavailable. Defaults to 'unknown'. digits (int, optional): kept digits of the hash. Defaults to None, meaning all digits are kept. Returns: str: Git commit hash. """ if digits is not None and not isinstance(digits, int): raise TypeError('digits must be None or an integer') try: out = _minimal_ext_cmd(['git', 'rev-parse', 'HEAD']) sha = out.strip().decode('ascii') if digits is not None: sha = sha[:digits] except OSError: sha = fallback return sha
(fallback='unknown', digits=None)
[ 0.010053140111267567, -0.046097323298454285, -0.011918400414288044, 0.04529167339205742, 0.03233117610216141, -0.03509841859340668, 0.008853418752551079, 0.055905263870954514, 0.04087809845805168, -0.04644760861992836, 0.06417195498943329, 0.009974326007068157, -0.0046368795447051525, -0.046938005834817886, 0.00517981918528676, -0.010499751195311546, 0.022593293339014053, -0.016454573720693588, 0.06602846086025238, -0.014055130071938038, 0.0019331277580931783, -0.03814588487148285, 0.007001293823122978, 0.035431187599897385, -0.007535476237535477, 0.028267888352274895, 0.12778346240520477, 0.00258990959264338, -0.02163001336157322, 0.039932332932949066, 0.008218529634177685, -0.018932828679680824, -0.00219146185554564, 0.02192775532603264, -0.007916409522294998, -0.02569330297410488, -0.011655687354505062, 0.04735834524035454, -0.08490874618291855, -0.028828341513872147, 0.022575778886675835, 0.04875947907567024, -0.013100607320666313, -0.05376853421330452, -0.048584338277578354, -0.06494258344173431, 0.018337346613407135, -0.011296646669507027, 0.01882774382829666, -0.0022790327202528715, 0.04220917448401451, -0.026323813945055008, -0.030352074652910233, 0.009877998381853104, 0.049915414303541183, -0.001056323992088437, 0.031490497291088104, -0.03506338968873024, -0.03450293466448784, 0.0604589506983757, -0.04998547211289406, -0.02600855939090252, 0.01568394899368286, -0.005989850033074617, 0.011112747713923454, 0.00941387191414833, 0.015745248645544052, -0.018302319571375847, 0.05359339341521263, -0.05278773978352547, 0.008104687556624413, 0.03713006153702736, -0.0033058016560971737, -0.02278594858944416, -0.0382860004901886, 0.013678574934601784, 0.0023512786719948053, -0.006383918691426516, 0.033364515751600266, 0.04424082115292549, 0.007119514513760805, -0.004304110072553158, 0.04721823334693909, -0.006957508157938719, 0.015447507612407207, -0.03926679491996765, 0.04042273014783859, 0.01637575961649418, -0.045081499963998795, -0.02178764156997204, -0.011559359729290009, 0.015062195248901844, -0.0010612498736009002, -0.01074494980275631, 0.021857697516679764, -0.0385662280023098, 0.0283204298466444, 0.07510080933570862, 0.019072942435741425, 0.007982088252902031, 0.03642949461936951, 0.04686794802546501, -0.02877580001950264, 0.07376973330974579, -0.052542541176080704, 0.0464826375246048, 0.015500050038099289, -0.030947556719183922, -0.019370684400200844, -0.010657379403710365, -0.0037786844186484814, -0.05902278795838356, 0.024292169138789177, -0.06497760862112045, 0.09366583824157715, 0.02744472213089466, -0.010578565299510956, -0.023433974012732506, 0.05488944426178932, -0.027076924219727516, -0.0505809560418129, 0.02805771678686142, -0.01842491887509823, 0.01344213355332613, 0.06133466213941574, 0.025220420211553574, -0.009930540807545185, -0.042559459805488586, -0.005232361610978842, -0.014703154563903809, 0.08063528686761856, 0.04553687199950218, -0.00949268601834774, -0.017137626186013222, -0.01548253558576107, 0.039511993527412415, -0.03276903182268143, 0.043610312044620514, 0.04028261452913284, -0.04851428046822548, 0.01956333965063095, -0.05699114501476288, -0.060388896614313126, 0.019230570644140244, -0.004877699539065361, 0.03632441163063049, 0.019178027287125587, -0.04501144587993622, -0.005525724031031132, 0.0006737486692145467, 0.08196636289358139, 0.0008538163383491337, 0.026271270588040352, 0.048409197479486465, -0.0339074544608593, 0.02437973953783512, 0.028863370418548584, -0.008652005344629288, 0.012724052183330059, 0.045046474784612656, 0.056290578097105026, -0.0187226589769125, 0.09191442281007767, -0.04150860756635666, -0.010473480448126793, 0.03259389102458954, -0.011883371509611607, -0.04742840304970741, 0.037480346858501434, -0.022172952070832253, 0.034275252372026443, -0.03241875022649765, -0.03408259525895119, -0.02465996704995632, 0.0002319260674994439, 0.004868942312896252, 0.019072942435741425, -0.013424620032310486, -0.06550303846597672, 0.0006053338875062764, 0.017706837505102158, -0.08280704915523529, 0.020421534776687622, 0.0006190168205648661, 0.023906856775283813, 0.04529167339205742, 0.03895153850317001, -0.03639446943998337, 0.030614787712693214, -0.044310878962278366, -0.014221514575183392, -0.03814588487148285, -0.020421534776687622, 0.007474176585674286, 0.03303174674510956, -0.004549308679997921, 0.011883371509611607, -0.007531097624450922, 0.034135136753320694, -0.032366205006837845, -0.014843268319964409, -0.03329445794224739, -0.013555975630879402, -0.06564314663410187, -0.024765051901340485, -0.05152672156691551, 0.024064484983682632, -0.0011767339892685413, -0.0560804083943367, 0.013862473890185356, 0.030562246218323708, -0.011226589791476727, -0.08014488965272903, 0.08000478148460388, -0.028145289048552513, 0.018319834023714066, -0.000723007251508534, 0.020333964377641678, 0.023416459560394287, 0.003290476743131876, 0.02380177192389965, -0.047393374145030975, 0.06476744264364243, 0.025903472676873207, 0.0339074544608593, -0.05930301547050476, 0.020841876044869423, 0.03916170820593834, 0.06946124136447906, -0.07636182755231857, -0.02029893547296524, -0.04017753154039383, -0.013109364546835423, 0.014852025546133518, -0.008157229982316494, -0.01291670836508274, -0.007863867096602917, -0.015307393856346607, 0.06133466213941574, -0.0021859887056052685, -0.04343516752123833, 0.053558364510536194, 0.0560804083943367, 0.11986705660820007, 0.05464424565434456, -0.030877500772476196, 0.004334759898483753, 0.018757687881588936, -0.015333665534853935, -0.020789332687854767, -0.051351577043533325, 0.03825097158551216, 0.010394666343927383, -0.034135136753320694, 0.012618967331945896, 0.021227186545729637, -0.055449895560741425, 0.023276345804333687, -0.012321226298809052, 0.004225295968353748, 0.05555498227477074, -0.050020501017570496, -0.022015325725078583, -0.04164872318506241, -0.0076318043284118176, -0.055590011179447174, -0.013678574934601784, 0.04304985702037811, 0.021805156022310257, 0.05023067072033882, -0.002990546403452754, -0.040247589349746704, -0.043295055627822876, -0.017899492755532265, -0.004860185086727142, -0.02658652700483799, 0.002826350973919034, 0.03867131099104881, 0.0014186486368998885, 0.02963399328291416, -0.04480127617716789, -0.010762464255094528, -0.005149169359356165, -0.053663451224565506, -0.0013661060947924852, 0.06876067072153091, -0.013223206624388695, -0.021945267915725708, 0.012356254272162914, 0.018494974821805954, 0.010035625658929348, 0.01578027755022049, -0.09583760052919388, -0.008542541414499283, 0.02322380430996418, 0.00337585830129683, -0.04276962950825691, 0.00844621378928423, 0.06122957542538643, -0.007049457635730505, -0.05289282649755478, 0.028828341513872147, -0.08371778577566147, -0.025658274069428444, -0.06494258344173431, -0.012373768724501133, 0.006804259028285742, -0.07222848385572433, -0.014133944176137447, 0.026253757998347282, 0.05744651332497597, 0.03860125318169594, 0.07208836823701859, -0.04000239074230194, -0.023153746500611305, -0.04115832597017288, 0.03793571516871452, -0.0028285402804613113, -0.04662274941802025, 0.018302319571375847, -0.00035548314917832613, 0.06273579597473145, 0.018740173429250717, 0.01337207667529583, -0.007062593474984169, 0.000836849445477128, -0.07236859202384949, 0.03254134953022003, 0.009002288803458214, 0.060388896614313126, -0.03399502485990524, 0.023311374709010124, 0.08028500527143478, -0.033959995955228806, 0.003216041484847665, -0.007364713121205568, 0.03677977994084358, -0.0006759379175491631, -0.056745946407318115, -0.06967141479253769, 0.028145289048552513, -0.035553786903619766, 0.024957707151770592, 0.04805891215801239, -0.010832521133124828, 0.00935257226228714, 0.04385551065206528, -0.0023184397723525763, -0.05678097531199455, -0.05919793248176575, -0.03145546838641167, -0.020964475348591805, -0.02206786721944809, -0.05110637843608856, 0.01643705926835537, 0.01795203611254692, -0.0074347699992358685, 0.01634073071181774, 0.019230570644140244, 0.018635088577866554, 0.012487610802054405, -0.02278594858944416, 0.0033495870884507895, 0.0069969152100384235, -0.011857100762426853, 0.024957707151770592, -0.02700686641037464, 0.06942621618509293, 0.03399502485990524, -0.025202905759215355, -0.018319834023714066, 0.02656901255249977, 0.01796954870223999, -0.026971839368343353, -0.009589013643562794, 0.005643944721668959, -0.02248820848762989, 0.019037915393710136, -0.012286198325455189, -0.05622052028775215, -0.038916509598493576, 0.0008899393142201006, -0.020351478829979897, -0.004978405777364969, -0.07208836823701859, -0.013459648005664349, 0.01810966245830059, -0.02777749113738537, 0.07187819480895996, -0.0047769928351044655, -0.054258931428194046, -0.027567321434617043, 0.011209075339138508, 0.03268146142363548, 0.010517265647649765, 0.014352871105074883, 0.11790546774864197, -0.00803900882601738, -0.030036820098757744, 0.028968455269932747, 0.00533306784927845, 0.0060555278323590755, 0.07734262198209763, -0.0008488904568366706, -0.004842671100050211, -0.012321226298809052, 0.05065101012587547, -0.0055738878436386585, 0.009545228444039822, -0.023556573316454887, -0.08217653632164001, 0.05643068999052048, -0.006134341936558485, 0.005950442980974913, 0.031613096594810486, 0.014729426242411137, -0.020193850621581078, -0.014405413530766964, -0.033364515751600266, -0.022435665130615234, -0.04837416857481003, -0.02863568626344204, -0.048584338277578354, 0.05804199352860451, -0.031332869082689285, 0.05772674083709717, -0.0006551398546434939, -0.017198925837874413, -0.04178883507847786, 0.014545527286827564, 0.008476863615214825, -0.03494079038500786, 0.03670972213149071, 0.024327198043465614, 0.047988854348659515, -0.020964475348591805, 0.021104587242007256, 0.017365310341119766, -0.02616618573665619, 0.019493283703923225, 0.023556573316454887, 0.024029456079006195, 0.009300029836595058, -0.0032576376106590033, 0.04469618946313858, 0.001100656809285283, -0.0007728132186457515, -0.03325942903757095, -0.06476744264364243, 0.001548910397104919, -0.04283968731760979, -0.004829535260796547, -0.017706837505102158, -0.04893461987376213, 0.024642452597618103, -0.045957211405038834, -0.12491113692522049, 0.06739456951618195, -0.03663966804742813, 0.025045279413461685, -0.018004577606916428, 0.08764096349477768, 0.05842730775475502, 0.03254134953022003, -0.012443825602531433, -0.08637993782758713, 0.018600059673190117, -0.030492188408970833, -0.06932112574577332, 0.024064484983682632, 0.015832819044589996, 0.04907473549246788, -0.031508009880781174, 0.03874136880040169, -0.039231766015291214, -0.005328689701855183, 0.005538859870284796, 0.0026928053703159094, -0.09016299992799759, -0.03944193571805954, -0.042874716222286224, 0.06329625099897385, 0.036149270832538605, -0.0030671709682792425, 0.008735197596251965, 0.030282018706202507, 0.011804558336734772, -0.018354861065745354, 0.026621554046869278, -0.01987859606742859, -0.016042988747358322, 0.03709503635764122, -0.04585212469100952, 0.03126281127333641, 0.0026840481441468, 0.024327198043465614, 0.035448700189590454, -0.003956015687435865, -0.029020996764302254, -0.046237438917160034, -0.0039998008869588375, 0.03565887361764908, 0.12070773541927338, 0.0060117426328361034, -0.006007364019751549, -0.07804319262504578, -0.006243805401027203, 0.030562246218323708, -0.0016616579378023744, -0.00577530125156045, -0.01986108161509037, -0.06728947907686234, 0.04119335487484932, -0.003511593211442232, -0.02439725399017334, -0.009807941503822803, 0.0035203504376113415, -0.0330667719244957, -0.013827445916831493, 0.05902278795838356, -0.03460802137851715, 0.011025176383554935, 0.03779560327529907, -0.03303174674510956, 0.03930182009935379, 0.00748731242492795, 0.015465022064745426, 0.01853000372648239, 0.04529167339205742, 0.033084288239479065, -0.048864565789699554, 0.013126878999173641, -0.023556573316454887, 0.02979162149131298, -0.027830032631754875, -0.02191024087369442, -0.009440143592655659, -0.027795005589723587, -0.03536112979054451, -0.07012677937746048, -0.03313682973384857, -0.06221036985516548, 0.019931137561798096, -0.021980296820402145, -0.018354861065745354, 0.027076924219727516, 0.04031764343380928, 0.05667588859796524, -0.00041213055374100804, -0.04781371355056763, 0.0022286796011030674, -0.006471490021795034, 0.018792716786265373, 0.004463926889002323, -0.016647228971123695, -0.010561050847172737, 0.007491691038012505, 0.04322499781847, -0.006318240892142057, 0.013967559672892094, 0.017855707556009293, 0.03797074407339096, 0.001965966774150729, -0.009659070521593094, -0.024730022996664047, -0.010482237674295902, -0.0046237437054514885, -0.022838491946458817, 0.047533486038446426, 0.0339074544608593, -0.011340431869029999, 0.09506697207689285, 0.02250572293996811, -0.011200319044291973, 0.00045892628259025514, -0.03797074407339096, 0.0040107471868395805, -0.012759081088006496, 0.025343019515275955, 0.013634789735078812, 0.040527813136577606, -0.040107473731040955, -0.01838988997042179, 0.04427585005760193, 0.004614986479282379, -0.031332869082689285, 0.007574883289635181, 0.01740909554064274, -0.018372375518083572, -0.023118719458580017, -0.017435366287827492, 0.023889342322945595, 0.013389591127634048, -0.024730022996664047, 0.06277082115411758, -0.07419007271528244, -0.09037317335605621, -0.052962884306907654, -0.02320628985762596, -0.01882774382829666, 0.016804857179522514, -0.03276903182268143, -0.02909105457365513, 0.017382824793457985, 0.060669124126434326, -0.005188575945794582, -0.0023775501176714897, -0.001217235578224063, -0.033837396651506424, -0.030001791194081306, 0.004188078455626965, 0.018302319571375847, -0.03198089450597763, -0.016104288399219513, -0.007316548842936754, 0.018880287185311317, 0.08841158449649811, -0.018004577606916428, -0.037200119346380234, 0.01798706315457821, -0.006278833840042353, 0.05979341268539429, -0.04241934418678284, 0.03611424192786217, 0.04031764343380928, 0.0017798786284402013, -0.008669519796967506, 0.032909147441387177, -0.02805771678686142, -0.0020973230712115765, -0.029143596068024635, -0.007176435552537441, -0.0009293462499044836, 0.03574644401669502, 0.026533983647823334, -0.00719395000487566, 0.004903970751911402, -0.002572395373135805, -0.016130561009049416, 0.008708926849067211, -0.011629415675997734, -0.0333469994366169, -0.02804020419716835, -0.04466116055846214, 0.02366165816783905, -0.01717265509068966, 0.013669817708432674, -0.007588018663227558, 0.007255249191075563, -0.030439646914601326, -0.026096129789948463, -0.0036889242473989725, 0.032208576798439026, 0.006791123654693365, 0.029143596068024635, -0.018214747309684753, 0.0020360234193503857, 0.027987660840153694, -0.051912032067775726, 0.002276843413710594, 0.0020940392278134823, -0.020946960896253586, 0.04641257971525192, 0.025010250508785248, -0.05727137252688408, -0.014799483120441437, -0.004768235608935356, -0.05678097531199455, -0.018792716786265373, -0.04981033131480217, -0.025745846331119537, -0.05152672156691551, -0.007877002470195293, -0.0514216348528862, -0.05051089823246002, -0.042734600603580475, 0.014799483120441437, 0.10823763906955719, 0.02465996704995632, 0.006659767124801874, 0.055449895560741425, -0.020824361592531204, -0.05825216695666313, 0.03313682973384857, 0.011629415675997734, 0.05912787467241287, -0.01345089077949524, 0.04669280722737312, 0.0141602149233222, 0.02849557250738144, -0.009834212251007557, -0.0003680714580696076, 0.036604639142751694, 0.029020996764302254, -0.05334819480776787, 0.01930062659084797, -0.027217036113142967, 0.05453915894031525, 0.025605732575058937, -0.034678079187870026, 0.010832521133124828, 0.020684247836470604, 0.021612498909235, 0.01987859606742859, 0.019913623109459877, -0.057936910539865494, -0.008214150555431843, 0.002916111145168543, -0.024011941626667976, -0.01615683175623417, -0.046657778322696686, -0.01973848231136799, -0.0188627727329731, 0.024011941626667976, 0.05243745818734169, -0.01782943680882454, -0.010202010162174702, 0.01870514452457428, -0.05446910113096237, -0.013153149746358395, -0.0028788933996111155, -0.04108826816082001, 0.044486019760370255, 0.04483630135655403, 0.02746223472058773, -0.006983779836446047, 0.09534720331430435, -0.05902278795838356, 0.023556573316454887, 0.034117624163627625, 0.0108763063326478, -0.01548253558576107, 0.0440656803548336, -0.025798387825489044, -0.008314857259392738, 0.0064933826215565205, 0.052647627890110016, -0.03751537576317787, -0.020526619628071785, 0.017628023400902748, -0.0108763063326478, -0.024572396650910378, -0.04942501708865166, -0.04931993409991264, 0.05741148442029953, 0.0232413187623024, -0.007355955895036459, -0.007504826411604881, 0.008253557607531548, -0.04634252190589905, 0.02511533536016941, 0.012154841795563698, -0.006462732795625925, -0.013888745568692684, 0.05839227885007858, -0.012951736338436604, -0.031017614528536797, 0.004126778803765774, 0.023013632744550705, 0.02833794429898262, 0.042454373091459274, -0.011366703547537327, -0.008104687556624413, -0.03373231366276741, -0.015018410049378872, -0.04283968731760979, -0.009589013643562794, -0.0028745150193572044 ]
730,305
mmengine.utils.package_utils
get_installed_path
Get installed path of package. Args: package (str): Name of package. Example: >>> get_installed_path('mmcls') >>> '.../lib/python3.7/site-packages/mmcls'
def get_installed_path(package: str) -> str: """Get installed path of package. Args: package (str): Name of package. Example: >>> get_installed_path('mmcls') >>> '.../lib/python3.7/site-packages/mmcls' """ import importlib.util from pkg_resources import DistributionNotFound, get_distribution # if the package name is not the same as module name, module name should be # inferred. For example, mmcv-full is the package name, but mmcv is module # name. If we want to get the installed path of mmcv-full, we should concat # the pkg.location and module name try: pkg = get_distribution(package) except DistributionNotFound as e: # if the package is not installed, package path set in PYTHONPATH # can be detected by `find_spec` spec = importlib.util.find_spec(package) if spec is not None: if spec.origin is not None: return osp.dirname(spec.origin) else: # `get_installed_path` cannot get the installed path of # namespace packages raise RuntimeError( f'{package} is a namespace package, which is invalid ' 'for `get_install_path`') else: raise e possible_path = osp.join(pkg.location, package) if osp.exists(possible_path): return possible_path else: return osp.join(pkg.location, package2module(package))
(package: str) -> str
[ 0.03245150297880173, 0.07276668399572372, -0.0050809308886528015, -0.0054824212566018105, 0.06427539139986038, -0.02774437516927719, 0.0516861267387867, 0.03560804948210716, 0.055747177451848984, -0.024753963574767113, 0.02144974283874035, -0.06778266280889511, -0.03335601091384888, 0.001198702841065824, -0.026802947744727135, 0.027578240260481834, 0.03330063447356224, 0.01316150277853012, 0.01848701946437359, 0.01148170419037342, 0.07047772407531738, 0.04762507230043411, -0.017720958217978477, 0.006280787289142609, -0.04027825966477394, 0.06697045266628265, 0.060251254588365555, -0.023812536150217056, -0.04127506539225578, -0.048880308866500854, 0.03228536993265152, -0.034408193081617355, 0.048621878027915955, 0.05305211618542671, -0.07180679589509964, -0.00013584914267994463, 0.052239906042814255, -0.06445998698472977, -0.008934316225349903, -0.03392824903130531, -0.02309262380003929, 0.04751431941986084, 0.05537799373269081, -0.04736664146184921, 0.04854803904891014, 0.012690789997577667, -0.05002478510141373, -0.026249168440699577, 0.011417096480727196, 0.035958778113126755, 0.07620012015104294, -0.027707455679774284, -0.02955338917672634, -0.0653829500079155, 0.015247407369315624, 0.030919378623366356, 0.026138411834836006, -0.06560446321964264, -0.010244928300380707, 0.04766199365258217, 0.024440154433250427, -0.001451364834792912, 0.022243494167923927, -0.011195584200322628, -0.06608440726995468, -0.004827115219086409, -0.04515152424573898, -0.05489804968237877, -0.025750767439603806, -0.022815732285380363, -0.07708616554737091, 0.06815184652805328, -0.022815732285380363, -0.075461745262146, 0.026433762162923813, -0.027984345331788063, 0.058811429888010025, -0.04614832624793053, 0.003493428463116288, -0.00001193366915686056, -0.05227682366967201, -0.009764986112713814, 0.03630950301885605, 0.023314135149121284, 0.0413489006459713, 0.015284325927495956, 0.05729776248335838, 0.03651255741715431, -0.0837315246462822, 0.00487326318398118, 0.00104064482729882, -0.0029050372540950775, 0.005962363909929991, 0.09185363352298737, 0.015598134137690067, -0.03328217193484306, -0.0006218486814759672, -0.03832156956195831, -0.026193790137767792, 0.008352846838533878, -0.00006024519825587049, 0.010927923955023289, 0.0213205274194479, 0.051206182688474655, 0.009654230438172817, 0.028944231569767, -0.047994259744882584, 0.01038337405771017, 0.03392824903130531, -0.02119131200015545, -0.02658143639564514, 0.0030365600250661373, 0.011140205897390842, 0.03060557134449482, 0.03226691111922264, -0.014444426633417606, -0.024717044085264206, -0.02218811586499214, 0.013309177942574024, 0.03784162923693657, -0.022926488891243935, 0.04323175176978111, 0.08299314975738525, -0.039207618683576584, 0.02829815447330475, -0.028575044125318527, -0.003618028946220875, 0.023295676335692406, 0.010604885406792164, -0.059328287839889526, 0.04271489009261131, -0.017776336520910263, -0.0017824791138991714, -0.009105064906179905, -0.02311108261346817, 0.031048594042658806, -0.0018563164630904794, 0.0032234606333076954, -0.008103646337985992, 0.05294135957956314, 0.03237766772508621, 0.04828960821032524, -0.03187926486134529, -0.0022439623717218637, 0.042419541627168655, 0.05316287279129028, 0.01730562187731266, 0.05253525450825691, -0.001082755159586668, -0.06194951385259628, -0.008140564896166325, -0.10108329355716705, 0.008306698873639107, 0.020323723554611206, -0.040093667805194855, -0.0032234606333076954, 0.00020853275782428682, 0.017204096540808678, 0.012672330252826214, -0.08668501675128937, -0.023166460916399956, -0.06302015483379364, -0.013650675304234028, -0.02696908265352249, -0.020489856600761414, -0.026138411834836006, 0.06885330379009247, 0.0013186885043978691, -0.04452390596270561, 0.006239254027605057, -0.023332593962550163, 0.005556258372962475, -0.036087993532419205, -0.036992497742176056, -0.06453382223844528, 0.05046781152486801, -0.0021805085707455873, 0.019456135109066963, 0.033780574798583984, 0.014029091224074364, 0.028870392590761185, 0.025252364575862885, -0.003151930635794997, 0.02995949424803257, -0.042788729071617126, 0.05035705491900444, -0.016493411734700203, 0.00891585648059845, 0.003004256170243025, 0.06804109364748001, -0.05257217586040497, 0.042936403304338455, 0.05563642457127571, 0.02829815447330475, -0.017277933657169342, -0.011961646378040314, 0.012238536030054092, 0.031085513532161713, -0.11644145846366882, 0.05655939131975174, 0.008860479108989239, -0.011592459864914417, 0.02130206860601902, 0.07457569986581802, 0.009718838147819042, -0.04622216522693634, -0.03335601091384888, 0.048363447189331055, -0.06290940195322037, 0.03394670784473419, 0.0397983156144619, -0.053125955164432526, 0.0098203644156456, -0.021763551980257034, -0.005011708475649357, 0.017573282122612, 0.0015321244718506932, 0.04921257495880127, -0.01872699148952961, -0.016881057992577553, -0.013650675304234028, -0.042419541627168655, 0.0625402107834816, 0.08816176652908325, -0.01925308257341385, -0.0470343753695488, -0.017767105251550674, -0.01590271294116974, 0.012256995774805546, 0.014749005436897278, 0.009248124435544014, -0.006045430898666382, -0.001869007246568799, 0.0007406806689687073, 0.01531201507896185, 0.008588203229010105, -0.0004329289949964732, 0.004628677386790514, 0.048105016350746155, -0.0031311640050262213, -0.020840585231781006, -0.014564411714673042, 0.014868991449475288, 0.04585297778248787, -0.055304154753685, 0.0475512370467186, 0.017499445006251335, -0.030900919809937477, 0.02584306336939335, -0.013733741827309132, -0.032340746372938156, 0.04766199365258217, -0.004900952335447073, -0.0021182082127779722, 0.005533184390515089, -0.0718437135219574, -0.031454700976610184, 0.0795966312289238, -0.015284325927495956, 0.052756767719984055, 0.007222213316708803, -0.012958450242877007, -0.0020328338723629713, -0.006636129226535559, -0.003041174728423357, -0.059328287839889526, -0.027153676375746727, 0.0065992106683552265, 0.0249385554343462, 0.03341138735413551, 0.04127506539225578, 0.012487737461924553, 0.015838105231523514, 0.015930403023958206, 0.035848021507263184, 0.003255764488130808, -0.04640675708651543, 0.03154699504375458, -0.011860120110213757, -0.003887996543198824, -0.061026547104120255, 0.03335601091384888, -0.03846924379467964, 0.010171091184020042, -0.04618524760007858, 0.008855864405632019, 0.004284872207790613, -0.0826978012919426, 0.05201839283108711, 0.06933324784040451, 0.055857934057712555, -0.02287111058831215, -0.006756115239113569, -0.0018343960400670767, 0.0356634259223938, 0.03630950301885605, 0.0010377605212852359, 0.018274737522006035, 0.021117474883794785, -0.021117474883794785, 0.01665031723678112, 0.046923618763685226, -0.019529972225427628, 0.030550193041563034, 0.010060335509479046, -0.01394602470099926, 0.009409643709659576, -0.021800469607114792, 0.0037241699174046516, 0.021228229627013206, 0.0023720241151750088, -0.01768403872847557, -0.05733468011021614, -0.0656413808465004, 0.0129861393943429, 0.039170701056718826, 0.0048040407709777355, -0.038653839379549026, -0.03008870966732502, 0.04489309340715408, 0.0033642130438238382, 0.05988207086920738, 0.011730904690921307, 0.008620507083833218, -0.04271489009261131, -0.01614268496632576, -0.02995949424803257, 0.02776283398270607, 0.014333670027554035, -0.037730872631073, 0.030181005597114563, 0.025363121181726456, -0.010752560570836067, 0.053273629397153854, 0.0013129198923707008, -0.01613345555961132, 0.027688996866345406, -0.07309895008802414, -0.02506777085363865, 0.047182049602270126, 0.06575213372707367, -0.04075820371508598, -0.007180679589509964, 0.020305264741182327, -0.011703215539455414, 0.005690088961273432, -0.01355837844312191, 0.02995949424803257, -0.051316939294338226, -0.021652795374393463, 0.04563146457076073, -0.0049101822078228, -0.06239253655076027, -0.025603091344237328, -0.02970106340944767, 0.04880646988749504, 0.003735707141458988, 0.035681888461112976, -0.010244928300380707, 0.043711695820093155, 0.008542055264115334, -0.0038256964180618525, -0.010106483474373817, -0.020951339974999428, -0.010632574558258057, 0.02829815447330475, -0.023794077336788177, 0.05072624236345291, 0.0264891404658556, 0.010244928300380707, 0.017711728811264038, -0.042567215859889984, 0.019179245457053185, -0.004937870893627405, 0.004095664247870445, 0.009525015018880367, -0.018422411754727364, 0.004630984738469124, -0.04947100579738617, 0.004711744375526905, 0.042419541627168655, -0.002337412675842643, -0.005316287279129028, 0.011287881061434746, -0.010069564916193485, 0.011158665642142296, -0.014859761111438274, -0.0416073314845562, -0.010438751429319382, -0.00600851234048605, -0.014112158678472042, -0.005533184390515089, 0.03139932081103325, -0.02287111058831215, -0.009271198883652687, -0.041385818272829056, 0.0220958199352026, -0.03139932081103325, -0.020692909136414528, -0.02078520692884922, 0.052498336881399155, 0.008311313576996326, -0.008574359118938446, -0.015570445917546749, 0.008214402012526989, 0.027578240260481834, 0.011287881061434746, -0.0295903068035841, -0.05139077827334404, -0.04906490072607994, -0.01819167099893093, 0.0232587568461895, 0.002173586282879114, -0.04456082358956337, 0.005685473792254925, -0.0460006520152092, -0.04456082358956337, 0.004619447514414787, 0.049655601382255554, 0.011260191909968853, -0.03032867982983589, -0.026027657091617584, -0.020619072020053864, 0.017001044005155563, -0.0034011316020041704, -0.007314509712159634, -0.03470354154706001, -0.0002447303559165448, 0.031325485557317734, 0.04430239275097847, -0.02170817367732525, -0.046960536390542984, -0.008943545632064342, 0.004690977279096842, -0.03258071839809418, 0.002343181287869811, 0.01871776208281517, -0.019437676295638084, -0.057260844856500626, -0.06338933855295181, 0.0028473518323153257, -0.016973353922367096, 0.039170701056718826, 0.031842347234487534, -0.03654947504401207, 0.05139077827334404, -0.018431641161441803, 0.00658536609262228, -0.033116038888692856, -0.017776336520910263, -0.057150088250637054, -0.07981814444065094, 0.023074163123965263, 0.044080883264541626, -0.06833644211292267, -0.04467158019542694, -0.046812862157821655, -0.009335806593298912, -0.02516006864607334, 0.051464613527059555, -0.030790163204073906, 0.020342182368040085, 0.04234570637345314, 0.010623345151543617, 0.05833148583769798, -0.06313091516494751, 0.013789120130240917, -0.04437623172998428, -0.028944231569767, 0.011906268075108528, 0.03913377970457077, 0.007752919103950262, -0.0023547185119241476, -0.016622627153992653, 0.035718806087970734, 0.029350336641073227, 0.017231784760951996, 0.05541491135954857, -0.022169657051563263, -0.007568325847387314, -0.013143043965101242, -0.06158032640814781, 0.04788350313901901, -0.028132019564509392, 0.0480680987238884, 0.006723811384290457, -0.044486988335847855, 0.033780574798583984, -0.010512588545680046, 0.04053669050335884, 0.02994103543460369, 0.05316287279129028, -0.03101167641580105, -0.030900919809937477, 0.02349872887134552, -0.0029142668936401606, 0.020489856600761414, 0.08875246345996857, 0.018034765496850014, 0.016964124515652657, -0.03348522633314133, -0.004527151118963957, 0.0029811819549649954, 0.003943374380469322, -0.03538653627038002, -0.048880308866500854, -0.020619072020053864, 0.00280812568962574, 0.0718437135219574, 0.004077204503118992, 0.021726632490754128, -0.010088024660944939, -0.028759637847542763, -0.018957732245326042, 0.010447980836033821, 0.008763567544519901, 0.0024020203854888678, 0.07254517078399658, 0.06220794469118118, 0.02752286195755005, -0.07819372415542603, 0.007092997897416353, 0.025935359299182892, 0.003283453406766057, -0.039207618683576584, 0.027578240260481834, 0.04072128236293793, -0.0467759445309639, -0.04636983945965767, 0.03547883406281471, 0.048880308866500854, 0.050910834223032, -0.029498010873794556, 0.0821809396147728, 0.06527219712734222, 0.05644863471388817, -0.02944263257086277, -0.029018068686127663, -0.07557249814271927, -0.010900234803557396, -0.020600613206624985, 0.005233220290392637, 0.029018068686127663, 0.015515067614614964, -0.017979389056563377, 0.06708120554685593, -0.035589590668678284, -0.013659904710948467, 0.008011349476873875, -0.03636488318443298, -0.025806143879890442, 0.04075820371508598, 0.024864718317985535, 0.06988702714443207, 0.0107894791290164, -0.03636488318443298, -0.012626182287931442, 0.05002478510141373, 0.007919052615761757, -0.037786249071359634, -0.08934316039085388, 0.03671560809016228, 0.05153845250606537, -0.012533885426819324, 0.02455090917646885, -0.0514276959002018, -0.06730271875858307, -0.016576478257775307, 0.0010025723604485393, -0.010946382768452168, 0.0010700643761083484, 0.024440154433250427, -0.032082315534353256, -0.0120170246809721, -0.007369888015091419, 0.034278977662324905, 0.054565783590078354, -0.052387580275535583, 0.04943408817052841, 0.023941751569509506, -0.004568684380501509, -0.038432326167821884, 0.0519445575773716, 0.008948160335421562, -0.03341138735413551, -0.007416035979986191, 0.005422428250312805, 0.01677030138671398, -0.027301350608468056, -0.04684978350996971, -0.0009656537440605462, 0.007605244405567646, 0.02283419296145439, 0.03333755210042, 0.06704428791999817, -0.031196268275380135, -0.023480268195271492, 0.03110397234559059, 0.043822452425956726, 0.01381680928170681, -0.013059976510703564, 0.01479515340179205, 0.00014349244884215295, 0.006682277657091618, 0.010355684906244278, -0.015256636776030064, 0.018154751509428024, 0.026673732325434685, -0.02726443111896515, 0.0009460407309234142, -0.0914844423532486, -0.006253098137676716, 0.02272343635559082, -0.026655273512005806, -0.021357445046305656, 0.001990146702155471, 0.023720240220427513, -0.051316939294338226, -0.010337225161492825, -0.0017836327897384763, 0.010337225161492825, 0.026766030117869377, -0.0024389391764998436, -0.010457211174070835, 0.0215789582580328, 0.014887450262904167, -0.027301350608468056, 0.016742613166570663, -0.01464747916907072, -0.09008153527975082, -0.025400038808584213, -0.0021355138160288334, 0.0700347051024437, -0.055082641541957855, 0.008445143699645996, -0.04374861344695091, -0.03573726490139961, -0.03632796183228493, -0.02464320696890354, 0.003996445331722498, -0.026766030117869377, 0.036087993532419205, -0.05334746465086937, -0.043342508375644684, 0.050689321011304855, 0.005427043419331312, -0.0008658579899929464, -0.004347172565758228, 0.03374365717172623, -0.034168221056461334, -0.004049515817314386, -0.01066026370972395, 0.01666877605021, 0.0002753036096692085, 0.020711369812488556, 0.004900952335447073, 0.04555762931704521, -0.04149657487869263, -0.009958809241652489, -0.030310221016407013, 0.023554105311632156, 0.0112417321652174, -0.01625344157218933, -0.0372140109539032, -0.03280223160982132, -0.007900593802332878, 0.0547872930765152, -0.026821408420801163, -0.0010296845575794578, -0.027467483654618263, -0.004864033777266741, 0.031140891835093498, -0.0026119952090084553, -0.047218967229127884, 0.007596014533191919, 0.06896405667066574, -0.026784488931298256, -0.004213342443108559, 0.03348522633314133, -0.03708479553461075, 0.0052747540175914764, -0.007291435729712248, -0.027578240260481834, 0.0382477343082428, -0.021597417071461678, 0.049138739705085754, 0.019179245457053185, 0.030790163204073906, -0.037269387394189835, -0.08446989953517914, -0.020305264741182327, -0.030144087970256805, 0.028242776170372963, -0.033780574798583984, 0.03304220363497734, 0.03839540854096413, -0.013964483514428139, 0.07937512546777725, 0.0325622595846653, -0.05910677835345268, 0.07679081708192825, 0.013936794362962246, 0.01874545030295849, 0.013632215559482574, -0.026932163164019585, 0.019400756806135178, -0.02881501615047455, -0.015330473892390728, -0.10041876137256622, 0.07431726902723312, 0.0010816013673320413, -0.05851607769727707, -0.006677662953734398, -0.062281783670186996, 0.03239612653851509, -0.015939632430672646, -0.08764490485191345, -0.0356634259223938, -0.0015817339299246669, -0.022538842633366585, -0.0215789582580328, -0.07996582239866257, -0.005547028966248035, 0.03579264134168625, 0.0069407084956765175, 0.002780436770990491, -0.018283966928720474, 0.0638323649764061, 0.01162014901638031, 0.03263609856367111, -0.06194951385259628, 0.03961372375488281, 0.017268704250454903, 0.09953270852565765, 0.035201944410800934, 0.0071068424731493, -0.01625344157218933, -0.03306066244840622, 0.06597364693880081, 0.007692926097661257, 0.02362794429063797, 0.020212966948747635, 0.02970106340944767, -0.0516861267387867, 0.05954980105161667, -0.00916967261582613, -0.01394602470099926, -0.014684397727251053, -0.005450117401778698, 0.019917618483304977, 0.022003522142767906, 0.01705642230808735, -0.03032867982983589, -0.013410704210400581, 0.00746218441054225, -0.03237766772508621, -0.05438118800520897, 0.004642521496862173, 0.008052882738411427, -0.02453245036303997, -0.060509685426950455, -0.08565129339694977, 0.02864888124167919, -0.030550193041563034, -0.0009939195588231087, -0.007623703684657812, -0.06505068391561508, -0.037730872631073 ]
730,306
mmengine.fileio.io
get_local_path
Download data from ``filepath`` and write the data to local 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. Note: If the ``filepath`` is a local path, just return itself and it will not be released (removed). Args: filepath (str or Path): Path to be read data. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Yields: Iterable[str]: Only yield one path. Examples: >>> with get_local_path('s3://bucket/abc.jpg') as path: ... # do something here
def exists( filepath: Union[str, Path], backend_args: Optional[dict] = None, ) -> bool: """Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: bool: Return ``True`` if ``filepath`` exists, ``False`` otherwise. Examples: >>> filepath = '/path/of/file' >>> exists(filepath) True """ backend = get_file_backend( filepath, backend_args=backend_args, enable_singleton=True) return backend.exists(filepath)
(filepath: Union[str, pathlib.Path], backend_args: Optional[dict] = None) -> Generator[Union[str, pathlib.Path], NoneType, NoneType]
[ -0.00855205487459898, -0.07521084696054459, -0.03637007623910904, -0.005095807369798422, 0.035897739231586456, 0.04218347743153572, 0.031664855778217316, -0.011299794539809227, -0.01160863135010004, -0.04134780168533325, 0.05529995635151863, 0.04381849616765976, 0.025869624689221382, -0.07891689240932465, -0.024071104824543, -0.010046279989182949, 0.04654352739453316, -0.002502486575394869, 0.011944718658924103, -0.018639210611581802, -0.018339456990361214, 0.006085901986807585, 0.07244948297739029, 0.024452609941363335, 0.04519917815923691, -0.0006352728232741356, -0.0072803739458322525, -0.009437689557671547, -0.005431894678622484, 0.038114096969366074, 0.008256843313574791, 0.022781256586313248, 0.00017443035903852433, 0.002983908634632826, 0.029303163290023804, 0.032700370997190475, -0.010891039855778217, 0.00694428663700819, -0.04592585191130638, -0.05682597681879997, -0.002927137305960059, 0.01375232171267271, 0.042910151183605194, 0.056789640337228775, -0.008066090755164623, 0.004069379065185785, -0.06725376099348068, -0.007766337599605322, -0.022872092202305794, -0.0427648164331913, 0.07717286795377731, -0.00039058775291778147, -0.035970404744148254, 0.03148318827152252, -0.048505548387765884, -0.013388984836637974, 0.02726847492158413, 0.07132314145565033, -0.02192741446197033, -0.001656591659411788, 0.03388121724128723, -0.04498117417097092, 0.0006488979561254382, -0.026360131800174713, -0.02995717152953148, -0.030665678903460503, 0.004823304247111082, -0.07383016496896744, 0.0153600899502635, -0.04356415942311287, -0.009124311618506908, 0.06492839753627777, 0.02617846243083477, -0.06547340750694275, 0.004021691158413887, 0.04254681244492531, 0.017267610877752304, 0.07383016496896744, -0.04134780168533325, 0.02087373659014702, -0.03894977271556854, -0.03528006374835968, -0.017303945496678352, -0.010909206233918667, 0.030901849269866943, 0.027068639174103737, 0.026868803426623344, 0.011154458858072758, -0.024216439574956894, 0.08654697984457016, 0.0005012921174056828, 0.023871269077062607, 0.05137591436505318, -0.02216358296573162, 0.04977722838521004, -0.05962367355823517, 0.029303163290023804, -0.0373874232172966, 0.007548335008323193, -0.03678791597485542, -0.03664258122444153, -0.041602134704589844, 0.035643402487039566, -0.010600369423627853, 0.012480640783905983, 0.03250053524971008, 0.016377434134483337, 0.008788224309682846, 0.020964570343494415, -0.04756087064743042, 0.0010536785703152418, -0.0640563890337944, 0.024706944823265076, 0.014760583639144897, -0.0017326653469353914, -0.05391927435994148, 0.027141306549310684, -0.008116049692034721, -0.012889395467936993, -0.06035034731030464, -0.014351828955113888, 0.0005841784877702594, 0.009719276800751686, 0.00408527534455061, 0.053265269845724106, -0.052211590111255646, 0.03411738574504852, -0.0031837443821132183, -0.031937360763549805, 0.0032927454449236393, -0.028213152661919594, 0.0043327989988029, 0.024452609941363335, 0.019965391606092453, -0.014133825898170471, 0.028776325285434723, 0.02138240821659565, 0.0025206534191966057, -0.01573251187801361, 0.0639110580086708, 0.024216439574956894, -0.0347532257437706, -0.02568795718252659, 0.03362688049674034, 0.03335437551140785, 0.041311465203762054, -0.011426961980760098, -0.03095635026693344, 0.049050554633140564, 0.05202992260456085, -0.01629568450152874, 0.015242005698382854, 0.0030293259769678116, 0.034571558237075806, -0.020128894597291946, -0.03386304900050163, 0.002547903684899211, 0.04439983516931534, 0.010754788294434547, 0.027050472795963287, -0.026269296184182167, 0.04036678746342659, -0.019365886226296425, -0.019184216856956482, -0.02112807147204876, 0.04523551091551781, -0.07593752443790436, 0.0427284836769104, 0.002182295545935631, 0.030920015648007393, -0.011526879854500294, -0.03927677497267723, -0.01427916157990694, 0.021854747086763382, 0.009946362115442753, -0.04036678746342659, 0.06856177747249603, 0.0720861479640007, -0.002252692123875022, -0.0006960182799957693, 0.05391927435994148, -0.05471861734986305, -0.00896080955862999, -0.02138240821659565, 0.02165491133928299, 0.022036414593458176, -0.008243218064308167, -0.008770057000219822, 0.06380205601453781, 0.025815125554800034, -0.013797739520668983, 0.006372030358761549, 0.05642630532383919, 0.010782038792967796, -0.0022924321237951517, -0.049849897623062134, 0.08705565333366394, -0.027468310669064522, -0.08959901332855225, 0.022018248215317726, 0.054355278611183167, -0.040730126202106476, -0.003585686208680272, -0.0045689684338867664, -0.02169124409556389, -0.03391754999756813, 0.018621044233441353, 0.0187300443649292, -0.02274492383003235, 0.026923304423689842, -0.050612904131412506, -0.10609453171491623, -0.01842120848596096, 0.03344520926475525, 0.04487217217683792, 0.06743542850017548, 0.0036242909263819456, 0.06968811899423599, -0.040475789457559586, 0.008256843313574791, 0.09919112175703049, 0.01525108888745308, 0.010872872546315193, 0.005981442518532276, 0.02748647704720497, -0.007784504443407059, -0.01320731546729803, 0.0747748464345932, -0.03825943171977997, -0.017240362241864204, -0.010118947364389896, 0.020401397719979286, 0.05264759436249733, 0.022363418713212013, 0.01244430709630251, 0.019692888483405113, 0.03386304900050163, 0.023907603695988655, 0.008915392681956291, 0.011009124107658863, 0.019947225227952003, 0.013606986962258816, 0.02884899266064167, -0.013879490084946156, -0.037569090723991394, -0.03696958348155022, 0.028630990535020828, 0.010464117862284184, -0.017422029748558998, -0.048505548387765884, 0.022000081837177277, 0.06521906703710556, -0.028122317045927048, -0.011581380851566792, -0.0070033292286098, -0.026069460436701775, -0.04338248819112778, 0.005422811023890972, -0.003081555711105466, 0.046652525663375854, -0.012544224970042706, 0.0669630914926529, 0.04385482892394066, 0.0030860973056405783, -0.01898438110947609, -0.04748820140957832, -0.01892988011240959, 0.02381676807999611, 0.006444697733968496, -0.02730480767786503, -0.006108610425144434, 0.004135234281420708, 0.02487044781446457, 0.004269214812666178, 0.002591049997135997, -0.013979407958686352, 0.002393485279753804, -0.0227267574518919, 0.02485228143632412, 0.046652525663375854, -0.06038668006658554, -0.01215363759547472, 0.004832387901842594, -0.06038668006658554, -0.00003448867209954187, 0.006431072484701872, -0.0073530413210392, 0.08247759938240051, -0.011890217661857605, 0.006217611953616142, -0.01456983108073473, -0.03873177245259285, -0.02568795718252659, 0.00514576630666852, -0.01574159413576126, 0.05936933681368828, -0.022835757583379745, -0.013933991082012653, 0.040984462946653366, -0.08211425691843033, 0.003428997006267309, 0.04668886214494705, -0.03800509497523308, 0.034353554248809814, 0.0017462905962020159, -0.00515030836686492, -0.03655174747109413, 0.002482048934325576, -0.02835848741233349, 0.0009157238528132439, -0.012217220850288868, -0.02485228143632412, -0.009056185372173786, -0.010727537795901299, 0.0747021734714508, 0.025724289938807487, -0.07063280045986176, -0.06968811899423599, -0.04134780168533325, 0.016631770879030228, -0.004185193218290806, 0.028122317045927048, 0.0022424731869250536, 0.021854747086763382, -0.024725113064050674, -0.009065269492566586, -0.03184652701020241, 0.01793978549540043, -0.008715556934475899, 0.013143732212483883, 0.03419005125761032, -0.02348976582288742, 0.09206970781087875, -0.05366493761539459, -0.02645096555352211, -0.005173016805201769, -0.006372030358761549, 0.0080115906894207, 0.025978626683354378, 0.06060468405485153, 0.012062802910804749, -0.029321331530809402, -0.0294121652841568, -0.016213933005928993, -0.026650801301002502, -0.02350793220102787, -0.025033948943018913, 0.0002712257264647633, 0.06812576949596405, -0.034898560494184494, 0.0027954273391515017, 0.00495501421391964, -0.04410916566848755, 0.017140444368124008, -0.0016361539019271731, 0.004936847370117903, 0.04650719091296196, 0.061331357806921005, 0.005368310492485762, -0.0055045620538294315, 0.029793670400977135, -0.05159391462802887, -0.04614385589957237, -0.03971278294920921, -0.001013370812870562, -0.016649937257170677, 0.07066912949085236, 0.03617024049162865, -0.09315972030162811, 0.07869888842105865, 0.0560629665851593, -0.017167693004012108, 0.03664258122444153, -0.0186937116086483, 0.012371639721095562, -0.0453445129096508, -0.0042624021880328655, -0.04643452540040016, 0.04483583942055702, -0.02025606296956539, 0.00257515418343246, 0.0055045620538294315, -0.00988277792930603, 0.017240362241864204, 0.03279120475053787, 0.05751631781458855, 0.012126387096941471, -0.005422811023890972, -0.02561528980731964, -0.06718109548091888, -0.008247760124504566, -0.023362597450613976, -0.010845622047781944, -0.07310349494218826, 0.021291574463248253, -0.06463772803544998, 0.025833291932940483, 0.036733414977788925, -0.015578093007206917, 0.04614385589957237, -0.0001480316132074222, -0.05050390213727951, 0.027141306549310684, 0.01522383838891983, -0.037242088466882706, 0.05955100432038307, 0.03949477896094322, 0.04112979769706726, 0.018085120245814323, -0.0428011491894722, -0.00234125554561615, -0.05551796033978462, -0.03953111171722412, -0.020964570343494415, -0.03495306149125099, 0.09446773678064346, -0.039676446467638016, -0.020928235724568367, 0.0014908189186826348, -0.027468310669064522, -0.023907603695988655, -0.007984340190887451, -0.027195807546377182, 0.03133785352110863, 0.021491410210728645, 0.03320904076099396, -0.028140485286712646, -0.027141306549310684, 0.01894804649055004, -0.011753966100513935, -0.0534469373524189, -0.12266271561384201, 0.05686230957508087, -0.005123057868331671, -0.011681298725306988, -0.04120246693491936, 0.007044204510748386, -0.06045934930443764, -0.015387340448796749, -0.0253972876816988, -0.04494484141469002, -0.006785326637327671, -0.0481058768928051, -0.005549979396164417, -0.02565162256360054, -0.0017383425729349256, -0.04596218466758728, -0.045271843671798706, 0.060277681797742844, 0.011290710419416428, -0.03920410946011543, 0.040475789457559586, 0.0721588134765625, -0.0017814888851717114, -0.04407282918691635, -0.02561528980731964, -0.045816849917173386, 0.0002852766483556479, -0.02083740197122097, -0.012907562777400017, -0.0018961672903969884, 0.05213892087340355, 0.046943195164203644, -0.07978890091180801, 0.040003452450037, -0.0049822647124528885, 0.03945844620466232, -0.0025819665752351284, 0.015178421512246132, 0.05500928685069084, -0.0005100917187519372, 0.028667323291301727, -0.06903411448001862, -0.00787079706788063, 0.02565162256360054, -0.004480404779314995, 0.008370386436581612, 0.024507110938429832, -0.05584496259689331, 0.008315885439515114, 0.009710192680358887, -0.02056489884853363, -0.03635191172361374, 0.07339416444301605, 0.03311820700764656, -0.03711491823196411, 0.0319918617606163, 0.01455166470259428, 0.007607377599924803, -0.06463772803544998, 0.024107439443469048, -0.034353554248809814, 0.026668967679142952, -0.005740731488913298, 0.04298282042145729, -0.028122317045927048, -0.04033045470714569, 0.0694337859749794, -0.02619662880897522, -0.02249058708548546, 0.014424496330320835, -0.01575976051390171, 0.04091179370880127, 0.09766510128974915, -0.04483583942055702, -0.023653266951441765, -0.01632293500006199, 0.0346260592341423, -0.023853102698922157, 0.006104068830609322, 0.005704397801309824, 0.07016045600175858, -0.039676446467638016, -0.004800595808774233, 0.05689864233136177, 0.04149313643574715, -0.03611573949456215, -0.05108524486422539, -0.034898560494184494, 0.003651541192084551, 0.0021028153132647276, -0.024706944823265076, 0.027631811797618866, 0.022654088214039803, -0.0073484997265040874, 0.04352782666683197, 0.006449239328503609, -0.01387040689587593, 0.014597081579267979, 0.0074575007893145084, 0.019638387486338615, 0.01815778762102127, -0.03308187425136566, -0.021763913333415985, 0.007107788696885109, -0.0032041820231825113, 0.04872354865074158, -0.009051644243299961, 0.02588779293000698, -0.03099268302321434, 0.01481508370488882, 0.040984462946653366, -0.05537262558937073, -0.024761445820331573, 0.026523632928729057, -0.06096802279353142, -0.037060417234897614, -0.09228771179914474, 0.04112979769706726, -0.008561138063669205, 0.01573251187801361, -0.009646608494222164, 0.027195807546377182, 0.02436177432537079, 0.05504562333226204, 0.10296983271837234, 0.021800246089696884, -0.048469215631484985, -0.027595479041337967, -0.0064946566708385944, -0.004850554745644331, -0.06114969030022621, -0.039967119693756104, 0.01577792875468731, -0.0006806899909861386, -0.03905877470970154, 0.03982178121805191, -0.010600369423627853, 0.03508022800087929, -0.07651886343955994, 0.00675353454425931, 0.005981442518532276, 0.01765820011496544, -0.02109173871576786, -0.032972872257232666, -0.038877107203006744, 0.07499285042285919, 0.016958774998784065, 0.02590595930814743, 0.0017587803304195404, -0.019438553601503372, -0.005631730426102877, -0.057007644325494766, 0.051957253366708755, -0.021200738847255707, 0.023053759709000587, 0.0009554639109410346, 0.03691508248448372, -0.08589296787977219, -0.041057128459215164, 0.01214455347508192, 0.03400838375091553, 0.07281282544136047, 0.013170981779694557, 0.046107519418001175, 0.0030429509934037924, 0.01632293500006199, -0.04621652141213417, 0.10340583324432373, -0.019166050478816032, -0.03964011371135712, -0.06165836378931999, -0.016913358122110367, -0.06173102930188179, -0.004855096340179443, 0.02054673247039318, 0.01441541314125061, -0.02481594681739807, -0.0454898476600647, -0.020891902968287468, 0.031664855778217316, -0.02806781604886055, 0.020619399845600128, 0.030829181894659996, 0.07299449294805527, 0.03876810520887375, 0.012053719721734524, -0.0508309081196785, -0.01657726988196373, 0.006026859860867262, 0.018657376989722252, 0.009292354807257652, 0.058424659073352814, 0.0454171784222126, 0.014079325832426548, -0.006122235674411058, 0.028540154919028282, -0.01547817513346672, -0.05457328259944916, -0.026105795055627823, 0.05093991011381149, -0.02488861419260502, 0.0059042335487902164, -0.02354426495730877, -0.01441541314125061, -0.08778232336044312, -0.016377434134483337, -0.0106730367988348, 0.05766165256500244, -0.024670612066984177, -0.05315626785159111, -0.0695427879691124, -0.01735844649374485, 0.026814302429556847, 0.022036414593458176, -0.0008356760954484344, 0.009328688494861126, -0.03876810520887375, 0.05962367355823517, 0.020492231473326683, 0.025506287813186646, 0.026777969673275948, -0.06456506252288818, -0.012126387096941471, 0.009583025239408016, 0.03259136900305748, 0.015242005698382854, -0.023417098447680473, -0.03317270800471306, 0.0427284836769104, 0.023598765954375267, -0.01575976051390171, -0.01815778762102127, 0.03580690547823906, -0.031065350398421288, -0.019384052604436874, 0.008243218064308167, -0.04952289164066315, -0.014969502575695515, 0.04439983516931534, -0.024125605821609497, 0.05057657137513161, -0.03691508248448372, -0.016086764633655548, 0.042401477694511414, 0.040439456701278687, -0.047960542142391205, -0.0034403514582663774, -0.049014221876859665, 0.03101084940135479, 0.006630908232182264, 0.012662309221923351, -0.004223797470331192, 0.030393175780773163, 0.0016509144334122539, -0.028158651664853096, 0.06285737454891205, -0.007552877068519592, 0.034099217504262924, -0.029866337776184082, -0.02510661631822586, 0.0009372970671392977, -0.0005004405393265188, 0.013388984836637974, 0.014742416329681873, -0.028667323291301727, 0.03949477896094322, 0.03847743570804596, 0.02294475957751274, -0.03359054774045944, 0.028412988409399986, 0.026287464424967766, 0.012934812344610691, -0.018085120245814323, 0.03179202601313591, 0.02968466840684414, -0.06474673002958298, -0.006185819860547781, 0.03815042972564697, -0.003894523251801729, -0.047451868653297424, 0.010327866300940514, 0.06743542850017548, -0.0063493219204247, -0.008070632815361023, -0.03974911570549011, -0.010963707230985165, 0.006099527236074209, 0.029030662029981613, -0.018339456990361214, 0.024198273196816444, -0.022581420838832855, 0.0018745941342785954, -0.07157747447490692, -0.06372938305139542, -0.04218347743153572, -0.018748212605714798, -0.023090094327926636, -0.015877846628427505, 0.024652445688843727, 0.02483411319553852, -0.03800509497523308, -0.03924044221639633, 0.03964011371135712, 0.01176304928958416, -0.014333661645650864, 0.019384052604436874, -0.01655910350382328, 0.023998437449336052, 0.04418183118104935, 0.006903411354869604, -0.010936456732451916, 0.025560788810253143, -0.08218692988157272, 0.05043123662471771, 0.037823427468538284, 0.05860632658004761, -0.026523632928729057, 0.010800205171108246, 0.001009964500553906, 0.01056403573602438, 0.0012977959122508764, -0.04400016367435455, 0.026832468807697296, -0.026087628677487373, -0.015950514003634453, -0.024670612066984177, 0.05123057961463928, -0.05766165256500244, -0.016931524500250816, -0.048033207654953, 0.01848479174077511, -0.0011087468592450023, -0.01954755373299122, 0.02913966216146946, -0.010909206233918667, -0.05442794784903526, 0.015196587890386581 ]
730,307
mmengine.utils.misc
get_object_from_string
Get object from name. Args: obj_name (str): The name of the object. Examples: >>> get_object_from_string('torch.optim.sgd.SGD') >>> torch.optim.sgd.SGD
def get_object_from_string(obj_name: str): """Get object from name. Args: obj_name (str): The name of the object. Examples: >>> get_object_from_string('torch.optim.sgd.SGD') >>> torch.optim.sgd.SGD """ parts = iter(obj_name.split('.')) module_name = next(parts) # import module while True: try: module = import_module(module_name) part = next(parts) # mmcv.ops has nms.py and nms function at the same time. So the # function will have a higher priority obj = getattr(module, part, None) if obj is not None and not ismodule(obj): break module_name = f'{module_name}.{part}' except StopIteration: # if obj is a module return module except ImportError: return None # get class or attribute from module obj = module while True: try: obj = getattr(obj, part) part = next(parts) except StopIteration: return obj except AttributeError: return None
(obj_name: str)
[ 0.05336123704910278, 0.03225456550717354, -0.07900138944387436, -0.037698451429605484, 0.0076455953530967236, -0.04184174910187721, 0.051428936421871185, 0.042101867496967316, 0.004997971002012491, -0.004001628141850233, -0.0019323010928928852, 0.06792781502008438, -0.04626374691724777, 0.009531446732580662, -0.03050806187093258, -0.007408702280372381, -0.012281259521842003, 0.031176935881376266, -0.022370101884007454, -0.01414853148162365, -0.015467698685824871, 0.06629279255867004, 0.04801024869084358, 0.03727111592888832, 0.033276453614234924, 0.03842306509613991, 0.05778323486447334, 0.035951949656009674, -0.029337532818317413, -0.032310303300619125, 0.017269941046833992, -0.0348743200302124, -0.01928585208952427, 0.04663534462451935, -0.046821143478155136, -0.016879765316843987, 0.049236517399549484, 0.01945306919515133, -0.05328691750764847, -0.03177148848772049, 0.016266630962491035, 0.032811958342790604, 0.044777363538742065, -0.013814094476401806, 0.01050688698887825, -0.007696689572185278, -0.053807154297828674, 0.04600362852215767, 0.009735824540257454, 0.031028296798467636, 0.0565941259264946, -0.05889802426099777, -0.02623470313847065, -0.03381526842713356, -0.011733154766261578, 0.03130699321627617, -0.0026453016325831413, 0.04340245574712753, -0.0027103309985250235, 0.04173027351498604, -0.012402028776705265, -0.03440982475876808, -0.007088200654834509, 0.006326428148895502, -0.0575602762401104, -0.05596241354942322, 0.015523438341915607, 0.007478376850485802, -0.0821227952837944, -0.02337341196835041, -0.03004356659948826, 0.026346182450652122, -0.0006799052353017032, -0.03868317976593971, -0.014492258429527283, -0.018793486058712006, -0.005731874145567417, -0.022704537957906723, -0.004970101173967123, 0.02528713271021843, 0.028557181358337402, -0.0007362252799794078, -0.06699882447719574, -0.09215589612722397, -0.037865668535232544, -0.035468872636556625, -0.01667538657784462, -0.08033913373947144, 0.005076935514807701, -0.054921943694353104, -0.02812984399497509, -0.017260652035474777, -0.02699647657573223, 0.058526426553726196, -0.016313079744577408, -0.05715152248740196, 0.025027014315128326, -0.002187773585319519, 0.004284970462322235, -0.004273358266800642, -0.004415029194205999, 0.009183075278997421, -0.0811566486954689, 0.02352204918861389, 0.002622076775878668, -0.015040363185107708, 0.029616231098771095, -0.0023317672312259674, 0.06945136189460754, -0.02699647657573223, -0.022184303030371666, -0.022017084062099457, -0.06692450493574142, 0.05280384421348572, 0.018263962119817734, -0.06759338080883026, -0.010692685842514038, 0.0013946476392447948, -0.03257042169570923, -0.033573731780052185, -0.03400106728076935, 0.036267805844545364, -0.0643976479768753, 0.035468872636556625, 0.055405016988515854, 0.009039081633090973, 0.05090870335698128, -0.05741163715720177, 0.028965936973690987, -0.0335179902613163, 0.07012023031711578, -0.005067645572125912, -0.06528948247432709, -0.001834757043980062, -0.01975034736096859, 0.05313827842473984, -0.013256700709462166, 0.037382595241069794, -0.011036411859095097, -0.0410613976418972, 0.0173721294850111, 0.0006427455809898674, -0.02876155823469162, -0.024172343313694, -0.030080726370215416, 0.016554618254303932, 0.041953228414058685, -0.010776294395327568, -0.01873774640262127, -0.007097490597516298, -0.04042968526482582, 0.004333742428570986, 0.020010463893413544, 0.025510089471936226, -0.02433956228196621, -0.060756005346775055, -0.020976614207029343, -0.040206726640462875, -0.028650078922510147, -0.024228082969784737, 0.006563320755958557, 0.03507869690656662, -0.04277074337005615, -0.0636172965168953, 0.04143299534916878, -0.05566513538360596, 0.050499945878982544, -0.029616231098771095, -0.028204163536429405, 0.00822156947106123, -0.054141588509082794, 0.025491511449217796, -0.05403011292219162, 0.04830752685666084, 0.0029147090390324593, 0.024562519043684006, -0.06109044328331947, 0.03691809996962547, 0.030545221641659737, -0.01429717056453228, 0.03186438977718353, 0.03346225246787071, -0.02372642792761326, -0.00007196050864877179, -0.03336935490369797, 0.03712247684597969, 0.020753657445311546, 0.03998376801609993, 0.026773517951369286, -0.007836038246750832, -0.020660758018493652, 0.0464123860001564, 0.01945306919515133, 0.018031714484095573, 0.003599839750677347, 0.013609716668725014, -0.024729738011956215, 0.026160383597016335, -0.05009118840098381, 0.09795279800891876, 0.024395301938056946, 0.08680491149425507, 0.023466309532523155, 0.04704409837722778, -0.008031126111745834, -0.006934917066246271, 0.05462466552853584, 0.05165189504623413, -0.043662574142217636, 0.0313255749642849, -0.007701334543526173, -0.0028334222733974457, -0.03286769986152649, 0.07145798206329346, 0.044331446290016174, 0.06395173072814941, 0.007798878476023674, 0.02892877720296383, 0.055070582777261734, -0.007743139285594225, -0.014501548372209072, 0.02861291915178299, 0.025249972939491272, 0.05481046438217163, -0.03192012757062912, -0.03883181884884834, -0.04756433516740799, 0.01478024572134018, -0.017186332494020462, -0.04596646875143051, 0.03647218272089958, -0.07227548956871033, 0.02987634763121605, -0.007520181592553854, 0.08509556949138641, 0.03827442601323128, -0.0030052855145186186, 0.01606225222349167, 0.01327527966350317, -0.043365295976400375, 0.021571168676018715, -0.006293913349509239, -0.05815483257174492, 0.012903683818876743, 0.024525359272956848, 0.026011746376752853, 0.016155151650309563, -0.058377787470817566, -0.07339028269052505, -0.05559081584215164, 0.07981889694929123, 0.04775013402104378, 0.027256593108177185, -0.027702508494257927, -0.05826630815863609, -0.038162946701049805, -0.034539882093667984, -0.01585787534713745, -0.025008434429764748, 0.0011815603356808424, -0.03964933380484581, -0.0801904946565628, 0.008300533518195152, 0.031845808029174805, -0.022351521998643875, -0.02225862257182598, -0.012996583245694637, 0.03875749930739403, 0.018328990787267685, -0.026494821533560753, 0.09297341108322144, -0.0014643219765275717, 0.02212856337428093, 0.02905883640050888, 0.003214308526366949, -0.03758697211742401, 0.007580565754324198, 0.02956049144268036, -0.0017999198753386736, 0.0016245729057118297, -0.041172876954078674, -0.009183075278997421, 0.010609076358377934, 0.002480405615642667, 0.023299092426896095, 0.0033327548298984766, 0.05425306782126427, -0.07565701752901077, 0.023577788844704628, 0.05845210701227188, 0.003369914600625634, -0.007287933491170406, -0.04927367717027664, -0.032161664217710495, -0.06034724786877632, 0.054290227591991425, -0.004452188964933157, -0.03238462284207344, 0.02259305864572525, -0.008871863596141338, 0.023782167583703995, -0.005378857254981995, -0.007176454644650221, 0.006117405369877815, -0.008458462543785572, -0.02082797698676586, 0.026197543367743492, -0.07272140681743622, -0.03251468017697334, 0.023930806666612625, 0.012420608662068844, -0.00130290980450809, 0.0007437733584083617, 0.041172876954078674, 0.013795514591038227, 0.02874297834932804, 0.002656914060935378, -0.00921094510704279, 0.010804164223372936, 0.02859434112906456, -0.007417992223054171, 0.048121728003025055, -0.013609716668725014, 0.021849866956472397, 0.005295248236507177, -0.031994447112083435, -0.0855414867401123, 0.03379669040441513, -0.00893689226359129, -0.03004356659948826, -0.05087154358625412, -0.014194981195032597, 0.03463277965784073, 0.015319060534238815, 0.0410613976418972, -0.008026481606066227, 0.014594446867704391, -0.020735077559947968, -0.024692578241229057, -0.00021787740115541965, 0.10724271088838577, -0.013628296554088593, -0.02493411675095558, 0.03375953063368797, 0.001314522116445005, 0.007557340897619724, 0.0811566486954689, 0.003000640543177724, 0.05462466552853584, -0.03409396484494209, -0.07101206481456757, -0.04392268881201744, -0.024246662855148315, -0.02668061852455139, -0.01525403093546629, 0.02798120677471161, 0.03190154954791069, 0.03533881530165672, 0.0025059529580175877, -0.09356796741485596, -0.007510891649872065, -0.05952973663806915, -0.04901355877518654, -0.05061142519116402, -0.062019433826208115, -0.02814842388033867, 0.01412995159626007, 0.016248051077127457, 0.04221334680914879, -0.02402370423078537, -0.026810677722096443, 0.040689803659915924, -0.007130005396902561, -0.03002498671412468, -0.048716284334659576, 0.0026778161991387606, 0.023169033229351044, -0.034707099199295044, 0.02970912866294384, 0.01770656742155552, 0.03935205563902855, 0.00718574458733201, 0.04251062497496605, 0.03793998807668686, 0.021608328446745872, 0.004535797983407974, -0.026606298983097076, 0.03440982475876808, 0.008542071096599102, -0.03864602372050285, 0.04949663579463959, 0.007208969444036484, 0.0449259988963604, 0.010469727218151093, 0.008393432945013046, -0.026587719097733498, 0.005206994246691465, -0.006591190584003925, -0.07818387448787689, 0.03481857851147652, 0.026624878868460655, 0.03232888504862785, -0.041172876954078674, 0.04150731489062309, -0.057746075093746185, 0.05005402863025665, 0.03414970636367798, -0.0033792045433074236, -0.027516711503267288, -0.033425092697143555, 0.004257100634276867, -0.03727111592888832, -0.0515032559633255, -0.07446791231632233, -0.008017191663384438, 0.026792097836732864, 0.0451861172914505, 0.015607046894729137, 0.01625734008848667, -0.030433742329478264, -0.016814734786748886, -0.024358142167329788, 0.007566630840301514, -0.034224025905132294, -0.06528948247432709, -0.015402669087052345, 0.008342338725924492, 0.0009812467033043504, 0.023299092426896095, 0.01184463407844305, -0.0884399339556694, -0.008774318732321262, -0.03130699321627617, -0.06261398643255234, 0.0515032559633255, -0.0400952473282814, -0.01697266474366188, 0.018691297620534897, -0.016452429816126823, -0.039575014263391495, -0.011695995926856995, -0.008384143002331257, -0.026754938066005707, 0.027888307347893715, -0.045929308980703354, 0.02151542901992798, 0.0074505070224404335, 0.016303790733218193, -0.01478024572134018, -0.03143705055117607, -0.005160544533282518, -0.033109236508607864, 0.018849225714802742, 0.024265242740511894, 0.03218024596571922, -0.06573539972305298, 0.04154447466135025, 0.04782445356249809, 0.027888307347893715, 0.02625328302383423, -0.09542594850063324, 0.0034860384184867144, 0.06517799943685532, -0.013052321970462799, -0.05481046438217163, 0.10218899697065353, 0.05603673309087753, 0.0012494927505031228, 0.029783448204398155, -0.056482646614313126, -0.004180459305644035, -0.012271969579160213, 0.032923437654972076, -0.033276453614234924, 0.015904324129223824, 0.04028104618191719, 0.0005632007378153503, 0.0019532034639269114, 0.02355920895934105, 0.004654244519770145, 0.03331361338496208, -0.06960000097751617, 0.06919123977422714, 0.023763587698340416, -0.04459156468510628, -0.0012042045127600431, 0.006080245599150658, 0.014891724102199078, 0.0007159036467783153, -0.04529759660363197, -0.05217212811112404, 0.07981889694929123, -0.005035130772739649, 0.005541430786252022, 0.010915643535554409, 0.04678398370742798, -0.027758248150348663, 0.05276668444275856, -0.032143086194992065, -0.004459156189113855, 0.03565467149019241, 0.003971436060965061, -0.05087154358625412, -0.03916625678539276, -0.003648611716926098, 0.00979156419634819, -0.028204163536429405, 0.0076455953530967236, 0.018366150557994843, -0.019676027819514275, -0.05313827842473984, 0.025788787752389908, -0.011398718692362309, 0.053472716361284256, -0.006321783177554607, 0.03793998807668686, 0.02668061852455139, 0.03318355605006218, -0.03853454440832138, 0.002821809845045209, 0.020660758018493652, -0.024859797209501266, -0.010256059467792511, -0.0019079151097685099, -0.006846663076430559, -0.024079443886876106, -0.05146609619259834, 0.03805146738886833, 0.03669514134526253, 0.03665798157453537, 0.030842497944831848, 0.025175653398036957, -0.027238013222813606, 0.04960811510682106, 0.045892149209976196, -0.007287933491170406, -0.02924463339149952, 0.0022551254369318485, 0.03665798157453537, 0.033257875591516495, 0.01665680669248104, -0.01677757501602173, 0.037345435470342636, 0.04596646875143051, 0.0263647623360157, -0.008379497565329075, -0.002064682310447097, 0.04503747820854187, -0.016935504972934723, -0.01680544577538967, 0.05406727269291878, -0.030619541183114052, -0.060607366263866425, 0.003316497663035989, -0.000851768534630537, -0.021831287071108818, -0.05057426542043686, -0.02939327247440815, -0.022518739104270935, -0.026439081877470016, -0.004761078394949436, 0.01863555796444416, 0.035710409283638, 0.0607188455760479, -0.003040122799575329, -0.0005951347993686795, -0.01617373153567314, -0.03141847252845764, 0.0544017069041729, -0.0023491857573390007, 0.022630218416452408, -0.008137959986925125, 0.05778323486447334, 0.01429717056453228, 0.009201655164361, 0.08569011837244034, 0.0013818739680573344, 0.002708008512854576, 0.01548627857118845, 0.02151542901992798, 0.040875598788261414, -0.0336480513215065, -0.015523438341915607, -0.018691297620534897, -0.010553336702287197, -0.029281793162226677, -0.02118099294602871, -0.009577896445989609, 0.01510539185255766, -0.013693326152861118, 0.02749813161790371, 0.02861291915178299, 0.001824305858463049, 0.039909448474645615, 0.021236732602119446, 0.009642926044762135, -0.032458942383527756, 0.003270047949627042, 0.009838013909757137, -0.031845808029174805, -0.012271969579160213, 0.03344367444515228, 0.02606748417019844, -0.008542071096599102, 0.06034724786877632, 0.08264303207397461, -0.05863790586590767, -0.0544017069041729, 0.05406727269291878, 0.0060430858284235, 0.03857170417904854, -0.030879657715559006, -0.027368072420358658, 0.07041750848293304, -0.006122049875557423, 0.028352802619338036, -0.006544740870594978, -0.022946074604988098, 0.00040178856579586864, -0.019824666902422905, 0.016768286004662514, 0.052097808569669724, 0.03684378042817116, -0.0070789107121527195, -0.004863267298787832, -0.008049705997109413, 0.02116241306066513, -0.0869535505771637, 0.020493539050221443, -0.0578203946352005, 0.0007704818272031844, -0.016898345202207565, 0.019954724237322807, -0.09081815183162689, -0.033871009945869446, 0.004050400573760271, 0.036100585013628006, -0.03615632653236389, -0.05607389286160469, 0.04919935762882233, -0.019211532548069954, 0.04158163443207741, -0.020790817216038704, 0.004468446131795645, -0.046226587146520615, -0.019471649080514908, 0.031195513904094696, -0.013228830881416798, 0.06350582093000412, 0.028984516859054565, 0.003962146118283272, -0.01320096105337143, 0.008690710179507732, 0.004180459305644035, 0.034837160259485245, 0.005183769389986992, 0.021701227873563766, -0.08100800961256027, 0.03972364962100983, 0.019880404695868492, -0.012086171656847, -0.07253561168909073, 0.04143299534916878, 0.040355365723371506, -0.02783256769180298, 0.009958782233297825, -0.017028402537107468, -0.031214093789458275, 0.008351628668606281, -0.031084036454558372, -0.03898045793175697, 0.03793998807668686, 0.037048157304525375, -0.05622252821922302, -0.00011539809202076867, 0.03394532948732376, 0.03188296779990196, -0.020252002403140068, 0.009173785336315632, 0.015356219373643398, 0.022202882915735245, -0.0038460223004221916, 0.02116241306066513, -0.009531446732580662, -0.00501655088737607, 0.00016562166274525225, 0.045446235686540604, -0.02292749658226967, 0.022332942113280296, -0.05098302289843559, -0.022035663947463036, 0.05670560523867607, 0.03400106728076935, -0.037382595241069794, -0.01562562771141529, -0.006962786894291639, 0.0002797133638523519, 0.07640021294355392, 0.00436857994645834, 0.025565829128026962, 0.049050718545913696, -0.04217618703842163, -0.01533763948827982, -0.03019220381975174, -0.03320213407278061, 0.018459049984812737, -0.01184463407844305, 0.01231841929256916, 0.0020437799394130707, -0.03740117326378822, -0.05280384421348572, -0.013154511339962482, 0.02482263743877411, -0.01186321396380663, 0.06603267043828964, 0.010181739926338196, -0.06584687530994415, 0.08546716719865799, -0.04280789941549301, -0.017251361161470413, 0.018774906173348427, -0.0629112645983696, 0.07810955494642258, -0.009596476331353188, 0.035004377365112305, -0.02798120677471161, -0.032644741237163544, 0.033573731780052185, -0.016303790733218193, 0.03968648985028267, -0.007534116506576538, 0.014659476466476917, -0.047155577689409256, -0.010850613936781883, 0.004919006954878569, -0.030731018632650375, 0.06328286230564117, -0.034335505217313766, 0.03524591401219368, 0.041024237871170044, -0.04548339545726776, 0.006210304331034422, 0.01050688698887825, -0.01028392929583788, 0.005759743507951498, -0.0016954083694145083, -0.0035255204420536757, 0.0059641217812895775, 0.012420608662068844, 0.0358404703438282, 0.07060331106185913, -0.019341589882969856, 0.0324217826128006, 0.025528669357299805, 0.02734949253499508, -0.050462786108255386, -0.05912098288536072, -0.006893112324178219, 0.023280512541532516, -0.03186438977718353, -0.04355109483003616, 0.00048046247684396803, 0.0014643219765275717, 0.005406727083027363, -0.013321729376912117, -0.01677757501602173, -0.02846428193151951, -0.05726299807429314 ]
730,308
mmengine.fileio.io
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'. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: str: Expected text reading from ``filepath``. Examples: >>> filepath = '/path/of/file' >>> get_text(filepath) 'hello world'
def get_text( filepath: Union[str, Path], encoding='utf-8', backend_args: Optional[dict] = None, ) -> 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'. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: str: Expected text reading from ``filepath``. Examples: >>> filepath = '/path/of/file' >>> get_text(filepath) 'hello world' """ backend = get_file_backend( filepath, backend_args=backend_args, enable_singleton=True) return backend.get_text(filepath, encoding)
(filepath: Union[str, pathlib.Path], encoding='utf-8', backend_args: Optional[dict] = None) -> str
[ -0.006012364290654659, -0.07986904680728912, -0.00226406566798687, 0.05754121020436287, 0.021777627989649773, 0.020464224740862846, -0.01587619259953499, -0.009264810010790825, 0.13517393171787262, -0.05111619085073471, 0.06921984255313873, 0.016062552109360695, -0.05022875592112541, -0.006642442662268877, -0.004459355026483536, -0.011598760262131691, -0.059742048382759094, -0.012264336459338665, 0.04717598482966423, -0.0022673935163766146, -0.03223159909248352, -0.02380097657442093, 0.046501535922288895, 0.031450655311346054, -0.020819198340177536, -0.022984536364674568, -0.05977754667401314, -0.046679019927978516, -0.012743550352752209, 0.023925216868519783, 0.03287054970860481, -0.043448761105537415, -0.030013013631105423, 0.010285358875989914, -0.05157765746116638, 0.030296992510557175, -0.018920090049505234, -0.0397215411067009, -0.03068746253848076, -0.03869211673736572, -0.03947305679321289, 0.046679019927978516, 0.1088348925113678, 0.0023650112561881542, -0.03420170024037361, -0.03267531469464302, -0.04266782104969025, -0.05747021734714508, -0.04816991090774536, -0.00832412950694561, 0.0553048774600029, 0.04249033331871033, -0.04987378418445587, 0.01467815600335598, -0.04465567320585251, -0.01950579695403576, -0.0452946238219738, 0.026605267077684402, -0.00022047184756956995, -0.021422654390335083, 0.021901868283748627, -0.0561923123896122, 0.04916383698582649, 0.03487614914774895, -0.007889286614954472, -0.013630984351038933, 0.03590557351708412, -0.047317974269390106, 0.04770844429731369, -0.05083221197128296, 0.02507888153195381, 0.0338289774954319, -0.020251240581274033, -0.08093396574258804, 0.024936892092227936, -0.007041787728667259, -0.03260432183742523, 0.0379466712474823, -0.018902340903878212, 0.030013013631105423, -0.005360100418329239, 0.01994951255619526, 0.02030448615550995, 0.005613019224256277, 0.026836000382900238, -0.0811469554901123, 0.018920090049505234, 0.005581959150731564, -0.01164313219487667, 0.014669281430542469, 0.01691448874771595, -0.043732739984989166, 0.008124456740915775, 0.05789618566632271, 0.01934605836868286, -0.03784018009901047, 0.024865897372364998, 0.0014587193727493286, -0.038337141275405884, 0.002613492775708437, -0.04131891950964928, 0.029658040031790733, 0.05306854471564293, 0.0023627926129847765, 0.026374533772468567, -0.04824090376496315, -0.0010238768300041556, -0.005098307505249977, 0.08902736753225327, -0.02981777861714363, 0.0005823784740641713, -0.018778100609779358, 0.022327836602926254, 0.02523861825466156, -0.0067933062091469765, -0.024493174627423286, -0.07979805022478104, -0.0032857239712029696, 0.0014221128076314926, -0.04735347256064415, -0.004690087866038084, 0.00480989133939147, -0.05164865031838417, -0.0159649346023798, 0.018742604181170464, 0.025185372680425644, 0.007658554241061211, -0.02639228291809559, 0.023587992414832115, 0.001335587934590876, 0.00415097177028656, -0.0012379701947793365, 0.06655754148960114, 0.004053354263305664, 0.028522124513983727, 0.029320815578103065, 0.020251240581274033, 0.036739762872457504, 0.021546894684433937, 0.0729115679860115, 0.03487614914774895, -0.03457442298531532, 0.008155517280101776, -0.021440401673316956, -0.017393704503774643, 0.012060225941240788, 0.05736372619867325, -0.07259208709001541, 0.013231638818979263, 0.04398122429847717, 0.03581682965159416, 0.018192393705248833, -0.03232034295797348, 0.005719511304050684, 0.03194762021303177, -0.029516050592064857, -0.0021963987965136766, 0.06535062938928604, -0.05406247079372406, 0.049447815865278244, -0.05242959409952164, 0.05271357297897339, 0.026463277637958527, -0.03847913071513176, 0.01844087615609169, 0.026960240676999092, -0.04625305160880089, -0.024297939613461494, -0.027616942301392555, -0.04131891950964928, -0.0426323227584362, -0.025984063744544983, -0.0882464200258255, 0.01679912395775318, 0.014660407789051533, -0.012823419645428658, 0.053388021886348724, 0.06669952720403671, 0.016568390652537346, 0.004885323345661163, -0.014793522655963898, -0.10280033946037292, -0.056263308972120285, -0.018245641142129898, 0.05722173675894737, 0.01764218509197235, 0.017216216772794724, 0.030545473098754883, 0.04099944606423378, 0.0050894333980977535, 0.021813124418258667, -0.038621120154857635, -0.015050878748297691, 0.014190067537128925, -0.04525912553071976, -0.07497041672468185, 0.0452946238219738, -0.026374533772468567, -0.0771002545952797, 0.00935355294495821, 0.030101757496595383, -0.02758144401013851, 0.04153190553188324, 0.02802516147494316, -0.01638202928006649, 0.023676736280322075, 0.0019046548986807466, 0.020251240581274033, -0.05945806950330734, 0.06783544272184372, -0.0397215411067009, -0.041212428361177444, -0.0320541113615036, 0.012858917005360126, 0.037378713488578796, 0.0192573145031929, -0.03748520836234093, 0.057612206786870956, -0.0139682088047266, 0.01571645401418209, 0.04209986329078674, 0.04213536158204079, -0.03331426903605461, 0.047850433737039566, 0.019133074209094048, -0.026889245957136154, 0.013923837803304195, 0.07546737790107727, 0.003918020520359278, -0.019914016127586365, 0.016231166198849678, -0.031734634190797806, 0.04401671886444092, -0.01578744873404503, 0.04288080334663391, 0.011456770822405815, -0.0010283139999955893, -0.03698824346065521, 0.03508913516998291, 0.007205963134765625, 0.0073346407152712345, -0.03210735693573952, 0.016169045120477676, 0.04227735102176666, -0.03446793183684349, -0.028167150914669037, 0.00172273104544729, 0.03413070738315582, 0.03462766855955124, -0.0488443598151207, 0.041851382702589035, 0.01600930653512478, 0.006389523856341839, 0.011776247061789036, -0.0174203272908926, 0.027510449290275574, 0.011758498847484589, -0.05629880353808403, -0.0117673734202981, 0.05363650247454643, 0.0247061587870121, 0.02802516147494316, -0.01932830922305584, -0.02399621158838272, 0.0008014637278392911, -0.047566454857587814, -0.0846966877579689, 0.05881911516189575, 0.033882226794958115, -0.02532736212015152, -0.037733688950538635, 0.0388341061770916, 0.016311034560203552, -0.004916383419185877, -0.061623409390449524, -0.04288080334663391, 0.010489468462765217, 0.06506665050983429, 0.025646839290857315, 0.016994358971714973, -0.08441270887851715, 0.03876310959458351, -0.013045277446508408, -0.07319554686546326, 0.03143290802836418, -0.0008990814094431698, -0.005262482911348343, -0.020801449194550514, 0.0017892884789034724, -0.00438392348587513, 0.002380541292950511, -0.03837263956665993, 0.001001136377453804, -0.0077783577144145966, 0.051151689141988754, -0.041212428361177444, -0.06304330378770828, -0.04696299880743027, 0.05328153073787689, -0.04841839149594307, 0.05605032294988632, 0.02065945975482464, -0.01789066754281521, -0.024457678198814392, -0.011740749701857567, -0.02227458916604519, -0.0016439711907878518, -0.02632128819823265, 0.00036052000359632075, -0.00029118923703208566, -0.010436221957206726, -0.06261733174324036, 0.01842312701046467, 0.061268433928489685, -0.055553361773490906, 0.02523861825466156, -0.015485720708966255, -0.025717834010720253, 0.017393704503774643, -0.05033525079488754, 0.005293542984873056, -0.03219610080122948, 0.02039323002099991, 0.007205963134765625, 0.0004096062039025128, -0.013080774806439877, -0.00007210400508483872, 0.02262956276535988, 0.023658987134695053, 0.01691448874771595, 0.04792143031954765, 0.04958980530500412, 0.00536897499114275, -0.04330677166581154, -0.0479569248855114, -0.028806103393435478, 0.03420170024037361, -0.06474717706441879, -0.027013486251235008, 0.0030638654716312885, 0.062262360006570816, -0.05289105698466301, -0.025114377960562706, 0.006531513296067715, -0.0009806144516915083, 0.07362151145935059, 0.0558728352189064, -0.03491164743900299, 0.0696813091635704, -0.05931608006358147, 0.028770605102181435, 0.011776247061789036, -0.05292655527591705, -0.041496407240629196, -0.06961031258106232, 0.018866844475269318, -0.02175987884402275, 0.015112998895347118, 0.0006428349297493696, -0.0067223114892840385, -0.05960005894303322, -0.006487141363322735, -0.047495462000370026, 0.019168570637702942, -0.010631457902491093, -0.014962134882807732, 0.026906995102763176, 0.08199889212846756, -0.04394572600722313, 0.06169440224766731, 0.016346530988812447, 0.009921510703861713, 0.017473572865128517, 0.06723199039697647, -0.012725801207125187, 0.015006506815552711, -0.04135441780090332, -0.06016801670193672, -0.02720872312784195, 0.0426323227584362, 0.0014354243176057935, 0.024723907932639122, -0.03544410690665245, -0.008133331313729286, -0.013923837803304195, 0.009255935437977314, -0.037804681807756424, 0.009318055585026741, 0.02012700028717518, -0.04660802707076073, 0.054026972502470016, -0.01768655702471733, 0.04781493544578552, -0.032089609652757645, -0.010826692916452885, 0.010010253638029099, 0.031006939709186554, 0.039686042815446854, 0.030190499499440193, 0.03304803743958473, -0.02355249412357807, 0.024510923773050308, -0.05228760465979576, -0.0033589371014386415, -0.02245207689702511, 0.10429123044013977, 0.0010516091715544462, 0.026356786489486694, -0.019914016127586365, 0.014926637522876263, -0.003418839070945978, 0.024670662358403206, 0.0021975080017000437, -0.031823378056287766, 0.014553915709257126, 0.00033944344613701105, -0.01535260584205389, -0.011163918301463127, -0.0009445624309591949, 0.003949080593883991, -0.049021847546100616, 0.02218584716320038, -0.030935944989323616, 0.00808008573949337, 0.03581682965159416, -0.003538642544299364, 0.022665061056613922, -0.008208762854337692, 0.05022875592112541, 0.04664352536201477, 0.01660388708114624, -0.11387551575899124, -0.05108069255948067, 0.0011314782314002514, -0.04153190553188324, 0.023304013535380363, -0.033349763602018356, 0.011261535808444023, 0.011882739141583443, -0.05775419622659683, 0.005218110978603363, 0.02174212969839573, 0.025043383240699768, 0.01198923122137785, 0.0052713570185005665, -0.043555255979299545, -0.015538967214524746, -0.018831346184015274, 0.010906562209129333, -0.03965054452419281, 0.019914016127586365, 0.01571645401418209, 0.05789618566632271, 0.013977083377540112, -0.015317108482122421, -0.04153190553188324, 0.020109251141548157, 0.0016029274556785822, -0.0011403525713831186, 0.024936892092227936, -0.05331702530384064, 0.04870237037539482, 0.03965054452419281, -0.1082669347524643, 0.07830716669559479, -0.022061605006456375, 0.0018192394636571407, 0.04912833869457245, -0.08632956445217133, -0.01762443594634533, 0.004470448009669781, 0.009584285318851471, -0.09122820198535919, -0.028220396488904953, 0.01897333562374115, 0.02184862270951271, -0.047317974269390106, -0.013347005471587181, -0.03411295637488365, -0.01168750412762165, 0.01472252793610096, -0.01934605836868286, 0.0019135292386636138, 0.02845112979412079, -0.0025957440957427025, -0.025025635957717896, 0.06684152036905289, -0.00243822461925447, 0.0031925432849675417, -0.030030762776732445, 0.011066299863159657, 0.03613630682229996, 0.018139148131012917, -0.008262009359896183, -0.00384702580049634, 0.013116272166371346, -0.03171688690781593, 0.053920481353998184, 0.020694958046078682, 0.03537311404943466, -0.020357733592391014, -0.03986353054642677, 0.03876310959458351, 0.08654255419969559, 0.0012801233679056168, 0.030456731095910072, -0.007871538400650024, 0.03659777343273163, 0.03982803225517273, -0.006855426821857691, 0.02568233571946621, 0.056440792977809906, 0.030847201123833656, 0.0003158710023853928, -0.006287469062954187, 0.0019656659569591284, -0.018866844475269318, 0.013409125618636608, -0.027421707287430763, 0.030119504779577255, -0.029746783897280693, -0.004523694049566984, -0.022398831322789192, 0.02032223530113697, 0.055446866899728775, -0.022043857723474503, -0.03464541956782341, -0.011456770822405815, -0.02534511126577854, 0.031006939709186554, 0.014269936829805374, 0.0029684663750231266, 0.004947443958371878, 0.010249861516058445, -0.046146560460329056, -0.05278456583619118, -0.0348406545817852, 0.021795375272631645, 0.017988285049796104, 0.037094734609127045, 0.015228365547955036, 0.0544174462556839, -0.0502997525036335, 0.007920347154140472, 0.017615562304854393, -0.05896110460162163, 0.011705252341926098, -0.00997475627809763, 0.03823065012693405, 0.039792533963918686, -0.0071527170948684216, -0.056156814098358154, 0.0005779413040727377, 0.010622583329677582, 0.018227891996502876, 0.046679019927978516, -0.018600614741444588, 0.01580519787967205, -0.015503469854593277, -0.042845308780670166, 0.040218502283096313, -0.03240908309817314, -0.02218584716320038, 0.02103218249976635, 0.015947187319397926, 0.01780192367732525, 0.03287054970860481, 0.04742446541786194, -0.019559042528271675, -0.03043898195028305, 0.011660881340503693, 0.01400370616465807, 0.049731794744729996, -0.02245207689702511, 0.006553699262440205, 0.0031392972450703382, 0.0673384815454483, -0.004734459798783064, 0.013888340443372726, 0.037733688950538635, 0.052145615220069885, -0.045862581580877304, -0.00487644923850894, 0.03358049690723419, 0.039153583347797394, 0.0476374514400959, -0.02012700028717518, 0.031219923868775368, -0.058535136282444, -0.0017049823654815555, 0.04905734583735466, 0.010826692916452885, 0.042454835027456284, 0.005692888051271439, 0.044691167771816254, 0.02335725910961628, -0.009806144051253796, 0.025451602414250374, 0.05718623846769333, -0.019931765273213387, -0.024830399081110954, -0.03285280242562294, 0.010560463182628155, 0.006908672861754894, -0.02388972043991089, 0.04912833869457245, 0.03212510421872139, -0.0561923123896122, 0.01775755174458027, 0.03242683410644531, -0.0046324050053954124, -0.04799242317676544, -0.010569337755441666, -0.04540111497044563, 0.055091895163059235, 0.013568864203989506, 0.03212510421872139, -0.06552811712026596, 0.04025400057435036, 0.006811054889112711, 0.0641082227230072, 0.041389916092157364, 0.04124792665243149, 0.05928058177232742, 0.011119546368718147, 0.04564959928393364, -0.001875813351944089, -0.045791588723659515, -0.029036836698651314, 0.02944505587220192, 0.0056795766577124596, -0.04696299880743027, -0.007281394675374031, 0.023587992414832115, 0.03256882354617119, -0.038088660687208176, -0.027102230116724968, 0.006380649283528328, -0.006531513296067715, -0.04053797945380211, -0.06006152555346489, -0.01740257814526558, -0.03510688245296478, -0.0192573145031929, -0.017766425386071205, -0.023037783801555634, -0.03752070292830467, -0.019008833914995193, 0.0729115679860115, -0.0094067994505167, -0.000556310114916414, 0.04178038612008095, -0.016834620386362076, -0.026960240676999092, -0.01852962002158165, 0.02845112979412079, 0.08434171229600906, -0.0502997525036335, 0.024741657078266144, 0.030101757496595383, 0.026818251237273216, 0.008439496159553528, 0.012654806487262249, -0.000825868162792176, -0.010081248357892036, -0.07901711016893387, -0.03759169951081276, 0.021014433354139328, 0.07369250804185867, 0.006141042336821556, 0.01934605836868286, 0.07049774378538132, 0.013098523952066898, -0.019275063648819923, 0.024280190467834473, 0.005870374850928783, 0.03695274516940117, -0.029320815578103065, -0.0004867020179517567, 0.009202688932418823, 0.01897333562374115, 0.008395124226808548, -0.03480515629053116, -0.015680955722928047, -0.012131220661103725, -0.05260707810521126, 0.019718781113624573, 0.019381554797291756, 0.0764613002538681, -0.010001379996538162, -0.039508555084466934, 0.02426244132220745, -0.0010272046783939004, -0.024226944893598557, 0.0316103957593441, 0.0011059644166380167, 0.01664825901389122, -0.027315214276313782, 0.04280981048941612, 0.0014354243176057935, 0.03210735693573952, -0.03473415970802307, 0.030598720535635948, -0.06283032149076462, 0.015973810106515884, -0.02291354164481163, -0.05140016973018646, -0.013639858923852444, -0.024741657078266144, -0.06716099381446838, -0.04419420659542084, -0.005608581937849522, 0.03716573119163513, -0.015902815386652946, 0.0329415462911129, 0.00399123365059495, -0.06705450266599655, 0.05083221197128296, -0.014385302551090717, -0.00599905289709568, -0.021351659670472145, 0.013284885324537754, 0.046856507658958435, -0.02516762539744377, -0.04071546718478203, 0.04213536158204079, -0.01267255563288927, -0.02175987884402275, -0.03255107253789902, -0.004434950649738312, 0.019931765273213387, -0.03260432183742523, 0.015237239189445972, -0.05597933009266853, -0.036562275141477585, -0.02209710329771042, -0.013941586017608643, -0.07237910479307175, 0.05388498306274414, 0.03904708847403526, -0.04522363096475601, 0.013249387964606285, -0.0805789977312088, -0.037733688950538635, 0.061729900538921356, 0.00015363698184955865, -0.007063973695039749, 0.007041787728667259, 0.026427781209349632, -0.0005169302457943559, -0.01753569394350052, 0.02076595276594162, -0.025025635957717896, 0.02962254174053669, -0.045152634382247925, 0.04181588441133499, 0.025451602414250374, -0.005719511304050684, -0.058570634573698044, 0.04046698287129402, -0.014181192964315414, 0.04660802707076073, -0.00602123886346817, 0.014198942109942436, -0.02853987365961075, -0.014190067537128925, -0.03024374693632126, 0.014775773510336876 ]
730,309
mmengine.utils.misc
has_method
Check whether the object has a method. Args: method (str): The method name to check. obj (object): The object to check. Returns: bool: True if the object has the method else False.
def has_method(obj: object, method: str) -> bool: """Check whether the object has a method. Args: method (str): The method name to check. obj (object): The object to check. Returns: bool: True if the object has the method else False. """ return hasattr(obj, method) and callable(getattr(obj, method))
(obj: object, method: str) -> bool
[ 0.02853395603597164, -0.02284185402095318, 0.006545917131006718, -0.04212155193090439, 0.014992261305451393, -0.05236733704805374, 0.041460536420345306, 0.050971854478120804, -0.0070921750739216805, 0.0419379360973835, -0.010181517340242863, -0.00040625082328915596, 0.06466962397098541, -0.04788710176944733, -0.0452430285513401, -0.006821341346949339, 0.006045563146471977, 0.01907772198319435, 0.006481651216745377, -0.05273456871509552, -0.013550874777138233, 0.039293862879276276, 0.024237336590886116, -0.007955171167850494, 0.041497256606817245, 0.09100018441677094, 0.03025994822382927, 0.03141672909259796, 0.02315400168299675, 0.07961598038673401, -0.03128819912672043, -0.02434750646352768, 0.011714712716639042, 0.010365134105086327, 0.015680821612477303, 0.03198593854904175, 0.04068934544920921, 0.012403273023664951, -0.0901922732591629, -0.01319282315671444, -0.012954121455550194, 0.05269784480333328, 0.022401174530386925, 0.01573590748012066, 0.011714712716639042, -0.05460745468735695, -0.032224640250205994, 0.09254255890846252, 0.022070664912462234, -0.014781102538108826, 0.03701702132821083, -0.028937911614775658, 0.048254333436489105, -0.021593263372778893, -0.00786336325109005, -0.04061590135097504, -0.0026027595158666372, 0.07858772575855255, 0.01199013739824295, 0.06720352172851562, 0.014652571640908718, 0.024916715919971466, -0.036098942160606384, -0.06408204883337021, 0.0051550245843827724, -0.04939275234937668, -0.027964744716882706, -0.01961020939052105, 0.02554101124405861, -0.009740838780999184, -0.006908558774739504, 0.06298035383224487, 0.01639692485332489, 0.03262859582901001, -0.04307635873556137, -0.05512157827615738, 0.023355979472398758, 0.003828397486358881, 0.028185084462165833, -0.023025469854474068, -0.012182934209704399, -0.02537575736641884, -0.015157516114413738, -0.03171051666140556, -0.05523175001144409, 0.007753193378448486, -0.008538153022527695, -0.037751488387584686, -0.03200430050492287, -0.023062193766236305, -0.06569787114858627, 0.03209611028432846, 0.029176611453294754, -0.03283057361841202, -0.03666815161705017, -0.05743514373898506, 0.06452272832393646, 0.0015641803620383143, -0.041166748851537704, -0.04704246670007706, -0.022272642701864243, -0.017718961462378502, 0.03933058679103851, 0.0017948482418432832, 0.01350497081875801, 0.0449492409825325, 0.0003523135674186051, -0.03670487552881241, -0.009869369678199291, 0.014992261305451393, 0.03325289115309715, 0.0009284093393944204, 0.0007562691462226212, -0.021354561671614647, 0.04101985692977905, -0.05141253024339676, -0.011301576159894466, -0.02537575736641884, -0.0811583548784256, -0.03227972611784935, 0.015800172463059425, -0.012504261918365955, 0.014992261305451393, -0.06371481716632843, 0.0217952411621809, -0.03958765044808388, -0.0025545600801706314, 0.009290979243814945, 0.04480234906077385, -0.02653253823518753, -0.02807491458952427, 0.011365842074155807, -0.03314272314310074, 0.034740183502435684, -0.041827768087387085, 0.016461191698908806, 0.009047687985002995, 0.020363034680485725, -0.00557734165340662, -0.054460559040308, 0.04818088561296463, 0.012458357959985733, 0.012302284128963947, 0.0027978515718132257, -0.026091860607266426, 0.04410460963845253, -0.03409752622246742, 0.015589014627039433, 0.05644361674785614, -0.0069544631987810135, -0.016002150252461433, -0.03428114205598831, 0.009988720528781414, -0.013394800946116447, -0.018793117254972458, 0.004236943554133177, -0.02214411273598671, 0.026495816186070442, 0.0116504468023777, -0.03754951059818268, 0.05042100325226784, 0.05706791207194328, -0.0632006898522377, -0.010631376877427101, 0.012614431791007519, -0.010814993642270565, -0.006876426283270121, -0.011632085777819157, -0.002614235505461693, 0.06022610887885094, -0.0275240670889616, -0.022419536486268044, -0.023759935051202774, 0.030847519636154175, 0.08042389154434204, 0.018031109124422073, -0.04950292408466339, 0.043553758412599564, 0.01165962778031826, -0.014496497809886932, -0.014762741513550282, -0.04847467318177223, 0.013238727115094662, -0.02756078913807869, -0.03481362760066986, 0.04803399369120598, 0.003582810750231147, -0.02925005927681923, -0.03428114205598831, 0.021097499877214432, -0.03536447882652283, -0.02671615593135357, 0.004220876842737198, 0.0018889515195041895, 0.0030617997981607914, -0.04898879677057266, -0.014019095338881016, 0.035089053213596344, 0.03384046256542206, 0.0015687707345932722, 0.048584841191768646, 0.013101015239953995, 0.024310782551765442, 0.016194947063922882, -0.012091126292943954, 0.004629422910511494, -0.014074180275201797, 0.007909267209470272, -0.020363034680485725, 0.015745088458061218, 0.030315032228827477, -0.050127219408750534, 0.007684337440878153, 0.03866956755518913, 0.023117277771234512, 0.0841696560382843, 0.06522046774625778, -0.04840122535824776, 0.003777903039008379, 0.022511344403028488, 0.04395771399140358, 0.032518427819013596, -0.0031880359165370464, 0.06382498890161514, 0.00987855065613985, -0.010723184794187546, 0.01013561338186264, 0.02502688579261303, -0.012439996935427189, -0.10253127664327621, 0.005315688438713551, 0.054497282952070236, -0.02855231612920761, 0.06797470897436142, -0.022915299981832504, -0.02229100465774536, 0.03205938637256622, 0.05166959390044212, 0.022052304819226265, -0.03431786596775055, 0.029617290943861008, 0.029635652899742126, -0.04983343183994293, 0.024127166718244553, -0.04311307892203331, -0.0065229651518166065, 0.012889856472611427, 0.03257350996136665, -0.060079216957092285, -0.04964981600642204, 0.034923799335956573, -0.011494372971355915, -0.06202554702758789, -0.08020354807376862, -0.034574929624795914, -0.03246334195137024, -0.05251422896981239, 0.020877160131931305, 0.00996117852628231, 0.022603152319788933, -0.014551582746207714, -0.035584818571805954, 0.06132780760526657, 0.04245206341147423, 0.03617238998413086, 0.01602969318628311, 0.03450148180127144, 0.06206227093935013, -0.048070717602968216, -0.0355297327041626, 0.1496839076280594, -0.11016970872879028, 0.018682947382330894, -0.00402119429782033, 0.046050939708948135, 0.0026785011868923903, 0.00888243317604065, -0.025614457204937935, 0.023374339565634727, 0.009795923717319965, -0.00012494507245719433, -0.02027122676372528, 0.03826561197638512, -0.0012899036519229412, -0.018820658326148987, 0.060776956379413605, 0.034574929624795914, 0.03903680294752121, -0.0015790992183610797, 0.007670565973967314, 0.026624346151947975, 0.009942816570401192, -0.023778297007083893, 0.03325289115309715, -0.0055084857158362865, 0.08196626603603363, 0.03009469248354435, -0.04307635873556137, 0.009111952967941761, -0.058243054896593094, -0.01469847559928894, 0.01623167097568512, -0.06937019526958466, -0.036906853318214417, -0.028019830584526062, -0.008795215748250484, 0.026918133720755577, -0.010787450708448887, -0.0019096083706244826, -0.04417805373668671, 0.013523331843316555, 0.02803819067776203, -0.05049445107579231, -0.028423786163330078, 0.07866117358207703, 0.008253547362983227, -0.042341891676187515, -0.022566428408026695, -0.022199196740984917, 0.038963355123996735, -0.0476667620241642, 0.05798599123954773, 0.009933635592460632, 0.015561471693217754, -0.040505729615688324, -0.0493193082511425, 0.00002492446219548583, -0.016938593238592148, -0.04175432026386261, 0.034905437380075455, -0.03336305916309357, -0.028772655874490738, 0.08945780247449875, 0.017480261623859406, -0.018379980698227882, 0.0020989624317735434, -0.04645489528775215, 0.037641316652297974, 0.008565695025026798, 0.08270072937011719, -0.012210476212203503, 0.027670959010720253, 0.01759043149650097, -0.010429399088025093, 0.01452404074370861, -0.01020906027406454, -0.019224613904953003, 0.04990687966346741, 0.010998609475791454, -0.01452404074370861, -0.03130656108260155, -0.057214803993701935, 0.0066744484938681126, -0.05626000091433525, -0.03606221824884415, 0.02080371417105198, 0.04127691686153412, 0.04061590135097504, 0.017370091751217842, -0.05390971153974533, -0.007551215589046478, -0.04083624109625816, -0.041827768087387085, -0.020509928464889526, -0.06628544628620148, 0.012439996935427189, -0.012807228602468967, 0.026936493813991547, -0.005054035689681768, -0.008198462426662445, 0.03290402144193649, -0.006697400473058224, -0.005311097949743271, 0.004686803091317415, 0.017856674268841743, 0.03666815161705017, 0.045389920473098755, -0.012623612768948078, 0.034060802310705185, 0.05071479082107544, 0.04428822547197342, 0.013569235801696777, -0.005563570652157068, -0.0013231841148808599, 0.03431786596775055, 0.006752485409379005, -0.021574901416897774, 0.0050127217546105385, -0.011558638885617256, -0.05592948943376541, -0.02853395603597164, 0.019555123522877693, -0.10576292127370834, -0.00829486083239317, -0.03888990730047226, -0.041497256606817245, 0.017966844141483307, -0.023429425433278084, -0.04377409815788269, 0.04101985692977905, 0.07858772575855255, 0.010750727728009224, 0.052844736725091934, 0.021831965073943138, -0.007766964845359325, 0.02364976517856121, 0.007734831888228655, -0.01553392969071865, 0.025761350989341736, -0.07127980142831802, 0.0044802348129451275, -0.025118693709373474, -0.011641265824437141, -0.020179418846964836, -0.022750046104192734, 0.021685071289539337, 0.04344359040260315, -0.008671274408698082, 0.01877475529909134, -0.001876327907666564, 0.025485927239060402, 0.0018418998224660754, -0.04175432026386261, 0.028497232124209404, -0.025981690734624863, -0.00683970283716917, 0.0011217801366001368, -0.030333394184708595, 0.054827794432640076, 0.031233113259077072, -0.015625737607479095, -0.012770505622029305, 0.014340423978865147, -0.012752143666148186, -0.010052986443042755, -0.05225716531276703, -0.013982372358441353, -0.03398735448718071, -0.042709123343229294, 0.04113002493977547, -0.07201426476240158, -0.02162998728454113, -0.04917241632938385, -0.005150434095412493, -0.032720405608415604, -0.002866707742214203, 0.028992995619773865, -0.001216457225382328, 0.08806232362985611, -0.009511318057775497, 0.012550165876746178, 0.027175195515155792, -0.01387220248579979, 0.01553392969071865, 0.012247199192643166, -0.05401988327503204, -0.00022880297910887748, 0.011889148503541946, 0.037641316652297974, 0.05728825181722641, -0.0645594522356987, 0.054644178599119186, -0.057214803993701935, -0.023741573095321655, -0.072234608232975, 0.04142381250858307, -0.059050966054201126, 0.055709149688482285, 0.013119376264512539, 0.025100331753492355, -0.004939275328069925, -0.0348503515124321, -0.036411087960004807, -0.0314534530043602, 0.039293862879276276, 0.03615402802824974, 0.012614431791007519, 0.0466017872095108, -0.04157070443034172, -0.009254255332052708, -0.032206278294324875, -0.028442148119211197, 0.009575583972036839, -0.03215119242668152, 0.010521207004785538, -0.040138497948646545, -0.05020066350698471, 0.02735881134867668, 0.025412479415535927, -0.0929097905755043, 0.036796685308218, 0.006105238106101751, 0.00459958566352725, 0.009153266437351704, 0.016644807532429695, 0.02735881134867668, -0.026752877980470657, -0.0018671470461413264, -0.02735881134867668, -0.002588988281786442, 0.012972483411431313, 0.04748314619064331, 0.04869501292705536, 0.04157070443034172, -0.018508510664105415, -0.02992943860590458, 0.00811583548784256, 0.019995803013443947, 0.01311019528657198, 0.013523331843316555, 0.006063924636691809, 0.016653988510370255, -0.048107441514730453, 0.059748705476522446, 0.05192665755748749, 0.05559898167848587, -0.04483907297253609, -0.03395063430070877, -0.021079137921333313, 0.030682263895869255, 0.013339716009795666, -0.031196389347314835, 0.021887049078941345, -0.03283057361841202, -0.007477769162505865, -0.023594679310917854, -0.035548094660043716, -0.008450934663414955, 0.004487120546400547, 0.014221074059605598, 0.04829105734825134, 0.04898879677057266, -0.02249298244714737, -0.010814993642270565, 0.03797182813286781, 0.07230805605649948, 0.015442120842635632, -0.06085040420293808, 0.012586889788508415, 0.025228863582015038, 0.01426697801798582, -0.03395063430070877, -0.008652912452816963, 0.024457676336169243, -0.023704849183559418, -0.008069931529462337, -0.003617238951846957, -0.07733913511037827, 0.05827977880835533, -0.036925215274095535, 0.00786795374006033, 0.06720352172851562, -0.015956247225403786, 0.016167405992746353, 0.07127980142831802, 0.03057209588587284, -0.00048342699301429093, 0.00507698766887188, 0.013064291328191757, 0.015846077352762222, -0.05963853746652603, -0.011026152409613132, 0.022180834785103798, 0.03518086299300194, -0.051632869988679886, 0.000059137320931768045, -0.025467565283179283, -0.01687432825565338, 0.07895495742559433, -0.08409621566534042, 0.03290402144193649, 0.04715263471007347, -0.031692154705524445, -0.06305380165576935, 0.036796685308218, 0.0334915928542614, -0.020050887018442154, -0.006151142064481974, -0.0389266312122345, -0.03881646320223808, -0.03530939295887947, -0.04208482801914215, -0.02010597288608551, -0.021079137921333313, -0.046050939708948135, -0.020748628303408623, -0.0008974241209216416, -0.009203760884702206, -0.013725309632718563, -0.03196757659316063, -0.03128819912672043, 0.007835820317268372, 0.030498648062348366, -0.05420349910855293, 0.07866117358207703, 0.034556567668914795, -0.011237310245633125, -0.022364450618624687, -0.03380373865365982, -0.04634472355246544, 0.037751488387584686, 0.0037388845812529325, -0.008473887108266354, -0.04105658084154129, 0.039991606026887894, 0.03077407367527485, -0.07153686881065369, 0.011347480118274689, -0.023043831810355186, -0.03073734976351261, 0.010943524539470673, -0.016993677243590355, 0.0238333810120821, 0.03376701474189758, 0.04491252079606056, -0.006031791679561138, 0.017278283834457397, -0.022511344403028488, 0.004356293939054012, 0.01926133781671524, -0.001651398022659123, 0.014762741513550282, 0.02772604487836361, 0.0050264932215213776, 0.01907772198319435, -0.005664559546858072, -0.0031077039893716574, -0.037604596465826035, -0.057545311748981476, -0.07983631640672684, -0.048915352672338486, -0.045389920473098755, 0.021850327029824257, -0.00981428474187851, -0.012899037450551987, -0.023447787389159203, -0.00304114306345582, -0.013119376264512539, 0.008744721300899982, 0.03486871346831322, -0.008097473531961441, -0.010567111894488335, -0.021868687123060226, -0.0029263829346746206, 0.016305116936564445, 0.06099729612469673, 0.02385174296796322, -0.00970411580055952, 0.025761350989341736, -0.01426697801798582, -0.03343650698661804, -0.011834063567221165, -0.04513285681605339, 0.023613041266798973, 0.07385043054819107, -0.06646905839443207, -0.014670933596789837, -0.034923799335956573, -0.0036883901339024305, -0.015956247225403786, 0.01325708907097578, -0.04939275234937668, -0.01860032044351101, -0.029635652899742126, 0.02958056703209877, 0.036759961396455765, -0.03714555501937866, -0.032426618039608, -0.0033555857371538877, 0.05379954352974892, 0.049613092094659805, 0.04612438753247261, 0.015846077352762222, -0.060446448624134064, 0.05159614980220795, 0.045573536306619644, -0.03617238998413086, -0.0730057954788208, -0.011301576159894466, -0.0022022465709596872, -0.008753901347517967, 0.0009800513507798314, -0.04652834311127663, 0.06463290005922318, 0.010016262531280518, 0.04480234906077385, 0.08152558654546738, -0.04652834311127663, 0.008281090296804905, -0.05104529857635498, -0.01311019528657198, -0.034042440354824066, -0.008652912452816963, 0.03907352313399315, 0.048107441514730453, -0.008455525152385235, 0.00028747410397045314, 0.03604385629296303, 0.009694934822618961, -0.024292420595884323, 0.011430107988417149, 0.0031099992338567972, 0.015304408967494965, 0.03789838030934334, -0.022015580907464027, 0.009024735540151596, -0.016452010720968246, -0.00784959178417921, 0.05861028656363487, 0.026495816186070442, -0.04443511739373207, 0.03600713238120079, -0.0031077039893716574, -0.06430238485336304, 0.05390971153974533, -0.017360910773277283, -0.000608228612691164, 0.007023319136351347, -0.011044513434171677, -0.0378616563975811, 0.03079243376851082, -0.031857408583164215, -0.0038903679233044386, -0.06959053128957748, 0.013964011333882809, -0.04652834311127663, -0.010126432403922081, -0.013220365159213543, -0.058389946818351746, 0.011283214204013348, -0.011274034157395363, 0.012357369065284729, 0.009795923717319965, 0.08079112321138382, -0.02756078913807869, -0.033528316766023636, -0.007913857698440552, 0.009906093589961529, -0.0355297327041626, 0.04417805373668671, -0.01020906027406454, -0.03231645002961159, 0.07304251939058304, -0.04851139709353447, 0.07498884946107864, 0.013964011333882809, 0.009144086390733719, -0.011567819863557816, 0.029121527448296547, -0.01311019528657198, 0.055856045335531235, -0.017819950357079506, 0.01710384711623192, 0.03108621947467327, 0.05288146063685417, 0.03633764386177063, -0.08872333914041519, 0.035419560968875885, 0.05207354947924614, 0.00304343830794096, -0.0784408375620842, -0.029194973409175873, 0.010411038063466549, -0.018820658326148987, 0.017718961462378502, 0.011007790453732014, -0.00913949590176344, 0.04010177403688431 ]
730,310
mmengine.utils.misc
import_modules_from_strings
Import modules from the given list of strings. Args: imports (list | str | None): The given module names to be imported. allow_failed_imports (bool): If True, the failed imports will return None. Otherwise, an ImportError is raise. Defaults to False. Returns: list[module] | module | None: The imported modules. Examples: >>> osp, sys = import_modules_from_strings( ... ['os.path', 'sys']) >>> import os.path as osp_ >>> import sys as sys_ >>> assert osp == osp_ >>> assert sys == sys_
def import_modules_from_strings(imports, allow_failed_imports=False): """Import modules from the given list of strings. Args: imports (list | str | None): The given module names to be imported. allow_failed_imports (bool): If True, the failed imports will return None. Otherwise, an ImportError is raise. Defaults to False. Returns: list[module] | module | None: The imported modules. Examples: >>> osp, sys = import_modules_from_strings( ... ['os.path', 'sys']) >>> import os.path as osp_ >>> import sys as sys_ >>> assert osp == osp_ >>> assert sys == sys_ """ if not imports: return single_import = False if isinstance(imports, str): single_import = True imports = [imports] if not isinstance(imports, list): raise TypeError( f'custom_imports must be a list but got type {type(imports)}') imported = [] for imp in imports: if not isinstance(imp, str): raise TypeError( f'{imp} is of type {type(imp)} and cannot be imported.') try: imported_tmp = import_module(imp) except ImportError: if allow_failed_imports: warnings.warn(f'{imp} failed to import and is ignored.', UserWarning) imported_tmp = None else: raise ImportError(f'Failed to import {imp}') imported.append(imported_tmp) if single_import: imported = imported[0] return imported
(imports, allow_failed_imports=False)
[ -0.010771770030260086, 0.011941597796976566, -0.0065744295716285706, -0.0014026230201125145, -0.008960877545177937, 0.04106561839580536, 0.021768147125840187, 0.05907160043716431, 0.03994258493185043, 0.04072871059179306, -0.04129022732377052, 0.01255926676094532, -0.03971797972917557, -0.0017781375208869576, -0.03739704191684723, -0.03509481996297836, 0.03576863929629326, 0.038520075380802155, 0.014599445275962353, -0.05746191740036011, -0.004337719641625881, 0.03415895998477936, 0.030902158468961716, 0.046680789440870285, 0.002873095916584134, 0.04226352274417877, 0.06161714717745781, -0.045258279889822006, -0.010771770030260086, -0.02682180143892765, 0.1002495214343071, -0.011249059811234474, -0.013888190500438213, -0.005961440037935972, 0.018623651936650276, -0.04765408858656883, -0.00426986999809742, 0.02644745633006096, 0.01866108551621437, -0.044359851628541946, 0.05210879072546959, 0.02985399402678013, 0.10339401662349701, -0.03290490433573723, -0.0271587111055851, 0.019241319969296455, -0.06648362427949905, 0.03428997844457626, 0.025885939598083496, -0.007973543368279934, 0.013803962618112564, 0.03137008845806122, 0.0010563541436567903, 0.0014271893305703998, 0.026428738608956337, 0.08961813151836395, 0.037191152572631836, 0.015900293365120888, -0.03518840670585632, -0.04024206101894379, 0.04349885880947113, -0.012531190179288387, -0.03908159211277962, -0.02601695992052555, 0.022179925814270973, 0.003090683836489916, 0.023209374397993088, -0.014945713803172112, 0.0013008479727432132, -0.018436478450894356, -0.0683927834033966, -0.019222602248191833, -0.014767900109291077, -0.04428498446941376, 0.06045667827129364, 0.053306691348552704, 0.0038229958154261112, -0.03704141452908516, 0.024950077757239342, 0.004941350780427456, 0.013925625011324883, -0.0009463903261348605, -0.03837033733725548, -0.0008399360231123865, -0.02906787022948265, -0.030097318813204765, -0.057986002415418625, -0.013307956047356129, 0.008946839720010757, -0.0103599913418293, -0.0213563684374094, -0.019690534099936485, 0.010771770030260086, 0.043461427092552185, -0.03230595216155052, -0.042825039476156235, 0.011848011054098606, 0.0063357846811413765, 0.013457694090902805, 0.007496253587305546, -0.00700024701654911, 0.003759825136512518, -0.0600823312997818, -0.03213749825954437, -0.032081346958875656, -0.06640876084566116, -0.012709003873169422, -0.04567005857825279, 0.026952821761369705, -0.00042201520409435034, -0.045707494020462036, -0.09807832539081573, -0.004871161188930273, -0.01648988574743271, 0.021113043650984764, -0.0639006495475769, -0.009035746566951275, -0.021992754191160202, 0.07876213639974594, -0.0034439717419445515, -0.009732963517308235, 0.016237203031778336, 0.0003108816163148731, -0.0006223481614142656, 0.08205636590719223, 0.024519581347703934, 0.007458819076418877, -0.04799099639058113, 0.09807832539081573, -0.0031515148002654314, 0.04469676315784454, -0.012493755668401718, 0.006040988489985466, 0.007472856901586056, -0.06405038386583328, -0.0026414701715111732, -0.048215605318546295, 0.07572994381189346, 0.02949836663901806, -0.04200148209929466, 0.0118012186139822, -0.03428997844457626, 0.0027093200478702784, 0.032324668020009995, -0.027139995247125626, -0.00011398505012039095, 0.06360117346048355, 0.0019278754480183125, 0.004162245895713568, 0.03166956454515457, 0.03275516629219055, -0.043349120765924454, -0.0944846123456955, 0.007285684812813997, -0.029722973704338074, -0.008268339559435844, -0.016873588785529137, -0.002458977047353983, 0.004195000976324081, -0.03425254300236702, 0.00045944968587718904, -0.039044156670570374, -0.004709724802523851, 0.059782855212688446, 0.05184674635529518, 0.01954079605638981, 0.019334906712174416, -0.021637126803398132, -0.012138128280639648, -0.02395806461572647, 0.03176315128803253, 0.023621153086423874, 0.029124021530151367, 0.006597826257348061, 0.03608683496713638, -0.034495867788791656, -0.03443971648812294, 0.04376090317964554, -0.03324181213974953, -0.015179679729044437, -0.014496500603854656, 0.049188900738954544, -0.021749429404735565, -0.015179679729044437, 0.03470175713300705, 0.0427127368748188, 0.0003345706209074706, 0.04742947965860367, -0.026410022750496864, -0.02349013276398182, -0.041589703410863876, 0.03505738452076912, 0.07243570685386658, 0.0024730151053518057, -0.05300721526145935, -0.004211378283798695, -0.07591711729764938, -0.05210879072546959, -0.029816558584570885, 0.04638131335377693, -0.08295479416847229, 0.00771150179207325, 0.004545948933809996, -0.014384197071194649, 0.05925877392292023, -0.033859483897686005, -0.04173944145441055, -0.04761665314435959, -0.027682794257998466, -0.018005982041358948, -0.05712500959634781, -0.010996377095580101, -0.017444465309381485, 0.03971797972917557, -0.0040663196705281734, 0.02700897306203842, 0.0744946077466011, 0.027851250022649765, 0.0227975957095623, -0.00919952243566513, 0.025904657319188118, 0.08317940682172775, 0.002295201178640127, 0.0455951914191246, 0.04260043427348137, 0.008815818466246128, 0.005095767788589001, 0.04630644619464874, 0.017276009544730186, 0.07202392816543579, -0.018633009865880013, -0.023284243419766426, -0.0021934262476861477, -0.007224853616207838, 0.0025689408648759127, -0.031351372599601746, 0.04125279188156128, 0.046605922281742096, 0.043087080121040344, 0.025043664500117302, 0.004370475187897682, 0.057536788284778595, -0.0629647895693779, -0.02654104307293892, 0.0006825942546129227, 0.030527815222740173, -0.05746191740036011, -0.07913648337125778, -0.027607925236225128, -0.008240263909101486, 0.03423382714390755, 0.08055899292230606, 0.010154101066291332, 0.014505859464406967, -0.046680789440870285, 0.006527636665850878, 0.013663583435118198, 0.01466495543718338, -0.006078423000872135, -0.042825039476156235, -0.0026133942883461714, -0.02861865609884262, -0.015245189890265465, -0.030452946200966835, -0.00956918764859438, -0.03320438042283058, 0.009232277050614357, 0.040129758417606354, 0.06161714717745781, 0.017603561282157898, 0.0841526985168457, 0.034757908433675766, 0.05106062442064285, -0.008843895047903061, -0.02914273925125599, 0.02045794017612934, 0.021318932995200157, 0.0004948369460180402, 0.00802969466894865, 0.04248812794685364, -0.014973790384829044, 0.020064879208803177, -0.07419513165950775, -0.016620906069874763, 0.020944587886333466, 0.0012365075526759028, -0.021824298426508904, 0.013167576864361763, -0.046605922281742096, 0.027027690783143044, 0.037359606474637985, -0.019334906712174416, 0.07075116038322449, -0.06577236950397491, 0.0022870125249028206, 0.01797790639102459, -0.007725539617240429, -0.08003490418195724, 0.03668578714132309, -0.02242325060069561, 0.029573235660791397, -0.00842275656759739, 0.03311079367995262, 0.005811702460050583, 0.0031140802893787622, -0.09987518191337585, 0.018623651936650276, -0.06124280020594597, -0.007047039922326803, -0.03801470994949341, -0.0009481450542807579, 0.044247549027204514, -0.010949583724141121, -0.06865482777357101, 0.056638360023498535, 0.018885692581534386, -0.007234212476760149, 0.008062450215220451, -0.005984836723655462, -0.03415895998477936, 0.008928121998906136, -0.0019138375064358115, 0.021655844524502754, -0.0015640591736882925, -0.002589997835457325, 0.033148229122161865, 0.02393934689462185, 0.006597826257348061, -0.008558456785976887, 0.01108060497790575, -0.0154230035841465, -0.005329733248800039, -0.008418077602982521, -0.010734335519373417, 0.01174506638199091, -0.05274517461657524, -0.008591212332248688, -0.04155226796865463, -0.007842522114515305, -0.018951203674077988, -0.00035504260449670255, -0.02036435529589653, 0.03477662801742554, 0.005947402212768793, -0.07438230514526367, 0.011941597796976566, 0.02800098806619644, 0.05828547850251198, -0.023433981463313103, 0.04293734207749367, 0.029985014349222183, -0.01884825900197029, -0.043985508382320404, -0.018080851063132286, 0.013888190500438213, 0.046605922281742096, -0.02637258730828762, 0.013130142353475094, 0.023115787655115128, -0.09740450233221054, 0.07756423205137253, -0.037191152572631836, 0.025698767974972725, -0.025492876768112183, -0.0337284617125988, -0.010547162964940071, 0.038969289511442184, -0.031613413244485855, 0.017603561282157898, -0.0014962091809138656, 0.014786617830395699, 0.044434722512960434, 0.035469166934490204, -0.02538057416677475, 0.04548288881778717, -0.011520459316670895, -0.005755550693720579, 0.01613425835967064, -0.014384197071194649, -0.001303187687881291, -0.0081139225512743, -0.031987760215997696, 0.016031313687562943, -0.00011647093197098002, 0.025586463510990143, 0.02564261481165886, 0.04316195100545883, 0.02655976079404354, -0.05562762916088104, 0.01740703172981739, 0.0009668623097240925, -0.04009232297539711, -0.02180558256804943, 0.002536185784265399, -0.01102445274591446, -0.07344643771648407, -0.032605428248643875, 0.02931119315326214, 0.018370969220995903, -0.04746691510081291, -0.018932485952973366, 0.008240263909101486, -0.028450200334191322, 0.00209633051417768, -0.0783877894282341, 0.06056898087263107, -0.0031070613767951727, -0.012241072952747345, -0.03653604909777641, -0.04027949646115303, -0.014955072663724422, 0.024706752970814705, 0.0087503083050251, -0.1298227608203888, -0.0014950393233448267, 0.04698026552796364, -0.03786497190594673, 0.021580975502729416, -0.008165394887328148, -0.05600197613239288, -0.028412766754627228, -0.06116793304681778, 0.01242824550718069, -0.0192787554115057, -0.006106498651206493, -0.009311825968325138, -0.014861486852169037, -0.016265278682112694, -0.02573620155453682, -0.02861865609884262, -0.03554403409361839, 0.010434860363602638, 0.0006802545976825058, -0.04042923450469971, 0.027926119044423103, -0.06659593433141708, 0.03404665365815163, -0.03290490433573723, 0.0009838248370215297, -0.05839778110384941, 0.024613168090581894, 0.012577983550727367, 0.0006954623386263847, 0.025436725467443466, 0.002753773471340537, -0.027046408504247665, -0.049376074224710464, 0.03874468058347702, -0.034477151930332184, -0.010500370524823666, -0.0803343802690506, -0.013064632192254066, 0.058173175901174545, 0.015011224895715714, 0.024912642315030098, 0.04769152030348778, 0.008965556509792805, 0.018146362155675888, -0.019596947357058525, 0.036910392343997955, 0.03911902755498886, 0.0016447772504761815, 0.002239049645140767, 0.002994758076965809, 0.020738698542118073, 0.06232840195298195, 0.044172681868076324, -0.0032684975303709507, 0.025867221876978874, 0.05738705024123192, 0.03831418603658676, -0.049450941383838654, 0.04233838990330696, -0.02036435529589653, -0.02017718181014061, 0.03093959391117096, 0.04986272007226944, -0.0009382015559822321, 0.04035436362028122, -0.024425994604825974, -0.018679803237318993, -0.02931119315326214, 0.03283003345131874, 0.028506353497505188, -0.03618042171001434, -0.0023197676055133343, 0.06857995688915253, -0.014365479350090027, 0.026784365996718407, -0.028899414464831352, 0.000536950770765543, -0.006349822971969843, 0.07696527987718582, 0.021655844524502754, 0.03138880804181099, 0.014824052341282368, 0.02010231278836727, 0.007814446464180946, 0.020776133984327316, -0.024706752970814705, 0.058248043060302734, -0.007884636521339417, -0.0335974395275116, 0.02339654602110386, 0.018137002363801003, -0.020514091476798058, 0.043798334896564484, -0.027402035892009735, -0.045333150774240494, -0.05918390676379204, -0.022123774513602257, 0.02277887798845768, 0.02349013276398182, 0.008062450215220451, -0.006242198869585991, 0.00695345364511013, 0.0059286849573254585, 0.057199876755476, 0.011848011054098606, 0.03148239478468895, -0.007477536331862211, -0.057536788284778595, -0.08063385635614395, -0.04563262686133385, -0.056900400668382645, -0.021113043650984764, 0.005123843904584646, 0.053418997675180435, 0.04054153710603714, 0.07318440079689026, 0.05723731219768524, 0.038258034735918045, -0.038707248866558075, -0.018810823559761047, 0.03545044735074043, 0.03183802217245102, -0.00585381593555212, -0.004686328116804361, 0.03953080624341965, 0.021543540060520172, -0.01802469976246357, 0.006541674491018057, 0.01868916116654873, -0.00963937770575285, 0.03730345517396927, 0.004592742305248976, -0.0523708313703537, -0.005966119468212128, -0.03732217103242874, -0.04817816987633705, 0.0732218325138092, -0.0007539537036791444, -0.050461672246456146, -0.033672310411930084, -0.007042360492050648, -0.11784372478723526, -0.0028169441502541304, -0.006288991775363684, -0.06738205254077911, 0.0030953632667660713, 0.016714492812752724, -0.018361609429121017, 0.0012388471513986588, -0.005778946913778782, -0.02384576015174389, -0.06786870211362839, -0.018005982041358948, -0.0022507477551698685, 0.012643493711948395, -0.026522325351834297, 0.0019442531047388911, -0.06019463762640953, 0.01821187138557434, -0.010818563401699066, -0.011922880075871944, 0.08115794509649277, 0.04458446055650711, -0.040578972548246384, 0.04181430861353874, 0.043798334896564484, 0.039418503642082214, -0.007107871118932962, -0.029086587950587273, 0.010930866934359074, 0.015563382767140865, -0.05064884573221207, -0.008085846900939941, 0.024968795478343964, -0.013345390558242798, 0.03356000781059265, 0.003450990654528141, 0.0491514652967453, 0.07108806818723679, 0.04975041747093201, 0.011604687198996544, -0.04357372969388962, -0.021412519738078117, 0.052969783544540405, -0.01748190075159073, -0.009620659984648228, -0.0031772509682923555, -0.030452946200966835, -0.0061532920226454735, -0.025904657319188118, 0.04061640426516533, 0.033840764313936234, 0.011819935403764248, -0.06479907780885696, 0.017921755090355873, 0.04241326078772545, 0.0023291262332350016, -0.019877705723047256, -0.03369102627038956, -0.01511416956782341, -0.017734583467245102, -0.009372656233608723, -0.046867962926626205, -0.013513845391571522, 0.08437730371952057, -0.03820188343524933, -0.0065603917464613914, 0.032699014991521835, -0.032249800860881805, -0.0313139371573925, 0.040504101663827896, 0.0007036511669866741, -0.044809065759181976, -0.0048430850729346275, -0.021449953317642212, -0.03176315128803253, -0.012456321157515049, 0.015451079234480858, 0.04248812794685364, 0.019671816378831863, -0.018183795735239983, -0.005769588518887758, 0.044322419911623, -0.06801844388246536, 0.05360616743564606, -0.018810823559761047, 0.012961686588823795, -0.02429497428238392, -0.007271646987646818, -0.006485522724688053, 0.011651480570435524, 0.011286494322121143, -0.06861739605665207, -0.02663462981581688, 0.06667079776525497, 0.029124021530151367, -0.008390001952648163, 0.06861739605665207, -0.017725223675370216, 0.01937234029173851, -0.014477782882750034, 0.012802590616047382, 0.0024776943027973175, -0.015806706622242928, 0.02869352512061596, 0.04761665314435959, -0.010444218292832375, -0.054392293095588684, 0.07490638643503189, 0.042637865990400314, -0.09396053105592728, 0.0005986591568216681, 0.03782753646373749, -0.018464554101228714, 0.00876434613019228, -0.023883195593953133, -0.015451079234480858, -0.048477645963430405, 0.025436725467443466, 0.0369478277862072, 0.04716743901371956, 0.03863237798213959, -0.0050910888239741325, 0.007533688098192215, -0.06116793304681778, -0.004063980188220739, 0.015076735056936741, -0.04540801793336868, -0.021038174629211426, 0.007281005382537842, -0.04701770097017288, 0.02575491927564144, 0.03181930258870125, -0.001960630528628826, 0.05776139348745346, -0.025268271565437317, 0.05446716025471687, 0.04222608730196953, 0.01804341748356819, 0.04162713512778282, -0.01861429214477539, 0.04331168904900551, -0.027233580127358437, -0.028899414464831352, -0.04840277507901192, 0.022367099300026894, 0.00982654932886362, -0.015460438095033169, -0.026653345674276352, 0.020027443766593933, -0.01909158192574978, -0.05469176918268204, -0.061579711735248566, 0.02861865609884262, -0.029442215338349342, 0.007842522114515305, -0.012072618119418621, 0.011258418671786785, 0.08063385635614395, 0.029386062175035477, 0.013523204252123833, -0.10047413408756256, 0.017734583467245102, 0.007187419105321169, -0.02249811962246895, 0.0010364670306444168, 0.022367099300026894, -0.03840777277946472, 0.021056892350316048, -0.012306584045290947, -0.055215850472450256, -0.048739686608314514, -0.0854254737496376, 0.03863237798213959, 0.03399050235748291, 0.041402529925107956, -0.038782116025686264, 0.006274953950196505, -0.02772022970020771, 0.02861865609884262, 0.02214249223470688, -0.03316694498062134, 0.03030320815742016, 0.010874714702367783, 0.042825039476156235, -0.0029105304274708033, 0.022123774513602257, -0.05158470571041107, 0.02538057416677475, -0.018717236816883087, -0.07913648337125778, 0.010331914760172367, 0.041589703410863876, -0.014926997013390064, -0.004567006137222052, 0.03552531823515892, -0.02869352512061596, -0.001612022053450346, -0.031257785856723785, 0.00400314899161458, 0.05244569852948189, 0.005666643846780062, -0.02403293363749981, 0.04701770097017288, -0.042188651859760284, -0.002053047064691782, 0.0008159545832313597, 0.018820181488990784, -0.0427127368748188, -0.0047331214882433414, -0.01357935555279255, -0.04027949646115303, -0.021899167448282242, 0.05326925963163376 ]
730,311
mmengine.registry.utils
init_default_scope
Initialize the given default scope. Args: scope (str): The name of the default scope.
def init_default_scope(scope: str) -> None: """Initialize the given default scope. Args: scope (str): The name of the default scope. """ never_created = DefaultScope.get_current_instance( ) is None or not DefaultScope.check_instance_created(scope) if never_created: DefaultScope.get_instance(scope, scope_name=scope) return current_scope = DefaultScope.get_current_instance() # type: ignore if current_scope.scope_name != scope: # type: ignore print_log( 'The current default scope ' # type: ignore f'"{current_scope.scope_name}" is not "{scope}", ' '`init_default_scope` will force set the current' f'default scope to "{scope}".', logger='current', level=logging.WARNING) # avoid name conflict new_instance_name = f'{scope}-{datetime.datetime.now()}' DefaultScope.get_instance(new_instance_name, scope_name=scope)
(scope: str) -> NoneType
[ 0.02679608017206192, 0.02366987057030201, -0.04205198213458061, -0.03410247713327408, -0.03261976316571236, -0.022740939632058144, 0.050555270165205, 0.05409235507249832, 0.05162711441516876, 0.009110667742788792, -0.008753386326134205, 0.011316877789795399, -0.07284960895776749, -0.03094054013490677, -0.048018574714660645, -0.02559918910264969, -0.029690057039260864, -0.00023181400320027024, -0.0409444123506546, -0.04573197662830353, 0.04355256259441376, 0.014469883404672146, -0.023169677704572678, 0.02420579269528389, 0.028135884553194046, 0.061380889266729355, -0.011388334445655346, 0.025349091738462448, -0.008748920634388924, -0.014496679417788982, 0.03354869410395622, -0.02038288488984108, -0.029404232278466225, 0.0342632532119751, 0.07006281614303589, -0.08346085995435715, -0.034870631992816925, 0.054521091282367706, -0.11090004444122314, -0.05559293553233147, 0.0322088897228241, 0.01717628724873066, -0.04755410924553871, -0.03687140718102455, -0.007435912266373634, 0.04830440133810043, 0.09475094079971313, 0.018417838960886, 0.041980527341365814, 0.00268630706705153, 0.04480304569005966, -0.024116473272442818, 0.03513859212398529, 0.02149045653641224, -0.04601780325174332, 0.0008128144545480609, 0.005408342462033033, -0.016586773097515106, -0.05084109678864479, 0.01428231131285429, 0.02642093598842621, 0.0005322929937392473, 0.04755410924553871, -0.055057015269994736, -0.035281505435705185, -0.015488134697079659, -0.014684252440929413, -0.03127995878458023, 0.0027041712310165167, 0.06184535473585129, -0.061952538788318634, -0.0067749423906207085, -0.011281149461865425, -0.04705391824245453, 0.008168338797986507, 0.008891833014786243, -0.02606365457177162, 0.03438830375671387, 0.0027198020834475756, 0.02708190493285656, 0.00968231726437807, 0.007275135722011328, -0.0478399358689785, 0.008400571532547474, 0.02022210881114006, 0.016551045700907707, -0.007400184404104948, 0.02474171482026577, 0.0791020318865776, -0.11868876963853836, -0.004296305123716593, 0.052055854350328445, 0.037014320492744446, 0.008199600502848625, 0.03808616101741791, -0.052091579884290695, 0.027635691687464714, -0.03715723007917404, 0.001440289313904941, -0.03862208500504494, -0.07817310094833374, -0.030797628685832024, -0.06606127321720123, -0.03451335057616234, -0.044410038739442825, -0.04037276282906532, 0.04866168275475502, -0.010763091966509819, -0.01360347680747509, 0.02622443065047264, -0.06548961997032166, -0.06598981469869614, 0.03872926905751228, 0.0314050056040287, 0.04433858022093773, 0.013755321502685547, -0.03058326058089733, 0.018194539472460747, 0.08689075708389282, -0.04755410924553871, -0.07688688486814499, 0.039015091955661774, -0.022544436156749725, -0.009575133211910725, 0.006319408770650625, -0.011754547245800495, 0.002007473027333617, -0.00669008819386363, 0.05352070555090904, 0.02309822104871273, 0.09889540076255798, -0.004662517923861742, -0.057272154837846756, 0.005770089570432901, -0.013960758224129677, -0.051519930362701416, -0.015068328939378262, 0.08646202087402344, -0.024187928065657616, 0.02901122346520424, 0.00787358172237873, -0.05630749836564064, 0.00411096541211009, 0.01648852229118347, 0.02334831841289997, 0.04558906331658363, -0.03451335057616234, 0.028082292526960373, 0.038193345069885254, -0.02366987057030201, 0.03135141357779503, 0.04619644209742546, 0.00039607955841347575, 0.06366749107837677, -0.007083097472786903, 0.0012460177531465888, -0.035531602799892426, -0.07006281614303589, 0.013272992335259914, -0.02149045653641224, -0.011227557435631752, 0.022383660078048706, 0.015729298815131187, -0.054270993918180466, 0.028135884553194046, 0.019471818581223488, -0.07960222661495209, -0.03263762593269348, 0.02786792442202568, 0.0034678594674915075, -0.03972965478897095, -0.0013453864958137274, 0.019078809767961502, -0.01393396221101284, 0.06491797417402267, 0.004390091169625521, 0.0032869859132915735, 0.0005261522019281983, 0.028957631438970566, 0.026742488145828247, -0.03094054013490677, -0.01263881754130125, -0.0037380531430244446, 0.027153361588716507, -0.024312976747751236, 0.029993746429681778, 0.0191145371645689, -0.007426980417221785, 0.030761901289224625, 0.01012891810387373, 0.005457468330860138, 0.020775893703103065, -0.0018288325518369675, 0.03776460886001587, 0.05037663131952286, 0.03887218236923218, 0.04869741201400757, 0.011147169396281242, -0.011343673802912235, 0.04698245972394943, 0.017578229308128357, 0.03270908072590828, 0.0061854287050664425, -0.007578824646770954, -0.04894750565290451, 0.05034090206027031, 0.01733706332743168, 0.021186767145991325, -0.0658111721277237, 0.03340578079223633, -0.09910976886749268, -0.0014927650336176157, -0.05469973385334015, 0.017078034579753876, -0.03576383739709854, 0.024973947554826736, 0.04712537303566933, 0.014050078578293324, 0.04537469521164894, 0.03972965478897095, 0.03229820728302002, -0.00877571664750576, -0.029493553563952446, -0.04044421762228012, 0.004285139963030815, -0.006859796587377787, 0.05309196934103966, -0.01615803688764572, -0.004240479785948992, 0.014961144886910915, 0.029529280960559845, -0.010914936661720276, -0.0006978146266192198, -0.04834013059735298, 0.027975108474493027, -0.045767705887556076, -0.0007430329569615424, -0.02022210881114006, -0.018596479669213295, -0.05938011407852173, 0.01709589920938015, -0.004917080979794264, 0.011039985343813896, 0.038943637162446976, 0.01087027695029974, 0.004684848245233297, -0.050662457942962646, -0.003043588250875473, 0.04837585613131523, -0.06702592968940735, 0.0035571795888245106, 0.0024205793160945177, -0.05269895866513252, -0.03024384379386902, -0.02388424053788185, -0.00366213102824986, 0.012433381751179695, 0.009753772988915443, 0.014871824532747269, 0.012344061397016048, 0.01574716344475746, 0.04762556776404381, -0.0561288557946682, 0.01019144244492054, -0.0160329882055521, 0.01121862605214119, -0.000013502712135959882, -0.008029892109334469, 0.01017357874661684, -0.007681543007493019, 0.04330246523022652, 0.04705391824245453, 0.0451245978474617, -0.02831452526152134, 0.02338404580950737, -0.07552921772003174, 0.023044629022479057, 0.02161550521850586, -0.045803435146808624, 0.008212998509407043, -0.005899603944271803, 0.03365587815642357, 0.01965045928955078, 0.04951915517449379, -0.021883465349674225, 0.005211837589740753, -0.006381933111697435, -0.04787566512823105, -0.03090481273829937, -0.05355643481016159, -0.0004345989436842501, 0.04984071105718613, 0.009485812857747078, 0.03178014978766441, -0.01574716344475746, 0.005319022107869387, 0.021240359172225, 0.017640752717852592, 0.01072736456990242, 0.04541042447090149, 0.0003067592915613204, 0.00440572202205658, 0.04330246523022652, 0.03274480998516083, 0.021008126437664032, -0.0037224222905933857, 0.005528924521058798, -0.0059799919836223125, 0.03808616101741791, -0.03395956754684448, -0.016211628913879395, 0.010057462379336357, 0.03358441963791847, -0.005345818120986223, 0.005930865649133921, 0.03297704458236694, 0.0423378087580204, -0.09875249117612839, 0.05227022245526314, 0.05169857293367386, -0.02777860313653946, 0.020365022122859955, -0.021812008693814278, 0.013281923718750477, -0.05284187197685242, 0.0015162115450948477, -0.0033539761789143085, 0.03737160190939903, -0.02075803093612194, 0.05244886130094528, 0.004450382199138403, -0.029529280960559845, 0.00863280426710844, 0.02745705097913742, 0.0314764641225338, 0.013147943653166294, 0.015005805529654026, -0.026992585510015488, -0.010218238458037376, -0.06613272428512573, 0.021686961874365807, 0.002404948230832815, 0.022258611395955086, -0.002791258506476879, 0.03004733845591545, 0.02458093874156475, 0.05963021144270897, -0.02404501661658287, -0.001319707022048533, -0.050412360578775406, -0.06941971182823181, 0.05802244693040848, -0.03395956754684448, 0.018953761085867882, 0.012888914905488491, -0.047161102294921875, 0.042266350239515305, -0.005033197347074747, -0.03947955742478371, -0.006113972514867783, -0.015773959457874298, 0.06134516000747681, -0.0630243793129921, 0.009325035847723484, 0.043874114751815796, 0.00044688046909868717, 0.05516419932246208, 0.014041146263480186, 0.016908327117562294, -0.07474320381879807, 0.006663292180746794, -0.07467174530029297, -0.0010109938448294997, 0.02572423778474331, -0.02170482464134693, 0.019668323919177055, 0.007025039289146662, -0.04080149903893471, 0.04655372351408005, -0.03847917169332504, -0.01655997708439827, -0.0019549974240362644, 0.02543841302394867, 0.03045821189880371, -0.027224818244576454, -0.0027265010867267847, 0.033102091401815414, -0.03851490095257759, 0.04655372351408005, 0.02313395030796528, 0.03765742480754852, -0.035031408071517944, 0.030601123347878456, 0.033512964844703674, 0.030672580003738403, 0.024509482085704803, -0.04730401560664177, -0.014550271444022655, 0.007958436384797096, 0.03086908534169197, 0.010245034471154213, -0.011254353448748589, 0.04212343692779541, -0.025134723633527756, -0.025795694440603256, 0.02679608017206192, 0.019293177872896194, -0.009628725238144398, -0.023419775068759918, -0.003615237772464752, -0.012594157829880714, -0.021347545087337494, -0.01848929561674595, 0.030690444633364677, 0.04273081570863724, 0.046089258044958115, 0.10582665354013443, 0.0072394078597426414, 0.02843957394361496, -0.031869471073150635, -0.021061718463897705, -0.013496292755007744, 0.068240687251091, 0.07988804578781128, 0.002144803060218692, 0.022580163553357124, -0.03153005614876747, -0.0030346561688929796, 0.012978235259652138, -0.03780033811926842, -0.01303182728588581, 0.03669276461005211, 0.014818232506513596, -0.011343673802912235, 0.014898620545864105, -0.007864649407565594, 0.0026773749850690365, 0.00116897898260504, -0.018721528351306915, 0.021561913192272186, 0.011406198143959045, -0.05820108577609062, -0.021383272483944893, 0.051805756986141205, -0.07288534194231033, 0.03153005614876747, -0.035781700164079666, 0.07245659828186035, -0.03369160369038582, 0.002867180621251464, -0.0451245978474617, -0.010593383572995663, 0.01611337624490261, 0.012549498118460178, 0.008579212240874767, -0.044445764273405075, -0.05380652844905853, 0.026331614702939987, 0.017417453229427338, -0.006064846180379391, 0.015854347497224808, 0.0573793388903141, 0.052591774612665176, 0.0033271799329668283, -0.0218656025826931, 0.05552148073911667, -0.00529222609475255, -0.048232946544885635, 0.03694286197423935, -0.024312976747751236, 0.05191294103860855, 0.06209545210003853, 0.003740286221727729, -0.02929704822599888, -0.015577455051243305, -0.04601780325174332, 0.004823294468224049, -0.012531633488833904, 0.026278022676706314, 0.030315298587083817, -0.01758716069161892, 0.04405275732278824, -0.007301931735128164, 0.04719683155417442, -0.057522252202034, -0.05477118864655495, -0.059987492859363556, -0.012951439246535301, 0.015148717910051346, 0.0076234848238527775, -0.020311428233981133, 0.024545209482312202, -0.02679608017206192, -0.016676094383001328, -0.02231220342218876, -0.030726172029972076, 0.03933664783835411, 0.03153005614876747, -0.028868310153484344, -0.014800368808209896, 0.01845356822013855, -0.01611337624490261, -0.03679995238780975, 0.0451960563659668, 0.03965819999575615, -0.008114746771752834, -0.0615595281124115, -0.021669097244739532, 0.021758416667580605, -0.010638044215738773, 0.008847172372043133, -0.0424092635512352, 0.03460267186164856, -0.04080149903893471, 0.007096495479345322, 0.006868728436529636, -0.029404232278466225, -0.02318754233419895, 0.005582517012953758, -0.019221721217036247, -0.0024496084079146385, -0.007922708056867123, -0.0028292194474488497, 0.014050078578293324, 0.015577455051243305, -0.0355137400329113, 0.025349091738462448, 0.007962902076542377, -0.01857861503958702, 0.023562686517834663, 0.034084614366292953, 0.015175513923168182, -0.008503289893269539, -0.003157471539452672, 0.03397743031382561, 0.037050046026706696, -0.008539017289876938, -0.06674010306596756, 0.014201922342181206, -0.014782504178583622, 0.007078631315380335, -0.05009080842137337, 0.012951439246535301, -0.027546370401978493, 0.01033435482531786, -0.02888617478311062, 0.00324232573620975, -0.001584318233653903, -0.03247684985399246, -0.014577067457139492, 0.04901896417140961, -0.02474171482026577, -0.039015091955661774, -0.02325899712741375, -0.07681543380022049, -0.0053815459832549095, -0.018846577033400536, 0.008798046037554741, 0.0437312051653862, 0.01594366878271103, 0.010137850418686867, 0.036228299140930176, 0.0053011579439044, -0.009601929225027561, 0.01362134050577879, -0.09367910027503967, -0.02066870965063572, -0.012710274197161198, -0.02129395119845867, 0.051877211779356, 0.01352308876812458, -0.055128470063209534, 0.047446925193071365, 0.021025991067290306, 0.006247952580451965, 0.03772887960076332, -0.003005627077072859, 0.00009580994083080441, -0.017247743904590607, 0.01791764609515667, 0.02417006529867649, -0.007802125532180071, -0.034424033015966415, -0.050197992473840714, -0.018140947446227074, 0.04344537854194641, -0.02840384468436241, 0.048232946544885635, -0.012281537055969238, -0.021883465349674225, -0.024259384721517563, 0.08310357481241226, 0.02202637866139412, -0.06145234405994415, -0.001493881456553936, 0.01877512037754059, 0.03646053373813629, -0.07167058438062668, 0.02272307686507702, -0.04133741930127144, -0.008056688122451305, 0.09503676742315292, -0.013121147640049458, 0.05552148073911667, 0.03467412665486336, -0.01093280129134655, -0.06198826804757118, 0.005930865649133921, 0.04158751666545868, -0.007123291492462158, -0.03687140718102455, -0.042016252875328064, 0.01763182133436203, 0.02799297124147415, 0.008945425041019917, -0.003295917995274067, -0.03149432688951492, -0.0036130049265921116, 0.017605025321245193, -0.015238038264214993, -0.043016642332077026, 0.032137431204319, -0.033441510051488876, -0.04480304569005966, 0.005412808153778315, -0.026081519201397896, -0.0035795096773654222, -0.056200314313173294, -0.010700568556785583, 0.030636852607131004, 0.020936671644449234, 0.022294338792562485, -0.06298865377902985, -0.03490636125206947, 0.05444963648915291, 0.006131836213171482, 0.006810670252889395, -0.04819721728563309, 0.04312382638454437, 0.013139011338353157, -0.03320927545428276, -0.013773185200989246, 0.09425074607133865, 0.04133741930127144, 0.0031306755263358355, -0.05523565411567688, 0.03772887960076332, 0.01668502576649189, 0.0065471758134663105, 0.005189507734030485, -0.039015091955661774, -0.04762556776404381, 0.03387024626135826, 0.015934735536575317, -0.02240152284502983, -0.006243486888706684, -0.019864827394485474, -0.01630988158285618, 0.07245659828186035, -0.029940154403448105, -0.009852025657892227, 0.00863280426710844, -0.05244886130094528, 0.10111054033041, 0.0018835411174222827, 0.023044629022479057, -0.01829279027879238, -0.04212343692779541, -0.0035214514937251806, -0.003849703585729003, -0.016506385058164597, 0.05691487342119217, 0.06348884850740433, 0.01068270392715931, -0.04480304569005966, -0.010155714116990566, 0.051877211779356, 0.08517580479383469, 0.034870631992816925, 0.02976151369512081, -0.009744841605424881, 0.0023714532144367695, -0.0036241698544472456, -0.04787566512823105, -0.011388334445655346, 0.05109119415283203, -0.052091579884290695, -0.04648226872086525, 0.05298478156328201, -0.020275700837373734, -0.02424152009189129, -0.03342364355921745, 0.04676809161901474, 0.051805756986141205, -0.06531097739934921, -0.05873700976371765, -0.07831601053476334, -0.02091880701482296, -0.07953076809644699, -0.0023111619520932436, 0.03233393654227257, 0.024277249351143837, -0.04248071834445, -0.017685413360595703, 0.06270282715559006, -0.023812783882021904, -0.06506088376045227, 0.0492333322763443, 0.06073778122663498, -0.009441152215003967, -0.0039434898644685745, -0.05959448218345642, -0.012031440623104572, 0.03510286659002304, 0.0029006756376475096, 0.02613511122763157, -0.035692378878593445, -0.021418999880552292, -0.03940810263156891, -0.025259772315621376, 0.0348527692258358, -0.01738172397017479, -0.014925416558980942, -0.017890850082039833, 0.04830440133810043, 0.03383451700210571, -0.026242295280098915, -0.026242295280098915, -0.060309045016765594, -0.026706760749220848, -0.019096672534942627, -0.00557805085554719, -0.03679995238780975, 0.012281537055969238, 0.04648226872086525, -0.02243725210428238, 0.018221335485577583, 0.03563878685235977, -0.024634530767798424, -0.01093280129134655, -0.06634709239006042, -0.010361150838434696, -0.05337779223918915, 0.036835677921772, 0.022508706897497177, -0.0327984020113945, 0.017372792586684227, -0.058415453881025314, -0.004394557327032089, 0.07888766378164291, 0.019989876076579094, -0.017524637281894684, 0.004169023595750332, 0.012683478184044361, -0.036389078944921494, -0.016836870461702347, -0.051841482520103455, 0.0629529282450676, 0.01095066498965025, 0.04451722279191017, -0.03905082121491432, -0.06277428567409515, 0.08946318179368973, -0.027224818244576454, -0.017926577478647232, -0.046089258044958115, 0.0587727352976799, -0.016202697530388832 ]
730,312
mmengine.utils.package_utils
install_package
null
def install_package(package: str): if not is_installed(package): call_command(['python', '-m', 'pip', 'install', package])
(package: str)
[ 0.017810598015785217, 0.03294786810874939, 0.04926557093858719, -0.000191494298633188, 0.06794413179159164, -0.02272326685488224, 0.04686999320983887, 0.07277000695466995, 0.024511270225048065, -0.013635695911943913, 0.04398835822939873, -0.017428694292902946, -0.013166996650397778, -0.019980505108833313, -0.006409905850887299, -0.028399745002388954, 0.045724283903837204, 0.0549941249191761, -0.02510148473083973, 0.023053092882037163, 0.029892640188336372, 0.08353274315595627, 0.0193382129073143, 0.08908770978450775, 0.01016384456306696, 0.08749065548181534, 0.06068796291947365, 0.007694490719586611, -0.031923674046993256, -0.015527855604887009, 0.012012605555355549, -0.03175007924437523, 0.001986549934372306, 0.06822188198566437, 0.021230371668934822, 0.0008847796125337481, 0.05804935470223427, -0.0012563762720674276, 0.0018303166143596172, -0.02183794602751732, 0.009400038048624992, 0.07540861517190933, 0.044717445969581604, -0.02329612337052822, 0.01239450927823782, -0.009391358122229576, -0.04336342215538025, -0.010962370783090591, -0.011639381758868694, 0.033295053988695145, 0.05693836137652397, 0.021126216277480125, 0.05554962158203125, -0.029597533866763115, -0.014468940906226635, 0.03791261836886406, 0.05239023640751839, 0.04294680058956146, 0.009825339540839195, 0.05079318583011627, -0.021890023723244667, 0.04971691220998764, -0.044161949306726456, -0.05673005059361458, -0.01696867309510708, -0.0071086157113313675, -0.04242602363228798, -0.05787576362490654, 0.02404257096350193, -0.009651746600866318, -0.06544440239667892, 0.06981892883777618, -0.012880568392574787, -0.03652387484908104, 0.06881209462881088, 0.024268241599202156, 0.018609123304486275, -0.08117188513278961, -0.006006302777677774, 0.019043104723095894, -0.05190417915582657, -0.02553546614944935, 0.05134868249297142, 0.05773688852787018, -0.00589780742302537, 0.015345582738518715, 0.043780047446489334, -0.0072431499138474464, -0.016638847067952156, 0.0026603061705827713, -0.026524944230914116, -0.011205400340259075, 0.021265089511871338, 0.09728127717971802, 0.013705133460462093, -0.014642532914876938, 0.02084846794605255, -0.029215630143880844, -0.08554641902446747, 0.029163552448153496, -0.014147794805467129, 0.015684088692069054, 0.059299223124980927, -0.006331788841634989, -0.0042291488498449326, 0.018227219581604004, 0.0002267552918056026, 0.017749840393662453, 0.019372930750250816, 0.013071520254015923, -0.00042801417293958366, -0.04173165187239647, -0.005954225081950426, -0.00602366216480732, -0.059924155473709106, -0.030031515285372734, 0.019911067560315132, -0.03735712170600891, 0.023070452734827995, 0.03704465553164482, 0.002655966207385063, 0.0021091497037559748, 0.07561692595481873, -0.03195839375257492, 0.008119792677462101, -0.06145177036523819, 0.00266681588254869, 0.014460260979831219, 0.055896807461977005, -0.00972986314445734, 0.003962250426411629, -0.011717498302459717, 0.012837170623242855, -0.02937186323106289, -0.034492842853069305, -0.05888259783387184, -0.01157862413674593, -0.061104584485292435, 0.008640570566058159, 0.03175007924437523, -0.028851084411144257, 0.011682779528200626, 0.006162536330521107, 0.031246662139892578, 0.040447067469358444, 0.012550742365419865, -0.030413419008255005, 0.024459192529320717, -0.012516024522483349, -0.049925222992897034, 0.015918439254164696, -0.055271875113248825, 0.011214080266654491, -0.006948042660951614, -0.04864063858985901, 0.06853434443473816, -0.016473934054374695, -0.02655966393649578, 0.02617776021361351, -0.05617455393075943, 0.0074037229642271996, -0.041210874915122986, -0.022167770192027092, 0.05311932787299156, -0.04235658794641495, -0.019876349717378616, -0.0038450753781944513, 0.04423138499259949, -0.00533363176509738, 0.026698537170886993, 0.05641758441925049, 0.003458831924945116, 0.014711970463395119, 0.004548125434666872, 0.055271875113248825, 0.04117615893483162, 0.02260175161063671, -0.01045027282088995, 0.025847934186458588, 0.0427037738263607, -0.018314016982913017, 0.018036268651485443, -0.023747462779283524, -0.012420548126101494, -0.006648595444858074, 0.01566672883927822, 0.006127817556262016, 0.0036172352265566587, -0.0119605278596282, 0.007408062927424908, 0.007915820926427841, 0.01710754819214344, 0.055584341287612915, 0.019685396924614906, -0.01101444847881794, -0.027601217851042747, -0.024702223017811775, 0.028555978089571, -0.04808514192700386, 0.055271875113248825, -0.031489692628383636, 0.003324297722429037, 0.035378165543079376, 0.09825339168310165, 0.015597292222082615, -0.019789552316069603, -0.06620820611715317, 0.016829799860715866, -0.0008842371753416955, -0.039127763360738754, 0.04777267575263977, -0.009486833587288857, 0.040828973054885864, 0.043710608035326004, -0.05384841561317444, 0.028729571029543877, 0.043224550783634186, -0.022080974653363228, -0.0023261404130607843, -0.030604369938373566, -0.007720529567450285, 0.01619618758559227, 0.018678560853004456, 0.09943382441997528, -0.0067093526013195515, -0.010849535465240479, 0.01615278795361519, -0.033555444329977036, -0.03728768229484558, 0.03063908778131008, 0.004951728042215109, 0.013609657064080238, -0.003545628162100911, 0.008245646953582764, -0.07228394597768784, -0.08033864200115204, 0.001705546979792416, 0.03532608970999718, -0.0031941032502800226, -0.014555737376213074, -0.013635695911943913, 0.03452756255865097, 0.037183526903390884, 0.01362701691687107, -0.08200512826442719, 0.0396832600235939, -0.027601217851042747, -0.023400278761982918, -0.036697469651699066, 0.03438868746161461, -0.012333751656115055, 0.024007853120565414, -0.018418172374367714, 0.02680269256234169, 0.00013995901099406183, -0.06034077703952789, 0.028955239802598953, 0.04009988531470299, 0.00856679305434227, 0.039822135120630264, -0.04659224674105644, 0.004257357679307461, -0.011917130090296268, 0.013123597949743271, -0.0006835207459516823, -0.02886844426393509, -0.006908984389156103, 0.036072537302970886, 0.032166704535484314, 0.03221878036856651, 0.023244045674800873, 0.009478154592216015, 0.06006303057074547, 0.004496047738939524, 0.03522193059325218, -0.029302425682544708, -0.01186505239456892, 0.02327876351773739, -0.027583859860897064, 0.027479704469442368, 0.019372930750250816, 0.04325926676392555, 0.007950539700686932, 0.07058274000883102, -0.08589360117912292, 0.019945785403251648, 0.05836182087659836, 0.00743844173848629, 0.0019171129679307342, 0.018001548945903778, 0.037669587880373, 0.06228501349687576, 0.048987824469804764, 0.004734737332910299, -0.029528096318244934, 0.040447067469358444, -0.030031515285372734, 0.04971691220998764, 0.07325606793165207, -0.05530659109354019, 0.03332977369427681, -0.005259854719042778, -0.05270270258188248, -0.0013572769239544868, 0.023209325969219208, -0.010866894386708736, -0.018314016982913017, -0.01775852032005787, -0.044856321066617966, -0.002350009512156248, 0.018730638548731804, 0.04468272626399994, -0.09658690541982651, -0.03452756255865097, 0.02636871114373207, 0.002456334885209799, 0.017480771988630295, 0.009538911283016205, 0.006891625002026558, -0.002532281680032611, 0.004055556375533342, -0.029337143525481224, 0.024337679147720337, 0.008202249184250832, -0.06770110130310059, 0.03365959972143173, 0.029962077736854553, -0.017628325149416924, -0.05829238519072533, -0.05082790553569794, -0.005502884276211262, 0.05228608101606369, 0.03610725328326225, 0.017715122550725937, -0.08742121607065201, -0.039336077868938446, 0.004198770504444838, -0.11595983803272247, 0.020917905494570732, 0.06398621946573257, 0.01852232776582241, 0.023382918909192085, -0.05044599995017052, 0.01183033362030983, 0.029857922345399857, 0.012472625821828842, 0.008675288408994675, -0.012637538835406303, -0.014920281246304512, -0.01553653459995985, 0.029389221221208572, 0.01578824408352375, -0.04006516560912132, -0.006639915984123945, 0.022202489897608757, 0.014486299827694893, 0.018539685755968094, 0.05603568255901337, -0.0295107364654541, -0.03294786810874939, -0.06988836824893951, 0.0014299687463790178, 0.0014549227198585868, 0.015102553181350231, -0.05329291895031929, -0.03652387484908104, 0.008236967027187347, 0.05211248993873596, -0.035621196031570435, 0.0006943703046999872, 0.05252911150455475, -0.04555068910121918, -0.044023074209690094, 0.023938415572047234, 0.0037495994474738836, 0.021924741566181183, 0.009469474665820599, -0.012333751656115055, -0.04266905412077904, -0.00524249579757452, 0.02135188691318035, -0.01619618758559227, -0.0030899476259946823, 0.0007247489993460476, 0.0142779890447855, 0.012116760946810246, 0.030118310824036598, -0.02485845610499382, -0.027392907068133354, -0.020553359761834145, -0.0234176367521286, -0.036558594554662704, 0.032097265124320984, -0.0066789742559194565, -0.003840735647827387, -0.0367669053375721, 0.004522086586803198, -0.047043588012456894, -0.0052945734933018684, 0.033746395260095596, 0.012550742365419865, -0.02385161817073822, 0.011587304063141346, 0.0006064890185371041, 0.04193996638059616, 0.022358722984790802, -0.02919827029109001, -0.05579265207052231, -0.024945251643657684, -0.030604369938373566, -0.013349268585443497, 0.017880035564303398, -0.03332977369427681, -0.03213198482990265, -0.038815297186374664, 0.02032768912613392, -0.0031463652849197388, -0.013019442558288574, -0.03299994766712189, -0.023209325969219208, -0.013739852234721184, -0.030343981459736824, -0.008297724649310112, 0.08693515509366989, -0.01518934965133667, 0.037669587880373, 0.058604851365089417, -0.01675168238580227, -0.001863950164988637, 0.03874586150050163, 0.007429761812090874, -0.044161949306726456, -0.004415761213749647, -0.0011543906293809414, -0.01465989276766777, 0.005954225081950426, -0.04364117234945297, -0.015493136830627918, -0.049300290644168854, -0.03680162504315376, 0.013765891082584858, -0.006075739860534668, 0.008822842501103878, -0.05933393910527229, 0.003159384708851576, 0.06356959789991379, 0.01097972970455885, 0.019633319228887558, -0.001729415962472558, -0.01972011663019657, -0.03234029561281204, -0.0581187903881073, 0.044474415481090546, 0.005533263087272644, -0.009573630057275295, -0.018817434087395668, -0.044925756752491, -0.0067223720252513885, -0.03171536326408386, 0.0072344704531133175, -0.011344274505972862, -0.0064055658876895905, 0.00044808583334088326, 0.048918385058641434, 0.052563831210136414, -0.02152547799050808, -0.012915287166833878, -0.023764822632074356, -0.012620179913938046, 0.025882652029395103, -0.011318235658109188, -0.05141811817884445, 0.08464373648166656, -0.026333993300795555, 0.03746127709746361, 0.02284478209912777, 0.005667797289788723, 0.06027134135365486, -0.04266905412077904, -0.018539685755968094, -0.07575579732656479, 0.016708284616470337, 0.03711409121751785, 0.008749065920710564, 0.025257719680666924, 0.006440284196287394, 0.011370313353836536, 0.0003054144326597452, 0.04919613525271416, 0.01766304485499859, -0.003840735647827387, 0.008692648261785507, 0.026646459475159645, -0.03294786810874939, 0.04686999320983887, 0.00333514716476202, -0.02202889695763588, 0.07672791928052902, 0.01657809130847454, 0.02310517057776451, -0.01001629140228033, 0.0031398555729538202, 0.023695385083556175, -0.0009997846791520715, 0.010502350516617298, -0.0040598963387310505, -0.004428780637681484, 0.0077899666503071785, 0.04134975001215935, 0.029840562492609024, -0.004804174415767193, 0.0310730691999197, -0.031229304149746895, 0.014807445928454399, 0.05152227357029915, 0.004257357679307461, -0.008427918888628483, 0.02680269256234169, 0.004895310383290052, 0.0001300588046433404, 0.014928961172699928, 0.03327769413590431, 0.04530766233801842, -0.012672257609665394, 0.004283396527171135, -0.02096998319029808, 0.030118310824036598, -0.07395043224096298, -0.001592711778357625, 0.01079745776951313, 0.036628033965826035, 0.0055679818615317345, -0.04103728383779526, 0.020414486527442932, 0.041835810989141464, -0.03707937151193619, 0.006422925274819136, 0.023122530430555344, -0.08006089180707932, -0.04818929731845856, -0.005741574335843325, -0.008341123349964619, 0.045099347829818726, -0.03985685482621193, -0.013383987359702587, 0.06846491247415543, -0.0488489493727684, -0.05013353377580643, -0.036246128380298615, -0.03822508454322815, -0.05957696959376335, 0.03213198482990265, -0.04343286156654358, 0.09526760131120682, 0.021438682451844215, -0.02171643078327179, -0.043537016957998276, 0.0054638260044157505, 0.024459192529320717, -0.008228288032114506, -0.028469180688261986, 0.023400278761982918, 0.009972892701625824, -0.0025756796821951866, 0.016109390184283257, -0.05988943576812744, -0.05176530405879021, -0.016065992414951324, 0.027826888486742973, -0.07575579732656479, 0.022358722984790802, -0.00427688704803586, -0.0026733255945146084, 0.025136204436421394, -0.016812440007925034, -0.01761096529662609, 0.06082683801651001, -0.04107200354337692, -0.012576781213283539, -0.02737554907798767, -0.09929495304822922, -0.035378165543079376, -0.005472505930811167, 0.008332443423569202, -0.03791261836886406, -0.014946320094168186, 0.0016990372678264976, 0.03088211826980114, -0.018175141885876656, -0.02411200851202011, -0.001617665751837194, -0.05506356433033943, 0.034353967756032944, -0.004101124592125416, -0.008957376703619957, -0.008158850483596325, 0.009278522804379463, 0.013036802411079407, 0.04544653370976448, -0.009799300692975521, -0.0021438682451844215, 0.05159171298146248, -0.014416863210499287, -0.018991027027368546, 0.016404498368501663, 0.04301624000072479, -0.0671803280711174, 0.022376082837581635, -0.020049942657351494, -0.018157782033085823, -0.060236621648073196, 0.03874586150050163, 0.004656620789319277, 0.02020617574453354, -0.04645337164402008, -0.03902360796928406, -0.01696867309510708, -0.04419666901230812, 0.018366094678640366, -0.024146726354956627, -0.01362701691687107, 0.06360431760549545, 0.004144522827118635, -0.030934195965528488, -0.014833484776318073, -0.018938949331641197, -0.019945785403251648, -0.001692527555860579, 0.0062797111459076405, -0.07471424341201782, -0.007998277433216572, -0.009373999200761318, 0.0478421114385128, -0.036628033965826035, 0.05596624314785004, -0.04464801028370857, 0.013687774538993835, 0.0007648922619409859, -0.02310517057776451, -0.035430245101451874, -0.005819690879434347, 0.00011717498273355886, 0.0035260990262031555, -0.04954332113265991, 0.0836021825671196, -0.011509187519550323, -0.029528096318244934, -0.0077899666503071785, 0.03383319079875946, -0.05270270258188248, -0.025813214480876923, -0.022497596219182014, 0.018435530364513397, 0.032808996737003326, 0.048362888395786285, 0.010997089557349682, 0.017914753407239914, -0.04919613525271416, 0.017090188339352608, -0.027080440893769264, -0.00718673225492239, -0.0031094769947230816, 0.007842044346034527, 0.0326874814927578, -0.023487074300646782, -0.04263433441519737, 0.05461222305893898, -0.11408503353595734, -0.05370954051613808, 0.021872663870453835, 0.01751548983156681, -0.007208431605249643, -0.009903456084430218, -0.04846704378724098, 0.060861553996801376, 0.03227085992693901, -0.04818929731845856, -0.060930993407964706, -0.006488022394478321, -0.02329612337052822, -0.0013887406093999743, -0.08457429707050323, 0.02359122969210148, 0.014738009311258793, -0.09124025702476501, 0.0010388430673629045, 0.03944023326039314, -0.020726952701807022, -0.03282635658979416, -0.05544546619057655, 0.03376375511288643, -0.0022545335814356804, -0.013922124169766903, 0.017715122550725937, 0.00382988597266376, 0.020049942657351494, -0.053883135318756104, 0.031663283705711365, 0.033676959574222565, -0.04443969950079918, 0.10422497987747192, 0.02096998319029808, -0.00037675013300031424, 0.06228501349687576, -0.08387993276119232, 0.002938054269179702, -0.07044386118650436, -0.024025211110711098, -0.009842698462307453, 0.01996314525604248, 0.013418705202639103, -0.04746020957827568, -0.024841096252202988, -0.014078357256948948, -0.011413711123168468, -0.04162749648094177, -0.06433340907096863, 0.01450365874916315, -0.004400571808218956, 0.02793104387819767, -0.019546523690223694, -0.038815297186374664, -0.044856321066617966, 0.05381369590759277, 0.015484456904232502, -0.025500748306512833, -0.03947494924068451, 0.01939029060304165, 0.011995246633887291, 0.0035716670099645853, 0.009738543070852757, 0.0610351487994194, 0.007303907535970211, 0.03843339532613754, 0.06058380752801895, 0.012542063370347023, -0.029840562492609024, 0.05009881407022476, 0.07485311478376389, -0.03546496108174324, -0.0035065698903054, -0.06912456452846527, 0.027774810791015625, -0.05582737177610397, 0.05343179404735565, -0.011387672275304794, 0.025084126740694046, -0.009139648638665676, -0.012568102218210697, -0.012108081951737404, -0.019598601385951042, 0.0030790981836616993, -0.07311718910932541, 0.04690471291542053, 0.06724976003170013, -0.0387805812060833, -0.012437907978892326, 0.03345128893852234, 0.02673325501382351, -0.07044386118650436, -0.05273742228746414, -0.07978314161300659, 0.038641706109046936, -0.09672577679157257, -0.0163437407463789, -0.007533917669206858, 0.005173058714717627, 0.007768267299979925 ]
730,313
mmengine.utils.path
is_abs
Check if path is an absolute path in different backends. Args: path (str): path of directory or file. Returns: bool: whether path is an absolute path.
def is_abs(path: str) -> bool: """Check if path is an absolute path in different backends. Args: path (str): path of directory or file. Returns: bool: whether path is an absolute path. """ if osp.isabs(path) or path.startswith(('http://', 'https://', 's3://')): return True else: return False
(path: str) -> bool
[ 0.050016336143016815, 0.013242797926068306, -0.035476282238960266, 0.01573820970952511, 0.01700843684375286, -0.01717960275709629, 0.0535837821662426, 0.014305825345218182, 0.020179500803351402, -0.009477159008383751, 0.02834138832986355, 0.018485864624381065, 0.005643954034894705, -0.02906208485364914, -0.03675552085042, 0.027945006266236305, 0.044106625020504, 0.015648122876882553, 0.030395373702049255, -0.03136831521987915, -0.009900568053126335, -0.02084614522755146, -0.0382329486310482, -0.004276883322745562, 0.015359843149781227, 0.05974573642015457, 0.014990486204624176, -0.013468015007674694, -0.027260344475507736, 0.0017443107208237052, 0.03974641114473343, 0.004752092529088259, 0.04169229045510292, 0.03064761683344841, 0.0075853304006159306, -0.019044404849410057, 0.025692829862236977, 0.0034368212800472975, -0.08367285877466202, -0.11098725348711014, -0.003801673883572221, 0.029188206419348717, -0.0015438669361174107, 0.019206561148166656, 0.037548284977674484, 0.01769309863448143, -0.06634011119604111, -0.0036282562650740147, -0.04028693214058876, -0.0431336835026741, 0.03507990017533302, 0.03693569451570511, 0.0003336036461405456, 0.013341893441975117, -0.005891693755984306, -0.00008867945143720135, 0.031800732016563416, 0.06889858096837997, -0.10104164481163025, -0.016233688220381737, -0.010332985781133175, -0.02118847705423832, -0.005152979865670204, -0.09967232495546341, 0.019152509048581123, -0.016675114631652832, -0.022053312510252, -0.07833970338106155, -0.04057521000504494, 0.013972503133118153, -0.07452001422643661, 0.052971191704273224, -0.04778217524290085, -0.0014808060368523002, 0.02978278137743473, -0.040539175271987915, 0.051601868122816086, 0.08929429203271866, -0.01771111600100994, -0.00008396395423915237, -0.08648357540369034, -0.052827052772045135, 0.02226952090859413, -0.025873003527522087, -0.06734908372163773, -0.04252109304070473, 0.014918416738510132, 0.034052908420562744, 0.038953643292188644, 0.06021419167518616, 0.025296445935964584, -0.019711049273610115, -0.012738309800624847, -0.06143937259912491, 0.02277400903403759, 0.013332884758710861, 0.01542290486395359, -0.03558439016342163, -0.021801067516207695, -0.033350229263305664, -0.02453971467912197, 0.0459083653986454, -0.009684358723461628, -0.006851120851933956, 0.005571884568780661, 0.05862865969538689, 0.0014954451471567154, -0.051025308668613434, 0.0042363437823951244, -0.034737568348646164, -0.01929664798080921, -0.030053043738007545, 0.009837507270276546, 0.03798070549964905, -0.004279135260730982, -0.0839611366391182, 0.017738141119480133, -0.03277367353439331, -0.030917879194021225, -0.0026553161442279816, 0.008269991725683212, 0.060502469539642334, -0.004846683703362942, -0.020359674468636513, 0.06994359195232391, 0.028990015387535095, 0.002526941942051053, 0.003833204274997115, -0.07761900871992111, 0.008026757277548313, 0.0032025950495153666, -0.042989544570446014, -0.041620220988988876, 0.0563584640622139, -0.04151211678981781, 0.03628706932067871, 0.013621163554489613, 0.06709684431552887, -0.011630238965153694, 0.044106625020504, 0.018774142488837242, 0.001873810775578022, 0.006792564410716295, -0.013422971591353416, -0.0162967499345541, 0.038268983364105225, -0.01855793409049511, -0.03210702911019325, -0.024053243920207024, 0.04136797785758972, 0.015666140243411064, -0.04374627768993378, -0.010441089980304241, 0.040178827941417694, 0.012567144818603992, -0.03535016253590584, -0.023440653458237648, -0.01770210638642311, 0.021296581253409386, 0.005423240829259157, -0.03884553909301758, 0.0012139230966567993, 0.02749457024037838, -0.05585397779941559, -0.03902571275830269, 0.00788261741399765, -0.05322343483567238, -0.05286308750510216, -0.022053312510252, 0.031962890177965164, -0.021116407588124275, 0.03136831521987915, 0.027008099481463432, -0.008864566683769226, 0.019909240305423737, 0.01480130385607481, 0.0005788093549199402, 0.04875511676073074, 0.015107600018382072, 0.0007465964881703258, -0.01463914755731821, -0.028089145198464394, 0.006188980769366026, 0.02767474390566349, 0.027692761272192, 0.018260646611452103, -0.0388815738260746, -0.03623301535844803, 0.0725381001830101, 0.07066428661346436, -0.10255511105060577, 0.0764658972620964, 0.041764359921216965, -0.035260073840618134, 0.017206627875566483, -0.05873676389455795, 0.07934868335723877, -0.022305555641651154, -0.014495007693767548, 0.027548622339963913, 0.010603247210383415, -0.05920521542429924, -0.0037543782964348793, 0.007833070121705532, 0.03697172924876213, 0.01480130385607481, 0.002878281520679593, -0.016197653487324715, -0.024107297882437706, 0.057367440313100815, -0.058592624962329865, -0.014918416738510132, -0.03571050986647606, -0.0016114322934299707, 0.02223348617553711, 0.07145705819129944, -0.037728458642959595, 0.04734975844621658, -0.005022353492677212, 0.05747554451227188, 0.04079142212867737, -0.029566572979092598, 0.03974641114473343, -0.0018591716652736068, 0.022719956934452057, 0.017395811155438423, 0.03711586818099022, 0.08028558641672134, 0.00850421842187643, 0.02466583624482155, 0.006625903304666281, -0.021584859117865562, 0.022323573008179665, 0.025710847228765488, 0.04234091937541962, 0.002382802776992321, 0.030773740261793137, 0.020882179960608482, 0.010107767768204212, -0.035818614065647125, 0.005324145313352346, 0.01875612512230873, -0.015089582651853561, -0.018080472946166992, -0.0704120472073555, -0.07668210566043854, 0.004457057453691959, 0.0015573800774291158, -0.02834138832986355, -0.06770943105220795, -0.01461212057620287, 0.09044741094112396, -0.022323573008179665, -0.06569148600101471, 0.025494636967778206, -0.05322343483567238, -0.054196376353502274, -0.021494772285223007, -0.001396349398419261, 0.012999562546610832, -0.04482731968164444, -0.011504117399454117, 0.025728864595294, 0.014837338589131832, -0.02853958122432232, -0.03315203636884689, 0.001995428465306759, -0.031962890177965164, 0.010900533758103848, 0.03780053183436394, 0.06360146403312683, -0.020900197327136993, -0.030251234769821167, -0.004725066479295492, 0.040178827941417694, 0.020810110494494438, 0.014125650748610497, -0.003493125783279538, 0.03192685544490814, 0.008616827428340912, -0.035458266735076904, 0.03252142667770386, 0.0028467511292546988, -0.023927122354507446, 0.016332784667611122, -0.029170189052820206, -0.022323573008179665, 0.00821593962609768, -0.023386601358652115, 0.020017344504594803, 0.04291747510433197, 0.009612289257347584, 0.0031012471299618483, -0.04028693214058876, -0.006995260249823332, 0.07552899420261383, 0.07109671086072922, -0.03902571275830269, -0.03115210495889187, -0.030791757628321648, -0.04832269996404648, 0.031098052859306335, -0.016170626506209373, 0.02470187097787857, 0.01859396882355213, 0.010711351409554482, -0.040539175271987915, -0.012891458347439766, 0.005076405592262745, 0.05747554451227188, -0.0019154760520905256, -0.02558472566306591, -0.027242327108979225, 0.02891794592142105, 0.0462326779961586, 0.07682624459266663, 0.02432350628077984, -0.05743950977921486, -0.02398117445409298, -0.0011767621617764235, -0.03751225024461746, 0.03697172924876213, 0.002950351219624281, 0.007157417014241219, -0.09253742545843124, -0.018648020923137665, 0.019729066640138626, -0.016080539673566818, 0.007125886157155037, 0.04875511676073074, -0.007013277616351843, 0.02628740482032299, 0.029836833477020264, -0.007630373816937208, 0.03859329596161842, -0.012819388881325722, -0.0332421250641346, -0.02453971467912197, 0.008274496532976627, -0.02226952090859413, 0.028611650690436363, 0.007405156269669533, 0.018071463331580162, -0.005211536306887865, 0.013972503133118153, 0.02363884449005127, -0.019512856379151344, 0.0637095719575882, 0.04331385716795921, -0.014116642065346241, 0.010053715668618679, -0.03135029599070549, -0.05286308750510216, -0.010711351409554482, -0.019711049273610115, 0.07761900871992111, 0.01393646840006113, 0.01591838337481022, 0.011738344095647335, 0.05181807652115822, 0.1089693084359169, -0.09614090621471405, 0.003141786204650998, -0.017017444595694542, -0.030431408435106277, 0.026359474286437035, 0.0578358918428421, 0.002490907208994031, 0.01767508126795292, 0.028107162564992905, 0.039494168013334274, -0.005977276246994734, 0.03981848061084747, -0.08763669431209564, -0.0048331706784665585, -0.008544757962226868, 0.020774075761437416, -0.05181807652115822, -0.006283572409301996, 0.02277400903403759, 0.059457458555698395, 0.005189014598727226, 0.0015416147653013468, -0.01681925356388092, 0.018350733444094658, 0.009864533320069313, 0.028413457795977592, -0.03235927224159241, -0.05974573642015457, -0.04479128494858742, 0.0648626834154129, -0.03064761683344841, 0.025314463302493095, -0.04392645135521889, -0.02837742306292057, -0.02803509309887886, 0.011405021883547306, 0.04356610029935837, 0.008787992410361767, -0.02064795419573784, -0.0076619042083621025, 0.020071396604180336, 0.014702208340168, 0.009175366722047329, -0.02785491943359375, 0.019675014540553093, -0.007256512530148029, 0.04122383892536163, -0.02120649442076683, 0.03378264605998993, 0.010314968414604664, -0.049836162477731705, -0.030683651566505432, -0.01399952918291092, 0.005427745170891285, 0.03747621551156044, -0.017945341765880585, -0.05394412949681282, 0.04471921548247337, -0.029872868210077286, 0.003461595159024, 0.0014582843286916614, -0.0388815738260746, -0.006238528992980719, 0.05798003077507019, -0.021440720185637474, -0.013053614646196365, -0.005306127946823835, 0.012404988519847393, -0.00027166877407580614, -0.010008672252297401, -0.02944045141339302, -0.027044136077165604, -0.04414265975356102, -0.005053883884102106, 0.03235927224159241, -0.012269857339560986, 0.009148340672254562, -0.0630609393119812, -0.04832269996404648, -0.023440653458237648, 0.017224645242094994, -0.04666509851813316, 0.0001979100052267313, 0.05884486809372902, -0.012053648941218853, 0.00356744765304029, 0.015080573968589306, 0.07228585332632065, 0.012441023252904415, -0.08619529753923416, 0.012107701040804386, 0.0004788690130226314, -0.01496346015483141, -0.037908636033535004, -0.027062153443694115, 0.008418635465204716, 0.013296850025653839, -0.0321790985763073, 0.011630238965153694, -0.037043798714876175, 0.028089145198464394, 0.02172899805009365, -0.0679616779088974, 0.06778150051832199, 0.046484921127557755, 0.017575984820723534, 0.04453904181718826, 0.03190883621573448, 0.0459083653986454, -0.014080607332289219, -0.024629801511764526, 0.017801202833652496, 0.013089649379253387, 0.05347567796707153, -0.0037723956629633904, 0.0020945242140442133, 0.05949349328875542, -0.03383670002222061, 0.020738041028380394, -0.03848519176244736, -0.08172698318958282, -0.019873205572366714, 0.021044336259365082, 0.029998991638422012, -0.013522068038582802, -0.04619664326310158, -0.0026981073897331953, 0.04518767073750496, -0.016585027799010277, 0.05855659022927284, -0.005526841152459383, 0.002136189490556717, -0.02030562236905098, 0.0192786306142807, -0.02297220006585121, -0.005396214779466391, 0.1145186722278595, -0.0035449257120490074, -0.026683786883950233, 0.012314900755882263, 0.01280137151479721, 0.013486032374203205, 0.01924259588122368, 0.0011711317347362638, 0.021080370992422104, -0.0015787757001817226, -0.05956556275486946, -0.038449157029390335, 0.004711552988737822, -0.02259383536875248, 0.03657534718513489, 0.03297186270356178, 0.060322295874357224, 0.029116136953234673, 0.06331318616867065, 0.006558337714523077, -0.04464714601635933, 0.05361981689929962, 0.014404920861124992, 0.008477192372083664, -0.06248438358306885, -0.023512722924351692, -0.03115210495889187, -0.06443026661872864, -0.039494168013334274, -0.044250763952732086, 0.01732374168932438, -0.002790446626022458, -0.00463497918099165, 0.067313052713871, 0.0315304696559906, 0.0493316724896431, 0.04727768898010254, 0.07920454442501068, 0.1218697726726532, -0.033170055598020554, -0.04025089740753174, -0.07293448597192764, 0.01924259588122368, -0.0016621062532067299, -0.014864364638924599, 0.018702073022723198, -0.047710105776786804, -0.009008705615997314, 0.002986385952681303, -0.031980905681848526, -0.025098254904150963, 0.06079074740409851, 0.013531076721847057, 0.009576254524290562, 0.018296681344509125, 0.041079699993133545, -0.005225049331784248, 0.04716958478093147, 0.009765436872839928, 0.01209869235754013, -0.00815287884324789, -0.06082678213715553, -0.027908971533179283, -0.045980434864759445, -0.05196221545338631, -0.020431745797395706, 0.019188543781638145, -0.030215200036764145, -0.005274597089737654, -0.012468049302697182, 0.04136797785758972, 0.05498914048075676, -0.05434051528573036, -0.008035765960812569, -0.04262919723987579, 0.020954249426722527, -0.023909104987978935, 0.020215535536408424, 0.02560274302959442, 0.018990352749824524, -0.01682826317846775, 0.031800732016563416, 0.05585397779941559, 0.061943862587213516, -0.037548284977674484, -0.055601734668016434, 0.00682409480214119, -0.02241365984082222, -0.03221513330936432, 0.031800732016563416, 0.025008168071508408, -0.04504352807998657, -0.08208733052015305, 0.00402689166367054, 0.030719686299562454, 0.01929664798080921, 0.005643954034894705, -0.0063151028007268906, -0.017233654856681824, -0.016702141612768173, -0.05044875293970108, 0.0020596154499799013, 0.023170391097664833, 0.0018625499214977026, -0.0023895592894405127, 0.01754895970225334, -0.023873070254921913, -0.017648054286837578, 0.006860129535198212, -0.01717960275709629, -0.006810581777244806, -0.04461111128330231, 0.007639382500201464, 0.013963494449853897, 0.01682826317846775, -0.02432350628077984, 0.0001270368229597807, 0.03542223200201988, 0.01331486739218235, -0.023044269531965256, -0.02834138832986355, -0.030539512634277344, 0.018648020923137665, 0.02381901815533638, -0.024954115971922874, 0.03273763880133629, 0.021837102249264717, -0.047565966844558716, 0.025476619601249695, 0.029404416680336, 0.0196029432117939, -0.047025445848703384, -0.026503613218665123, 0.05398016422986984, -0.0021463241428136826, 0.009999663569033146, -0.024485662579536438, 0.0012702274834737182, -0.08763669431209564, -0.005526841152459383, 0.032701604068279266, 0.09700574725866318, 0.02309832163155079, -0.04918753355741501, -0.04792631417512894, -0.0584845170378685, 0.007499747909605503, 0.01647692359983921, 0.03228720277547836, -0.011242864653468132, -0.009432114660739899, 0.020179500803351402, -0.03711586818099022, 0.03841312229633331, 0.014936434105038643, 0.002475142013281584, -0.006774547044187784, 0.049836162477731705, 0.05898900702595711, 0.028611650690436363, -0.03252142667770386, 0.019350700080394745, -0.030251234769821167, 0.03446730971336365, -0.06345732510089874, 0.01399952918291092, 0.0764658972620964, -0.00127135356888175, 0.02590903826057911, 0.006369154900312424, -0.0018501629820093513, 0.031296245753765106, -0.017044471576809883, -0.02942243404686451, 0.014107633382081985, -0.05549362674355507, -0.024791957810521126, 0.029674677178263664, 0.03378264605998993, -0.011026656255126, -0.021242529153823853, -0.0031012471299618483, -0.028683720156550407, 0.011486100032925606, 0.035296108573675156, -0.01717960275709629, 0.0008023378904908895, 0.05005237087607384, -0.005441258195787668, 0.027260344475507736, 0.04666509851813316, 0.02522437646985054, -0.05448465421795845, -0.006306094117462635, -0.019134491682052612, 0.023386601358652115, 0.03963830694556236, 0.03448532521724701, 0.02012544870376587, 0.012846414931118488, 0.07437587529420853, 0.013711250387132168, 0.008558270521461964, 0.04180039465427399, -0.024755923077464104, -0.01890026591718197, 0.023386601358652115, 0.026593700051307678, 0.012242831289768219, -0.06219610571861267, 0.0015686409315094352, -0.03380066528916359, 0.027926988899707794, -0.04907942935824394, -0.016954384744167328, -0.0060448418371379375, -0.08057386428117752, 0.07192550599575043, -0.08259181678295135, -0.03489972651004791, -0.03805277496576309, 0.05005237087607384, 0.008324043825268745, -0.03848519176244736, -0.024629801511764526, 0.007774513214826584, -0.0036778042558580637, -0.04385438188910484, -0.05152979865670204, -0.07289844751358032, 0.007589834742248058, 0.027098188176751137, 0.023188408464193344, -0.031242191791534424, 0.004815153311938047, -0.024557732045650482, 0.05556569993495941, -0.01820659451186657, 0.019188543781638145, 0.0013276580721139908, -0.00040905154310166836, -0.021584859117865562, 0.006657433696091175, 0.043710242956876755, -0.06969135254621506, 0.007382634561508894, -0.04659302532672882, -0.02749457024037838, -0.024611784145236015, 0.0023940636310726404, 0.014495007693767548, -0.0027296377811580896, -0.007224982138723135, 0.042845405638217926, -0.010432081297039986, 0.0164589062333107, 0.03623301535844803, 0.031062018126249313, -0.027602674439549446, -0.052646879106760025, 0.005801606457680464, 0.0009053749381564558, -0.03551231697201729, -0.045079562813043594, 0.03255746141076088, -0.007044808007776737, -0.03378264605998993, 0.02470187097787857, -0.030179165303707123, -0.07761900871992111, 0.01393646840006113 ]
730,314
mmengine.utils.path
is_filepath
null
def is_filepath(x): return is_str(x) or isinstance(x, Path)
(x)
[ 0.003417340572923422, -0.009368115104734898, 0.01504576113075018, 0.024276236072182655, 0.013720977120101452, -0.03427233174443245, 0.07976231724023819, 0.0826527550816536, 0.005836791824549437, -0.00998749490827322, 0.0957285463809967, -0.01163917314261198, 0.01724799908697605, 0.0005532478680834174, -0.03767891973257065, 0.013970449566841125, 0.019699709489941597, 0.014082281850278378, 0.029024813324213028, 0.021351387724280357, -0.04077581688761711, 0.009600382298231125, 0.02148902788758278, 0.008159465156495571, 0.014065076597034931, 0.04442327469587326, 0.040259670466184616, 0.0031313076615333557, 0.016413556411862373, 0.0001615655783098191, 0.004161456134170294, -0.04903421178460121, 0.010710104368627071, 0.0330335758626461, -0.011656378395855427, 0.02843984216451645, -0.021179338917136192, 0.09338866919279099, -0.0010199331445619464, -0.07129746675491333, -0.06582628190517426, 0.07934939861297607, -0.06734031438827515, 0.03557991236448288, -0.05918515473604202, -0.013695169240236282, -0.10756557434797287, 0.015518898144364357, -0.025927914306521416, 0.0022431001998484135, 0.04218662902712822, -0.04418240487575531, -0.04748576506972313, 0.027889283373951912, 0.000261703971773386, -0.010968179441988468, 0.04583408311009407, 0.05653558671474457, -0.032637860625982285, 0.009901469573378563, 0.03857358172535896, -0.0051012784242630005, 0.03826389089226723, -0.06341758370399475, 0.048001911491155624, 0.003679716493934393, -0.023691266775131226, -0.03028077632188797, -0.015450078062713146, 0.03422071784734726, -0.0529913604259491, 0.037403639405965805, -0.04122314974665642, -0.0026452667079865932, 0.026908598840236664, -0.013136007823050022, -0.020250270143151283, 0.055572107434272766, 0.05240638926625252, -0.013600542210042477, -0.030556056648492813, -0.0027205385267734528, -0.051339682191610336, -0.037782151252031326, 0.009049822576344013, -0.0012613405706360936, -0.001338763046078384, -0.018357720226049423, -0.019458839669823647, 0.04607495293021202, -0.019510455429553986, -0.044010356068611145, -0.0021409455221146345, -0.023484807461500168, 0.005561511963605881, 0.0013398383744060993, 0.046006135642528534, -0.06183472275733948, 0.032001275569200516, -0.04428563639521599, -0.012791907414793968, 0.0025699948891997337, 0.014856506139039993, 0.0019828747026622295, -0.004825998563319445, -0.048139553517103195, 0.020972879603505135, -0.00048254610737785697, -0.007978812791407108, -0.03957146778702736, -0.058737825602293015, -0.0631767138838768, -0.045180294662714005, 0.05877223610877991, 0.041051097214221954, -0.025256920605897903, -0.015252220444381237, -0.05340427905321121, 0.03186363726854324, -0.021230952814221382, 0.054952725768089294, 0.024482695385813713, -0.059701304882764816, 0.020594369620084763, 0.11678744852542877, 0.007953004911541939, -0.016835078597068787, -0.0024366562720388174, -0.0238117016851902, 0.014271536841988564, -0.008430443704128265, 0.04951595142483711, -0.07164156436920166, 0.019596479833126068, -0.02833661250770092, 0.07673423737287521, -0.04855247214436531, 0.023071886971592903, 0.030057111755013466, -0.03232816979289055, 0.02732151933014393, -0.010624079033732414, -0.006783065851777792, -0.02226325310766697, 0.02386331744492054, 0.05423012003302574, 0.00767772551625967, 0.005841093137860298, -0.009075630456209183, 0.047210484743118286, -0.032190531492233276, 0.01642215996980667, -0.010176749899983406, -0.021953562274575233, -0.012628460302948952, -0.048621293157339096, -0.02346760220825672, 0.026616115123033524, 0.024431081488728523, -0.026013940572738647, 0.03262065351009369, -0.024517105892300606, 0.007501373998820782, -0.008494962006807327, 0.03809184208512306, 0.04053494706749916, -0.03339488059282303, 0.005991636775434017, 0.027527978643774986, 0.015148990787565708, -0.002093631774187088, -0.004967940039932728, -0.003056035842746496, 0.02207399718463421, 0.037059541791677475, 0.03318841755390167, 0.007656218949705362, 0.05515918880701065, 0.02401816099882126, 0.03767891973257065, 0.06345199048519135, -0.020405113697052002, -0.01744585670530796, 0.030693696811795235, 0.03330885246396065, 0.013910232111811638, -0.021076109260320663, -0.021368592977523804, 0.05619148537516594, 0.01851256564259529, -0.056260306388139725, 0.039192959666252136, 0.014047871343791485, 0.007651917636394501, -0.011355291120707989, -0.03981233760714531, 0.03805743157863617, -0.036130473017692566, -0.07418790459632874, 0.04125755652785301, 0.004062527325004339, -0.06224764138460159, -0.007161575835198164, -0.001331235864199698, -0.053920429199934006, -0.009041220881044865, -0.007449759170413017, 0.006602413486689329, -0.027665618807077408, 0.04490501433610916, -0.03884885832667351, -0.09627910703420639, -0.018873870372772217, 0.03201847895979881, 0.03179481625556946, 0.052750490605831146, -0.04583408311009407, 0.056742046028375626, -0.04015643894672394, 0.03367015719413757, 0.10322991758584976, 0.10570743680000305, 0.02823338285088539, 0.020009400323033333, 0.08285921812057495, -0.014185511507093906, -0.020439524203538895, 0.03062487579882145, -0.005428173113614321, 0.002746345940977335, -0.015415668487548828, -0.02527412585914135, 0.033652953803539276, 0.0558817982673645, 0.037885379046201706, -0.021798718720674515, 0.03392823413014412, -0.0066927396692335606, 0.012740292586386204, -0.026082759723067284, 0.005561511963605881, -0.0029872157610952854, -0.04924067109823227, -0.07274268567562103, -0.036233700811862946, -0.04125755652785301, 0.008396033197641373, 0.01210370846092701, -0.07522020488977432, -0.03308518975973129, 0.06169708073139191, 0.056845277547836304, -0.026426859200000763, -0.05701732635498047, -0.005342148244380951, 0.03165717422962189, -0.01692110486328602, -0.03494332730770111, 0.03213891386985779, 0.009419729933142662, -0.019579274579882622, 0.049103032797575, 0.04480178654193878, 0.023175116628408432, -0.04497383534908295, -0.07934939861297607, -0.01914915069937706, 0.026272015646100044, 0.04758899286389351, -0.017721137031912804, 0.015613525174558163, 0.04297805577516556, -0.0010554183972999454, 0.0037571389693766832, -0.026891393586993217, 0.003570034634321928, -0.011914453469216824, -0.025188101455569267, 0.07109100371599197, 0.06493162363767624, -0.01681787520647049, 0.011123023927211761, 0.012551037594676018, -0.012353180907666683, -0.0052518220618367195, -0.0018527619540691376, -0.006159385200589895, -0.013789797201752663, -0.059701304882764816, 0.04490501433610916, 0.014426381327211857, 0.005243219900876284, -0.004830299876630306, 0.004363614600151777, -0.013445696793496609, 0.0588066428899765, 0.02751077339053154, -0.06844143569469452, 0.03561432287096977, -0.05453980714082718, 0.02314070798456669, 0.04607495293021202, 0.03163997083902359, -0.008082042448222637, -0.03408307954668999, -0.02609996497631073, -0.024723565205931664, -0.06056155264377594, -0.01784157194197178, 0.0032022781670093536, 0.05254403129220009, -0.02002660371363163, -0.0177383404225111, 0.01686088740825653, 0.0938015878200531, 0.08155163377523422, -0.02231486700475216, -0.044732965528964996, -0.08045051991939545, 0.030349597334861755, -0.022779403254389763, 0.04593731462955475, 0.006361543666571379, -0.04163606837391853, -0.027132263407111168, 0.005617428105324507, 0.002307618735358119, -0.006348640192300081, -0.028749532997608185, 0.06290142983198166, 0.043425384908914566, -0.007729340344667435, 0.046006135642528534, -0.0082626948133111, -0.014288741163909435, -0.031519535928964615, -0.014856506139039993, 0.0017989964690059423, 0.004503405187278986, 0.07036839425563812, 0.018065236508846283, -0.02245250716805458, 0.004795889835804701, -0.0014570472994819283, -0.009075630456209183, -0.01358333695679903, -0.0018678163178265095, 0.003157115075737238, 0.0913928896188736, 0.026770958676934242, -0.0238117016851902, -0.007540085352957249, -0.05405806750059128, -0.06162826344370842, -0.05161495879292488, 0.03509817272424698, -0.025945119559764862, 0.060871243476867676, 0.0064991838298738, 0.05853136628866196, 0.10467513650655746, -0.003415189916267991, -0.012396193109452724, -0.007066948339343071, 0.0037764946464449167, 0.02434505708515644, 0.05749906599521637, 0.040706999599933624, 0.002965709660202265, 0.020542753860354424, -0.0065249912440776825, 0.023794496431946754, -0.011338085867464542, -0.07590840011835098, 0.0330507792532444, -0.008834760636091232, 0.024620335549116135, -0.029713012278079987, -0.0006838982226327062, 0.026512885466217995, 0.0007656218949705362, 0.03241419419646263, 0.03277549892663956, 0.04204898700118065, -0.028611892834305763, 0.03282711282372475, -0.0032151818741112947, -0.05230316147208214, -0.02785487286746502, -0.03864239901304245, 0.03435835987329483, 0.0006908877403475344, 0.055572107434272766, -0.006985224783420563, -0.013703771866858006, -0.05619148537516594, 0.027958102524280548, 0.019768530502915382, -0.01925238035619259, 0.020336294546723366, 0.031037796288728714, 0.0078970892354846, -0.06162826344370842, 0.03712836280465126, -0.03096897527575493, 0.08292803913354874, 0.020387908443808556, 0.053920429199934006, -0.05192464962601662, -0.04456091672182083, 0.05474626645445824, -0.08609375357627869, 0.007316420786082745, -0.04242749884724617, 0.015854395925998688, 0.04008761793375015, -0.03864239901304245, -0.018581384792923927, 0.023484807461500168, -0.016060855239629745, -0.04445768520236015, -0.012602652423083782, -0.00991867482662201, 0.059322793036699295, 0.020732009783387184, 0.015665140002965927, -0.008228285238146782, -0.02221163734793663, 0.0991695448756218, 0.0286807119846344, -0.0884336307644844, -0.006916404701769352, 0.005208809860050678, -0.046143773943185806, 0.008684216998517513, -0.04817396402359009, -0.00634433887898922, -0.025102075189352036, -0.01122625358402729, -0.004933529999107122, -0.005484089720994234, 0.025687044486403465, -0.03282711282372475, 0.03568314388394356, 0.011131626553833485, -0.022486917674541473, -0.013445696793496609, 0.03475407138466835, 0.0461781844496727, 0.00965199712663889, -0.07129746675491333, -0.007729340344667435, 0.043666254729032516, 0.0002713817812036723, -0.021661078557372093, -0.009144450537860394, -0.00023320822219830006, 0.02274499274790287, 0.02245250716805458, 0.006774463690817356, -0.04056935757398605, 0.06427782773971558, 0.04043171927332878, -0.10219762474298477, 0.01440917607396841, -0.005742164328694344, -0.015484487637877464, 0.016929706558585167, 0.044010356068611145, 0.027063444256782532, -0.015140388160943985, -0.01037460658699274, -0.0008339041960425675, 0.008843363262712955, 0.03850476071238518, 0.04394153505563736, 0.025893505662679672, 0.10543216019868851, 0.01351451687514782, -0.03337767347693443, -0.03291314095258713, -0.06235087290406227, -0.054608628153800964, 0.012551037594676018, 0.04232426732778549, 0.0017936198273673654, -0.04573085531592369, 0.0012183281360194087, -0.00998749490827322, -0.020972879603505135, 0.03193245455622673, 0.05822167545557022, -0.03957146778702736, -0.02623760513961315, 0.03533904254436493, 0.0403284877538681, -0.0027678522747009993, 0.06424342095851898, 0.006572304759174585, 0.047761041671037674, 0.03922737017273903, -0.03502935171127319, -0.017807161435484886, 0.025601020082831383, 0.004933529999107122, 0.038229480385780334, 0.03294754773378372, -0.03413469344377518, -0.08760779350996017, -0.032156120985746384, -0.05866900458931923, 0.04583408311009407, -0.008817555382847786, 0.04497383534908295, 0.030882950872182846, 0.0003766279260162264, 0.04029407724738121, 0.014417778700590134, 0.009944482706487179, -0.013789797201752663, -0.028852762654423714, -0.05364514887332916, -0.03379059210419655, -0.05536564812064171, 0.03145071491599083, 0.012533833272755146, -0.01978573389351368, 0.006968019530177116, 0.0034517503809183836, 0.046831972897052765, 0.05230316147208214, 0.03795420005917549, 0.016955513507127762, 0.014968338422477245, 0.0013989805011078715, 0.05034179240465164, -0.013841412030160427, -0.006456171162426472, 0.007041140925139189, -0.0026280616875737906, -0.023175116628408432, -0.011587558314204216, 0.008413238450884819, -0.043666254729032516, 0.031519535928964615, -0.034977737814188004, 0.04428563639521599, -0.023398781195282936, 0.022486917674541473, 0.0024495599791407585, 0.010125135071575642, -0.028887173160910606, -0.017703931778669357, 0.0739126205444336, 0.014477996155619621, 0.017075948417186737, -0.010761719197034836, -0.016439365223050117, -0.019114740192890167, -0.039537061005830765, -0.018633000552654266, -0.04208339750766754, 0.009488550014793873, 0.010004700161516666, -0.04986005276441574, -0.02362244762480259, -0.008808952756226063, -0.0015839340630918741, 0.035115376114845276, -0.02434505708515644, 0.02959257736802101, -0.02745915949344635, 0.018306106328964233, -0.05877223610877991, 0.015622127801179886, 0.003830260131508112, 0.030504440888762474, 0.0010532677406445146, -0.03867680951952934, -0.011363893747329712, 0.007264805492013693, -0.028371023014187813, -0.017136165872216225, -0.014065076597034931, 0.003636704059317708, -0.061112113296985626, -0.0006140029872767627, 0.05646676570177078, -0.04875893145799637, -0.024482695385813713, -0.014142499305307865, 0.007294914219528437, 0.0485868826508522, 0.0022560039069503546, 0.03387662023305893, -0.014013461768627167, 0.05749906599521637, -0.027063444256782532, 0.06455311179161072, -0.04490501433610916, -0.030745310708880424, -0.010512246750295162, -0.03518419712781906, 0.003088295226916671, -0.011071409098803997, 0.01351451687514782, 0.035751961171627045, 0.022039588540792465, -0.008292803540825844, -0.010469234548509121, 0.06396814435720444, 0.04442327469587326, 0.04091345891356468, -0.011587558314204216, 0.037403639405965805, 0.054952725768089294, -0.017523279413580894, -0.02279660664498806, -0.027820464223623276, -0.001277470262721181, -0.018065236508846283, -0.00029194712988100946, 0.0602862723171711, 0.0044517903588712215, -0.02415580116212368, -0.013729579746723175, -0.00819387473165989, -0.05818726494908333, -0.027717232704162598, -0.10522569715976715, 0.021471822634339333, -0.07976231724023819, 0.01266286987811327, 0.008447648026049137, -0.005918515380471945, -0.06734031438827515, -0.011243458837270737, -0.016783464699983597, 0.01090796198695898, -0.027820464223623276, -0.05560651794075966, -0.06919845938682556, -0.031330280005931854, -0.003473256714642048, -0.011071409098803997, -0.038711220026016235, -0.00796590931713581, -0.027235493063926697, 0.04628141596913338, -0.01064128428697586, -0.0010059541091322899, 0.056397944688797, -0.014477996155619621, -0.059701304882764816, 0.0017161974683403969, 0.06579186767339706, 0.05478067696094513, -0.03470245748758316, -0.009127245284616947, 0.0021990123204886913, 0.03344649448990822, -0.012499422766268253, -0.023243937641382217, 0.035889603197574615, 0.00030108727514743805, -0.03014313615858555, 0.006606714800000191, -0.0588066428899765, -0.0017334023723378778, -0.017506074160337448, -0.0427715964615345, 0.018220080062747, -0.01983734965324402, -0.046006135642528534, 0.06551659107208252, -0.028990402817726135, -0.019476044923067093, -0.023243937641382217, -0.006228205282241106, -0.019166355952620506, -0.04968800023198128, 0.008159465156495571, -0.018839459866285324, 0.005208809860050678, 0.000990899745374918, 0.008989605121314526, -0.00621100002899766, 0.024775180965662003, 0.05835931375622749, 0.01710175722837448, -0.03373897820711136, 0.0003255506162531674, -0.005208809860050678, -0.022658968344330788, 0.018168466165661812, -0.03188084065914154, 0.012482217513024807, 0.05268166959285736, 0.0005148054333403707, -0.009247680194675922, 0.016783464699983597, 0.013394081965088844, -0.02541176602244377, 0.009196065366268158, 0.024362260475754738, -0.09228754788637161, -0.037059541791677475, -0.0057808756828308105, 0.005428173113614321, 0.0057808756828308105, -0.030986180528998375, -0.015080170705914497, -0.011759608052670956, -0.072880320250988, -0.008972400799393654, -0.048965390771627426, -0.03853917121887207, -0.017574893310666084, 0.04710725322365761, -0.05935720354318619, 0.01351451687514782, -0.023656856268644333, 0.010107929818332195, 0.02207399718463421, -0.044732965528964996, -0.007118563167750835, -0.022727787494659424, -0.0038367121014744043, 0.02314070798456669, -0.007256203331053257, -0.004337807185947895, 0.004299095831811428, -0.008692819625139236, 0.03981233760714531, -0.01856418140232563, -0.0054238722659647465, -0.009350909851491451, 0.0028194671031087637, 0.007707834243774414, 0.022813811898231506, -0.004135648719966412, 0.020284678786993027, -0.024964435026049614, -0.07879883795976639, -0.009540164843201637, -0.022968657314777374, 0.0670650377869606, 0.045180294662714005, -0.018529770895838737, 0.02231486700475216, 0.017875980585813522, -0.035889603197574615, -0.03609606251120567, 0.00684328330680728, 0.03630252182483673, 0.0048001911491155624, -0.03325723856687546, -0.0013495160965248942, 0.0006623920053243637, 0.016835078597068787, -0.032637860625982285, 0.02055995911359787, 0.013351069763302803, 0.010555258952081203, -0.03172599524259567, -0.0007000279147177935, -0.0884336307644844, 0.017377035692334175 ]
730,315
mmengine.utils.package_utils
is_installed
Check package whether installed. Args: package (str): Name of package to be checked.
def is_installed(package: str) -> bool: """Check package whether installed. Args: package (str): Name of package to be checked. """ # When executing `import mmengine.runner`, # pkg_resources will be imported and it takes too much time. # Therefore, import it in function scope to save time. import importlib.util import pkg_resources from pkg_resources import get_distribution # refresh the pkg_resources # more datails at https://github.com/pypa/setuptools/issues/373 importlib.reload(pkg_resources) try: get_distribution(package) return True except pkg_resources.DistributionNotFound: spec = importlib.util.find_spec(package) if spec is None: return False elif spec.origin is not None: return True else: return False
(package: str) -> bool
[ 0.08996634185314178, 0.02213372476398945, 0.007385363802313805, 0.017409954220056534, 0.10385136306285858, -0.02471032552421093, 0.04655776172876358, 0.010628482326865196, 0.0009930653031915426, 0.025265011936426163, 0.031617049127817154, -0.006535443011671305, -0.011326312087476254, -0.022420013323426247, 0.004652197472751141, -0.05010058730840683, 0.003491384908556938, 0.054001279175281525, 0.003826879896223545, -0.00510399742051959, -0.005864453036338091, 0.09132621437311172, 0.013947646133601665, 0.024889256805181503, 0.021131712943315506, 0.0739341527223587, 0.07980307936668396, -0.01201519463211298, -0.040617264807224274, 0.0038872689474374056, 0.000028761707653757185, -0.002368594752624631, 0.06022806465625763, 0.037682801485061646, -0.021364321932196617, 0.018295662477612495, 0.0354461669921875, -0.05432335287332535, -0.00046242395183071494, -0.04179820418357849, -0.00133191526401788, 0.07228799164295197, 0.0438380166888237, -0.013598731718957424, 0.0026437006890773773, -0.03326321393251419, -0.037289153784513474, 0.007242219056934118, -0.01428761426359415, 0.001128381583839655, 0.10020117461681366, -0.02267051674425602, 0.024137748405337334, -0.0035070411395281553, -0.031044472008943558, 0.005350027233362198, 0.05042266473174095, 0.02991720847785473, -0.006696480326354504, 0.038505882024765015, 0.02818158082664013, 0.028092116117477417, 0.0055021182633936405, -0.05897555127739906, -0.05575479939579964, -0.019843412563204765, -0.034265223890542984, -0.06634749472141266, -0.009241769090294838, 0.0014012508327141404, -0.08295226097106934, 0.07965993881225586, -0.019020330160856247, -0.0353030227124691, -0.0008678137673996389, -0.017973586916923523, 0.014779673889279366, -0.0402236171066761, -0.005336607340723276, -0.0014448652509599924, -0.050207946449518204, -0.027072211727499962, 0.02719746343791485, 0.04505474492907524, -0.013437693938612938, -0.02009391412138939, 0.027179569005966187, 0.0475955605506897, -0.0063744052313268185, 0.00323864514939487, 0.0287183728069067, 0.04083197936415672, 0.030579252168536186, 0.05099524185061455, 0.024155640974640846, -0.016067974269390106, 0.022688409313559532, -0.034193653613328934, -0.06820837408304214, -0.012068874202668667, -0.02039809711277485, 0.011004236526787281, 0.02424510568380356, 0.007559821009635925, 0.016730017960071564, 0.0747930258512497, -0.05697152763605118, -0.02147168107330799, -0.0021460498683154583, -0.005640789400786161, -0.03560720384120941, -0.05965548753738403, 0.026642777025699615, 0.043193865567445755, 0.01685526967048645, -0.09325867146253586, 0.0013207320589572191, -0.017222076654434204, -0.04949222505092621, 0.035714562982320786, 0.009223876520991325, 0.033746324479579926, 0.1083604171872139, -0.021203285083174706, 0.029380416497588158, -0.04512631520628929, 0.0321180559694767, 0.017427848652005196, 0.01730259694159031, -0.027483751997351646, 0.04072462022304535, -0.015316465869545937, 0.018411966040730476, -0.01213150005787611, -0.050207946449518204, -0.017105773091316223, 0.010190102271735668, -0.006575702223926783, -0.016649499535560608, 0.027251141145825386, -0.0074479891918599606, 0.04172663390636444, 0.019091902300715446, 0.002565418602898717, 0.005560270510613918, 0.0071080210618674755, -0.048848073929548264, 0.019753945991396904, -0.00970698893070221, -0.06362774968147278, 0.01943187043070793, -0.10556910187005997, 0.013160350732505322, -0.007850583642721176, -0.07872949540615082, 0.04276443272829056, -0.0074032568372786045, -0.001334151835180819, 0.00804293341934681, -0.06888830661773682, 0.01631847769021988, 0.009984332136809826, -0.043730657547712326, 0.04466109722852707, -0.05654209479689598, -0.05167517811059952, -0.019217154011130333, -0.02072017267346382, -0.023082057014107704, 0.0355893112719059, 0.024316679686307907, 0.02841419167816639, 0.022169509902596474, 0.016121653839945793, -0.041154056787490845, 0.051209960132837296, -0.0023820146452635527, 0.00959963072091341, 0.03134865313768387, 0.031187616288661957, -0.01152313593775034, 0.0015891280490905046, -0.04301493614912033, -0.011084754951298237, -0.05242668837308884, 0.02472821995615959, -0.024978721514344215, 0.000578169769141823, -0.006696480326354504, 0.02252737246453762, -0.02304627187550068, 0.03181387484073639, 0.045233674347400665, 0.0252471175044775, -0.04133298620581627, -0.0064951833337545395, -0.00970698893070221, 0.01133525837212801, -0.051209960132837296, 0.02417353354394436, -0.006517549976706505, -0.033585287630558014, 0.02787739969789982, 0.09826872497797012, 0.018716149032115936, -0.03195701912045479, -0.06255416572093964, 0.021972686052322388, -0.02109592594206333, 0.0030395849607884884, 0.019932877272367477, -0.07901578396558762, -0.009876972995698452, 0.07507931441068649, 0.00513978349044919, 0.01980762556195259, 0.08896432816982269, -0.008132399059832096, -0.014332347549498081, -0.03814801946282387, 0.00364571250975132, 0.006173108238726854, 0.06913881003856659, 0.09669413417577744, -0.024889256805181503, -0.01971816085278988, 0.014797566458582878, 0.048704929649829865, -0.027269035577774048, 0.009492272511124611, 0.013732929714024067, -0.00880338903516531, 0.041225627064704895, 0.04466109722852707, 0.015048069879412651, -0.0435517281293869, -0.0067680529318749905, 0.055575866252183914, 0.03678814694285393, -0.02660699188709259, 0.01393869984894991, -0.007609026972204447, -0.009429646655917168, -0.029434096068143845, -0.08352483808994293, -0.04090355336666107, -0.007439042907208204, -0.022205296903848648, -0.033298999071121216, -0.004978746175765991, -0.045913610607385635, 0.017526259645819664, 0.011505242437124252, -0.008611038327217102, -0.017025254666805267, -0.070892333984375, 0.017222076654434204, 0.0350167341530323, 0.02789529226720333, 0.04219185188412666, 0.023153629153966904, 0.014779673889279366, 0.015280679799616337, 0.07536560297012329, -0.01610376127064228, -0.0024804265704005957, 0.03936474770307541, 0.02358306385576725, 0.03363896533846855, -0.02743007242679596, 0.08123452961444855, 0.0019000200554728508, 0.025497620925307274, -0.0025139760691672564, 0.027179569005966187, -0.01069110818207264, -0.010735840536653996, 0.0015354488277807832, -0.020899102091789246, 0.009832240641117096, -0.013375068083405495, 0.02948777563869953, -0.0006581294001080096, 0.04165505990386009, -0.05629159137606621, -0.020899102091789246, 0.010136422701179981, 0.002639227546751499, 0.033352676779031754, 0.037217579782009125, -0.007823743857443333, -0.013616624288260937, 0.03634082153439522, -0.031116044148802757, -0.01824198290705681, 0.06541705131530762, -0.0025251591578125954, 0.007881896570324898, -0.00037100157351233065, -0.03000667504966259, 0.030722396448254585, 0.019914984703063965, -0.033513713628053665, 0.007801377214491367, 0.012596719898283482, 0.01910979673266411, -0.03247591853141785, -0.01769624464213848, -0.023761993274092674, 0.026392275467514992, 0.019396085292100906, 0.02590916119515896, -0.05199725553393364, -0.06663378328084946, -0.0063341460190713406, -0.029076235368847847, -0.023833565413951874, -0.0736478641629219, -0.009286502376198769, 0.03811223432421684, 0.007756644859910011, 0.027161676436662674, 0.04816813766956329, 0.03505251929163933, -0.03678814694285393, -0.018769828602671623, 0.04308650642633438, -0.01122790016233921, -0.025640765205025673, -0.028324725106358528, 0.019396085292100906, -0.006553336046636105, 0.04881228879094124, 0.024316679686307907, -0.016515301540493965, -0.036627110093832016, -0.002364121610298753, -0.10134633630514145, 0.032153841108083725, 0.044482164084911346, 0.018984545022249222, 0.001441510277800262, -0.02471032552421093, 0.013706089928746223, 0.00031732238130643964, 0.006490710191428661, -0.009259662590920925, 0.013464533723890781, -0.01201519463211298, -0.033889468759298325, -0.015701167285442352, -0.0067904191091656685, -0.04408852010965347, 0.0027264561504125595, -0.011505242437124252, 0.031008686870336533, 0.014878085814416409, 0.06491605192422867, -0.028915196657180786, 0.02803843654692173, 0.009876972995698452, -0.00883917510509491, -0.031259190291166306, 0.023923031985759735, -0.052856121212244034, -0.015665380284190178, 0.009572790935635567, 0.04043833166360855, 0.01666739210486412, 0.018626682460308075, 0.04201292246580124, -0.018206195905804634, -0.04458952322602272, -0.010225888341665268, 0.004283152986317873, 0.026195451617240906, 0.006620435044169426, -0.019521337002515793, -0.012543040327727795, -0.010968450456857681, 0.005135310348123312, 0.03338846564292908, -0.009903812780976295, -0.015030176378786564, 0.02417353354394436, 0.008646825328469276, -0.05639895051717758, -0.0439811609685421, -0.04548417776823044, -0.06996189057826996, -0.010458498261868954, -0.022205296903848648, -0.020952781662344933, 0.007600080221891403, -0.022885233163833618, -0.016416888684034348, 0.028736267238855362, -0.02653541974723339, -0.04630725830793381, 0.018769828602671623, 0.012426735833287239, -0.011281578801572323, 0.034497834742069244, -0.03818380460143089, -0.0027980285231024027, 0.03537459298968315, -0.002431220607832074, -0.062375232577323914, -0.021650612354278564, -0.02743007242679596, 0.02719746343791485, 0.020594920963048935, -0.052784550935029984, -0.04301493614912033, -0.05847454443573952, 0.03199280425906181, 0.03492726758122444, -0.009876972995698452, 0.04949222505092621, 0.014529170468449593, 0.0029724857304245234, 0.0038783224299550056, -0.01812567748129368, 0.02478189766407013, -0.019449764862656593, -0.006656221114099026, 0.0026034412439912558, -0.011854156851768494, 0.022241082042455673, 0.007014082279056311, -0.03483780100941658, -0.06112271919846535, 0.007439042907208204, 0.01950344443321228, -0.03279799222946167, -0.006383351981639862, -0.042657073587179184, -0.018716149032115936, -0.05554008111357689, -0.06606120616197586, -0.015549075789749622, -0.019628694280982018, 0.034032613039016724, -0.016139546409249306, -0.03396104276180267, 0.06144479289650917, 0.004502343013882637, 0.002648174064233899, 0.002012970158830285, -0.004656670615077019, -0.09168408066034317, -0.01655108667910099, -0.0019358062418177724, -0.01851932518184185, -0.03610821068286896, -0.006097062956541777, -0.012471468187868595, 0.011505242437124252, -0.012766703963279724, 0.06284045428037643, -0.055897943675518036, 0.00600759731605649, -0.015996402129530907, 0.02630280889570713, 0.04891964793205261, -0.04433901980519295, -0.030561359599232674, -0.027770040556788445, 0.027984756976366043, 0.053392913192510605, 0.03007824718952179, 0.018573004752397537, 0.04770291969180107, -0.03286956623196602, 0.03324531763792038, 0.029881423339247704, -0.00811003241688013, 0.08502785861492157, -0.048848073929548264, 0.022921020165085793, -0.04670090600848198, -0.013044046238064766, 0.03195701912045479, -0.027626896277070045, 0.029273059219121933, -0.014386026188731194, -0.03537459298968315, -0.004840074572712183, 0.026624884456396103, -0.010002224706113338, -0.008584199473261833, -0.022795768454670906, 0.04594939574599266, -0.04544839262962341, 0.05629159137606621, -0.034426260739564896, -0.003082080977037549, 0.09919916838407516, 0.015074909664690495, 0.01201519463211298, 0.006799365859478712, 0.04670090600848198, 0.009402806870639324, 0.012006248347461224, 0.010986343026161194, -0.05825982615351677, 0.016381103545427322, -0.01821514219045639, 0.04104669764637947, 0.007931102067232132, -0.0029165700543671846, -0.0003223547828383744, -0.03369264677166939, -0.0036501858849078417, 0.06556019932031631, -0.015218053944408894, -0.027787933126091957, 0.0286468006670475, 0.019378192722797394, -0.00010393356205895543, -0.012194125913083553, 0.021185392513871193, 0.0441243052482605, -0.006539916153997183, -0.026553312316536903, -0.00819502491503954, 0.028682587668299675, -0.045233674347400665, -0.0055244844406843185, -0.017812548205256462, 0.06738529354333878, 0.05486014485359192, -0.008633404970169067, 0.025515513494610786, 0.05027952045202255, 0.01216728612780571, 0.007667179219424725, 0.02070227824151516, -0.06802944093942642, -0.03821959346532822, 0.012426735833287239, -0.014108683913946152, 0.06616856157779694, -0.01617533341050148, -0.00888390839099884, 0.06416454166173935, -0.01212255284190178, -0.03915003314614296, 0.024549288675189018, -0.028432084247469902, -0.03900688886642456, 0.047559771686792374, -0.012247804552316666, 0.037682801485061646, 0.0811629518866539, -0.005077158100903034, -0.016730017960071564, 0.026857493445277214, 0.011594708077609539, -0.03650185838341713, -0.03893531486392021, -0.010190102271735668, 0.04104669764637947, 0.024692432954907417, 0.009841186925768852, -0.08552886545658112, -0.06162372604012489, -0.03090132772922516, 0.01201519463211298, -0.01371503621339798, 0.04330122470855713, -0.02939830906689167, 0.03567877784371376, 0.006772526074200869, 0.017857281491160393, -0.008561832830309868, 0.01657792739570141, -0.034211546182632446, -0.0063744052313268185, -0.001187652349472046, -0.026195451617240906, -0.04977851361036301, 0.000400916556827724, 0.024853471666574478, -0.04723769798874855, -0.015164374373853207, 0.007993727922439575, 0.015558022074401379, -0.01598745584487915, -0.03390736132860184, 0.03390736132860184, 0.009138884022831917, 0.032314881682395935, -0.01695368066430092, 0.03907845914363861, 0.006097062956541777, 0.02675013616681099, 0.01511964201927185, 0.06165951117873192, -0.031259190291166306, 0.014099737629294395, -0.004099749028682709, -0.012444628402590752, -0.08617301285266876, -0.0031514165457338095, 0.017096826806664467, -0.01155892200767994, 0.02487136423587799, 0.004638777580112219, 0.002478189766407013, -0.07207327336072922, -0.012632505968213081, 0.00789978913962841, 0.00765375979244709, 0.02472821995615959, -0.007063288241624832, 0.011496296152472496, -0.06473711878061295, 0.0367523618042469, -0.012713024392724037, 0.038649026304483414, 0.0749361664056778, 0.05289190635085106, -0.013124564662575722, 0.044482164084911346, -0.022420013323426247, -0.045305248349905014, 0.0023976711090654135, -0.017222076654434204, -0.10513966530561447, -0.000319838582072407, -0.009885920211672783, 0.08359640836715698, -0.07121440768241882, 0.014538117684423923, -0.0571504570543766, -0.01118316687643528, -0.031849659979343414, 0.028933091089129448, -0.005998651031404734, 0.013885020278394222, 0.016381103545427322, 0.0011541028507053852, -0.011460510082542896, 0.06838730722665787, -0.00028586972621269524, -0.007506141904741526, 0.017061039805412292, 0.07024818658828735, -0.024817684665322304, -0.03678814694285393, -0.011120541021227837, 0.03617978096008301, -0.01948555000126362, 0.034265223890542984, -0.019682373851537704, 0.003518224461004138, -0.03120550885796547, -0.04154770448803902, -0.03655553609132767, 0.02079174481332302, 0.016864215955138206, -0.038362737745046616, 0.0031514165457338095, 0.013017206452786922, -0.034193653613328934, 0.033585287630558014, -0.026875387877225876, -0.04695140942931175, 0.05199725553393364, -0.009322288446128368, 0.05872504785656929, 0.0681368038058281, -0.06205315887928009, 0.030185604467988014, 0.0674210786819458, -0.047130338847637177, -0.02803843654692173, 0.014448652043938637, -0.03490937501192093, 0.0023954343050718307, -0.027233248576521873, -0.022258976474404335, 0.018555110320448875, -0.02138221636414528, 0.04025940224528313, -0.016631606966257095, 0.0024714800529181957, -0.035249341279268265, -0.07851477712392807, -0.03406840190291405, -0.004394984804093838, 0.013616624288260937, -0.008177131414413452, 0.04186977818608284, 0.00854393932968378, -0.03915003314614296, 0.15459610521793365, -0.01284722238779068, -0.09089678525924683, 0.028825731948018074, -0.007837163284420967, 0.020004449412226677, 0.04956379532814026, -0.04573468118906021, 0.03167073056101799, -0.09089678525924683, 0.013885020278394222, -0.06459397077560425, 0.06749264895915985, -0.011612600646913052, -0.041977137327194214, 0.020129701122641563, -0.043122291564941406, 0.05002901703119278, -0.03172440826892853, -0.06810101866722107, -0.030579252168536186, 0.05113838613033295, -0.013947646133601665, -0.02984563633799553, -0.02342202514410019, -0.07336157560348511, 0.024155640974640846, -0.019360298290848732, -0.0028606541454792023, -0.030185604467988014, 0.018340393900871277, 0.004330122377723455, -0.005081631243228912, -0.026034412905573845, 0.03145601227879524, -0.00604338338598609, 0.07937365025281906, -0.002000668551772833, 0.010878984816372395, -0.004585098475217819, 0.03295902907848358, 0.08631616085767746, -0.02955934777855873, 0.015674326568841934, -0.018340393900871277, 0.06187422573566437, -0.05389392003417015, 0.028933091089129448, -0.013392960652709007, -0.019449764862656593, -0.016989467665553093, -0.0038760858587920666, 0.019700268283486366, 0.04480424150824547, -0.017615724354982376, -0.03022139146924019, 0.000837060040794313, 0.04831128194928169, 0.01065532211214304, -0.06992610543966293, 0.007931102067232132, 0.04451795294880867, -0.03739651292562485, -0.060335423797369, -0.09604998677968979, -0.006513076368719339, -0.04562732204794884, -0.023869352415204048, -0.03014981932938099, -0.023905137553811073, 0.0035853234585374594 ]
730,316
mmengine.utils.misc
is_list_of
Check whether it is a list of some type. A partial method of :func:`is_seq_of`.
def is_list_of(seq, expected_type): """Check whether it is a list of some type. A partial method of :func:`is_seq_of`. """ return is_seq_of(seq, expected_type, seq_type=list)
(seq, expected_type)
[ 0.024475455284118652, 0.017972184345126152, -0.008922778069972992, -0.006715826224535704, -0.004540531430393457, 0.024529723450541496, -0.005236987490206957, 0.013974345289170742, -0.0376267172396183, 0.020441437140107155, -0.00399331608787179, -0.061649926006793976, 0.025036238133907318, -0.03842266649007797, 0.02364332601428032, 0.02802104875445366, 0.03668604791164398, -0.014517038129270077, 0.016163207590579987, -0.01527680829167366, -0.028599921613931656, 0.04938506335020065, 0.006498748902231455, 0.00932527519762516, 0.02035098895430565, 0.013684908859431744, 0.04308982565999031, -0.02992047555744648, 0.005603305529803038, 0.019500769674777985, 0.036288071423769, -0.012246772646903992, -0.0087237898260355, -0.015150180086493492, 0.03145810589194298, 0.0724676102399826, -0.02709847129881382, 0.041570283472537994, -0.018849536776542664, 0.038277946412563324, 0.0014415283221751451, 0.0000862797096488066, -0.026248252019286156, 0.004013666883111, -0.017863644286990166, -0.015294898301362991, -0.0495297834277153, 0.02648341841995716, -0.06953706592321396, 0.005811337847262621, 0.007642926648259163, -0.026121623814105988, -0.0034099211916327477, -0.005363616161048412, 0.0002538220433052629, 0.0055219014175236225, -0.0021153721027076244, 0.033466070890426636, 0.08343000710010529, 0.02492769993841648, 0.04403049498796463, 0.023408159613609314, -0.019536947831511497, -0.07713476568460464, 0.03712020069360733, 0.005033477675169706, -0.016262700781226158, -0.017764151096343994, -0.005508333910256624, -0.0018259359057992697, -0.06262677162885666, 0.018704818561673164, -0.03755435720086098, 0.08712031692266464, 0.025741739198565483, 0.009388589300215244, -0.008321292698383331, 0.03683076426386833, 0.02085750177502632, -0.002108588581904769, 0.019356051459908485, 0.03605290502309799, -0.021834349259734154, -0.01182166300714016, -0.04280038923025131, 0.01354923564940691, -0.009578531607985497, 0.027369817718863487, 0.05278594046831131, -0.03511223942041397, -0.003235807176679373, -0.0009581923368386924, 0.004278230015188456, -0.021110758185386658, -0.03744581714272499, 0.02585027739405632, -0.0003861034638248384, -0.07887138426303864, -0.0476122684776783, -0.003923218231648207, 0.02566937915980816, 0.07152693718671799, 0.020568065345287323, 0.008660475723445415, 0.03932715207338333, -0.004138034302741289, -0.017999317497015, -0.042221516370773315, 0.007036919239908457, 0.0035139373503625393, -0.014082883484661579, 0.022612208500504494, -0.065376415848732, -0.008122305385768414, -0.025271404534578323, 0.05405222624540329, 0.0551014319062233, -0.05973241105675697, -0.05079606547951698, -0.03748199716210365, 0.041461747139692307, -0.035962458699941635, -0.027315547689795494, -0.021345924586057663, 0.06074543669819832, 0.02802104875445366, -0.03229023516178131, -0.029052166268229485, -0.016027534380555153, -0.013684908859431744, -0.012581433169543743, 0.028455203399062157, -0.029251154512166977, 0.042872749269008636, 0.010736276395618916, 0.03661368787288666, -0.03256158158183098, -0.04044871777296066, -0.044392287731170654, -0.007783122360706329, -0.02664622664451599, -0.002711203880608082, 0.06903055310249329, -0.04500734061002731, -0.013522100634872913, 0.02364332601428032, 0.0006472744862549007, -0.0016326014883816242, -0.005232464987784624, 0.0746745616197586, 0.023408159613609314, -0.012319131754338741, -0.0008151701185852289, -0.0036993573885411024, -0.04920416697859764, -0.022286593914031982, -0.05094078555703163, -0.035636842250823975, 0.013494966551661491, -0.025904547423124313, -0.027677344158291817, -0.02445736527442932, -0.024638263508677483, 0.021255476400256157, 0.010103135369718075, 0.05090460553765297, -0.04696103557944298, -0.01989874430000782, -0.02382422424852848, -0.004418425727635622, 0.01160458568483591, 0.0009514086996205151, 0.011116161942481995, -0.009524262510240078, 0.010157404467463493, 0.0426194928586483, -0.0004884237423539162, 0.011098071932792664, -0.007330878172069788, -0.04808260127902031, -0.0009751514880917966, 0.007303743623197079, -0.042547132819890976, -0.026212071999907494, -0.023371979594230652, 0.05557176470756531, -0.07282940298318863, -0.0035026310943067074, -0.0017671441892161965, 0.0075027309358119965, -0.06552113592624664, 0.014082883484661579, 0.006250014528632164, -0.08617965131998062, -0.04015928506851196, 0.029540589079260826, -0.04938506335020065, 0.04059343785047531, -0.03503987938165665, 0.034243930131196976, 0.037373460829257965, -0.06074543669819832, 0.0015591117553412914, -0.006354030687361956, 0.01019358355551958, 0.015593379735946655, -0.05698276683688164, 0.008769014850258827, 0.004156123846769333, -0.03308618441224098, -0.039399512112140656, -0.04073815420269966, 0.03567302227020264, 0.015756187960505486, 0.08089743554592133, 0.012581433169543743, -0.06635326892137527, -0.02646533027291298, -0.04084669426083565, -0.05705512687563896, 0.1081768050789833, 0.013115081004798412, -0.046924855560064316, 0.007810256909579039, 0.027188919484615326, 0.008113260380923748, -0.007665538694709539, -0.009732294827699661, -0.0573083832859993, 0.011414643377065659, -0.014399454928934574, -0.0013499489286914468, 0.07843723148107529, 0.008841373957693577, -0.02098412998020649, -0.011278970167040825, -0.0060781617648899555, 0.03726492077112198, -0.003452884266152978, 0.04526059702038765, -0.07286558300256729, 0.01893998682498932, -0.007195204962044954, -0.05842994898557663, -0.017284773290157318, 0.03399067372083664, -0.015710962936282158, 0.04138938710093498, -0.019953012466430664, 0.014417544938623905, -0.045369137078523636, 0.03787997364997864, -0.012237727642059326, -0.04037636145949364, 0.0592258982360363, 0.0368126779794693, -0.002774517983198166, -0.06251823902130127, 0.021997157484292984, -0.0029056689236313105, 0.01558433473110199, -0.036251895129680634, 0.03990602493286133, 0.004825445357710123, -0.05792343616485596, -0.053003016859292984, 0.021689631044864655, 0.06772808730602264, 0.021526822820305824, 0.04124467074871063, 0.11078173667192459, -0.0028152200393378735, 0.016742080450057983, -0.021526822820305824, 0.024077480658888817, -0.01081768050789833, 0.030752604827284813, -0.025108596310019493, 0.05455873906612396, 0.061469029635190964, 0.027641164138913155, 0.04015928506851196, -0.02319108135998249, 0.007199727464467287, -0.010356391780078411, -0.00007313636160688475, 0.006064594257622957, 0.08039092272520065, -0.047865524888038635, 0.04652688279747963, 0.022901644930243492, -0.007719808258116245, 0.04182354360818863, -0.01809881255030632, 0.007376102730631828, 0.06725775450468063, 0.06313328444957733, 0.029830025508999825, 0.021581092849373817, 0.00907201785594225, -0.0012968102237209678, 0.0022114741150289774, 0.06497844308614731, -0.03950805217027664, 0.0008813108433969319, -0.02675476484000683, -0.028310485184192657, -0.04341544210910797, -0.04124467074871063, -0.01723954826593399, 0.01685061864554882, 0.019826384261250496, -0.059008821845054626, -0.031584732234478, 0.02241322211921215, 0.05180909484624863, -0.050361912697553635, 0.00182254402898252, 0.004606106784194708, 0.026845214888453484, -0.035166505724191666, 0.04117231070995331, 0.07138222455978394, 0.024348827078938484, 0.017800331115722656, -0.011423688381910324, 0.037807613611221313, 0.053798966109752655, -0.022901644930243492, 0.06881347298622131, -0.03650515154004097, -0.036559417843818665, 0.008081603795289993, -0.0027157263830304146, 0.015783321112394333, -0.043921954929828644, -0.0036518718115985394, -0.03317663446068764, 0.003222239902243018, -0.02331770956516266, -0.045658573508262634, -0.01754707470536232, 0.024186018854379654, 0.04185971990227699, 0.04526059702038765, 0.006566585507243872, 0.014236646704375744, 0.06794516742229462, 0.04764844849705696, 0.05249650403857231, 0.0028084362857043743, -0.029395870864391327, -0.00665251212194562, -0.009515217505395412, -0.05336481332778931, 0.022684568539261818, 0.028437113389372826, 0.004266923759132624, -0.03889299929141998, -0.006747483275830746, 0.09167893975973129, -0.02662813663482666, 0.03715638071298599, -0.06494226306676865, -0.029070256277918816, 0.031295295804739, -0.011622675694525242, -0.06635326892137527, 0.05235178768634796, 0.05137493833899498, -0.01865055039525032, -0.007186159957200289, -0.007181637454777956, -0.026863304898142815, 0.02192479744553566, -0.04479026421904564, -0.03654133155941963, 0.0032810315024107695, -0.04135320708155632, 0.011695034801959991, -0.0840812399983406, -0.026537688449025154, 0.03842266649007797, -0.026266342028975487, -0.0025076940655708313, 0.005729933734983206, -0.020911771804094315, 0.03087923303246498, -0.09797418117523193, -0.007724330760538578, -0.019482679665088654, -0.03838648647069931, -0.0017411401495337486, -0.05108550190925598, -0.06074543669819832, -0.021273566409945488, -0.017411401495337486, 0.022793106734752655, 0.02726127952337265, -0.032055068761110306, -0.017121965065598488, 0.023245351389050484, -0.0492403469979763, 0.026827124878764153, -0.02159918285906315, 0.06121577322483063, -0.014426589012145996, -0.010320211760699749, -0.056331533938646317, -0.03806087002158165, 0.0495297834277153, -0.02065851353108883, -0.0019220378017053008, -0.027062291279435158, 0.04272802919149399, 0.015548154711723328, -0.016922976821660995, 0.03679458796977997, 0.03104204125702381, -0.021653451025485992, 0.03947187215089798, 0.008904688060283661, 0.12141852080821991, 0.05054280906915665, 0.025253314524888992, 0.013901986181735992, -0.0173028614372015, 0.015285853296518326, -0.0012380183907225728, -0.01770988292992115, 0.02210569567978382, 0.03722874075174332, -0.04124467074871063, -0.03227214515209198, -0.01881335861980915, 0.007398714777082205, -0.028238127008080482, -0.016208430752158165, -0.0033398233354091644, -0.030137551948428154, 0.061975542455911636, 0.08798862993717194, -0.0007806865032762289, 0.016398373991250992, 0.05618681758642197, 0.021707721054553986, -0.022503670305013657, -0.0020633640233427286, 0.03965276852250099, 0.020604245364665985, -0.07080335170030594, 0.0062726265750825405, 0.02738790772855282, 0.022955914959311485, -0.02914261445403099, 0.019356051459908485, 0.03950805217027664, -0.011830708011984825, 0.03722874075174332, -0.03529313579201698, 0.06396541744470596, 0.013042721897363663, -0.00392095698043704, -0.03478662297129631, 0.03943569213151932, 0.021345924586057663, -0.03493133932352066, 0.03863974288105965, -0.004242050461471081, 0.0448264442384243, -0.002706681378185749, 0.00436189491301775, 0.032036978751420975, -0.05296683683991432, 0.05065134912729263, 0.05141111835837364, 0.018560100346803665, -0.01826162077486515, -0.010600603185594082, 0.009153421968221664, -0.031385745853185654, -0.04178736358880997, -0.014851698651909828, -0.0032493744511157274, -0.020604245364665985, -0.05372660979628563, -0.07822015136480331, -0.00689672352746129, -0.02085750177502632, -0.028581831604242325, -0.03238068148493767, -0.061613745987415314, 0.06128812953829765, 0.034714262932538986, 0.08321292698383331, -0.022178053855895996, 0.020423347130417824, -0.03069833479821682, 0.03802469000220299, 0.0814039558172226, 0.044066671282052994, 0.02834666520357132, 0.05781489610671997, 0.032199785113334656, 0.002600403968244791, -0.037807613611221313, 0.04460936412215233, -0.050976965576410294, -0.03583582863211632, 0.012002560310065746, 0.01582854613661766, 0.08509426563978195, 0.04178736358880997, -0.04185971990227699, -0.047214291989803314, 0.017908869311213493, 0.005729933734983206, -0.016389328986406326, 0.056295353919267654, 0.032489221543073654, -0.006788185331970453, -0.03008328378200531, -0.008230844512581825, -0.024348827078938484, 0.07011593878269196, 0.00260718772187829, -0.03842266649007797, -0.007918795570731163, 0.004199087154120207, -0.008289636112749577, 0.01783651113510132, 0.0030910889618098736, 0.029052166268229485, 0.04356015846133232, -0.01631697081029415, 0.07771363854408264, -0.010085045360028744, -0.010293077677488327, 0.06638944894075394, 0.002711203880608082, -0.005820382386445999, 0.004839012864977121, -0.009578531607985497, 0.032796747982501984, -0.03382786363363266, 0.04869765415787697, -0.024059390649199486, -0.02398703061044216, -0.015629559755325317, 0.007263041567057371, -0.012129188515245914, 0.0013160305097699165, -0.0018632459687069058, 0.041570283472537994, 0.015168270096182823, -0.014969282783567905, 0.021508732810616493, 0.005119404289871454, 0.00020817364566028118, -0.009334320202469826, -0.005173673387616873, 0.009605666622519493, -0.013295979239046574, -0.025325674563646317, 0.015493885613977909, -0.04229387640953064, 0.013702998869121075, -0.02993856556713581, 0.03377359360456467, -0.013350248336791992, 0.050687529146671295, -0.010862905532121658, 0.003538810648024082, -0.05274976044893265, 0.012201547622680664, -0.03950805217027664, 0.018523922190070152, 0.049746859818696976, -0.03773525357246399, -0.06953706592321396, -0.02243131212890148, -0.049710679799318314, -0.010691052302718163, -0.013892941176891327, 0.0051284488290548325, -0.022847376763820648, -0.01988065429031849, -0.0012402796419337392, -0.05198999121785164, 0.029341602697968483, -0.020568065345287323, 0.07836487144231796, 0.03990602493286133, -0.030191821977496147, 0.001551197492517531, -0.01191211212426424, 0.0379161536693573, 0.017248593270778656, -0.025741739198565483, 0.0040769814513623714, -0.03169327229261398, 0.034678082913160324, 0.013277889229357243, -0.0015692872693762183, 0.03648706153035164, -0.02223232388496399, -0.011505091562867165, 0.008443398401141167, 0.019826384261250496, -0.0069464705884456635, 0.03511223942041397, 0.08075272291898727, 0.03867592290043831, -0.08451539278030396, 0.0035252433735877275, -0.04877001419663429, -0.024222198873758316, 0.04905944690108299, 0.0551014319062233, 0.022793106734752655, 0.03493133932352066, 0.001207491965033114, 0.08089743554592133, 0.007602224592119455, -0.04630980268120766, -0.04479026421904564, -0.05987713113427162, -0.0761217400431633, 0.02740599773824215, -0.09211309254169464, 0.03167518228292465, -0.024077480658888817, 0.02943205088376999, -0.03145810589194298, 0.013187440112233162, -0.07771363854408264, -0.025814097374677658, -0.08726503700017929, 0.01105284783989191, 0.02378804422914982, -0.0755428671836853, 0.005589738022536039, -0.022974004969000816, -0.004658115096390247, 0.005264122039079666, -0.026736676692962646, 0.021671541035175323, 0.004694294650107622, 0.019500769674777985, 0.029088346287608147, 0.014299960806965828, 0.07930553704500198, 0.01895807683467865, 0.005906309001147747, -0.002485081786289811, -0.01646168902516365, 0.02539803273975849, 0.026501508429646492, -0.00399331608787179, 0.004947551526129246, 0.03465999290347099, 0.001896033762022853, 0.03380977362394333, -0.0014822302618995309, 0.011098071932792664, -0.046780139207839966, 0.02803913876414299, -0.00819014199078083, 0.007136413361877203, 0.029504410922527313, -0.024312647059559822, -0.012635702267289162, 0.01893998682498932, -0.0022962698712944984, 0.019374141469597816, -0.015177315101027489, -0.009198646992444992, -0.02662813663482666, 0.042221516370773315, 0.023371979594230652, -0.012500029057264328, -0.01942840963602066, -0.03465999290347099, 0.0054585873149335384, 0.004264662507921457, 0.03286910802125931, 0.025180956348776817, 0.0016009444370865822, 0.008900165557861328, -0.05575266107916832, -0.017085785046219826, -0.02179816924035549, -0.03163900226354599, -0.004707861691713333, -0.008479578420519829, -0.02319108135998249, -0.055390868335962296, 0.07253996282815933, 0.013467831537127495, 0.045984189957380295, 0.021689631044864655, -0.004346066620200872, 0.01668781042098999, 0.07590465992689133, -0.02755071595311165, -0.014164287596940994, -0.04663541913032532, 0.007706240750849247, 0.01369395386427641, -0.008054468780755997, 0.016045624390244484, 0.012798510491847992, 0.016018489375710487, -0.13769930601119995, -0.040484897792339325, -0.10499300807714462, 0.043162185698747635, 0.007403237279504538, -0.006553017999976873, -0.018442517146468163, 0.01463462132960558, -0.048299677670001984, 0.05596974119544029, -0.08350236713886261, -0.05665715038776398, -0.05687422677874565, -0.028129588812589645, 0.025416122749447823, 0.02255794033408165, -0.034840893000364304, 0.030987771227955818, 0.06772808730602264, -0.0009434944367967546, 0.009867968037724495, -0.023625236004590988, -0.036432791501283646, -0.10448649525642395, 0.035329315811395645, -0.02004346251487732, -0.014254736714065075, 0.0022137353662401438, 0.0589364618062973, 0.058647025376558304, -0.01756516471505165, -0.04240241274237633, -0.008755447342991829, 0.0032878152560442686, -0.007982109673321247, 0.008009244687855244, -0.04793788492679596, 0.011387508362531662, -0.04327072203159332, -0.032489221543073654, -0.05871938541531563, 0.025940725579857826, 0.010347346775233746, -0.005363616161048412, -0.03333944082260132, -0.061179593205451965, -0.0010356392012909055, -0.04247477278113365, 0.006702258717268705, 0.02738790772855282, 0.028708459809422493, -0.025090506300330162, 0.005775158293545246, -0.06345890462398529, 0.005440497305244207 ]
730,317
mmengine.utils.misc
is_method_overridden
Check if a method of base class is overridden in derived class. Args: method (str): the method name to check. base_class (type): the class of the base class. derived_class (type | Any): the class or instance of the derived class.
def is_method_overridden(method: str, base_class: type, derived_class: Union[type, Any]) -> bool: """Check if a method of base class is overridden in derived class. Args: method (str): the method name to check. base_class (type): the class of the base class. derived_class (type | Any): the class or instance of the derived class. """ assert isinstance(base_class, type), \ "base_class doesn't accept instance, Please pass class instead." if not isinstance(derived_class, type): derived_class = derived_class.__class__ base_method = getattr(base_class, method) derived_method = getattr(derived_class, method) return derived_method != base_method
(method: str, base_class: type, derived_class: Union[type, Any]) -> bool
[ -0.02493184059858322, -0.040804363787174225, 0.008656889200210571, 0.06057014688849449, -0.053457457572221756, -0.0807102769613266, 0.0063593038357794285, 0.03870799019932747, 0.008900217711925507, 0.007655497174710035, 0.000848726078402251, -0.01850234530866146, -0.001988744828850031, -0.029143299907445908, -0.0382213331758976, -0.031913504004478455, 0.01708916574716568, -0.002036708639934659, -0.037023406475782394, -0.05544152483344078, 0.004796384368091822, 0.029087146744132042, 0.017079807817935944, 0.004791704937815666, -0.006551159080117941, 0.06932998448610306, -0.0029082465916872025, 0.004843178205192089, -0.0074121686629951, 0.09373772889375687, -0.04604528844356537, -0.02395852468907833, 0.045334022492170334, 0.06693413108587265, 0.050275467336177826, 0.023116232827305794, 0.015488811768591404, 0.02721538580954075, -0.03756621852517128, 0.04694373533129692, -0.09209057688713074, 0.017557106912136078, 0.014637161046266556, -0.01072518341243267, 0.019821936264634132, -0.009358799085021019, -0.02762717381119728, 0.060794755816459656, 0.00712204584851861, -0.001347667071968317, 0.04226433485746384, -0.06270395219326019, 0.02268572896718979, 0.013738716952502728, -0.010397625155746937, 0.001746585825458169, -0.00403364235535264, 0.04952676221728325, -0.022835468873381615, 0.04458531737327576, -0.048441141843795776, 0.0015383525751531124, -0.013308212161064148, -0.0917162299156189, 0.014403191395103931, -0.02558695524930954, -0.05203492194414139, -0.038782861083745956, 0.03032250702381134, -0.023415714502334595, -0.02270444482564926, 0.05697636678814888, -0.013542181812226772, 0.012091567739844322, 0.007281145546585321, 0.025175169110298157, 0.0397561751306057, 0.04690629988908768, 0.012044774368405342, 0.015348429791629314, 0.025455933064222336, -0.039456695318222046, 0.04705604165792465, 0.032512467354536057, -0.014478061348199844, -0.03990591689944267, -0.02858177199959755, -0.05727584660053253, -0.050537511706352234, -0.06835666298866272, 0.00780055858194828, 0.043125346302986145, 0.013186546973884106, -0.048441141843795776, -0.004833819344639778, -0.05008829012513161, 0.04106640815734863, -0.05158570036292076, -0.0037201223894953728, -0.02586771920323372, 0.013064882718026638, 0.02240496501326561, 0.07341041415929794, -0.0675705298781395, 0.015002154745161533, 0.07831443101167679, 0.030472248792648315, 0.008086002431809902, -0.023003926500678062, 0.00789414718747139, -0.0035633626393973827, -0.02019628696143627, -0.009948402643203735, 0.01627495139837265, 0.01289642509073019, -0.028263572603464127, 0.008769194595515728, 0.001922063296660781, -0.04286329820752144, 0.02637309394776821, -0.03591907024383545, -0.021974459290504456, 0.011979262344539165, -0.03874542564153671, 0.004326104652136564, -0.07251197099685669, -0.014066274277865887, 0.02470722794532776, 0.01853042095899582, -0.021207038313150406, -0.01288706623017788, 0.01496471930295229, -0.02876894734799862, -0.01246592029929161, 0.010191732086241245, 0.06124397739768028, -0.024594923481345177, 0.05652714520692825, 0.028432030230760574, -0.031894784420728683, 0.07655497640371323, 0.017379289492964745, 0.053494893014431, 0.024201853200793266, -0.0629659965634346, 0.0377533957362175, -0.05484256148338318, 0.035001907497644424, 0.02549336850643158, 0.027365127578377724, -0.058473773300647736, -0.024651076644659042, -0.010678389109671116, -0.018277734518051147, -0.01878310926258564, -0.02888125367462635, -0.032418880611658096, 0.01351410523056984, -0.010650312528014183, -0.032418880611658096, 0.02702821046113968, -0.037510063499212265, 0.024295441806316376, -0.03593778610229492, 0.009620845317840576, -0.04480993002653122, -0.02203061245381832, -0.046419642865657806, 0.005741623230278492, 0.009232454933226109, -0.042713556438684464, 0.018633367493748665, 0.03253118321299553, -0.0018682501977309585, 0.006256356835365295, 0.03266220912337303, -0.03784698247909546, 0.02395852468907833, 0.02113216742873192, 0.047355521470308304, -0.0005489520262926817, -0.048516012728214264, 0.02277931571006775, -0.011165047064423561, -0.04394891858100891, 0.012727966532111168, -0.007646138779819012, -0.06521210819482803, -0.05439333990216255, 0.03642444312572479, 0.0005273098358884454, -0.007482359651476145, -0.030584555119276047, -0.03120223432779312, 0.006579235661774874, -0.02568054385483265, -0.031164798885583878, 0.044173531234264374, 0.029611239209771156, 0.0430879108607769, 0.03352321684360504, 0.0008417069329880178, -0.0002890991454478353, 0.03803415969014168, 0.026242071762681007, 0.02906842902302742, 0.007112686987966299, -0.03979361057281494, 0.006859999615699053, -0.014272168278694153, -0.011969903483986855, -0.019260408356785774, -0.00071828777436167, -0.014403191395103931, 0.006719617638736963, 0.04529658704996109, 0.031127365306019783, 0.023509303107857704, -0.06015835702419281, 0.013785510323941708, 0.02403339557349682, 0.03324245288968086, -0.011951185762882233, 0.06363983452320099, 0.016050340607762337, 0.032418880611658096, 0.08265691250562668, 0.02886253595352173, 0.023696478456258774, -0.01831516996026039, -0.002444986253976822, 0.006106615997850895, 0.0056246379390358925, 0.07341041415929794, 0.015348429791629314, 0.012288102880120277, 0.02319110371172428, 0.011979262344539165, 0.0023256614804267883, 0.017847228795289993, -0.05611535534262657, 0.04907754063606262, -0.01193246804177761, 0.0010142597602680326, -0.07651753723621368, -0.07034073024988174, -0.052109792828559875, 0.029330475255846977, -0.0009317853837274015, 0.012400408275425434, 0.05727584660053253, -0.01206349115818739, -0.09635819494724274, -0.04945189133286476, -0.00039862634730525315, 0.06086962670087814, -0.052109792828559875, -0.02047705091536045, 0.01903579570353031, 0.028806382790207863, 0.018071839585900307, 0.044660188257694244, 0.05424359813332558, 0.028506901115179062, 0.02665385790169239, -0.026710011065006256, 0.03159530460834503, 0.02154395543038845, 0.012634377926588058, -0.017107883468270302, 0.10362061858177185, -0.03938182443380356, 0.005765019915997982, -0.014908566139638424, 0.02463235892355442, 0.010519289411604404, 0.006855320185422897, -0.01685519702732563, -0.05128621682524681, -0.022367529571056366, 0.007674214895814657, 0.03157658874988556, 0.025081580504775047, -0.02463235892355442, 0.03457140177488327, 0.027365127578377724, 0.006728976499289274, -0.02019628696143627, 0.0032358046155422926, 0.01920425519347191, 0.04589555040001869, -0.02510029822587967, 0.004482864402234554, 0.03498318791389465, -0.011342864483594894, 0.03226913884282112, 0.05495486781001091, -0.025324909016489983, -0.017865946516394615, 0.003930695354938507, -0.033616803586483, 0.038970038294792175, -0.01129607018083334, -0.010519289411604404, -0.0015582400374114513, -0.03473985940217972, -0.0043799178674817085, -0.021787283942103386, 0.0007007400272414088, -0.04454788193106651, 0.007866070605814457, 0.011895033530890942, -0.07034073024988174, -0.06038296967744827, 0.021693695336580276, 0.05974657088518143, -0.028038961812853813, -0.00008071964111877605, -0.019485019147396088, 0.02133806049823761, -0.010987229645252228, 0.10436931997537613, -0.02876894734799862, 0.026578988879919052, -0.060794755816459656, -0.015095742419362068, 0.0006328887538984418, 0.052671320736408234, -0.014852413907647133, 0.004667700733989477, 0.0034814730752259493, -0.0656987652182579, 0.025736697018146515, -0.0033059956040233374, -0.011034023948013783, -0.030341224744915962, -0.036274705082178116, -0.004356520716100931, 0.010584801435470581, 0.07314836978912354, -0.026148483157157898, 0.02858177199959755, 0.050462644547224045, -0.04537145793437958, 0.04660681635141373, 0.025268755853176117, -0.04222689941525459, 0.054505642503499985, 0.010313396342098713, -0.019466301426291466, -0.046981170773506165, -0.0801113173365593, 0.010762618854641914, -0.04855344817042351, -0.0172763429582119, -0.004319085739552975, 0.011988621205091476, 0.04570837318897247, 0.03687366843223572, -0.026429247111082077, 0.0009089733357541263, -0.051810309290885925, -0.027084363624453545, 0.03968130797147751, 0.016686737537384033, 0.050163161009550095, 0.01201669778674841, 0.004829139914363623, -0.0635649636387825, -0.01950373686850071, 0.0249131228774786, -0.04424840211868286, -0.011689139530062675, -0.004064058419317007, 0.043986354023218155, -0.024314159527420998, -0.022741880267858505, -0.046793993562459946, 0.02124447375535965, 0.06161833181977272, 0.06405162066221237, -0.003918997012078762, -0.02405211329460144, -0.020626792684197426, 0.001718509360216558, -0.003270900109782815, -0.052184659987688065, 0.0003301901160739362, -0.027177952229976654, -0.023116232827305794, -0.028357159346342087, 0.04963906854391098, -0.07097712904214859, -0.0026064254343509674, -0.08280665427446365, -0.023322125896811485, -0.05091186612844467, -0.052184659987688065, -0.029704827815294266, 0.03919464722275734, 0.03619983419775963, 0.03573189303278923, 0.05312054231762886, -0.015573041513562202, 0.025455933064222336, 0.04421096667647362, -0.03052840195596218, -0.022517269477248192, 0.023228539153933525, -0.061169110238552094, -0.016340462490916252, -0.0027889220509678125, 0.010874924249947071, 0.031258389353752136, -0.008310613222420216, 0.019466301426291466, 0.03101505897939205, -0.010350831784307957, 0.05978400632739067, -0.006027066148817539, 0.018230939283967018, 0.01540458295494318, -0.015011513605713844, 0.0002712589339353144, -0.019241690635681152, -0.009733150713145733, -0.021469084545969963, -0.07561909407377243, 0.048216529190540314, 0.003261541249230504, 0.0415530651807785, 0.06468801945447922, -0.0042348564602434635, 0.03612496331334114, 0.06015835702419281, -0.07936261594295502, -0.018661445006728172, 0.03283066675066948, 0.0048478576354682446, -0.005587202962487936, -0.11095792055130005, -0.03457140177488327, -0.047467827796936035, 0.0452217161655426, 0.007898826152086258, -0.026990775018930435, 0.004983560182154179, -0.014038197696208954, 0.05978400632739067, 0.0018998361192643642, -0.0178753063082695, 0.00999519694596529, -0.06472545117139816, 0.0544307716190815, -0.06895563006401062, -0.03633085638284683, 0.006289112847298384, -0.016546355560421944, 0.031127365306019783, 0.0641639232635498, -0.053756941109895706, 0.0244451817125082, -0.016424691304564476, 0.006845961324870586, -0.0038394471630454063, 0.017304418608546257, -0.021581389009952545, -0.007964338175952435, -0.00370608433149755, 0.04473505914211273, 0.02869407646358013, -0.051810309290885925, -0.03487088531255722, -0.042451512068510056, -0.01526420097798109, 0.03176376223564148, 0.0641639232635498, 0.05368207022547722, 0.016490204259753227, 0.12458433210849762, -0.0003091328253503889, -0.044173531234264374, -0.04720577970147133, -0.03505805879831314, 0.049676503986120224, -0.04057975113391876, -0.07913800328969955, 0.06794487684965134, -0.038857731968164444, -0.03923208266496658, 0.04159050062298775, -0.04567093774676323, -0.04144076257944107, 0.016639944165945053, 0.020009111613035202, -0.00840420089662075, -0.0036546108312904835, -0.007239030674099922, 0.016986219212412834, -0.019934240728616714, 0.02270444482564926, 0.016864554956555367, 0.033616803586483, 0.06820692867040634, -0.009176301769912243, -0.029892003163695335, 0.060308098793029785, 0.04125358536839485, 0.04084179922938347, 0.060794755816459656, 0.005367271136492491, 0.01526420097798109, -0.018446192145347595, -0.024164417758584023, 0.011548757553100586, -0.014019480906426907, -0.04787961393594742, -0.012082208879292011, -0.0010464306687936187, 0.02558695524930954, 0.0246136412024498, -0.041777677834033966, 0.00010192316403845325, 0.009920326992869377, -0.013205264694988728, -0.008170231245458126, -0.0006276244530454278, 0.023153668269515038, -0.011651704087853432, -0.04720577970147133, -0.003020552219823003, 0.06057014688849449, -0.003687366610392928, -0.04750526323914528, 0.02742128074169159, 0.11574961990118027, 0.008043887093663216, -0.018006328493356705, -0.030977623537182808, -0.013841663487255573, 0.039344388991594315, -0.00675705261528492, -0.012419125996530056, 0.05184774473309517, -0.056152790784835815, 0.050163161009550095, -0.0006972305127419531, -0.0794374868273735, 0.06974177062511444, -0.015891240909695625, 0.01708916574716568, 0.039831046015024185, 0.023995960131287575, 0.009985838085412979, 0.03949413076043129, -0.005273682996630669, 0.006420135963708162, 0.04327508434653282, 0.0330178402364254, 0.02781434915959835, -0.032287854701280594, 0.005568485241383314, 0.05222209542989731, 0.022741880267858505, -0.018848620355129242, 0.010041991248726845, -0.030210202559828758, 0.036443162709474564, 0.04114127904176712, -0.013944610022008419, 0.007356015965342522, 0.00907803513109684, -0.03473985940217972, -0.0418899841606617, 0.03120223432779312, 0.012269385159015656, 0.009045278653502464, -0.01867080293595791, -0.036255985498428345, -0.0434248261153698, -0.045034538954496384, -0.03990591689944267, -0.004349501803517342, -0.02077653259038925, -0.04039257392287254, -0.025755414739251137, -0.033167582005262375, 0.00823106337338686, 0.02848818339407444, -0.007136084139347076, -0.03485216572880745, 0.011848239228129387, 0.011820162646472454, -0.07367246598005295, 0.027159234508872032, 0.06319060921669006, 0.025044145062565804, -0.023790067061781883, -0.04686886444687843, 0.0009393893997184932, -0.014618443325161934, -0.0051473393104970455, 0.01606905832886696, 0.01424409169703722, 0.031033776700496674, -0.03324245288968086, -0.026335660368204117, 0.0019361014710739255, 0.0019454603316262364, 0.008979767560958862, 0.07625549286603928, -0.021955741569399834, 0.05660201609134674, -0.019859371706843376, 0.038670554757118225, -0.020533204078674316, 0.0033247133251279593, -0.003539965720847249, 0.040692057460546494, 0.04574580863118172, -0.02721538580954075, -0.0026906547136604786, -0.005549767520278692, 0.019728347659111023, -0.026766164228320122, -0.01071582455188036, -0.007660176604986191, 0.032418880611658096, -0.025324909016489983, -0.09074291586875916, -0.05304567143321037, -0.03971874341368675, 0.019541172310709953, -0.004796384368091822, -0.026691293343901634, -0.05813685804605484, 0.008277857676148415, -0.02028987556695938, -0.010163655504584312, -0.015077024698257446, 0.02992943860590458, -0.0002012141776503995, -0.04039257392287254, -0.004838498774915934, 0.0238462183624506, -0.032025810331106186, 0.03378526493906975, 0.02637309394776821, -0.011455169878900051, 0.023303408175706863, -0.0007223822758533061, 0.03215683251619339, -0.03505805879831314, -0.0027327691204845905, 0.022255223244428635, -0.060495276004076004, -0.011764010414481163, 0.00010068020492326468, 0.0016799044096842408, 0.028563054278492928, -0.008769194595515728, 0.02057063952088356, -0.021768566220998764, -0.0018951566889882088, 0.04574580863118172, 0.028132548555731773, -0.027365127578377724, -0.017706846818327904, 0.06712130457162857, 0.03696725517511368, 0.042152028530836105, 0.017678771167993546, 0.013588976114988327, -0.08991933614015579, 0.0356195867061615, -0.027477433905005455, -0.006190845277160406, -0.061169110238552094, 0.00588668417185545, -0.040504880249500275, 0.014150504022836685, 0.04488479718565941, -0.09021881967782974, 0.02163754217326641, 0.067233607172966, 0.10107502341270447, -0.02249855175614357, -0.03183863312005997, -0.03926951810717583, -0.015573041513562202, -0.0418899841606617, -0.06532441824674606, -0.027159234508872032, -0.007613382767885923, 0.07034073024988174, -0.0017068109009414911, -0.019952958449721336, 0.01569470576941967, -0.037697240710258484, -0.03101505897939205, -0.011848239228129387, -0.01159555185586214, 0.022517269477248192, 0.03417833149433136, 0.013719999231398106, 0.01613456942141056, -0.04084179922938347, -0.032512467354536057, 0.07711650431156158, 0.04043000936508179, -0.007852031849324703, -0.04159050062298775, 0.013504746370017529, -0.024950558319687843, 0.041777677834033966, 0.008839385583996773, 0.007234351243823767, -0.045633502304553986, 0.004529658704996109, -0.05188518017530441, -0.03002302721142769, 0.005287721287459135, -0.005339194554835558, -0.047168344259262085, 0.018755031749606133, -0.019559890031814575, -0.0019185537239536643, -0.018811184912919998, -0.027346409857273102, 0.08123437315225601, -0.015956752002239227, 0.02345314994454384, 0.010210449807345867, 0.015563682653009892, -0.032680924981832504, -0.000912482850253582, -0.06558646261692047, -0.04945189133286476, -0.04653194546699524, 0.023921089246869087, -0.015320353209972382, -0.07153865694999695, 0.07239966839551926, -0.025849001482129097, 0.08205794543027878, -0.010547365993261337, 0.011576834134757519, 0.0046793995425105095, 0.01496471930295229, 0.022835468873381615, 0.032980408519506454, 0.009176301769912243, -0.011483246460556984, 0.005521691404283047, 0.056339967995882034, 0.05652714520692825, -0.03874542564153671, -0.004810422658920288, 0.05851120874285698, -0.012980653904378414, -0.04039257392287254, -0.013392440974712372, 0.03436550870537758, -0.011277352459728718, -0.016012905165553093, -0.014712031930685043, -0.01950373686850071, 0.020589357241988182 ]
730,318
mmengine.utils.misc
is_seq_of
Check whether it is a sequence of some type. Args: seq (Sequence): The sequence to be checked. expected_type (type or tuple): Expected type of sequence items. seq_type (type, optional): Expected sequence type. Defaults to None. Returns: bool: Return True if ``seq`` is valid else False. Examples: >>> from mmengine.utils import is_seq_of >>> seq = ['a', 'b', 'c'] >>> is_seq_of(seq, str) True >>> is_seq_of(seq, int) False
def is_seq_of(seq: Any, expected_type: Union[Type, tuple], seq_type: Type = None) -> bool: """Check whether it is a sequence of some type. Args: seq (Sequence): The sequence to be checked. expected_type (type or tuple): Expected type of sequence items. seq_type (type, optional): Expected sequence type. Defaults to None. Returns: bool: Return True if ``seq`` is valid else False. Examples: >>> from mmengine.utils import is_seq_of >>> seq = ['a', 'b', 'c'] >>> is_seq_of(seq, str) True >>> is_seq_of(seq, int) False """ if seq_type is None: exp_seq_type = abc.Sequence else: assert isinstance(seq_type, type) exp_seq_type = seq_type if not isinstance(seq, exp_seq_type): return False for item in seq: if not isinstance(item, expected_type): return False return True
(seq: Any, expected_type: Union[Type, tuple], seq_type: Optional[Type] = None) -> bool
[ 0.012758200988173485, 0.06429096311330795, -0.028442084789276123, -0.0016827307408675551, 0.002203520853072405, 0.02540529891848564, -0.016794903203845024, 0.01348036341369152, -0.026590386405587196, 0.006490202154964209, -0.013406295329332352, 0.007906751707196236, 0.06806842982769012, 0.018729927018284798, 0.01141571905463934, 0.018378105014562607, 0.05040322616696358, -0.006055053323507309, -0.021998174488544464, 0.016683800145983696, -0.016072740778326988, 0.08184505999088287, -0.008133584633469582, -0.024720171466469765, 0.02916424721479416, 0.022553684189915657, 0.01865585893392563, -0.03851532191038132, 0.02307215891778469, 0.023627668619155884, 0.05003288388252258, -0.04225575178861618, -0.00046118858153931797, -0.057069338858127594, -0.004499626811593771, 0.04762567952275276, -0.04166321083903313, 0.011212032288312912, 0.06521680951118469, 0.041922446340322495, -0.017535582184791565, 0.017405962571501732, 0.0034186977427452803, 0.029923442751169205, -0.013406295329332352, -0.03568222373723984, -0.0003845166938845068, 0.01794295571744442, -0.08414116501808167, 0.011174999177455902, 0.07658623903989792, -0.05206975340843201, 0.044181518256664276, -0.0566990002989769, -0.0023678590077906847, 0.028682805597782135, -0.032423235476017, 0.026090428233146667, 0.05351407825946808, 0.018396621569991112, 0.048144154250621796, 0.052180856466293335, 0.026738522574305534, -0.040218885987997055, 0.02360915206372738, -0.015387612394988537, -0.00016130026779137552, -0.058661799877882004, 0.012323051691055298, -0.005740264430642128, -0.015517231076955795, 0.006828137207776308, -0.04458889365196228, 0.056921202689409256, -0.0066568548791110516, 0.0016410675598308444, -0.07254953682422638, 0.04458889365196228, 0.002183846663683653, 0.007920638658106327, 0.06299477070569992, 0.01662825047969818, -0.000688600295688957, -0.047551609575748444, -0.02781250700354576, 0.015350578352808952, -0.06314291059970856, 0.0006324706482701004, 0.03995964676141739, -0.021368596702814102, 0.02481275610625744, 0.009401997551321983, -0.0011862441897392273, -0.014378436841070652, -0.015443162992596626, 0.022868473082780838, 0.03810795024037361, -0.04599618539214134, -0.052143823355436325, -0.019479865208268166, 0.006082828622311354, 0.06055053323507309, 0.04884779825806618, -0.02059088461101055, 0.016007931903004646, -0.0008193764369934797, -0.023349914699792862, -0.053032636642456055, -0.0026409844867885113, 0.01567462459206581, -0.002749771811068058, 0.011212032288312912, -0.06321697682142258, -0.010286184027791023, -0.03358980640769005, 0.037145067006349564, 0.04851449280977249, -0.019553933292627335, -0.07317911088466644, -0.02920128032565117, 0.052291955798864365, 0.020405713468790054, 0.0007464658701792359, 0.031793657690286636, 0.05236602574586868, -0.007814166136085987, -0.03444158658385277, -0.034126799553632736, 0.0041616917587816715, -0.021757453680038452, -0.008800195530056953, -0.016054224222898483, -0.0023794323205947876, 0.06854987144470215, -0.00041373883141204715, 0.05840256065130234, -0.05558798089623451, -0.0030136387795209885, -0.09762153029441833, -0.016433821991086006, -0.022127794101834297, 0.04440372437238693, 0.06595749408006668, -0.04844042658805847, -0.008499294519424438, 0.018516981974244118, -0.030441919341683388, -0.0020739019382745028, 0.004525087308138609, 0.041848380118608475, -0.003286764258518815, -0.049810681492090225, 0.011832351796329021, 0.036719176918268204, -0.024868307635188103, -0.04521847143769264, 0.0182577446103096, 0.0032474156469106674, -0.028719838708639145, -0.001637595589272678, -0.01473951805382967, 0.032330650836229324, -0.0055967578664422035, 0.010536163114011288, -0.0027960643637925386, 0.04599618539214134, -0.01981317065656185, 0.03851532191038132, 0.015276510268449783, -0.03208993002772331, -0.03270098939538002, 0.034737858921289444, 0.04529253765940666, -0.04529253765940666, -0.033923111855983734, 0.016609732061624527, -0.012610064819455147, 0.02477572299540043, -0.006318920291960239, -0.05892103537917137, 0.019609484821558, 0.026701487600803375, -0.0306826401501894, -0.00902239978313446, 0.007115150336176157, 0.027442168444395065, -0.044329654425382614, -0.0070920041762292385, 0.03383052721619606, -0.035756293684244156, -0.05755078047513962, 0.045440673828125, -0.04318160191178322, -0.07525301724672318, -0.002448870800435543, 0.017063399776816368, -0.03301578015089035, 0.01794295571744442, -0.0009837147081270814, 0.041033633053302765, 0.05988391861319542, -0.04088549688458443, -0.016054224222898483, 0.033774975687265396, -0.015054306015372276, -0.028405049815773964, -0.0006990160909481347, 0.029923442751169205, 0.023738771677017212, -0.029460517689585686, -0.032330650836229324, -0.06847579777240753, 0.029701238498091698, 0.0023724883794784546, 0.061809685081243515, 0.02618301287293434, -0.08384489268064499, -0.04940330982208252, 0.007652143016457558, -0.012897077947854996, 0.08562252670526505, 0.04484812915325165, 0.016183841973543167, -0.02116491086781025, 0.056884169578552246, -0.004907000344246626, 0.011174999177455902, 0.013350743800401688, -0.03744133934378624, 0.05310670658946037, 0.014008097350597382, 0.010239890776574612, 0.06595749408006668, 0.011554596945643425, 0.015082081779837608, 0.0033168543595820665, 0.007689177058637142, 0.04803305119276047, -0.029701238498091698, 0.015443162992596626, -0.04773677885532379, 0.055291708558797836, -0.037496887147426605, -0.06754995137453079, 0.01033247634768486, 0.01509134005755186, 0.00858262088149786, 0.018128124997019768, -0.03383052721619606, 0.004823673982173204, -0.009702898561954498, 0.01048987079411745, -0.020331647247076035, -0.0625503659248352, 0.03638587146997452, 0.022146310657262802, 0.01794295571744442, -0.06321697682142258, 0.024072077125310898, 0.02314622700214386, 0.006369841750711203, -0.016461597755551338, 0.04884779825806618, 0.02403504215180874, -0.04451482370495796, -0.017322637140750885, 0.013508138246834278, 0.03620069846510887, 0.022553684189915657, -0.0234980508685112, 0.10169526934623718, 0.016294945031404495, 0.022849956527352333, -0.0010352149838581681, 0.007541040889918804, 0.009017770178616047, -0.007541040889918804, -0.036996930837631226, 0.0035390581469982862, 0.03196031227707863, 0.00012354299542494118, 0.044255588203668594, 0.02062791772186756, -0.04995881766080856, -0.004001982975751162, -0.027682887390255928, -0.02916424721479416, 0.04481109604239464, -0.021683385595679283, 0.01489691250026226, -0.002248656004667282, -0.012156398966908455, 0.013285934925079346, -0.04144100472331047, 0.006568899378180504, 0.07429013401269913, 0.06636486202478409, 0.032608404755592346, -0.002809952013194561, 0.006550382357090712, 0.0006023805472068489, 0.02423872984945774, 0.04551474377512932, -0.03079374134540558, -0.016887487843632698, 0.01858179084956646, -0.08991846442222595, -0.03029378317296505, -0.030460435897111893, 0.014665449969470501, 0.004136230796575546, -0.0020808458793908358, 0.001326278899796307, -0.0055967578664422035, -0.01996130682528019, 0.0633280798792839, -0.005189384333789349, -0.013804410584270954, -0.0036663624923676252, -0.0015137633308768272, -0.017387446016073227, 0.014998755417764187, 0.028071744367480278, -0.030775224789977074, 0.009064062498509884, 0.015720916911959648, -0.016378270462155342, 0.04218168556690216, -0.026868140324950218, 0.055217642337083817, 0.023775804787874222, -0.025349749252200127, 0.03642290458083153, 0.0209797415882349, -0.022387031465768814, 0.00255765812471509, -0.019868722185492516, -0.02636818215250969, 0.04484812915325165, -0.029238315299153328, -0.0016225505387410522, 0.012860043905675411, 0.03770057484507561, -0.013387777842581272, 0.057847052812576294, 0.011350910179316998, -0.006217076908797026, 0.03768206015229225, 0.045736946165561676, 0.031904760748147964, -0.00930941291153431, 0.005448622163385153, 0.007328095845878124, -0.05814332515001297, -0.06362435221672058, 0.04073736071586609, 0.07343835383653641, -0.03658955544233322, -0.012461928650736809, 0.026868140324950218, 0.08821490406990051, -0.041811347007751465, 0.03166403993964195, -0.07214216142892838, -0.07680844515562057, 0.06118010729551315, -0.03790426254272461, -0.041922446340322495, 0.056921202689409256, 0.06669817119836807, 0.01555426511913538, 0.04240388795733452, -0.021313047036528587, 0.021701902151107788, -0.042589057236909866, -0.058698832988739014, -0.04010778293013573, 0.008883521892130375, -0.04395931586623192, -0.027868058532476425, -0.034737858921289444, -0.032367683947086334, 0.046551693230867386, -0.00008036081271711737, 0.0027868058532476425, -0.0332009494304657, 0.026553353294730186, 0.028090262785553932, -0.10443577915430069, -0.0058837709948420525, -0.0004878067411482334, -0.031164081767201424, -0.011563855223357677, -0.07247547060251236, -0.03731171786785126, -0.06451316922903061, -0.026516318321228027, 0.05762484669685364, -0.020868638530373573, -0.04455186054110527, -0.009207569062709808, 0.013971063308417797, -0.033886078745126724, -0.032719507813453674, 0.018479948863387108, 0.0792526826262474, -0.0024789609014987946, -0.044959232211112976, -0.0039811511524021626, -0.008994624018669128, 0.01663750782608986, -0.041070666164159775, -0.012276759371161461, -0.04247795790433884, 0.023831356316804886, -0.022275930270552635, -0.003543687518686056, -0.010582455433905125, 0.023942457512021065, -0.016822678968310356, 0.036682140082120895, 0.041107699275016785, 0.06121714413166046, 0.004948663525283337, 0.04299643263220787, -0.015563523396849632, 0.01889657974243164, 0.0011688844533637166, 0.012674874626100063, -0.043366771191358566, -0.016544923186302185, 0.010239890776574612, -0.009749190881848335, 0.007786390837281942, 0.007281803060323, 0.03988558053970337, -0.02703479304909706, -0.01578572764992714, -0.0173781868070364, -0.007684547454118729, 0.02951606921851635, 0.018979907035827637, -0.014480279758572578, 0.04629245400428772, 0.05666196718811989, -0.02703479304909706, -0.005939322058111429, -0.006555011495947838, 0.05051432549953461, 0.06055053323507309, -0.07284580916166306, 0.07851200550794601, -0.04244092479348183, -0.01662825047969818, 0.02183152176439762, -0.017007848247885704, 0.07873421162366867, -0.012508220970630646, -0.029367933049798012, -0.00430056918412447, 0.03410828113555908, -0.023368431255221367, -0.009036287665367126, -0.08421523123979568, 0.04836635664105415, 0.022812921553850174, -0.061772651970386505, 0.035237815231084824, -0.001620235969312489, 0.03160848841071129, -0.030867809429764748, 0.019368764013051987, 0.017674459144473076, -0.014989497140049934, 0.025497883558273315, 0.008328013122081757, 0.021498216316103935, 0.007434568367898464, -0.024683136492967606, 0.052032720297575, 0.010415802709758282, -0.03266395628452301, -0.006633708719164133, 0.02229444682598114, -0.029812341555953026, -0.03877456113696098, -0.06962385028600693, -0.03771909326314926, -0.05106983706355095, -0.004451019689440727, -0.024757204577326775, -0.03560815751552582, 0.019165076315402985, 0.06954978406429291, 0.08228947222232819, -0.03255285322666168, 0.03157145529985428, -0.009249232709407806, -0.009374221786856651, 0.042589057236909866, 0.07110521197319031, 0.08028963208198547, 0.05155127868056297, 0.009971395134925842, 0.028405049815773964, -0.00245118560269475, -0.013211866840720177, -0.07695657759904861, -0.05418068915605545, 0.0006770271575078368, 0.0018979907035827637, 0.065253846347332, 0.01673935167491436, -0.0753641203045845, -0.037459854036569595, 0.0034557317849248648, 0.05814332515001297, -0.06140231341123581, 0.05188458412885666, 0.007837312296032906, -0.0194243136793375, -0.021757453680038452, -0.012684132903814316, 0.02866428904235363, -0.005545835942029953, 0.0028886492364108562, -0.023386947810649872, -0.01670231856405735, -0.010397285223007202, -0.04277423024177551, 0.047329407185316086, 0.04399634897708893, 0.013934029266238213, 0.03627476841211319, -0.0010838221060112119, 0.0532178059220314, 0.008170618675649166, -0.008753903210163116, 0.05073653161525726, -0.00206580082885921, 0.003916341811418533, -0.00792526826262474, -0.004647762514650822, 0.03694137930870056, -0.013397036120295525, 0.05110687017440796, 0.033423151820898056, 0.012943370267748833, 0.002248656004667282, 0.04540364071726799, -0.045181434601545334, -0.00874001532793045, 0.007022565696388483, 0.03407124802470207, 0.024831272661685944, 0.025220129638910294, 0.022924024611711502, 0.0019280808046460152, 0.018979907035827637, 0.01606348156929016, -0.010276924818754196, 0.019331729039549828, -0.045107368379831314, -0.03486747667193413, 0.017044881358742714, -0.04358897730708122, 0.03790426254272461, -0.02746068499982357, 0.08414116501808167, -0.0009489953517913818, 0.0380709171295166, -0.03212696313858032, -0.05240305885672569, -0.03929303586483002, -0.00455517740920186, -0.03464527428150177, -0.06199485436081886, 0.06236519664525986, -0.07628996670246124, -0.0199983399361372, 0.017618907615542412, -0.012823009863495827, 0.006462426856160164, -0.007300320081412792, -0.0017706864746287465, -0.04918110370635986, -0.053847383707761765, -0.020016858354210854, -0.08288200944662094, 0.01298966258764267, -0.005319003015756607, 0.055476877838373184, -0.003638586960732937, 0.02710886113345623, 0.03903379663825035, 0.00755492877215147, 0.09369593113660812, 0.01938728056848049, -0.04532957077026367, -0.011721249669790268, -0.0017637425335124135, 0.02862725406885147, 0.019739102572202682, -0.007193847559392452, 0.039515238255262375, 0.014943204820156097, -0.0038492176681756973, 0.0022382403258234262, 0.03449713811278343, 0.0039047684986144304, 0.011165739968419075, 0.0613652803003788, 0.029460517689585686, -0.06262443214654922, -0.039441172033548355, -0.046773895621299744, -0.04007074981927872, 0.026238564401865005, 0.0033585175406187773, -0.009795483201742172, 0.03683027625083923, 0.0011312718270346522, 0.020553849637508392, -0.03705248236656189, -0.01602644845843315, -0.008378934115171432, -0.05181051418185234, -0.08177099376916885, 0.039441172033548355, -0.07740098237991333, 0.03057153709232807, -0.055402811616659164, 0.024294281378388405, -0.06232816353440285, 0.01322112511843443, -0.0808081105351448, -0.044885165989398956, -0.013045214116573334, -0.004782010801136494, 0.027331065386533737, -0.07088300585746765, 0.027979159727692604, -0.05999502167105675, -0.012526738457381725, -0.019479865208268166, -0.021664869040250778, 0.032404717057943344, 0.013971063308417797, 0.009207569062709808, 0.006337437313050032, 0.04125583544373512, 0.07562335580587387, 0.022442582994699478, -0.028571702539920807, 0.035978496074676514, -0.010980570688843727, 0.012758200988173485, 0.0035992383491247892, -0.022183343768119812, 0.019979823380708694, 0.03751540556550026, -0.0005398857756517828, 0.034311968833208084, 0.0009443660965189338, 0.032330650836229324, -0.045107368379831314, -0.014545089565217495, -0.015146891586482525, 0.0027937497943639755, 0.018452173098921776, -0.06536494940519333, -0.028460601344704628, 0.04762567952275276, -0.037496887147426605, 0.009263120591640472, 0.010378768667578697, 0.012369344010949135, -0.03018268011510372, 0.033774975687265396, 0.005031989887356758, -0.005314373876899481, 0.01374885905534029, -0.02994195930659771, -0.02562750317156315, -0.02396097406744957, -0.014285851269960403, 0.0070920041762292385, 0.0015021901344880462, 0.01052690390497446, -0.08525218814611435, 0.026275597512722015, 0.02484978921711445, -0.01985020563006401, -0.014924687333405018, 0.00957327987998724, -0.00949921179562807, -0.03234916925430298, 0.08695574849843979, 0.004888483323156834, 0.031441833823919296, 0.012897077947854996, -0.002800693502649665, 0.03570074215531349, 0.07195699214935303, -0.019165076315402985, 0.003289079060778022, -0.08325234800577164, 0.04884779825806618, 0.004819044377654791, 0.017637426033616066, 0.005031989887356758, -0.003041414311155677, 0.011563855223357677, -0.07314208149909973, -0.03251582011580467, -0.058513663709163666, 0.03484896197915077, 0.031830690801143646, -0.02710886113345623, -0.004842191003262997, -0.03440455347299576, -0.008471519686281681, -0.0034927658271044493, -0.0633280798792839, -0.0493292398750782, -0.025886740535497665, -0.03955227509140968, 0.02516457810997963, 0.011387944221496582, -0.027664370834827423, 0.005545835942029953, 0.021294528618454933, 0.003890880849212408, 0.014572865329682827, -0.04247795790433884, -0.0041755796410143375, -0.12258242070674896, 0.006249481346458197, -0.06299477070569992, -0.03768206015229225, -0.018396621569991112, 0.06262443214654922, 0.06155044957995415, -0.02679407224059105, -0.03740430250763893, -0.005814332515001297, -0.032830610871315, 0.011276842094957829, 0.008929814212024212, -0.059328410774469376, -0.02116491086781025, -0.01666528359055519, -0.03333056718111038, -0.009536245837807655, 0.03099742718040943, 0.005309744738042355, -0.018304036930203438, 0.02159080095589161, -0.01219343300908804, 0.029923442751169205, -0.06584639102220535, 0.021961141377687454, 0.07158665359020233, -0.02240554802119732, -0.005143092013895512, -0.012897077947854996, -0.07580852508544922, 0.004534346051514149 ]
730,319
mmengine.utils.misc
is_str
Whether the input is an string instance. Note: This method is deprecated since python 2 is no longer supported.
def is_str(x): """Whether the input is an string instance. Note: This method is deprecated since python 2 is no longer supported. """ return isinstance(x, str)
(x)
[ 0.015812557190656662, -0.009393597953021526, -0.007597506977617741, -0.03684377670288086, 0.012516099028289318, -0.01266396138817072, 0.0525345653295517, 0.043071385473012924, 0.042827848345041275, -0.027102269232273102, 0.015499436296522617, -0.01266396138817072, 0.011080966331064701, -0.0034377959091216326, 0.029728997498750687, -0.025014802813529968, -0.03660023957490921, -0.021292155608534813, 0.05876217409968376, -0.038826871663331985, -0.06947783380746841, 0.03174688294529915, 0.03879208117723465, 0.022944731637835503, -0.01159413531422615, 0.0990154817700386, 0.0722959116101265, -0.009776299819350243, -0.002136391121894121, 0.05117771402001381, 0.008667333982884884, -0.025206154212355614, 0.04067080095410347, -0.004805521108210087, 0.021222572773694992, 0.0200570710003376, -0.022666404023766518, -0.005805765278637409, -0.003261665813624859, -0.010150304064154625, -0.060780055820941925, 0.05378704518079758, -0.060466937720775604, -0.016664939001202583, -0.03646107763051987, -0.021744439378380775, -0.06822535395622253, 0.04926420375704765, -0.011698508635163307, 0.024266794323921204, 0.050968967378139496, -0.04512406140565872, -0.015221107751131058, 0.01556032057851553, 0.0037074268329888582, -0.017430342733860016, 0.0322861447930336, 0.0504818893969059, -0.011741997674107552, -0.010811335407197475, 0.04199286177754402, 0.010680868290364742, 0.044567402452230453, -0.05570055544376373, 0.006418958771973848, -0.007693182677030563, -0.0016080013010650873, -0.03827021270990372, 0.026441238820552826, 0.018317515030503273, -0.02155308797955513, -0.012707450427114964, -0.06043214723467827, 0.045193642377853394, -0.008345515467226505, 0.00857600662857294, -0.06008423492312431, 0.08148076385259628, 0.003818323602899909, -0.037435226142406464, 0.03508682921528816, 0.012089908123016357, -0.024510331451892853, -0.02539750561118126, -0.06335459649562836, -0.052221447229385376, -0.09198767691850662, 0.017752161249518394, -0.03221656009554863, 0.05243019387125969, 0.01951780915260315, -0.018474075943231583, 0.010315561667084694, 0.03861812502145767, 0.02687612734735012, -0.006397214252501726, 0.0319904200732708, -0.07932371646165848, 0.027397993952035904, -0.006779916118830442, -0.02398846484720707, 0.06745994836091995, 0.0221097469329834, -0.0012263864045962691, -0.07327006012201309, -0.050829801708459854, 0.002905057044699788, -0.05030793696641922, -0.019082920625805855, -0.0182479340583086, -0.015925627201795578, -0.045576345175504684, -0.02233588881790638, -0.010863522067666054, 0.004061861429363489, -0.051456041634082794, -0.0210834089666605, -0.030459610745310783, -0.0249974075704813, -0.03254707530140877, 0.02687612734735012, 0.03152073919773102, -0.05824030563235283, -0.010237282142043114, 0.055526599287986755, 0.05813593417406082, -0.047837767750024796, -0.015029756352305412, 0.012803126126527786, 0.03771355748176575, -0.024249399080872536, 0.013742486014962196, -0.04467177763581276, 0.015969116240739822, 0.035626091063022614, 0.00657986756414175, -0.0396270677447319, 0.0901089608669281, 0.00022994744358584285, -0.010750451125204563, 0.014638356864452362, 0.026771754026412964, 0.03597399964928627, -0.009524064138531685, 0.015116734430193901, 0.04296701401472092, -0.0034073537681251764, 0.0007268078625202179, -0.016360515728592873, 0.023223061114549637, 0.0011437574867159128, 0.026736963540315628, 0.011881161481142044, 0.02725883014500141, -0.02381451055407524, 0.018073977902531624, 0.013890348374843597, -0.017917418852448463, 0.04018372297286987, -0.02828516624867916, -0.014481796883046627, -0.02727622538805008, 0.016203956678509712, -0.03496505692601204, 0.05611804872751236, -0.006401563063263893, 0.0002851239696610719, 0.013133641332387924, 0.037817928940057755, 0.028041629120707512, -0.023692741990089417, 0.016012605279684067, -0.034356214106082916, 0.02971160225570202, 0.02922452613711357, 0.0729917362332344, 0.008554262109100819, 0.07480087131261826, 0.017499925568699837, -0.007275689393281937, 0.017360759899020195, -0.04748985543847084, -0.05062105506658554, -0.018630634993314743, 0.011037477292120457, 0.009611042216420174, -0.006340678781270981, 0.013559832237660885, -0.001788480207324028, 0.012794428505003452, -0.0005395339103415608, 0.01762169413268566, -0.0033725625835359097, -0.031381573528051376, -0.00028077507158741355, -0.011959441937506199, -0.012446517124772072, -0.03583483770489693, -0.013994721695780754, 0.03513901308178902, 0.0053839231841266155, -0.007101734168827534, -0.003596530295908451, -0.02273598685860634, -0.0002020873798755929, -0.033660393208265305, -0.03555650636553764, -0.005018616560846567, -0.01950041390955448, 0.013368481770157814, -0.05476119741797447, -0.022370679304003716, -0.029520250856876373, 0.04352366924285889, 0.005275201052427292, 0.016638845205307007, 0.02633686549961567, -0.024545123800635338, 0.036878570914268494, -0.01920468918979168, 0.09456221759319305, 0.09379681199789047, 0.024510331451892853, 0.012376935221254826, 0.039209574460983276, -0.011950744315981865, -0.017447737976908684, 0.03896603733301163, 0.02117038704454899, -0.015308085829019547, 0.04115787521004677, -0.007432249374687672, 0.030598774552345276, 0.058657798916101456, 0.05775323137640953, -0.08210700005292892, 0.024649497121572495, 0.002270119497552514, -0.0057013919577002525, -0.04703757166862488, 0.00521431677043438, -0.006318934261798859, -0.05757927522063255, -0.018543658778071404, -0.010402539744973183, -0.0546916127204895, -0.02177922986447811, 0.0901089608669281, -0.07368755340576172, -0.013742486014962196, 0.07417463511228561, -0.0395226925611496, -0.030042117461562157, -0.09358806908130646, -0.019082920625805855, -0.007588809356093407, -0.013664205558598042, 0.002652821596711874, 0.0007621425902470946, -0.04922940954566002, -0.04477614909410477, 0.04630695655941963, 0.008180257864296436, 0.07264382392168045, -0.040949128568172455, -0.05354350805282593, 0.003424749244004488, 0.049577321857213974, 0.05288247764110565, -0.008019349537789822, 0.06088443100452423, -0.01740424893796444, -0.02132694609463215, 0.039835814386606216, -0.037435226142406464, -0.03955748304724693, 0.009889370761811733, -0.03927915543317795, 0.06923429667949677, 0.015621205791831017, 0.02593676745891571, 0.025258341804146767, 0.007906278595328331, -0.03847895935177803, 0.026423843577504158, -0.0442194938659668, 0.012255165725946426, -0.04004456102848053, 0.01943083107471466, 0.05135167017579079, -0.027554553002119064, 0.0034812847152352333, -0.004483703523874283, -0.002915929304435849, -0.018839381635189056, 0.0734788104891777, 0.02428418956696987, -0.013142338953912258, 0.011942045763134956, -0.06380688399076462, -0.007427900563925505, 0.026319470256567, -0.0525345653295517, -0.002868091454729438, 0.03861812502145767, -0.02484084852039814, -0.01788262650370598, -0.025293132290244102, -0.05611804872751236, 0.023483995348215103, 0.015612507238984108, 0.005910138599574566, -0.03837458789348602, 0.00858470518141985, 0.03536515682935715, 0.04080996289849281, -0.006079745478928089, -0.042445145547389984, -0.06578997522592545, 0.07160008698701859, -0.029902953654527664, -0.02671956643462181, 0.01104617491364479, -0.03847895935177803, -0.03249489143490791, -0.001452528522349894, 0.021901000291109085, 0.015577716752886772, 0.030911894515156746, 0.04985564947128296, -0.007001709658652544, -0.044636987149715424, 0.09344889968633652, -0.031172828748822212, -0.0031942580826580524, -0.07125218212604523, 0.0034008303191512823, -0.026458634063601494, -0.019848324358463287, 0.049020662903785706, 0.02209234982728958, 0.02445814572274685, 0.036008790135383606, 0.03329508751630783, -0.03833979740738869, -0.007032151799649, -0.019970092922449112, 0.00901089608669281, 0.09066561609506607, -0.011620228178799152, -0.06377208977937698, -0.005457854364067316, -0.04703757166862488, -0.020161444321274757, -0.00765839172527194, 0.016273537650704384, 0.024005861952900887, 0.0644679144024849, 0.026145514100790024, -0.013359783217310905, 0.02593676745891571, -0.018160955980420113, -0.017760857939720154, 0.012446517124772072, -0.07848872989416122, 0.02562364749610424, 0.05117771402001381, -0.001326410798355937, 0.06766869872808456, 0.03550432249903679, 0.017456436529755592, 0.03872249647974968, -0.09143102169036865, -0.040949128568172455, -0.05243019387125969, 0.023640554398298264, 0.0410882942378521, 0.011924650520086288, -0.04787255823612213, -0.030059512704610825, 0.032564472407102585, 0.010646077804267406, -0.0004055337922181934, -0.00032806923263706267, 0.026771754026412964, -0.00046505918726325035, -0.016751917079091072, -0.03677419573068619, 0.011828974820673466, -0.03456496074795723, -0.0012948813382536173, -0.001361201866529882, -0.01422956120222807, 0.01402951218187809, -0.04028809815645218, -0.03338206186890602, 0.02531052753329277, -0.010793940164148808, -0.03079012595117092, 0.07876706123352051, 0.046446122229099274, 0.031712088733911514, -0.023449202999472618, 0.013420668430626392, -0.04154057800769806, 0.12608295679092407, 0.016395308077335358, -0.030911894515156746, 0.0019124234095215797, 0.015090640634298325, 0.05744010955095291, -0.05197790637612343, -0.0587969645857811, -0.059214457869529724, 0.04171453416347504, 0.03550432249903679, 0.014046908356249332, 0.018474075943231583, 0.051456041634082794, -0.0468636155128479, -0.033416856080293655, -0.015055850148200989, -0.0015732102328911424, 0.08996979147195816, -0.01950041390955448, 0.033573415130376816, -0.0013177130604162812, -0.0017362935468554497, 0.08252449333667755, 0.006597262807190418, -0.039383530616760254, -0.0100285355001688, -0.044463030993938446, -0.05124729499220848, 0.023797115311026573, -0.02030060812830925, -0.02428418956696987, -0.006984313949942589, -0.018056582659482956, 0.0034573657903820276, 0.00783669576048851, -0.000783343450166285, -0.002487563993781805, 0.04662007838487625, 0.07633168250322342, 0.00845858734101057, -0.04665486887097359, 0.028615683317184448, 0.05531785264611244, -0.019465621560811996, -0.020509354770183563, -0.02720664255321026, -0.014603565447032452, 0.0011818102793768048, -0.0018482774030417204, -0.057335738092660904, 0.019552599638700485, 0.02821558527648449, 0.0060145119205117226, 0.009332713671028614, -0.10882657021284103, 0.02626728266477585, -0.06158025190234184, 0.0012970558600500226, 0.012142094783484936, 0.08955229818820953, -0.03948790207505226, 0.027780696749687195, 0.04300180450081825, 0.06620746850967407, -0.0200570710003376, 0.017265085130929947, 0.026319470256567, -0.02845912240445614, 0.01638660952448845, 0.030998872593045235, -0.019778741523623466, 0.041958071291446686, 0.020196234807372093, -0.0401141420006752, -0.058414261788129807, 0.010089419782161713, 0.0018602367490530014, 0.014864498749375343, -0.0015927802305668592, -0.06512894481420517, 0.03388653323054314, 0.007710578385740519, 0.03282540664076805, 0.0557701401412487, -0.002093989634886384, 0.02461470477283001, 0.02459730952978134, -0.041331831365823746, 0.050899382680654526, 0.032338328659534454, -0.03369518369436264, 0.018613239750266075, -0.007023454178124666, 0.06627704948186874, 0.03760918229818344, 0.03305154666304588, 0.024562519043684006, 0.020352795720100403, 0.07765374332666397, 0.0009844795567914844, 0.012933592312037945, -0.0034878081642091274, -0.04171453416347504, -0.018160955980420113, -0.06405042111873627, 0.0036269724369049072, 0.05232581868767738, 0.02007446624338627, 0.06547685712575912, 0.011707206256687641, 0.016256142407655716, 0.010411237366497517, -0.007301782723516226, 0.001941778464242816, -0.022057559341192245, -0.009184851311147213, -0.01944822631776333, -0.07017365843057632, 0.023310039192438126, -0.013577228412032127, 0.002663693856447935, -0.018682822585105896, -0.02595416270196438, 0.03188604488968849, 0.014925383031368256, 0.04738548398017883, 0.013690299354493618, -0.027224037796258926, -0.006440702825784683, 0.022196723148226738, -0.033729974180459976, -0.011689811013638973, 0.07521836459636688, -0.008854336105287075, -0.007680136244744062, -0.07208716869354248, 0.025032198056578636, -0.045263227075338364, -0.020944243296980858, -0.007127827499061823, 0.020944243296980858, 0.019865719601511955, -0.032634053379297256, -0.03261665999889374, -0.03736564517021179, -0.018073977902531624, -0.022631613537669182, 0.027606740593910217, 0.025519274175167084, -0.02195318602025509, -0.04762902110815048, 0.02955504134297371, -0.006275445222854614, 0.019465621560811996, -0.031625114381313324, -0.06164983659982681, 0.004483703523874283, -0.026284677907824516, -0.039209574460983276, -0.028041629120707512, 0.006353725213557482, 0.0006381992716342211, 0.028041629120707512, -0.01849147118628025, 0.04829005151987076, -0.06801660358905792, 0.05041230842471123, -0.0010225322330370545, -0.01684759184718132, 0.02428418956696987, 0.012350841425359249, 0.008123722858726978, -0.057092200964689255, -0.027293620631098747, 0.005414365325123072, -0.0036052281502634287, -0.0291549451649189, -0.024875639006495476, 0.012524797581136227, -0.07681875675916672, -0.006079745478928089, 0.0026919615920633078, -0.05368267372250557, -0.008902173489332199, 0.003931394778192043, 0.013490250334143639, 0.06700766831636429, -0.034669335931539536, 0.03317331522703171, -0.047594230622053146, 0.0027963349130004644, -0.018474075943231583, 0.051456041634082794, -0.02264900878071785, 0.02546708844602108, 0.056257214397192, 0.026110723614692688, -0.008249840699136257, 0.05476119741797447, 0.06356334686279297, -0.010637380182743073, 0.059214457869529724, -0.01944822631776333, -0.01363811269402504, 0.04150578752160072, 0.020231027156114578, 0.005801416467875242, -0.012237770482897758, 0.039383530616760254, -0.0015645123785361648, 0.043836791068315506, -0.04575030133128166, 0.009263130836188793, -0.026110723614692688, 0.05423932895064354, 0.08607318997383118, 0.045089270919561386, 0.0015188490506261587, -0.04592425748705864, -0.03778313845396042, -0.01967436820268631, -0.030616171658039093, -0.01152455247938633, -0.1416693776845932, -0.017586901783943176, -0.07146092504262924, 0.03973143920302391, -0.039835814386606216, -0.04453261196613312, -0.004242340102791786, 0.005353481043130159, -0.018943754956126213, 0.024353772401809692, 0.044323865324258804, 0.017030244693160057, -0.005492645315825939, 0.010098117403686047, 0.022475052624940872, -0.026997895911335945, 0.0039727091789245605, 0.03183386102318764, -0.02892880141735077, 0.00901089608669281, -0.029798580333590508, -0.013003175146877766, 0.03614795580506325, 0.008728218264877796, -0.04105350002646446, 0.01567339152097702, 0.033660393208265305, -0.04237556457519531, -0.011220131069421768, -0.015299387276172638, -0.05201270058751106, 0.043210551142692566, -0.04154057800769806, 0.027763299643993378, 0.056779079139232635, 0.0069190808571875095, -0.028876615688204765, -0.028319958597421646, 0.008723868988454342, -0.01516892109066248, -0.037330854684114456, 0.030355237424373627, 0.007971511222422123, -0.007962813600897789, -0.045889463275671005, 0.021587880328297615, -0.04004456102848053, -0.023779718205332756, -0.01144627295434475, -0.006871243007481098, -0.020718101412057877, 0.0032768871169537306, -0.022996919229626656, -0.040636006742715836, -0.0722959116101265, -0.031398970633745193, -0.0066537982784211636, -0.025762811303138733, -0.013838161714375019, 0.028111211955547333, -0.04829005151987076, 0.024823451414704323, 0.006223258562386036, -0.0012742241378873587, -0.015195013955235481, 0.09671926498413086, -0.0208398699760437, -0.020491959527134895, 0.0656508132815361, 0.019082920625805855, -0.02765892632305622, 0.053021639585494995, -0.007136525120586157, -0.01777825318276882, 0.07765374332666397, 0.02280556783080101, -0.025988953188061714, -0.07236549258232117, -0.01856105402112007, 0.04755943641066551, -0.039209574460983276, -0.010802637785673141, 0.012803126126527786, -0.016551867127418518, -0.034530170261859894, 0.006571169476956129, -0.06979095190763474, -0.008332469500601292, 0.0032921081874519587, 0.03033784218132496, 0.0210834089666605, 0.02522354945540428, -0.04334971308708191, 0.00595362763851881, 0.006240654271095991, -0.00928922463208437, -0.024736475199460983, -0.03339945897459984, 0.015386365354061127, 0.022527240216732025, 0.009924162179231644, 0.015725579112768173, 0.018213141709566116, -0.018613239750266075, 0.058970920741558075, -0.040392469614744186, -0.016421400010585785, -0.014325236901640892, 0.0149688720703125, -0.010706962086260319, -0.011315806768834591, 0.026110723614692688, 0.02052675001323223, 0.0016732346266508102, -0.07160008698701859, 0.025745416060090065, -0.012655263766646385, 0.063006691634655, 0.03273842856287956, -0.011628925800323486, -0.026510819792747498, 0.0432453416287899, -0.011254921555519104, -0.04140141233801842, 0.022979523986577988, 0.06766869872808456, -0.04550676420331001, -0.0468636155128479, 0.008101978339254856, 0.008154164999723434, 0.018926359713077545, -0.044706568121910095, 0.00783669576048851, 0.018856778740882874, -0.0002253267593914643, -0.05201270058751106, -0.0018515390111133456, -0.01676061376929283, 0.02971160225570202 ]
730,320
mmengine.utils.misc
is_tuple_of
Check whether it is a tuple of some type. A partial method of :func:`is_seq_of`.
def is_tuple_of(seq, expected_type): """Check whether it is a tuple of some type. A partial method of :func:`is_seq_of`. """ return is_seq_of(seq, expected_type, seq_type=tuple)
(seq, expected_type)
[ 0.010459773242473602, 0.037453897297382355, -0.0009025373146869242, 0.010289037600159645, 0.0027834319043904543, -0.0060700830072164536, -0.009170273318886757, 0.05244264379143715, -0.03781333938241005, 0.008527770638465881, 0.013191535137593746, 0.010369912721216679, 0.026652652770280838, -0.012140166014432907, -0.01668711192905903, 0.031469181180000305, 0.02262689732015133, 0.003619135357439518, -0.018259672448039055, 0.024765579029917717, -0.020344438031315804, 0.061392758041620255, -0.017765440046787262, 0.020721852779388428, 0.03509954735636711, 0.018780864775180817, -0.0010457526659592986, -0.017729494720697403, 0.052119143307209015, 0.023489559069275856, -0.003913428634405136, -0.020056884735822678, -0.0018061979208141565, -0.04133587330579758, -0.015456021763384342, 0.05193942412734032, -0.03058854676783085, 0.038208723068237305, 0.0680065006017685, 0.005670203361660242, 0.0006127369124442339, -0.05305369570851326, -0.025376630946993828, 0.026814401149749756, -0.0152044128626585, -0.036159902811050415, -0.02388494648039341, -0.030354907736182213, -0.12177907675504684, -0.010253094136714935, 0.05499468371272087, -0.054814960807561874, 0.015563854947686195, -0.013272409327328205, -0.007660615723580122, -0.0005487112794071436, -0.020164716988801956, 0.01465626247227192, 0.03211617469787598, 0.04708695039153099, 0.051472149789333344, 0.0859067291021347, 0.01586039550602436, -0.0020229865331202745, 0.008469360880553722, -0.06236325204372406, -0.007723518181592226, -0.0320083424448967, -0.0320083424448967, 0.017450926825404167, -0.03118162602186203, 0.028935112059116364, -0.06876132637262344, 0.028144337236881256, 0.014206959865987301, -0.018888697028160095, 0.010441800579428673, 0.011493169702589512, 0.0033607862424105406, -0.0023026776034384966, -0.014314793050289154, -0.008127890527248383, 0.01723526231944561, -0.020146744325757027, -0.0596674345433712, 0.04888416454195976, 0.0013187042204663157, 0.018044007942080498, 0.0035472470335662365, 0.015680674463510513, -0.011583030223846436, 0.008415444754064083, 0.014063183218240738, -0.0056522311642766, -0.002144298516213894, 0.0021645170636475086, 0.027677062898874283, -0.019427860155701637, -0.06020659953355789, -0.04435518756508827, 0.01989513635635376, 0.013928391970694065, 0.00098790496122092, -0.03112770989537239, 0.0438879132270813, -0.030265048146247864, 0.004266131669282913, -0.04924360662698746, 0.0069641959853470325, -0.019499748945236206, -0.026185376569628716, -0.02580796182155609, -0.05592923238873482, 0.06656872481107712, -0.013137619011104107, 0.044139523059129715, 0.06247108429670334, -0.042809586971998215, -0.0676470547914505, -0.03443457931280136, 0.06160842254757881, 0.013488074764609337, 0.019032474607229233, 0.03166687488555908, 0.04888416454195976, 0.021027378737926483, 0.0113044623285532, -0.009821763262152672, -0.011016909033060074, -0.01058557815849781, 0.00430432241410017, 0.0185292549431324, -0.0034124560188502073, 0.04176720231771469, -0.0232738945633173, 0.07081014662981033, -0.0025565337855368853, -0.007741490378975868, -0.07390135526657104, -0.015671687200665474, -0.02117115631699562, 0.034883882850408554, 0.07397323846817017, -0.011547086760401726, -0.019499748945236206, 0.021692346781492233, -0.07821466028690338, 0.024064667522907257, 0.03305072709918022, 0.053988244384527206, -0.018169812858104706, -0.049387384206056595, -0.0025228362064808607, 0.004636806435883045, -0.042701754719018936, -0.022986339405179024, 0.0004032494034618139, -0.0105945635586977, 0.014764095656573772, -0.060637928545475006, -0.01921219564974308, -0.02199787274003029, -0.008878226391971111, 0.027551257982850075, 0.0029788787942379713, 0.06110520288348198, -0.002182489261031151, 0.029294554144144058, 0.0014422625536099076, -0.07045070827007294, 0.00047991174506023526, 0.04834499955177307, 0.03925110772252083, -0.005526426713913679, -0.02977980114519596, 0.0006262160022743046, -0.001010370091535151, -0.003659572685137391, 0.030318964272737503, -0.05884071812033653, 0.01932002790272236, 0.0020623006857931614, -0.03499171510338783, -0.013631852343678474, 0.021440736949443817, 0.020973462611436844, -0.014826998114585876, 0.021009406074881554, 0.024226415902376175, 0.02649090252816677, -0.09223291277885437, 0.006968689151108265, -0.01389244757592678, -0.04784177988767624, 0.017630647867918015, 0.06714383512735367, -0.018070966005325317, 0.04960304871201515, -0.009152301587164402, 0.021620457991957664, 0.04500218480825424, -0.07936487346887589, -0.004695216193795204, 0.021692346781492233, 0.025053134188055992, -0.014647277072072029, -0.001919646980240941, -0.02194395661354065, 0.014449583366513252, -0.030318964272737503, 0.006330678705126047, -0.054707128554582596, 0.07023504376411438, 0.031505122780799866, 0.05312558263540268, 0.001437769504263997, -0.015357175841927528, -0.03979027271270752, -0.02178220823407173, -0.01915827952325344, 0.11602799594402313, -0.004549192730337381, 0.05219103395938873, 0.017513830214738846, 0.07871787995100021, -0.020416326820850372, 0.008172821253538132, -0.019014501944184303, -0.07785522192716599, 0.0285037811845541, 0.003634860971942544, -0.0279286727309227, 0.08899793028831482, 0.00497378408908844, -0.0556776225566864, -0.020739825442433357, 0.00144563231151551, -0.03330233693122864, -0.013056743890047073, 0.018421420827507973, -0.05654028430581093, 0.021584514528512955, -0.044103577733039856, -0.05945177003741264, -0.0058634039014577866, -0.02064996398985386, -0.002043205313384533, 0.008199779316782951, -0.027479369193315506, -0.0016601744573563337, -0.05787022411823273, 0.022177593782544136, -0.00992959551513195, -0.04198287054896355, 0.04449896514415741, -0.028665529564023018, -0.004126847721636295, -0.03961054980754852, 0.03727417439222336, 0.010262079536914825, 0.012724259868264198, 0.022195566445589066, 0.026383070275187492, 0.015761548653244972, -0.0185292549431324, -0.06164436787366867, 0.02521488256752491, 0.0226089246571064, 0.031037848442792892, 0.0012209807755425572, 0.11653121560811996, 0.042845532298088074, -0.0054410588927567005, 0.014782067388296127, -0.02595173940062523, -0.008788365870714188, 0.02050618827342987, -0.00731465220451355, 0.046044569462537766, 0.018708975985646248, -0.006231832318007946, 0.024927329272031784, -0.018133867532014847, -0.013784615322947502, -0.04496623948216438, 0.0072607360780239105, -0.03242170065641403, 0.031001904979348183, 0.00995655357837677, 0.022986339405179024, 0.028863223269581795, -0.048704441636800766, 0.030983932316303253, -0.021530598402023315, 0.018726948648691177, 0.08425329625606537, 0.0759861171245575, 0.04773394763469696, 0.01867303065955639, -0.022896479815244675, 0.043456584215164185, -0.0037718983367085457, 0.006236325018107891, -0.0232738945633173, 0.041371818631887436, 0.0007823487976565957, -0.052766140550374985, -0.0370585098862648, -0.034129053354263306, 0.01790921576321125, 0.019733386114239693, -0.012634399347007275, -0.006285748444497585, -0.03317653015255928, 0.0014355230377987027, 0.06092548370361328, -0.031487151980400085, -0.02510705031454563, -0.01161897461861372, 0.022177593782544136, -0.02248311974108219, 0.007611192297190428, 0.026329154148697853, -0.03366177901625633, -0.0020409587305039167, 0.007552783004939556, 0.0004380703903734684, -0.009219696745276451, -0.015698645263910294, 0.0545274093747139, -0.020038912072777748, -0.015725603327155113, 0.02649090252816677, 0.03450646623969078, 0.01197841763496399, 0.030930016189813614, -0.003942633513361216, -0.030822183936834335, 0.034811995923519135, -0.03583640605211258, 0.022932423278689384, 0.0009469059878028929, 0.036699067801237106, -0.013011814095079899, 0.05779833346605301, 0.027677062898874283, -0.05761861428618431, 0.046152401715517044, 0.06937237828969955, 0.04586484655737877, -0.00017256042337976396, -0.030858127400279045, -0.031469181180000305, -0.040724821388721466, -0.026814401149749756, 0.03518940880894661, 0.012023347429931164, -0.018870724365115166, 0.003457386279478669, 0.04766206070780754, 0.060709815472364426, -0.06574200838804245, 0.05916421487927437, -0.028827277943491936, -0.021081294864416122, 0.00858168676495552, -0.04431924596428871, -0.02264486998319626, -0.019086390733718872, 0.06279458105564117, 0.004007782321423292, 0.030696379020810127, -0.0012142412597313523, 0.004075177945196629, -0.0010811352403834462, -0.05729511380195618, -0.020074857398867607, 0.05884071812033653, -0.07936487346887589, -0.05513846129179001, 0.007719025015830994, -0.05909232795238495, 0.0625070258975029, 0.007170875556766987, -0.020416326820850372, -0.01858317106962204, -0.02922266535460949, 0.03242170065641403, -0.10294429957866669, 0.02717384323477745, -0.005126547068357468, -0.02386697381734848, -0.03260142356157303, -0.07950865477323532, -0.009417390450835228, -0.03567465394735336, -0.04223448038101196, 0.015114552341401577, -0.03727417439222336, -0.03294289484620094, -0.020236605778336525, -0.013416186906397343, -0.07253547012805939, -0.04061698913574219, -0.009390432387590408, 0.07699255645275116, 0.001515274285338819, 0.012481636367738247, -0.035512905567884445, -0.041479650884866714, 0.016803931444883347, -0.016291726380586624, 0.015456021763384342, -0.03592626377940178, 0.04730261489748955, 0.00396509887650609, -0.020883601158857346, 0.0741170197725296, 0.010846173390746117, 0.009022003971040249, 0.06340563297271729, 0.003659572685137391, 0.07390135526657104, -0.005697161424905062, 0.02972588501870632, 0.011061838828027248, -0.0545274093747139, 0.011825653724372387, 0.022986339405179024, -0.0008345802780240774, -0.03447052463889122, -0.03716634213924408, 0.02314808964729309, 0.02661670744419098, 0.007961648516356945, 0.026904262602329254, -0.029977494850754738, 0.012832093052566051, 0.0027385016437619925, -0.013928391970694065, 0.059415824711322784, 0.03211617469787598, 0.0034820979926735163, 0.01861911453306675, 0.07339813560247421, -0.01396433636546135, -0.04496623948216438, -0.01460234634578228, 0.068976990878582, 0.054779019206762314, -0.023471586406230927, 0.06789866834878922, -0.007552783004939556, -0.0006385718588717282, -0.003652833169326186, -0.010073372162878513, 0.013730699196457863, -0.03443457931280136, 0.0038954566698521376, 0.024909356608986855, 0.02392088994383812, -0.03409310802817345, 0.005589329171925783, -0.058768827468156815, 0.05754672363400459, -0.08835093677043915, -0.030768267810344696, 0.004951318725943565, -0.01788225769996643, 0.010289037600159645, 0.004713187925517559, -0.018052993342280388, 0.01653434894979, 0.01425189059227705, 0.035548850893974304, 0.026706568896770477, 0.03240372985601425, 0.018044007942080498, 0.003805596148595214, 0.0026553806383162737, -0.0033203489147126675, 0.004955811891704798, -0.007849322631955147, -0.0034978236071765423, -0.0075617688708007336, -0.008154848590493202, -0.10697004944086075, -0.010145260952413082, -0.07548289746046066, -0.0035292748361825943, -0.046727508306503296, -0.04985465854406357, 0.03134337440133095, 0.02915077656507492, 0.07914920896291733, -0.02465774677693844, 0.03204428777098656, 0.013874475844204426, 0.014368709176778793, 0.04194692522287369, 0.0345783568918705, 0.02584390714764595, 0.09101080894470215, -0.044247355312108994, 0.021458709612488747, -0.010280052199959755, 0.058049943298101425, -0.05855316296219826, -0.025664186105132103, 0.01976933144032955, -0.038100890815258026, 0.023723196238279343, 0.050106268376111984, -0.025484465062618256, -0.015006719157099724, 0.00794367678463459, 0.09115458279848099, -0.03592626377940178, 0.05305369570851326, -0.02577201835811138, 0.01666015386581421, 0.001119887689128518, -0.0033113628160208464, 0.046008624136447906, 0.01558182667940855, -0.03738200664520264, 0.020218633115291595, -0.030768267810344696, -0.019050445407629013, -0.04356441646814346, 0.044786520302295685, 0.038172781467437744, 0.03928705304861069, 0.002493631560355425, 0.009071427397429943, 0.05898449569940567, -0.033248420804739, -0.012544538825750351, 0.041551537811756134, 0.01583343744277954, 0.015330217778682709, -0.035441018640995026, -0.02334578149020672, 0.022734729573130608, -0.05783427879214287, 0.03738200664520264, -0.01789124496281147, 0.017504842951893806, 0.00024107912031468004, 0.019535692408680916, -0.014422625303268433, 0.01921219564974308, 0.012409747578203678, 0.009372459724545479, -0.04032943397760391, -0.005436565726995468, -0.02526879869401455, 0.026724541559815407, 0.00924665480852127, 0.012409747578203678, -0.02462180331349373, -0.02000296860933304, -0.031055821105837822, -0.014467556029558182, 0.05384446680545807, -0.030786238610744476, 0.021584514528512955, -0.002182489261031151, 0.036159902811050415, -0.011627960950136185, 0.0317387618124485, -0.007647136691957712, -0.06602956354618073, -0.04126398637890816, 0.038136836141347885, -0.05977526679635048, -0.020056884735822678, 0.02253703773021698, -0.03928705304861069, -0.026994122192263603, 0.00929158553481102, 0.02988763339817524, 0.0010682177962735295, 0.011025894433259964, 0.018088936805725098, -0.018088936805725098, 0.0052658310160040855, 0.0069641959853470325, -0.034740105271339417, 0.03312261402606964, -0.024244388565421104, 0.059307992458343506, 0.020092828199267387, -0.03454241156578064, 0.04187503829598427, -0.0032574464567005634, 0.06948021054267883, 0.026652652770280838, -0.034147024154663086, 0.00173992570489645, -0.061931923031806946, 0.05819372087717056, -0.015267315320670605, 0.004686229862272739, 0.002052191412076354, -0.03592626377940178, -0.010378899052739143, 0.003870745189487934, 0.008132384158670902, 0.02447802573442459, 0.07091797888278961, 0.009480292908847332, 0.02667062357068062, -0.06775488704442978, -0.02444208227097988, -0.02111724019050598, -0.03330233693122864, 0.03633962571620941, -0.022069761529564857, 0.02399277873337269, -0.022770674899220467, 0.03465024381875992, 0.012203068472445011, 0.002727268962189555, -0.03252953663468361, -0.013209506869316101, -0.007921211421489716, -0.06922860443592072, 0.03240372985601425, -0.09776832908391953, 0.003870745189487934, -0.04564918205142021, 0.03702256456017494, -0.07231980562210083, -0.02598768286406994, -0.08986059576272964, -0.034111082553863525, -0.06563417613506317, -0.01523137092590332, 0.03774144873023033, -0.09280802309513092, 0.046008624136447906, -0.022698786109685898, -0.0245139691978693, 0.0347580760717392, -0.017747467383742332, 0.021674375981092453, 0.00149168586358428, 0.003641600487753749, 0.009026496671140194, 0.03170281648635864, 0.07267925143241882, 0.03438066318631172, -0.0000072441330303263385, -0.017388025298714638, -0.014135071076452732, 0.004982769954949617, 0.030822183936834335, -0.03660920634865761, 0.02719181589782238, 0.049351438879966736, -0.021063324064016342, 0.04248609021306038, 0.01603112928569317, 0.026365097612142563, -0.008190792985260487, -0.017585719004273415, 0.024711662903428078, 0.016040116548538208, -0.023705225437879562, -0.05686378479003906, -0.005436565726995468, 0.03520737960934639, -0.023543475195765495, 0.02510705031454563, -0.03589032217860222, -0.011690863408148289, -0.054132021963596344, -0.0013636344810947776, 0.01291296724230051, 0.012535552494227886, -0.005962250288575888, -0.026796428486704826, -0.04183909296989441, -0.029707912355661392, 0.0015175207518041134, 0.006317199673503637, 0.024316277354955673, 0.008981565944850445, -0.11451834440231323, 0.0024823988787829876, 0.0019432352855801582, -0.04780583456158638, 0.026041600853204727, -0.044103577733039856, -0.04191097989678383, -0.03639354184269905, 0.07170875370502472, 0.0712774246931076, -0.005117560736835003, 0.016327669844031334, -0.03240372985601425, 0.02596971206367016, 0.09625867009162903, -0.0061509576626122, 0.007768448442220688, -0.06444802135229111, -0.014521472156047821, -0.0011513388017192483, 0.004991755820810795, -0.024388164281845093, -0.030804211273789406, -0.011753765866160393, -0.09331124275922775, -0.03671703860163689, -0.07914920896291733, -0.01093603391200304, 0.007822364568710327, -0.007507852744311094, 0.00004528131466940977, -0.06707194447517395, -0.03366177901625633, 0.00467275083065033, -0.02661670744419098, -0.04320497438311577, -0.01167289074510336, -0.0017073513008654118, -0.006815926171839237, 0.006245311349630356, -0.015680674463510513, -0.008756915107369423, 0.01917625032365322, -0.010046414099633694, 0.06847377121448517, -0.0015006719622761011, 0.0640166848897934, -0.0992060974240303, 0.04032943397760391, -0.029743855819106102, -0.007521331775933504, 0.05531818047165871, 0.05884071812033653, 0.030965961515903473, -0.030013438314199448, -0.03389541432261467, 0.003495577024295926, -0.021404793485999107, 0.02187206782400608, -0.007584234233945608, -0.05970337986946106, 0.014521472156047821, 0.02715587057173252, -0.020254578441381454, -0.010477744974195957, 0.025754045695066452, -0.01430580671876669, 0.0701272040605545, -0.048704441636800766, -0.05294586345553398, 0.004156052600592375, -0.0395386628806591, 0.054707128554582596, 0.0847565084695816, -0.016085045412182808, -0.018834780901670456, -0.011942473240196705, -0.04514596238732338, 0.032188065350055695 ]
730,321
mmengine.fileio.io
isdir
Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a directory. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: bool: Return ``True`` if ``filepath`` points to a directory, ``False`` otherwise. Examples: >>> filepath = '/path/of/dir' >>> isdir(filepath) True
def isdir( filepath: Union[str, Path], backend_args: Optional[dict] = None, ) -> bool: """Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a directory. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: bool: Return ``True`` if ``filepath`` points to a directory, ``False`` otherwise. Examples: >>> filepath = '/path/of/dir' >>> isdir(filepath) True """ backend = get_file_backend( filepath, backend_args=backend_args, enable_singleton=True) return backend.isdir(filepath)
(filepath: Union[str, pathlib.Path], backend_args: Optional[dict] = None) -> bool
[ -0.015214022248983383, 0.015400697477161884, 0.006584964692592621, -0.029326660558581352, 0.042039234191179276, 0.036980342119932175, 0.026787878945469856, -0.012357892468571663, -0.0399484746158123, -0.03152942657470703, 0.04050850123167038, 0.027403907850384712, -0.007569675799459219, -0.019134199246764183, -0.03481490910053253, -0.053725097328424454, -0.014644662849605083, 0.005422912072390318, 0.013216597959399223, -0.02596650831401348, -0.024137092754244804, 0.024155760183930397, 0.07086187601089478, -0.0010127124842256308, -0.008503051474690437, 0.011443184688687325, 0.004403199069201946, 0.016371408477425575, -0.021710315719246864, 0.047527484595775604, 0.008195037953555584, 0.03003602661192417, 0.0034044873900711536, 0.00033426511799916625, -0.009492429904639721, 0.03516959026455879, -0.004676211625337601, 0.012889917008578777, -0.07082454115152359, -0.04192722961306572, -0.037839047610759735, 0.0055162496864795685, 0.03931377828121185, 0.07000316679477692, -0.007088987622410059, -0.00909107830375433, -0.056301213800907135, -0.04398065805435181, -0.022008996456861496, -0.01821015775203705, 0.0687711089849472, -0.022774364799261093, -0.022307677194476128, 0.009035076014697552, 0.022923704236745834, -0.0015750712482258677, 0.03750303015112877, 0.01578338071703911, 0.011611192487180233, 0.001936754328198731, 0.029401330277323723, -0.03382553160190582, -0.03401220589876175, -0.04999159649014473, -0.03571094945073128, -0.022550353780388832, -0.05170900747179985, -0.03382553160190582, -0.019992904737591743, -0.02197166159749031, -0.08728928118944168, 0.08198770880699158, 0.028057269752025604, -0.034124210476875305, -0.019656889140605927, 0.054733142256736755, 0.0002715539594646543, 0.07172057777643204, -0.04715413600206375, 0.011937873438000679, -0.07627545297145844, -0.007070320192724466, -0.036476317793130875, 0.0043518636375665665, 0.037185683846473694, 0.0024501108564436436, -0.008717727847397327, 0.03841773793101311, -0.06944314390420914, 0.005791595671325922, 0.009753774851560593, -0.033414844423532486, 0.06406690180301666, -0.0056515890173614025, -0.006197613663971424, -0.003812839277088642, 0.014616661705076694, -0.024267764762043953, -0.02075827307999134, -0.010537810623645782, -0.03201478347182274, -0.0035374935250729322, 0.05898933485150337, -0.027198564261198044, -0.037185683846473694, -0.03190277889370918, -0.029289325699210167, 0.007947692647576332, -0.000257990846876055, -0.04498870298266411, -0.022214338183403015, -0.04715413600206375, 0.008689726702868938, 0.04200189933180809, -0.008750395849347115, 0.010967163369059563, 0.02988668531179428, -0.05163433775305748, -0.025910506024956703, -0.02432376705110073, -0.0038875092286616564, 0.02331572212278843, 0.02915865369141102, -0.015568704344332218, 0.06712837517261505, -0.023558398708701134, 0.032556138932704926, -0.02096361480653286, -0.10356735438108444, 0.033564187586307526, -0.038977764546871185, 0.0008534552762284875, 0.007467004470527172, 0.023502396419644356, 0.018723513931035995, 0.051671672612428665, 0.03158542886376381, 0.01091116014868021, -0.0008703727507963777, 0.08079299330711365, 0.06503760814666748, -0.0013382271863520145, -0.009459761902689934, 0.006673635449260473, 0.013272601179778576, 0.04076984524726868, -0.030932066962122917, 0.025201139971613884, 0.017846141010522842, 0.04364464059472084, -0.05342641845345497, 0.014056636020541191, 0.04364464059472084, 0.05932535231113434, -0.005352908745408058, -0.02182232029736042, -0.033190835267305374, 0.03785771504044533, 0.029830683022737503, 0.03152942657470703, -0.04928223043680191, -0.00704231858253479, 0.02088894508779049, -0.03279881924390793, 0.01155518926680088, 0.04528738185763359, -0.023857079446315765, 0.0033624854404479265, -0.03714834898710251, 0.02960667386651039, -0.017911477014422417, -0.032481469213962555, 0.002881797030568123, 0.004750881809741259, -0.01818215660750866, 0.0007811186951585114, 0.061864133924245834, 0.08579588681459427, -0.016240734606981277, -0.009310421533882618, 0.062424156814813614, -0.0032714814879000187, -0.013636616989970207, 0.014990012161433697, 0.005180234555155039, 0.015428698621690273, -0.013272601179778576, -0.007859022356569767, 0.04416733235120773, 0.023166382685303688, -0.06149078160524368, 0.04562339931726456, 0.004571206867694855, -0.04558606445789337, -0.03472157195210457, 0.025854503735899925, 0.07362466305494308, -0.03729768842458725, -0.05940002202987671, 0.01754746027290821, 0.06791240721940994, -0.006930313538759947, -0.025089135393500328, -0.028299948200583458, 0.0028397950809448957, -0.017734136432409286, -0.03701767697930336, 0.024155760183930397, 0.006290951278060675, -0.0007583676488138735, -0.025257142260670662, -0.08788664638996124, 0.02159831114113331, 0.04726614058017731, 0.026657206937670708, -0.004566540010273457, 0.01515801902860403, 0.06910713016986847, -0.011107169091701508, -0.00007561800885014236, 0.08221171796321869, 0.0409565195441246, 0.010761820711195469, -0.03365752473473549, 0.011760531924664974, -0.04506337270140648, -0.01779947243630886, 0.07186991721391678, -0.00889973621815443, -0.03124941512942314, -0.007621011696755886, -0.012955253012478352, 0.022345012053847313, 0.04327129200100899, 0.01686609722673893, -0.005469581112265587, 0.04319662228226662, -0.018900856375694275, -0.03802572190761566, -0.014467321336269379, -0.007294330280274153, -0.027702586725354195, 0.026489198207855225, -0.00782635435461998, -0.0611921027302742, -0.029998691752552986, 0.04237525165081024, 0.01269390806555748, -0.003899176372215152, -0.019376877695322037, -0.050103601068258286, 0.036980342119932175, -0.029121318832039833, -0.027291901409626007, -0.014672663994133472, 0.006883644964545965, -0.04887154698371887, 0.07127255946397781, -0.017967479303479195, 0.0070563191547989845, 0.01615673117339611, 0.022643690928816795, -0.017062105238437653, 0.002401108620688319, 0.036476317793130875, -0.03935111314058304, 0.01782747358083725, -0.015484700910747051, 0.11021298915147781, 0.0016579083167016506, 0.08086766302585602, -0.04084451496601105, 0.05342641845345497, 0.019488882273435593, 0.034049540758132935, 0.017304783686995506, 0.00010544227552600205, -0.041031189262866974, 0.024790454655885696, 0.06697902828454971, -0.036980342119932175, -0.01223655417561531, -0.06451492011547089, -0.05984804034233093, 0.010360469110310078, 0.009940450079739094, -0.004984225612133741, 0.06712837517261505, -0.00031822273740544915, 0.05047694966197014, 0.029009312391281128, -0.0533517487347126, -0.000336015218636021, 0.022998373955488205, 0.006729637738317251, 0.020907612517476082, 0.0074996729381382465, -0.0343855544924736, 0.0017057438381016254, -0.08064364641904831, -0.02432376705110073, 0.058802660554647446, 0.029644008725881577, 0.024361101910471916, -0.001551736844703555, -0.0058615985326468945, -0.02374507486820221, 0.024193095043301582, 0.0014327315147966146, -0.0053809103555977345, 0.016567416489124298, -0.004403199069201946, -0.018676845356822014, -0.023222384974360466, 0.0536130927503109, 0.021075621247291565, -0.06175212934613228, -0.08310776203870773, -0.0837051197886467, 0.05365042760968208, -0.029494667425751686, 0.03378819674253464, -0.01176986563950777, 0.03571094945073128, -0.07470738142728806, 0.026545202359557152, -0.0006778640090487897, 0.020067574456334114, 0.05357575789093971, -0.002046426059678197, 0.011993875727057457, -0.03830573335289955, 0.061080098152160645, -0.05193301662802696, -0.003280815202742815, -0.006365621462464333, -0.008283708244562149, -0.03434821963310242, -0.008983739651739597, 0.05798128992319107, 0.019526217132806778, -0.05070096254348755, 0.007896357215940952, -0.022438349202275276, 0.0029447998385876417, -0.01696876809000969, -0.0006084442138671875, 0.01961955428123474, 0.12044278532266617, 0.0470421276986599, 0.05118631571531296, 0.05327707901597023, -0.020235583186149597, -0.020982282236218452, -0.027441242709755898, 0.03203345090150833, 0.03800705447793007, 0.09326288849115372, -0.012917918153107166, 0.02745991013944149, 0.04427933692932129, -0.02523847483098507, 0.0027861259877681732, -0.023129045963287354, 0.008503051474690437, -0.026003843173384666, 0.03382553160190582, -0.029494667425751686, 0.03080139495432377, 0.08587055653333664, 0.07825420796871185, -0.014103304594755173, 0.04215124249458313, -0.00021205126540735364, 0.008652391843497753, -0.01597939059138298, 0.010005786083638668, -0.06836042553186417, 0.03500158339738846, -0.015046014450490475, -0.03080139495432377, -0.004543205723166466, 0.04913289099931717, 0.0305960513651371, 0.017790138721466064, 0.06735238432884216, 0.05518116429448128, -0.025873171165585518, -0.05439712852239609, -0.08377978950738907, -0.03953779116272926, -0.017911477014422417, -0.0003328067250549793, -0.04581007361412048, -0.03009202890098095, -0.06537362188100815, 0.025051800534129143, 0.015344694256782532, -0.01815415546298027, -0.04655677452683449, 0.019031528383493423, -0.011956540867686272, 0.0072663286700844765, 0.04050850123167038, -0.04644476994872093, 0.046668779104948044, 0.043532636016607285, 0.05973603576421738, -0.016119396314024925, -0.05611453950405121, 0.0513356551527977, -0.05413578450679779, -0.009763108566403389, -0.00018098736472893506, -0.008227705955505371, 0.05226903408765793, -0.012703241780400276, -0.04136720672249794, 0.05876532569527626, -0.03317216783761978, -0.013496611267328262, -0.034329552203416824, -0.031193410977721214, -0.0031151410657912493, 0.048535529524087906, 0.012955253012478352, -0.023203717544674873, -0.025219807401299477, 0.02352106384932995, -0.03044671192765236, -0.04394332319498062, -0.037969719618558884, 0.04412999749183655, -0.01212454866617918, -0.009548432193696499, -0.03016669861972332, -0.03531893342733383, -0.007359666284173727, -0.031212078407406807, -0.028411952778697014, -0.07437136769294739, -0.0010232130298390985, -0.054247789084911346, 0.005978270433843136, -0.04797550290822983, -0.021523641422390938, 0.009067744016647339, -0.04405532777309418, 0.05391177162528038, 0.01947021484375, -0.03487091138958931, 0.02753457985818386, 0.08706527203321457, 0.007924358360469341, -0.04823685064911842, 0.001547069987282157, -0.004134853836148977, 0.02781459130346775, -0.0029027981217950583, -0.03074539080262184, -0.007350332569330931, -0.0065476298332214355, 0.0477888286113739, -0.050514284521341324, 0.02495846338570118, 0.053874436765909195, 0.021728983148932457, -0.01005245465785265, -0.0055442508310079575, 0.05021560564637184, 0.007485672365874052, 0.028467955067753792, -0.014906007796525955, 0.00959510076791048, 0.025201139971613884, 0.03772703930735588, -0.022139668464660645, -0.021056953817605972, -0.04405532777309418, 0.014859339222311974, -0.005142899230122566, -0.006636300589889288, -0.004477869253605604, 0.019638221710920334, -0.0023451060988008976, -0.0389404296875, -0.01818215660750866, 0.05155966803431511, 0.02673187665641308, -0.059437356889247894, 0.044690024107694626, 0.0004710629873443395, 0.039463117718696594, -0.05141032859683037, 0.03138008713722229, -0.023073043674230576, -0.039463117718696594, 0.04726614058017731, -0.03630831092596054, 0.013636616989970207, 0.022307677194476128, -0.02624652162194252, 0.010957829654216766, 0.042599260807037354, -0.020440924912691116, -0.002538781613111496, -0.010360469110310078, 0.007144989911466837, -0.03739102557301521, 0.01322593167424202, -0.008003695867955685, 0.056525226682424545, -0.05753327161073685, -0.031622763723134995, 0.06462692469358444, 0.04230058193206787, 0.007350332569330931, -0.019712891429662704, -0.034049540758132935, -0.013207264244556427, 0.011069834232330322, -0.03602829575538635, -0.013944631442427635, 0.04872220382094383, -0.02324105240404606, 0.09348689764738083, 0.012945919297635555, -0.02083294279873371, 0.031044071540236473, 0.019880900159478188, 0.016772758215665817, 0.019358210265636444, -0.024491775780916214, 0.02053426206111908, 0.006248949561268091, 0.00016363240138161927, 0.027403907850384712, 0.031212078407406807, -0.024566445499658585, -0.022363679483532906, 0.0015225688694044948, 0.007672347128391266, -0.02574249915778637, -0.044540680944919586, 0.0677630677819252, -0.036980342119932175, -0.013095259666442871, -0.038193728774785995, 0.04088184982538223, 0.018695512786507607, -0.030334705486893654, 0.0033298174384981394, -0.01247923169285059, 0.03335884213447571, 0.054583802819252014, 0.054098449647426605, 0.021859655156731606, -0.029494667425751686, -0.02189699187874794, -0.029942689463496208, -0.02473445236682892, -0.047452814877033234, -0.008101699873805046, 0.016754090785980225, 0.048311520367860794, -0.025294478982686996, 0.07216859608888626, -0.006533629260957241, -0.01105116680264473, -0.05029027536511421, 0.012656573206186295, -0.071309894323349, -0.025873171165585518, 0.0031594764441251755, -0.005455580074340105, 0.018872853368520737, 0.029009312391281128, 0.009977784939110279, 0.008708394132554531, 0.001334727043285966, -0.005184901412576437, -0.01961955428123474, -0.008456382900476456, 0.013505944982171059, -0.04812484607100487, -0.03703634440898895, -0.02402508817613125, 0.027254566550254822, -0.07369933277368546, -0.03522559255361557, 0.03108140639960766, 0.028841305524110794, 0.060445401817560196, 0.013589948415756226, 0.024137092754244804, -0.006846309639513493, 0.0003996014129370451, -0.02473445236682892, 0.11103435605764389, 0.004188522696495056, -0.03849240764975548, -0.03778304159641266, -0.007457670755684376, -0.04200189933180809, 0.008647724986076355, -0.01059381291270256, 0.060296062380075455, -0.00825570710003376, -0.044540680944919586, -0.010883159004151821, 0.03300416097044945, 0.013300602324306965, 0.02602251060307026, 0.016175398603081703, 0.08684126287698746, 0.03197744861245155, 0.023446394130587578, -0.07892623543739319, -0.01123784203082323, -0.023334389552474022, 0.007677013985812664, -0.009203082881867886, 0.058653321117162704, -0.0003520575992297381, 0.02424909733235836, -0.04842352494597435, 0.0136552844196558, -0.005324907600879669, -0.01037913653999567, -0.04491403326392174, 0.0402098186314106, 0.0032318129669874907, -0.012423229403793812, -0.03044671192765236, -0.0412178672850132, -0.10334334522485733, -0.04629543051123619, -0.03289215639233589, 0.05656256154179573, -0.09057476371526718, -0.03360152244567871, -0.023203717544674873, 0.0013615615898743272, 0.006916312966495752, 0.017108773812651634, -0.04293527826666832, 0.013039256446063519, -0.008045697584748268, 0.052231695502996445, -0.0008767896797508001, 0.00706098647788167, 0.027497244998812675, -0.04256192594766617, -0.0677630677819252, -0.002538781613111496, 0.040695175528526306, 0.04028448835015297, -0.0014630662044510245, 0.02296103909611702, -0.021710315719246864, 0.05484515056014061, -0.02852395735681057, -0.01810748688876629, -0.0018597508314996958, -0.0001847792009357363, -0.019488882273435593, -0.02411842532455921, 0.008941737934947014, 0.04237525165081024, -0.00952043104916811, -0.026769211515784264, 0.07523006945848465, -0.03599096089601517, -0.02290503680706024, 0.06160278990864754, 0.0050168936140835285, -0.03602829575538635, -0.038604412227869034, -0.029494667425751686, 0.028990644961595535, -0.04864753410220146, 0.06671768426895142, -0.021934326738119125, 0.030054694041609764, -0.006141611374914646, -0.03780171275138855, 0.02759058214724064, -0.014906007796525955, 0.02632119134068489, -0.0399484746158123, -0.02154230885207653, -0.0023252719547599554, 0.039388447999954224, -0.04782616347074509, 0.025257142260670662, -0.042673930525779724, 0.03423621505498886, 0.0639548972249031, -0.0012542234035208821, -0.019694223999977112, 0.02139296755194664, -0.0015132351545616984, 0.0035724949557334185, -0.04327129200100899, 0.09572699666023254, -0.024659782648086548, -0.015596705488860607, 0.04491403326392174, 0.045026037842035294, -0.027702586725354195, -0.011723197065293789, 0.01760346256196499, 0.011928539723157883, -0.03856707736849785, 0.002578450134024024, -0.04207657277584076, -0.027497244998812675, -0.0002824919647537172, 0.06096809357404709, -0.052605047821998596, 0.01926487125456333, -0.07153390347957611, -0.013272601179778576, -0.05193301662802696, -0.06171479448676109, -0.056599896401166916, -0.014000633731484413, 0.0017745803343132138, -0.004155854694545269, 0.020627601072192192, 0.014719332568347454, -0.027123894542455673, 0.005114898085594177, 0.01760346256196499, -0.04734081029891968, 0.013039256446063519, -0.017846141010522842, 0.033545516431331635, 0.026843881234526634, 0.034422893077135086, 0.006113610230386257, 0.02723589912056923, 0.06451492011547089, -0.0761261135339737, 0.03459089994430542, 0.04756481945514679, 0.03132408484816551, -0.023371724411845207, 0.03416154533624649, -0.011228508315980434, 0.022942371666431427, -0.025406483560800552, -0.053090404719114304, 0.002478112233802676, -0.03164143115282059, -0.0018375831423327327, -0.04058317095041275, 0.006925646681338549, -0.01664208620786667, -0.06313352286815643, -0.016950100660324097, 0.009301087819039822, 0.003318150294944644, -0.04495136812329292, 0.0021350965835154057, 0.0032621475402265787, -0.06847243010997772, 0.012749910354614258 ]
730,322
mmengine.fileio.io
isfile
Check whether a file path is a file. Args: filepath (str or Path): Path to be checked whether it is a file. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: bool: Return ``True`` if ``filepath`` points to a file, ``False`` otherwise. Examples: >>> filepath = '/path/of/file' >>> isfile(filepath) True
def isfile( filepath: Union[str, Path], backend_args: Optional[dict] = None, ) -> bool: """Check whether a file path is a file. Args: filepath (str or Path): Path to be checked whether it is a file. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: bool: Return ``True`` if ``filepath`` points to a file, ``False`` otherwise. Examples: >>> filepath = '/path/of/file' >>> isfile(filepath) True """ backend = get_file_backend( filepath, backend_args=backend_args, enable_singleton=True) return backend.isfile(filepath)
(filepath: Union[str, pathlib.Path], backend_args: Optional[dict] = None) -> bool
[ 0.002296412130817771, -0.06799062341451645, -0.007363470271229744, -0.005419813096523285, 0.013035585172474384, 0.012063756585121155, 0.07228909432888031, -0.00997058767825365, 0.004742336459457874, -0.05255350098013878, 0.07655019313097, 0.039284300059080124, 0.01083962619304657, -0.03478024899959564, -0.029154857620596886, -0.007690527942031622, 0.02773449197411537, -0.03152836114168167, 0.030892934650182724, 0.005032016430050135, -0.04048039764165878, -0.02352946437895298, 0.052927277982234955, 0.017726527526974678, 0.029640771448612213, 0.02093169279396534, -0.029808972030878067, 0.004599832929670811, 0.01798817329108715, 0.008835230022668839, 0.01753963716328144, -0.001199600868858397, 0.007541016209870577, -0.018623599782586098, 0.00047481770161539316, 0.016063205897808075, -0.005097427871078253, 0.013072962872684002, -0.04989966005086899, -0.04216241091489792, -0.027790559455752373, 0.011671287007629871, 0.03147229552268982, 0.06982214748859406, -0.05445977672934532, -0.0026912176981568336, -0.05853398144245148, -0.00027916711405850947, -0.006419675424695015, -0.037340644747018814, 0.05980483442544937, -0.022856660187244415, -0.022370746359229088, 0.042947348207235336, -0.0274728462100029, -0.039994485676288605, 0.005503913853317499, 0.05060984194278717, -0.03943381458520889, 0.005793593358248472, 0.04840453714132309, -0.0343690924346447, 0.012745905667543411, -0.07277500629425049, -0.019511327147483826, -0.025005897507071495, -0.017259301617741585, -0.06230916455388069, -0.012605737894773483, -0.026762664318084717, -0.04227454215288162, 0.0840257927775383, 0.017717182636260986, -0.03756491094827652, -0.011960967443883419, 0.022370746359229088, 0.0032752491533756256, 0.06320623308420181, -0.0360884815454483, 0.00638229725882411, -0.02597772516310215, -0.018997380509972572, -0.027304645627737045, 0.010194855742156506, 0.03087424673140049, -0.026463638991117477, 0.02227730117738247, 0.018352609127759933, -0.033453330397605896, 0.05759953334927559, 0.018913278356194496, -0.015549257397651672, 0.050983622670173645, -0.030463088303804398, 0.03502320870757103, -0.013493466190993786, 0.02622068300843239, -0.034948449581861496, -0.013960691168904305, -0.0374714657664299, -0.047731734812259674, -0.015306300483644009, 0.038349851965904236, -0.013353298418223858, -0.0012755249626934528, 0.006685993634164333, 0.0186796672642231, 0.010615358129143715, 0.033098239451646805, -0.0640285536646843, -0.015960415825247765, -0.06914933770895004, 0.004728319589048624, 0.062271784991025925, -0.017595704644918442, -0.04380704089999199, 0.0229314174503088, -0.011521775275468826, -0.0011960967676714063, -0.028612876310944557, -0.014848419465124607, -0.0043965899385511875, 0.005695476196706295, 0.0029668805655092, 0.046685148030519485, -0.06765422224998474, 0.02223992347717285, -0.033453330397605896, -0.045040518045425415, -0.00876981858164072, -0.03872363269329071, -0.018399331718683243, 0.002466949401423335, 0.04403131082653999, -0.021754009649157524, 0.0375836007297039, 0.03642488270998001, 0.003873297479003668, 0.007199941668659449, 0.059730079025030136, 0.03380842134356499, -0.016474362462759018, -0.0344812273979187, 0.019399194046854973, -0.002537033287808299, 0.02038971148431301, 0.007195269223302603, -0.007036412600427866, 0.03478024899959564, 0.05614179000258446, -0.021511051803827286, 0.007947501726448536, 0.009050153195858002, 0.02863156422972679, 0.00861563440412283, -0.04948849976062775, -0.008508171886205673, 0.032948724925518036, -0.006690666079521179, 0.031135892495512962, -0.04111582413315773, 0.036798663437366486, 0.004695613868534565, -0.021212028339505196, 0.020146753638982773, 0.025360988453030586, -0.08477335423231125, 0.02143629640340805, -0.01089569367468357, 0.009690252132713795, -0.03763967007398605, -0.026912175118923187, -0.0024482605513185263, 0.025192787870764732, 0.021342851221561432, -0.02777186967432499, 0.06754208356142044, 0.06840178370475769, 0.01724061369895935, 0.016698630526661873, 0.03212641179561615, -0.04945112392306328, -0.02308092825114727, 0.0015546921640634537, 0.027117755264043808, 0.03147229552268982, -0.007265353109687567, 0.009040809236466885, 0.0752793401479721, 0.020819557830691338, -0.02427702583372593, 0.017558325082063675, 0.021660564467310905, -0.015418434515595436, -0.027902694419026375, -0.03681735321879387, 0.07789579778909683, -0.007302731275558472, -0.10406041145324707, 0.01824047416448593, 0.034144822508096695, -0.04440509155392647, -0.028201717883348465, 0.0036350127775222063, -0.017100445926189423, -0.0015873978845775127, 0.014222337864339352, 0.0033523414749652147, -0.013110341504216194, 0.03696686401963234, -0.04911472275853157, -0.09277225285768509, -0.032238543033599854, 0.051282647997140884, 0.038947898894548416, 0.062421295791864395, -0.013278542086482048, 0.08028799295425415, -0.05431026592850685, 0.025118030607700348, 0.11377870291471481, 0.04541429877281189, -0.00664394348859787, -0.003116392530500889, 0.0396580807864666, -0.003233199007809162, 0.001755598932504654, 0.09060432761907578, -0.015577291138470173, -0.007419537287205458, -0.02152974158525467, -0.014371849596500397, 0.05120788887143135, 0.03446253761649132, 0.010241578333079815, 0.025118030607700348, 0.043844420462846756, -0.0013339282013475895, -0.0350605845451355, 0.024706872180104256, 0.02403406798839569, 0.006429019849747419, 0.029210925102233887, -0.01894131302833557, -0.09239847213029861, -0.05999172478914261, 0.042536187916994095, 0.005503913853317499, -0.058683495968580246, -0.02352946437895298, 0.016904210671782494, 0.03180869668722153, -0.008905313909053802, -0.029734216630458832, -0.009554756805300713, 0.017717182636260986, -0.028295163065195084, 0.017857350409030914, 0.0007972031598910689, 0.0374714657664299, 0.001561700482852757, 0.07068184018135071, 0.03315430507063866, -0.018763767555356026, 0.014895142056047916, -0.057337887585163116, -0.034144822508096695, 0.02687479741871357, 0.037396710366010666, -0.04205027595162392, 0.09673432260751724, -0.01824047416448593, 0.03806951642036438, 0.0312667153775692, -0.014577428810298443, -0.02967814914882183, -0.01653042994439602, 0.011531120166182518, 0.015007276087999344, 0.06219702959060669, -0.06417806446552277, 0.004342859145253897, -0.03087424673140049, -0.039396435022354126, 0.010708803310990334, 0.003847600193694234, -0.025566566735506058, 0.05830971524119377, -0.018754422664642334, 0.02093169279396534, 0.0009239380015060306, -0.049638014286756516, -0.018324576318264008, -0.002889788243919611, -0.017558325082063675, 0.0566650815308094, -0.003219182137399912, -0.030537843704223633, 0.038275096565485, -0.08140933513641357, 0.013325264677405357, 0.05584276467561722, 0.002597772516310215, -0.009802386164665222, 0.007723233662545681, 0.0022940761409699917, -0.0359763465821743, -0.020651357248425484, -0.03763967007398605, 0.005999172572046518, 0.016259439289569855, -0.05259087681770325, -0.025566566735506058, -0.03696686401963234, 0.046685148030519485, 0.04156436026096344, -0.02908010222017765, -0.10174297541379929, -0.022912727668881416, 0.003485500579699874, -0.01698831096291542, 0.013409365899860859, -0.003847600193694234, 0.038275096565485, -0.024912452325224876, -0.0057001481764018536, -0.014399883337318897, -0.010054687969386578, -0.005017999559640884, -0.001956505933776498, 0.04526478424668312, -0.00897072535008192, 0.06305672228336334, -0.03722850978374481, -0.04145222529768944, -0.01709110103547573, 0.0076110996305942535, -0.006522465031594038, -0.008634323254227638, 0.043881796300411224, 0.018922623246908188, -0.03991972655057907, -0.006896245293319225, -0.021660564467310905, -0.03315430507063866, -0.012960828840732574, -0.031005069613456726, 0.003758827457204461, 0.09314603358507156, -0.026762664318084717, 0.0036677184980362654, 0.003751819021999836, -0.04814289137721062, -0.035004518926143646, -0.032892659306526184, 0.03136016055941582, 0.00897072535008192, 0.05711361765861511, 0.0033056188840419054, 0.050086550414562225, 0.07879287004470825, -0.029865039512515068, -0.022763215005397797, -0.04941374436020851, 0.0003489588852971792, -0.00354623980820179, 0.08215689659118652, 0.05472142621874809, -0.04433033615350723, 0.06858867406845093, 0.0581602044403553, -0.0059477780014276505, 0.03306085988879204, 0.008050291799008846, -0.010484535247087479, -0.016969621181488037, -0.01089569367468357, -0.07337305694818497, 0.010269612073898315, -0.0002899716782849282, 0.02233336865901947, -0.009624840691685677, 0.010820937342941761, 0.04021875187754631, 0.0009619000484235585, 0.05801068991422653, 0.007410192862153053, -0.03670521825551987, -0.025996414944529533, -0.0797647014260292, 0.022165168076753616, -0.03418220207095146, 0.011503086425364017, -0.04582545533776283, 0.0015873978845775127, -0.047582224011421204, 0.02143629640340805, 0.02197827771306038, -0.030444398522377014, 0.011605875566601753, 0.012007690034806728, 0.010409778915345669, -0.004289127886295319, 0.002381680766120553, -0.04410606622695923, 0.0642528235912323, 0.052777767181396484, 0.07154153287410736, -0.0065972208976745605, -0.027940072119235992, 0.03782655671238899, -0.05969270318746567, -0.04776911064982414, -0.03750884532928467, -0.00020601713913492858, 0.07000903785228729, -0.03326644003391266, -0.04410606622695923, 0.06208489462733269, -0.05524471774697304, -0.02188483253121376, 0.012559015303850174, -0.022595014423131943, -0.0017684476915746927, 0.036387503147125244, 0.006928951013833284, 0.008671700954437256, -0.020950380712747574, 0.031603116542100906, 0.012932796031236649, -0.05135740339756012, -0.054833557456731796, 0.05386172980070114, -0.0055132582783699036, -0.008316610008478165, -0.05161904916167259, -0.0114376749843359, -0.037901315838098526, 0.008181114681065083, -0.03980759531259537, -0.0629819706082344, 0.0014857763890177011, -0.05090886726975441, -0.016670597717165947, -0.031154582276940346, -0.026089860126376152, -0.018520809710025787, -0.024669494479894638, 0.05371221899986267, 0.012596393935382366, -0.041938140988349915, 0.033546775579452515, 0.07834433764219284, 0.004613849800080061, -0.03935905918478966, -0.0040718684904277325, -0.010213544592261314, 0.01036305632442236, 0.006335574667900801, -0.0039013309869915247, -0.0314909853041172, 0.04376966506242752, 0.05090886726975441, -0.11706796288490295, 0.064140684902668, 0.029248302802443504, 0.023697666823863983, -0.008830557577311993, 0.00032647367333993316, 0.053375814110040665, 0.012559015303850174, 0.02078218013048172, -0.043732285499572754, -0.015708113089203835, 0.04791862517595291, 0.026893487200140953, -0.023398641496896744, 0.01897869072854519, -0.046236611902713776, 0.009447295218706131, 0.0010214712237939239, -0.02592165768146515, -0.030836869031190872, 0.04197552055120468, 0.02926699072122574, -0.036051101982593536, 0.027192510664463043, 0.0033523414749652147, -0.024706872180104256, -0.06776635348796844, 0.018969345837831497, -0.020595289766788483, 0.03408875688910484, -0.0022368410136550665, 0.042947348207235336, 0.012091790325939655, -0.016502397134900093, 0.0872403010725975, -0.016717320308089256, 0.03642488270998001, 0.01879180036485195, -0.03958332538604736, 0.019642150029540062, 0.09366932511329651, -0.012661805376410484, -0.01281131710857153, -0.011951622553169727, -0.02048315666615963, -0.040742043405771255, -0.0022321688011288643, 0.011447018943727016, 0.06133733317255974, -0.027248578146100044, -0.0031397538259625435, 0.044891003519296646, 0.0236229095607996, 0.01046584639698267, -0.01873573288321495, -0.015624013729393482, -0.006985018029808998, 0.011736699379980564, -0.04926423355937004, -0.01089569367468357, 0.03451860323548317, 0.008050291799008846, 0.03511665016412735, 0.0019880435429513454, -0.0244265366345644, 0.007185924798250198, 0.00644303672015667, 0.03382711112499237, 0.015437123365700245, -0.02552918903529644, -0.005746870767325163, -0.025716079398989677, -0.011736699379980564, 0.016203371807932854, 0.005863677244633436, 0.016091238707304, -0.025809524580836296, -0.0025417055003345013, 0.05685197189450264, -0.05487093701958656, -0.04791862517595291, 0.02537967637181282, -0.08021323382854462, -0.019053446128964424, -0.07636330276727676, 0.02698693238198757, -0.009811731055378914, -0.022707149386405945, -0.025043275207281113, 0.021342851221561432, 0.03920954465866089, 0.05700148269534111, 0.10465846210718155, 0.024613426998257637, -0.029341747984290123, -0.02433309331536293, -0.02502458542585373, -0.010297644883394241, -0.056627701967954636, -0.020445778965950012, -0.0025860918685793877, -0.03821902722120285, -0.004050842951983213, 0.0519554503262043, 0.0015593643765896559, 0.017717182636260986, -0.04866618663072586, 0.013474777340888977, -0.0519554503262043, 0.005662770476192236, -0.00464655552059412, -0.0035906261764466763, -0.021866142749786377, 0.03203296661376953, 0.03332250565290451, 0.009849108755588531, -0.00025784995523281395, 0.014848419465124607, -0.037340644747018814, -0.03263101354241371, 0.02508065290749073, -0.034593358635902405, 0.035004518926143646, -0.03691079840064049, 0.04664777219295502, -0.07669970393180847, -0.042087651789188385, 0.03463073819875717, 0.0014413900207728148, 0.06208489462733269, 0.016203371807932854, 0.015082032419741154, 0.017997518181800842, 0.015203510411083698, -0.012035722844302654, 0.10555553436279297, -0.000691493391059339, -0.028463363647460938, -0.04851667210459709, 0.0057328543625772, -0.08111030608415604, -0.017670460045337677, 0.028762388974428177, 0.014577428810298443, -0.003487836802378297, -0.008657684549689293, 0.012101134285330772, 0.03627537190914154, 0.015035309828817844, 0.017614392563700676, 0.03620061278343201, 0.08626847714185715, 0.05016130581498146, -0.002892124466598034, -0.04825502634048462, -0.014783008024096489, -0.0047937314957380295, 0.018343264237046242, 0.033995311707258224, 0.09725761413574219, 0.04305948317050934, 0.03722850978374481, -0.016913555562496185, 0.02382848970592022, -0.05401124060153961, -0.04048039764165878, -0.014399883337318897, 0.039545945823192596, -0.04836716130375862, -0.00232327776029706, -0.013923313468694687, -0.009690252132713795, -0.11684370040893555, -0.023454708978533745, 0.01321313064545393, 0.04085417836904526, -0.053076792508363724, -0.03483631834387779, -0.08051226288080215, 0.016016483306884766, 0.012932796031236649, -0.001968186581507325, -0.017063066363334656, 0.006765421945601702, -0.04761959984898567, 0.07983945310115814, -0.003256560303270817, 0.04672252759337425, 0.043246373534202576, -0.05539422854781151, -0.03980759531259537, -0.005704820621758699, 0.019343126565217972, 0.06133733317255974, -0.019511327147483826, -0.004011129029095173, 0.016203371807932854, 0.06429019570350647, -0.009849108755588531, -0.003817230463027954, 0.03201427683234215, 0.004859142936766148, -0.00994255393743515, -0.0034668114967644215, -0.044442467391490936, 0.0036583738401532173, 0.03431302309036255, -0.04309685900807381, 0.08417530357837677, -0.02227730117738247, -0.025417055934667587, 0.08656749874353409, 0.03066866658627987, -0.0397702157497406, 0.009162288159132004, -0.026164615526795387, 0.010026654228568077, 0.0020733121782541275, 0.02323044091463089, -0.008508171886205673, 0.027996139600872993, 0.001380650675855577, -0.03326644003391266, 0.019053446128964424, 0.015203510411083698, 0.028911899775266647, -0.05191807448863983, -0.015306300483644009, -0.007316747680306435, 0.000887728005181998, -0.05060984194278717, 0.01179276593029499, -0.0032775853760540485, 0.0059804837219417095, 0.06881293654441833, 0.006298196967691183, -0.0009578118333593011, 0.025566566735506058, 0.01083962619304657, 0.01668928749859333, -0.0397702157497406, 0.04433033615350723, 0.0069242785684764385, -0.05894514173269272, 0.0034621392842382193, 0.050834111869335175, -0.023361263796687126, -0.03403268754482269, -0.00116163888014853, 0.03483631834387779, -0.009624840691685677, 0.007185924798250198, -0.038275096565485, -0.054123375564813614, -0.01979166269302368, 0.03496713936328888, -0.02457604929804802, 0.0070317406207323074, -0.02633281610906124, -0.001300054369494319, -0.05221709609031677, -0.07363470643758774, -0.04870356246829033, -0.015624013729393482, 0.007213958073407412, -0.0003749482857529074, -0.008101685903966427, 0.034051377326250076, -0.03767704591155052, -0.026762664318084717, 0.00991452019661665, -0.029902417212724686, -0.01739012449979782, -0.003226190572604537, -0.016119271516799927, 0.01476431917399168, 0.0518433153629303, -0.006419675424695015, -0.0036350127775222063, -0.008886625058948994, -0.07871811836957932, 0.03801344707608223, 0.012820661999285221, 0.07374683767557144, -0.014923175796866417, 0.03507927432656288, 0.016997655853629112, -0.01909082569181919, -0.003620995907112956, -0.03078080154955387, 0.002388689201325178, -0.0025837558787316084, 0.02836991846561432, -0.035340920090675354, 0.026407573372125626, -0.017698492854833603, -0.050086550414562225, -0.03980759531259537, 0.03642488270998001, 0.010222889482975006, -0.041489604860544205, 0.0027402762789279222, -0.010484535247087479, -0.07038281857967377, 0.04219978675246239 ]
730,323
mmengine.utils.misc
iter_cast
Cast elements of an iterable object into some type. Args: inputs (Iterable): The input object. dst_type (type): Destination type. return_type (type, optional): If specified, the output object will be converted to this type, otherwise an iterator. Returns: iterator or specified type: The converted object.
def iter_cast(inputs, dst_type, return_type=None): """Cast elements of an iterable object into some type. Args: inputs (Iterable): The input object. dst_type (type): Destination type. return_type (type, optional): If specified, the output object will be converted to this type, otherwise an iterator. Returns: iterator or specified type: The converted object. """ if not isinstance(inputs, abc.Iterable): raise TypeError('inputs must be an iterable object') if not isinstance(dst_type, type): raise TypeError('"dst_type" must be a valid type') out_iterable = map(dst_type, inputs) if return_type is None: return out_iterable else: return return_type(out_iterable)
(inputs, dst_type, return_type=None)
[ -0.042251620441675186, 0.012109996750950813, -0.07290893793106079, -0.06362638622522354, -0.05939410999417305, 0.018920758739113808, -0.008268940262496471, 0.059607502073049545, 0.060567766427993774, 0.022139422595500946, -0.012812412343919277, 0.0037121318746358156, -0.004596819635480642, 0.03659673035144806, 0.028576746582984924, 0.045665889978408813, -0.025678172707557678, 0.03773482143878937, 0.0048902337439358234, 0.011114167049527168, 0.009193639270961285, -0.011434255167841911, 0.028238877654075623, -0.0005365364486351609, 0.0028207756113260984, -0.012741281650960445, 0.03252450004220009, -0.0029074661433696747, -0.0693524032831192, 0.037414733320474625, 0.03912186995148659, -0.017916038632392883, -0.01192327868193388, 0.014466200023889542, 0.017124708741903305, 0.052352175116539, -0.06519126147031784, 0.06401760131120682, 0.013514827936887741, -0.0037921539042145014, -0.038872912526130676, -0.055339664220809937, 0.044741190969944, 0.04264283925294876, 0.0000037336656077968655, -0.03149310499429703, -0.04459892958402634, -0.05196095630526543, -0.014848527498543262, -0.024397820234298706, 0.003134195227175951, -0.02635391429066658, 0.06721848249435425, 0.003309799125418067, 0.03398267924785614, 0.042962927371263504, -0.03695238381624222, -0.0015582062769681215, -0.02574930340051651, 0.03423163667321205, 0.015204180963337421, 0.0030608417000621557, -0.013470371253788471, -0.0022317247930914164, 0.025553693994879723, -0.014110547490417957, -0.05594427511096001, -0.04264283925294876, -0.025126909837126732, 0.010456209070980549, -0.0422871857881546, 0.02912800945341587, -0.023686513304710388, 0.01769375428557396, 0.018956324085593224, 0.035494204610586166, 0.02480682171881199, 0.04641276225447655, 0.033858198672533035, 0.006841881666332483, 0.009522618725895882, 0.046341631561517715, -0.06024767830967903, -0.02020111121237278, -0.02174820378422737, -0.01122975442558527, -0.04879564046859741, 0.020165545865893364, -0.027243047952651978, -0.013052478432655334, 0.028665659949183464, -0.029181357473134995, -0.019027454778552055, 0.004676841665059328, -0.0189029760658741, 0.03051505796611309, -0.03158202022314072, -0.021890465170145035, -0.012759064324200153, 0.026905177161097527, 0.004370090551674366, 0.03407159075140953, 0.036116600036621094, -0.007606536149978638, 0.030123839154839516, -0.017400341108441353, 0.020610112696886063, -0.05210321769118309, 0.018004951998591423, 0.04673285037279129, -0.02279737964272499, 0.011123058386147022, -0.07433155179023743, -0.08251158148050308, -0.023704295977950096, -0.02948366291821003, -0.0016204456333070993, 0.004414547234773636, -0.004819103050976992, -0.023259729146957397, -0.01210110541433096, 0.03997543826699257, 0.02678069844841957, 0.03890847787261009, -0.01395939476788044, 0.0008491224143654108, 0.02688739448785782, 0.0003050839004572481, 0.013683763332664967, 0.0051925391890108585, -0.02791878953576088, -0.04246501252055168, -0.034551724791526794, 0.08834429830312729, -0.00493913609534502, 0.017569275572896004, -0.04890233650803566, -0.014661809429526329, -0.020699026063084602, -0.04136248677968979, 0.055624186992645264, 0.004163367208093405, 0.09232760965824127, 0.030728450044989586, -0.01579101011157036, -0.03841056302189827, 0.06181255355477333, 0.04171814024448395, 0.0004267840413376689, 0.014892984181642532, -0.06348412483930588, 0.03631220757961273, -0.0012536781141534448, 0.029519228264689445, -0.04900903254747391, 0.04317631945014, -0.001661568065173924, -0.017480362206697464, -0.001481518498621881, -0.049720339477062225, -0.05537522956728935, 0.0022750701755285263, -0.007513177115470171, -0.0030408361926674843, 0.03172427788376808, -0.002800770103931427, -0.019987719133496284, 0.0070908390916883945, 0.03855282440781593, -0.01648453250527382, -0.011194189079105854, -0.0350140742957592, 0.02149924635887146, -0.06739631295204163, -0.006557358894497156, 0.02055676467716694, 0.02149924635887146, 0.02315303310751915, -0.014608461409807205, 0.038019344210624695, 0.04306962341070175, -0.03453394025564194, -0.07098840922117233, -0.007859939709305763, 0.02411329746246338, 0.012510106898844242, -0.035938773304224014, 0.02720748260617256, -0.014270590618252754, -0.0067929793149232864, 0.0630929097533226, 0.035672031342983246, -0.014226134866476059, -0.05117851868271828, -0.03873065114021301, -0.002396214520558715, -0.0834362804889679, 0.0722687616944313, -0.010207251645624638, 0.12981347739696503, -0.04317631945014, 0.056050971150398254, 0.009415922686457634, 0.02359759993851185, 0.012154453434050083, -0.03755699470639229, -0.054912880063056946, -0.044705625623464584, 0.01568431407213211, -0.03709464520215988, 0.012118888087570667, -0.037414733320474625, 0.00038482804666273296, -0.06661387532949448, 0.032400019466876984, 0.08051992207765579, -0.03200880065560341, -0.06721848249435425, 0.0006629601120948792, -0.001107526826672256, -0.008735735900700092, -0.061528030782938004, -0.06277281790971756, -0.0025518129114061594, 0.04523910582065582, -0.01620890200138092, -0.04257170855998993, 0.05843384563922882, 0.016093313694000244, 0.014830744825303555, 0.025962695479393005, 0.026727350428700447, 0.021801551803946495, -0.019649848341941833, 0.05658445134758949, -0.011478711850941181, -0.0007235322846099734, -0.017747102305293083, -0.04559475928544998, 0.042785100638866425, -0.04840442165732384, 0.0334491990506649, -0.04402988776564598, -0.055339664220809937, -0.0501115582883358, 0.01726697012782097, 0.015488703735172749, 0.04029552638530731, -0.033004630357027054, 0.04349640756845474, 0.04203822836279869, -0.015168615616858006, -0.015817683190107346, -0.026336131617426872, 0.05754471197724342, -0.010020533576607704, -0.036881253123283386, -0.0845743715763092, -0.00962931476533413, 0.004619047977030277, 0.06216820701956749, 0.0002989711065310985, 0.04114909470081329, 0.001485964166931808, -0.05132078006863594, -0.009691554121673107, -0.046341631561517715, -0.017142491415143013, 0.052316609770059586, 0.03592098876833916, 0.06103011593222618, 0.014981897547841072, 0.04171814024448395, 0.0026829601265490055, 0.009460379369556904, -0.004801320377737284, 0.03755699470639229, 0.011060819961130619, -0.004212269559502602, -0.005890508648008108, 0.00265406328253448, 0.020503416657447815, -0.04996929690241814, -0.04075787588953972, -0.0033164676278829575, -0.04274953529238701, 0.025269171223044395, 0.008740181103348732, 0.009549292735755444, -0.00870906189084053, 0.07312233000993729, 0.017106926068663597, 0.01083853654563427, -0.05498401075601578, -0.04776424542069435, 0.051107387989759445, -0.017818232998251915, -0.048155464231967926, 0.07682112604379654, 0.002302855486050248, -0.022370595484972, -0.012847977690398693, 0.025180257856845856, 0.06469334661960602, 0.009442596696317196, 0.010340621694922447, -0.04178927093744278, -0.0127501729875803, -0.10363738983869553, 0.04481232166290283, 0.027794310823082924, -0.012990239076316357, -0.08016426861286163, 0.00706861075013876, -0.001683796406723559, -0.005863834638148546, 0.010820753872394562, 0.06231046840548515, -0.02167707309126854, 0.008651267737150192, -0.04701737314462662, 0.01579101011157036, 0.026727350428700447, -0.010900775901973248, -0.011665429919958115, 0.05640662461519241, -0.01603107526898384, 0.06490673869848251, 0.059002891182899475, 0.02141033299267292, 0.03442724421620369, -0.02713635191321373, -0.03051505796611309, 0.012990239076316357, 0.0422871857881546, 0.00047151854960247874, -0.00037426958442665637, -0.037059079855680466, 0.022992989048361778, 0.004492346663028002, -0.04829772561788559, 0.0032853479497134686, 0.03716577589511871, 0.0007513177115470171, -0.02912800945341587, 0.059607502073049545, -0.026905177161097527, -0.028719007968902588, 0.013434805907309055, 0.014537330716848373, 0.02210385724902153, 0.019116368144750595, 0.026051608845591545, 0.03912186995148659, -0.046768415719270706, 0.017444796860218048, 0.002854118123650551, 0.0013159174704924226, -0.02132141962647438, -0.04925798997282982, 0.0507872998714447, -0.017569275572896004, 0.05836271494626999, -0.04705293849110603, -0.008028874173760414, 0.014626244083046913, -0.034978508949279785, -0.05740245059132576, 0.0008741292986087501, 0.06458664685487747, -0.004416770301759243, 0.059358544647693634, -0.03234667330980301, -0.03476511687040329, -0.055517490953207016, 0.0007874387665651739, -0.0438520610332489, 0.037059079855680466, -0.07258885353803635, 0.03954865410923958, -0.0478709414601326, -0.04836885631084442, -0.008206700906157494, 0.04132692143321037, 0.0671117901802063, -0.03641890361905098, 0.04349640756845474, -0.010794079862535, -0.010589579120278358, 0.010651818476617336, -0.012109996750950813, 0.0454169325530529, 0.019311977550387383, -0.07105953991413116, -0.03035501390695572, -0.08528567850589752, -0.018956324085593224, 0.02523360587656498, -0.005588203202933073, -0.029874881729483604, -0.04143361747264862, 0.041042398661375046, -0.00884243194013834, 0.011283102445304394, -0.052316609770059586, 0.021979378536343575, 0.0039010727778077126, -0.05149860680103302, 0.03143975883722305, 0.007362024392932653, 0.06167029216885567, -0.017124708741903305, -0.009513727389276028, -0.05519740283489227, 0.02566039003431797, 0.04858224838972092, -0.020254459232091904, 0.026816263794898987, 0.0013848253292962909, 0.018831845372915268, 0.05437939986586571, -0.04143361747264862, 0.009100280702114105, 0.020343372598290443, -0.02210385724902153, -0.08635263890028, 0.035583119839429855, 0.06977918744087219, -0.02548256330192089, -0.005321463569998741, 0.012590128928422928, -0.06334186345338821, -0.034213852137327194, -0.017302535474300385, 0.05270782858133316, 0.02201494388282299, -0.013630415312945843, 0.0305328406393528, 0.017880473285913467, 0.020165545865893364, 0.028149964287877083, 0.019792109727859497, 0.01665346883237362, -0.029252488166093826, 0.028114398941397667, -0.018182778730988503, -0.04950694739818573, 0.04623493552207947, -0.008815757930278778, -0.011976626701653004, 0.03320024162530899, -0.004610156640410423, 0.04993373155593872, -0.015124158933758736, 0.0042567262426018715, 0.012963565066456795, 0.03199101984500885, 0.0005137523985467851, -0.027723180130124092, 0.034036025404930115, -0.0030408361926674843, -0.04150474816560745, 0.08635263890028, -0.03544085845351219, 0.045132409781217575, 0.011905496008694172, -0.01916971616446972, -0.015141941606998444, 0.031066320836544037, -0.006223933771252632, 0.034978508949279785, -0.03478289768099785, 0.054735053330659866, -0.03312911093235016, 0.05886062979698181, 0.004167812876403332, -0.034036025404930115, 0.015924379229545593, -0.03833943232893944, 0.04317631945014, -0.02400660142302513, 0.006139466073364019, 0.02653174102306366, -0.017204731702804565, -0.0641954317688942, -0.011540951207280159, 0.04274953529238701, 0.02366873063147068, -0.026229435577988625, 0.0492224246263504, -0.006632935255765915, 0.026994090527296066, 0.025980478152632713, -0.0624171644449234, 0.008544571697711945, -0.021392550319433212, 0.00302527635358274, 0.0036565610207617283, -0.005152528174221516, -0.02123250626027584, 0.04996929690241814, 0.00793106947094202, -0.009291443973779678, -0.013070261105895042, 0.0027941016014665365, 0.06565360724925995, 0.014323938637971878, -0.017062470316886902, -0.014226134866476059, 0.03252450004220009, -0.02870122529566288, 0.021303636953234673, -0.0204678513109684, -0.04580815136432648, -0.0013503713998943567, -0.005303680896759033, 0.05441496521234512, -0.018227234482765198, -0.02096576616168022, -0.03823273628950119, 0.0038321649190038443, 0.014990788884460926, -0.07710564881563187, 0.01674238219857216, 0.015124158933758736, 0.025855999439954758, 0.03423163667321205, 0.021392550319433212, 0.021997161209583282, -0.059358544647693634, -0.03451615944504738, 0.021019114181399345, -0.01760484091937542, -0.022352812811732292, -0.026727350428700447, -0.025446997955441475, 0.06522682309150696, -0.0026207207702100277, 0.03478289768099785, 0.025340301916003227, 0.02608717419207096, 0.09118951857089996, 0.00045651441905647516, -0.008966910652816296, 0.027171917259693146, -0.009158073924481869, -0.04744415730237961, -0.01404830813407898, 0.03113745152950287, 0.047550853341817856, -0.05441496521234512, -0.038374997675418854, -0.01279462967067957, 0.11651203781366348, -0.02854118123650551, 0.007739906199276447, -0.03435611352324486, 0.008984693326056004, -0.04317631945014, 0.03496072441339493, 0.006014987360686064, 0.013505936600267887, -0.013834916055202484, -0.02653174102306366, -0.0011547619942575693, 0.0228151623159647, 0.02418442815542221, 0.04413658380508423, 0.026407262310385704, 0.003583207493647933, 0.05957193672657013, -0.02123250626027584, 0.019383108243346214, -0.04445666819810867, 0.04797763749957085, 0.007833265699446201, -0.008531235158443451, -0.10705166310071945, 0.019045237451791763, 0.007362024392932653, -0.04058004915714264, 0.0008535680826753378, 0.013408131897449493, -0.037414733320474625, 0.020218893885612488, -0.051356345415115356, -0.048937901854515076, 0.006975251715630293, -0.03652559965848923, 0.004952473100274801, 0.014208352193236351, -0.0071041760966181755, -0.00042400549864396453, 0.06728961318731308, 0.001121419481933117, -0.10655374825000763, 0.02055676467716694, 0.007295339368283749, -0.05946524068713188, -0.03494294360280037, -0.03561868518590927, 0.02834557369351387, -0.00889133382588625, 0.023117467761039734, 0.046092674136161804, -0.04797763749957085, -0.03954865410923958, -0.05982089415192604, 0.0610656812787056, 0.021623725071549416, 0.03094184212386608, 0.026727350428700447, 0.03272010758519173, -0.020396720618009567, 0.030639536678791046, -0.04132692143321037, -0.02176598645746708, 0.0001391354890074581, -0.017400341108441353, 0.022992989048361778, 0.016849078238010406, 0.011131949722766876, -0.024771256372332573, 0.024593429639935493, -0.03321802243590355, -0.03873065114021301, 0.004410101566463709, -0.027936572209000587, 0.07568303495645523, 0.010554013773798943, -0.001225892687216401, -0.04449223354458809, 0.06401760131120682, -0.04559475928544998, -0.06679169833660126, -0.007415372412651777, 0.05057390779256821, 0.015319768339395523, -0.04178927093744278, 0.017231404781341553, 0.047657549381256104, 0.02105467952787876, 0.0042433892376720905, -0.010785188525915146, 0.039477523416280746, -0.05985645949840546, 0.024077732115983963, 0.03855282440781593, 0.011078602634370327, 0.010020533576607704, 0.034462809562683105, 0.0608522891998291, 0.02870122529566288, 0.02905687876045704, -0.0362410768866539, 0.016422294080257416, -0.015986617654561996, -0.008998029865324497, -0.005819377955049276, 0.04040222242474556, 0.019294194877147675, 0.027669832110404968, -0.017836015671491623, 0.0010225033620372415, -0.007953298278152943, -0.031848758459091187, -0.04975590482354164, 0.011256428435444832, -0.03357367590069771, -0.01708025299012661, -0.040011003613471985, -0.016849078238010406, -0.03405380994081497, -0.019400890916585922, -0.012803521007299423, -0.02011219784617424, -0.014697374776005745, 0.025002431124448776, -0.009655988775193691, -0.01083853654563427, -0.048262160271406174, -0.026460610330104828, -0.046697285026311874, 0.04527467116713524, -0.065546914935112, -0.08336514979600906, 0.019134150817990303, -0.023188598453998566, -0.013986068777740002, -0.08151575177907944, 0.07888391613960266, 0.03812604025006294, 0.035156335681676865, -0.08720620721578598, -0.012278932146728039, 0.001740478677675128, -0.05768697336316109, 0.03015940450131893, 0.006210596766322851, 0.047373026609420776, 0.06188368424773216, 0.003636555513367057, 0.022761814296245575, 0.044954583048820496, 0.04058004915714264, -0.01439506933093071, -0.0682143121957779, 0.0166623592376709, 0.04150474816560745, -0.014635135419666767, -0.02720748260617256, -0.023562034592032433, 0.01975654438138008, -0.005837160628288984, -0.0039321924559772015, -0.07081058621406555, 0.030639536678791046, 0.07187754660844803, -0.03272010758519173, 0.029785968363285065, 0.012634585611522198, -0.045559193938970566, 0.01838727854192257, 0.015053028240799904, -0.020058849826455116, 0.011825473979115486, -0.028487835079431534, 0.041647009551525116, 0.03179540857672691, 0.044883452355861664, 0.005801595281809568, -0.04584371671080589, 0.04058004915714264, 0.005490398965775967, -0.028327791020274162, -0.009415922686457634, -0.06291507929563522, 0.008740181103348732, -0.027936572209000587, -0.04915129393339157, -0.04331858083605766, 0.012812412343919277, 0.010918558575212955, 0.02229946479201317, -0.023562034592032433, -0.03257784619927406, 0.06327073276042938, -0.038019344210624695, 0.012207801453769207, -0.001657122396863997, 0.03033723123371601, -0.015061919577419758, -0.01587103120982647, -0.00442121597006917, 0.09353683143854141, -0.00983381550759077, -0.0021250287536531687, 0.015755444765090942, -0.04107796400785446, 0.04015326499938965, -0.007250882685184479, 0.004796874709427357, 0.02071680873632431, -0.0312085822224617, -0.012323388829827309, -0.00302527635358274, 0.019560934975743294, -0.003854393260553479 ]
730,324
mmengine.fileio.io
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. *filepaths (str or Path): Other paths to be concatenated. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: str: The result of concatenation. Examples: >>> filepath1 = '/path/of/dir1' >>> filepath2 = 'dir2' >>> filepath3 = 'path/of/file' >>> join_path(filepath1, filepath2, filepath3) '/path/of/dir/dir2/path/of/file'
def join_path( filepath: Union[str, Path], *filepaths: Union[str, Path], backend_args: Optional[dict] = None, ) -> Union[str, Path]: 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. *filepaths (str or Path): Other paths to be concatenated. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Returns: str: The result of concatenation. Examples: >>> filepath1 = '/path/of/dir1' >>> filepath2 = 'dir2' >>> filepath3 = 'path/of/file' >>> join_path(filepath1, filepath2, filepath3) '/path/of/dir/dir2/path/of/file' """ backend = get_file_backend( filepath, backend_args=backend_args, enable_singleton=True) return backend.join_path(filepath, *filepaths)
(filepath: Union[str, pathlib.Path], *filepaths: Union[str, pathlib.Path], backend_args: Optional[dict] = None) -> Union[str, pathlib.Path]
[ -0.11200112849473953, -0.027523525059223175, -0.03491325303912163, 0.0658290833234787, -0.047932375222444534, -0.021600741893053055, -0.014742781408131123, 0.016833174973726273, 0.026698369532823563, -0.04056098684668541, 0.024644648656249046, 0.0030278628692030907, -0.027908599004149437, 0.045291878283023834, -0.02235255017876625, -0.011818062514066696, 0.04763898625969887, -0.04059765860438347, 0.03905737027525902, 0.018336793407797813, 0.0030759968794882298, 0.004666713532060385, 0.04939932003617287, 0.0127165662124753, 0.019822072237730026, 0.020225482061505318, -0.03902069479227066, 0.03795716166496277, -0.023141032084822655, 0.019143611192703247, 0.05200314521789551, -0.012203135527670383, -0.00027734399191103876, -0.034748222678899765, 0.024662986397743225, 0.020665565505623817, -0.009452616795897484, 0.06047474220395088, 0.06879964470863342, 0.005354343447834253, 0.0062620146200060844, -0.010314445942640305, 0.07232031226158142, -0.05090293660759926, -0.005666068755090237, 0.014843633398413658, -0.033446308225393295, 0.04015757516026497, -0.006780029274523258, -0.028000282123684883, 0.011680536903440952, 0.027230137959122658, -0.03858061134815216, -0.0014027646975591779, 0.007485995534807444, 0.033831384032964706, 0.025708183646202087, 0.006170330569148064, -0.03351965546607971, -0.038470592349767685, 0.047015536576509476, -0.0728704109787941, 0.035885103046894073, 0.012569871731102467, 0.022535918280482292, 0.005986962933093309, -0.03568339720368385, 0.012313156388700008, 0.004116610158234835, -0.02546980418264866, -0.04840913414955139, 0.013459205627441406, -0.030879158526659012, -0.086769700050354, -0.006981733720749617, 0.04760231450200081, 0.017484132200479507, 0.03839724510908127, 0.009590142406523228, -0.0024319172371178865, -0.03395973891019821, -0.039790838956832886, -0.06491224467754364, -0.019198622554540634, 0.06179499253630638, -0.004845497664064169, -0.04807906970381737, -0.02081225998699665, -0.08610957860946655, 0.005523958709090948, -0.004726308397948742, 0.021123984828591347, 0.012450681999325752, 0.009237159043550491, 0.0296139195561409, -0.03920406103134155, -0.005523958709090948, -0.017639994621276855, 0.00788482092320919, 0.010121909901499748, -0.0241128820925951, -0.06601245701313019, 0.025524815544486046, -0.05838434770703316, 0.02985229901969433, -0.051893122494220734, 0.0034541932400316, 0.006670008413493633, 0.01658562943339348, -0.012817418202757835, -0.015522095374763012, -0.07316379994153976, 0.04543857276439667, -0.04096439480781555, -0.012038104236125946, 0.03306123614311218, -0.02719346433877945, 0.013101638294756413, 0.060181353241205215, -0.04444838687777519, -0.005909031257033348, -0.01325750071555376, -0.03550003096461296, 0.02392951399087906, 0.043311502784490585, -0.05046285316348076, 0.008980444632470608, 0.001999856438487768, -0.035206642001867294, -0.04320148378610611, -0.039387430995702744, 0.058861102908849716, 0.018721865490078926, 0.005313085857778788, 0.015146191231906414, 0.031887684017419815, -0.05413021147251129, -0.023801157251000404, 0.04584198072552681, 0.0762077122926712, 0.052076492458581924, -0.02875209040939808, -0.004316022619605064, 0.03185100853443146, 0.07525419443845749, -0.005927368067204952, 0.003814052790403366, -0.036270175129175186, 0.012258145958185196, 0.027266811579465866, -0.02497471123933792, 0.03111753799021244, -0.02123400568962097, 0.028238661587238312, 0.04012090340256691, -0.036728594452142715, -0.01754831150174141, 0.07272371649742126, -0.01447689812630415, -0.027798578143119812, 0.00040054431883618236, -0.009782679378986359, 0.009388437494635582, -0.025378121063113213, 0.014724444597959518, 0.014531908556818962, 0.011451327241957188, 0.05523042008280754, 0.00646371953189373, 0.01524704322218895, 0.02853204868733883, -0.04246801137924194, -0.015879662707448006, 0.0015185156371444464, -0.02875209040939808, -0.0411844365298748, -0.0142568564042449, 0.06351865082979202, 0.013780099339783192, -0.024883028119802475, 0.00815528817474842, -0.04217462241649628, 0.01675065979361534, -0.012652386911213398, 0.041074417531490326, 0.011799725703895092, -0.0039080288261175156, 0.01642976701259613, 0.059741269797086716, -0.017474964261054993, 0.008448677137494087, 0.007742710877209902, 0.02149072103202343, 0.011918915435671806, -0.002867416013032198, -0.08647631108760834, 0.04510850831866264, -0.06568238884210587, -0.04474177584052086, 0.08185544610023499, -0.031887684017419815, -0.034986600279808044, 0.045071836560964584, -0.035188306123018265, 0.052076492458581924, -0.024259576573967934, 0.0049555180594325066, 0.04070768132805824, -0.012569871731102467, 0.010268604382872581, 0.0010153999319300056, -0.019143611192703247, -0.02194914035499096, -0.05409353971481323, 0.0007993695326149464, 0.057797569781541824, 0.00241128820925951, 0.0289537962526083, -0.06524230539798737, 0.044411711394786835, 0.028807101771235466, 0.007577679585665464, 0.0372236892580986, -0.009150059893727303, 0.007385143078863621, -0.004964686464518309, -0.011946420185267925, 0.09344429522752762, 0.04565861448645592, -0.039130717515945435, 0.033666349947452545, -0.018501823768019676, 0.012505692429840565, -0.01646644063293934, 0.02699175849556923, -0.060878150165081024, 0.0170715544372797, -0.0014978867257013917, 0.027541862800717354, 0.0249930489808321, 0.012533198110759258, -0.022700948640704155, 0.004169328138232231, -0.06560904532670975, -0.0010360288433730602, -0.01668648049235344, 0.03579341992735863, -0.058861102908849716, 0.026056582108139992, -0.022737622261047363, 0.027248473837971687, 0.07525419443845749, 0.021747436374425888, 0.0318143367767334, 0.0027734399773180485, 0.03682028129696846, -0.01140548475086689, -0.018336793407797813, -0.01996876671910286, 0.016163881868124008, 0.038250550627708435, 0.051232997328042984, 0.008636629208922386, -0.05504705011844635, -0.030439075082540512, -0.009122554212808609, -0.043311502784490585, -0.0359034389257431, 0.00809569377452135, 0.008544945158064365, -0.04452173411846161, 0.008219467476010323, 0.04279807582497597, 0.02477300725877285, -0.0241128820925951, 0.04034094512462616, -0.04364156723022461, 0.03949744999408722, -0.0026932163164019585, 0.02717512659728527, -0.01864851824939251, 0.01163469534367323, -0.026056582108139992, -0.07140347361564636, 0.009397606365382671, -0.0025969482958316803, 0.0025052642449736595, -0.004923428874462843, -0.03975416719913483, 0.013835109770298004, 0.06689261645078659, -0.012450681999325752, 0.0186118446290493, 0.009764342568814754, -0.03990086168050766, -0.06736937910318375, 0.046795494854450226, -0.03997420892119408, 0.0819287896156311, -0.07250367850065231, -0.001174700795672834, 0.043971627950668335, 0.041551172733306885, 0.01832762360572815, 0.008109446614980698, -0.10598666220903397, -0.009938541799783707, -0.0012572163250297308, 0.0029086738359183073, 0.016053862869739532, -0.03439982235431671, -0.05941120907664299, -0.050536200404167175, 0.005193896591663361, 0.05332339182496071, 0.03289620578289032, 0.004384785424917936, -0.004341235850006342, -0.0389840230345726, -0.048775870352983475, -0.028807101771235466, 0.007247617468237877, -0.026001572608947754, 0.023177705705165863, -0.03361134231090546, 0.026203276589512825, -0.0170715544372797, 0.018960243090987206, 0.021985813975334167, -0.029907308518886566, 0.06586576253175735, 0.013404195196926594, -0.0012033520033583045, 0.00044609978795051575, 0.008897928521037102, 0.01644810289144516, 0.02781691402196884, -0.01604469306766987, 0.012725734151899815, 0.0697898343205452, 0.027706893160939217, -0.016677312552928925, -0.009764342568814754, -0.016695650294423103, -0.03205271437764168, 0.014962823130190372, 0.028000282123684883, 0.014211013913154602, 0.035866767168045044, -0.04609869793057442, 0.027468515560030937, -0.008627461269497871, -0.027981946244835854, -0.003914905246347189, -0.0006595515296794474, 0.037407055497169495, -0.07228364050388336, 0.05020613968372345, 0.022939328104257584, 0.044154997915029526, 0.046575453132390976, -0.02631329745054245, 0.013633405789732933, -0.023012675344944, 0.021765772253274918, 0.05545046180486679, 0.07411731779575348, 0.030622443184256554, -0.08772321790456772, 0.010250267572700977, 0.01434854045510292, -0.029907308518886566, 0.09124387800693512, 0.0035069116856902838, 0.02831200882792473, 0.07221028953790665, -0.008774155750870705, -0.002560274675488472, 0.017117395997047424, 0.014916980639100075, -0.036086808890104294, -0.020793922245502472, 0.038910675793886185, 0.01719074323773384, -0.021123984828591347, 0.07606101781129837, 0.06333528459072113, -0.04015757516026497, -0.004233506973832846, 0.018281782045960426, 0.008398250676691532, -0.00542769068852067, -0.002894921228289604, -0.0614282563328743, -0.04213795065879822, -0.040414292365312576, 0.07349386811256409, -0.015897998586297035, -0.013156648725271225, -0.0332629419863224, -0.005446027498692274, -0.03975416719913483, 0.010699518956243992, 0.0344548337161541, -0.04576863348484039, 0.07272371649742126, 0.01849265582859516, 0.02125234343111515, 0.00004376476863399148, -0.03306123614311218, -0.04969270899891853, -0.0005372107261791825, -0.013890120200812817, 0.00856328196823597, 0.051673080772161484, 0.026056582108139992, -0.08420255035161972, -0.06967981159687042, 0.025506477802991867, 0.006601245608180761, -0.0801684558391571, -0.003880523843690753, -0.05332339182496071, 0.021435711532831192, -0.011102927848696709, -0.042871423065662384, 0.02172909863293171, 0.0175116378813982, 0.037150342017412186, 0.0003143040812574327, -0.01954702101647854, -0.010158583521842957, 0.0002942482242360711, 0.00581276323646307, 0.032987888902425766, 0.02348943240940571, 0.03483990579843521, -0.050059445202350616, 0.06604912877082825, -0.060401394963264465, -0.025084732100367546, -0.041807886213064194, -0.0587877556681633, -0.031667642295360565, -0.012762407772243023, -0.07334717363119125, -0.04807906970381737, -0.0289537962526083, -0.019437000155448914, 0.026881737634539604, -0.0214723851531744, -0.0376637727022171, 0.06120821461081505, 0.007293459493666887, -0.0005930806510150433, -0.0040891049429774284, 0.02783525176346302, -0.016723154112696648, 0.011708042584359646, -0.006935891695320606, 0.022132508456707, 0.007238449063152075, 0.14684103429317474, -0.022297540679574013, -0.009608479216694832, 0.010699518956243992, 0.0049876077100634575, 0.006248262245208025, -0.06157495081424713, 0.005019696895033121, 0.045952003449201584, -0.052516575902700424, -0.07221028953790665, -0.005496453493833542, 0.041551172733306885, 0.04642875865101814, -0.009205070324242115, 0.015439579263329506, 0.023947851732373238, -0.0691663846373558, -0.058200981467962265, -0.048775870352983475, -0.010149414651095867, 0.026845064014196396, 0.059337861835956573, 0.027303485199809074, 0.061978358775377274, 0.05152638629078865, 0.025066396221518517, -0.05699075013399124, 0.04672214761376381, 0.023746145889163017, -0.025084732100367546, -0.006890049669891596, -0.0008131221402436495, 0.03953412547707558, -0.05585386976599693, 0.004526895936578512, -0.03949744999408722, 0.02262760140001774, 0.04840913414955139, -0.07305378466844559, -0.025946561247110367, 0.04708888381719589, -0.00909504946321249, 0.05523042008280754, -0.015842989087104797, 0.05611058697104454, -0.05090293660759926, -0.04078102856874466, 0.0010245683370158076, 0.008467013947665691, -0.030750801786780357, -0.016136378049850464, 0.022059161216020584, -0.005478116683661938, 0.009608479216694832, -0.01206560991704464, 0.011524674482643604, 0.014486066065728664, -0.0385439395904541, 0.022059161216020584, -0.061281561851501465, 0.03612348064780235, -0.027688557282090187, -0.0005925075965933502, 0.02150905877351761, 0.012808249332010746, -0.041991256177425385, 0.0491059310734272, -0.009397606365382671, 0.06410542875528336, -0.03328127786517143, 0.021013963967561722, 0.006967981345951557, -0.005377264693379402, -0.04184456169605255, 0.01631057634949684, 0.04650210589170456, -0.0007970774313434958, -0.0041280705481767654, 0.0744473785161972, -0.01932697929441929, -0.038947347551584244, 0.006592077203094959, -0.0841292068362236, -0.002945347223430872, -0.002265739953145385, 0.07481411099433899, 0.011900578625500202, -0.0003951005928684026, 0.0015311221359297633, 0.03971749171614647, 0.08625627309083939, 0.0076647792011499405, -0.02590988762676716, 0.0002832174941431731, -0.05200314521789551, -0.04448505863547325, -0.0023081437684595585, 0.017695004120469093, 0.019400326535105705, -0.010021056979894638, -0.01127712707966566, 0.030402401462197304, -0.013330847956240177, 0.03531666100025177, 0.021600741893053055, 0.010561992414295673, -0.07496080547571182, -0.02035384066402912, 0.011708042584359646, -0.04994942247867584, -0.051232997328042984, -0.005455195903778076, -0.033006228506565094, -0.01258820854127407, -0.022425897419452667, 0.010121909901499748, 0.028825437650084496, -0.04547524452209473, 0.04829911142587662, -0.013899289071559906, -0.0017649163492023945, 0.050499528646469116, 0.009837688878178596, 0.02677171677350998, 0.024186229333281517, -0.050719570368528366, -0.056477323174476624, -0.007875652052462101, -0.014229350723326206, 0.03931408375501633, 0.06282185018062592, 0.020537208765745163, -0.0031195469200611115, -0.047272250056266785, 0.027120117098093033, 0.07525419443845749, -0.020317167043685913, -0.0017087599262595177, -0.026826728135347366, -0.0010050854180008173, 0.05343341454863548, -0.04261470586061478, -0.007710621226578951, -0.004685050342231989, -0.014412718825042248, -0.010314445942640305, 0.011790557764470577, 0.051196325570344925, 0.07789469510316849, 0.020555544644594193, 0.03163096681237221, -0.02651500143110752, 0.009966046549379826, -0.04034094512462616, 0.01236816681921482, 0.01626473478972912, 0.03482156991958618, -0.019418664276599884, -0.012258145958185196, 0.009099633432924747, 0.048152416944503784, -0.01512785442173481, 0.015962177887558937, -0.011451327241957188, -0.013440868817269802, -0.01626473478972912, 0.023086022585630417, -0.0011408922728151083, -0.051893122494220734, 0.008540361188352108, -0.0009208507835865021, -0.013303343206644058, -0.05724746733903885, -0.00532225426286459, -0.02915550023317337, -0.009388437494635582, -0.07129345089197159, -0.001806174055673182, -0.017117395997047424, -0.06993652880191803, -0.038727305829524994, 0.0056889900006353855, -0.019675377756357193, -0.036050133407115936, -0.07540088891983032, -0.0025236010551452637, -0.014825296588242054, 0.008746650069952011, 0.0033281277865171432, -0.0318143367767334, -0.03207105025649071, 0.010653676465153694, 0.039167389273643494, 0.053616780787706375, -0.05152638629078865, 0.017034880816936493, 0.06700263917446136, 0.030365727841854095, -0.027120117098093033, 0.051636409014463425, 0.04092772305011749, -0.07089003920555115, -0.023801157251000404, 0.006821286864578724, -0.03091583214700222, 0.04650210589170456, 0.00974600575864315, -0.011121264658868313, -0.02981562539935112, -0.03920406103134155, -0.0018967119976878166, 0.0858895406126976, -0.009590142406523228, -0.01592550426721573, -0.010167751461267471, -0.051636409014463425, -0.05999798700213432, 0.03953412547707558, -0.0010537925409153104, 0.015173695981502533, -0.025836540386080742, 0.0154670849442482, -0.047932375222444534, 0.02849537506699562, 0.0543869286775589, 0.034051425755023956, -0.00431143818423152, 0.012679892592132092, -0.0015597734600305557, -0.00686254445463419, -0.02480968087911606, 0.001709905918687582, 0.03177766129374504, 0.02541479468345642, -0.04257803410291672, 0.0289537962526083, -0.02409454621374607, 0.029063817113637924, 0.07232031226158142, -0.03463819995522499, -0.04672214761376381, 0.0353350006043911, 0.018483487889170647, 0.021655751392245293, 0.015439579263329506, 0.035408347845077515, -0.018116751685738564, -0.02891712263226509, 0.04367823898792267, 0.0733104944229126, 0.013715920969843864, 0.022920990362763405, -0.06223507598042488, 0.0016548954881727695, -0.008806244470179081, -0.008893344551324844, 0.013770931400358677, 0.0036100561264902353, 0.008769570849835873, 0.08134201169013977, -0.06604912877082825, -0.009360932745039463, 0.006711266003549099, 0.0254331324249506, -0.01326666958630085, -0.014669434167444706, 0.04650210589170456, -0.0420646034181118, 0.008370745927095413, 0.033886391669511795, 0.014027646742761135, 0.019143611192703247, -0.0077335424721241, 0.00755934277549386, -0.007834394462406635, 0.03744373098015785, -0.0005114246159791946, -0.019363652914762497, -0.049435991793870926, 0.03177766129374504, -0.052919983863830566, 0.02827533520758152, -0.008040683344006538, 0.02985229901969433, -0.01127712707966566, -0.03599512577056885, 0.022077498957514763, -0.027303485199809074, 0.04188123345375061, -0.03051242232322693, -0.045952003449201584, 0.03115421161055565, -0.008691639639437199, -0.02150905877351761, 0.02127067930996418, -0.04807906970381737, -0.044154997915029526, -0.024607975035905838, 0.04580530896782875, -0.004371033050119877, -0.00847618281841278, 0.06509561091661453, 0.04232131689786911, -0.06370201706886292, 0.025158079341053963 ]
730,325
mmengine.utils.misc
list_cast
Cast elements of an iterable object into a list of some type. A partial method of :func:`iter_cast`.
def list_cast(inputs, dst_type): """Cast elements of an iterable object into a list of some type. A partial method of :func:`iter_cast`. """ return iter_cast(inputs, dst_type, return_type=list)
(inputs, dst_type)
[ -0.061329856514930725, -0.009233021177351475, -0.034107450395822525, -0.056810442358255386, -0.05246756970882416, 0.0428285077214241, 0.021149443462491035, 0.04007449001073837, 0.0356609970331192, 0.019048621878027916, -0.011898769065737724, -0.05472727492451668, 0.007807463873177767, -0.005574238020926714, 0.05822275951504707, 0.05642205476760864, -0.016638856381177902, 0.03144170343875885, 0.0036786438431590796, 0.005035792011767626, 0.00023088068701326847, -0.06644950807094574, 0.014926423318684101, 0.01499703899025917, -0.0057684313505887985, 0.004071444272994995, 0.046571146696805954, -0.03130047023296356, -0.05850522220134735, 0.03271278738975525, 0.03887401893734932, -0.00705275684595108, 0.001230260357260704, -0.00427005160599947, 0.010345220565795898, 0.06327179074287415, -0.05914076417684555, 0.04533536732196808, -0.023144342005252838, 0.0231619942933321, -0.000532928912434727, -0.06394264101982117, 0.02222633548080921, 0.038979943841695786, -0.00948900356888771, -0.016577068716287613, -0.03356017917394638, -0.038944635540246964, -0.013266950845718384, -0.03986264020204544, -0.02445073425769806, 0.01053941436111927, 0.028564106673002243, 0.027187097817659378, -0.001009034109301865, 0.03396621719002724, 0.004784223157912493, 0.04565313830971718, 0.0054859681986272335, 0.013311085291206837, 0.01881912164390087, -0.003623475320637226, -0.03760293498635292, -0.05529220029711723, 0.06295402348041534, -0.002498035319149494, -0.04455859586596489, -0.04371120408177376, -0.030029386281967163, -0.0015899597201496363, -0.06623765826225281, 0.025050969794392586, 0.001639611553400755, 0.04325219988822937, 0.03207724541425705, 0.03770885989069939, 0.04978416487574577, 0.0706864520907402, 0.029852846637368202, -0.025686511769890785, 0.014714575372636318, 0.06027061864733696, -0.039615485817193985, 0.03679085150361061, -0.005062272772192955, -0.030523696914315224, -0.028740646317601204, 0.05003132298588753, -0.026375016197562218, 0.007679472677409649, 0.009683197364211082, -0.04007449001073837, -0.04741853475570679, 0.008606305345892906, -0.05313841998577118, 0.04477044194936752, -0.05822275951504707, -0.057410676032304764, -0.024662582203745842, 0.05779906362295151, 0.013328739441931248, 0.044311437755823135, -0.0022861878387629986, 0.006783533841371536, 0.025015661492943764, -0.02141425386071205, 0.0010024139191955328, -0.04215765744447708, 0.0014619685243815184, 0.04176926985383034, 0.002873182063922286, 0.05218510329723358, -0.0071630943566560745, -0.06150639429688454, -0.026286745443940163, -0.004411283414810896, -0.004179575014859438, -0.034425221383571625, -0.01692132093012333, -0.012975660152733326, 0.010971936397254467, -0.013010968454182148, 0.005084340460598469, 0.010512933135032654, -0.016488797962665558, 0.04816000163555145, 0.006386320106685162, -0.0032218475826084614, 0.0013372874818742275, 0.015667889267206192, -0.00829294789582491, -0.012525484897196293, -0.0566692091524601, 0.04713607206940651, 0.037991322576999664, -0.006103856489062309, -0.03322475403547287, -0.027610793709754944, 0.006002346519380808, -0.038450323045253754, 0.015050000511109829, -0.0005974762025289237, 0.09540199488401413, 0.022420529276132584, -0.012896217405796051, -0.026375016197562218, 0.07118076831102371, 0.05440950393676758, -0.03354252502322197, 0.03583753854036331, -0.011528035625815392, 0.04522944614291191, -0.014167302288115025, 0.006103856489062309, -0.033436600118875504, 0.047065455466508865, -0.06475472450256348, -0.06171824410557747, 0.04148680716753006, -0.02882891707122326, -0.08855225890874863, -0.029605690389871597, -0.02512158453464508, -0.009709677658975124, 0.033436600118875504, 0.004146473947912455, -0.02674574963748455, -0.03657900542020798, -0.01311689242720604, 0.011616305448114872, 0.01929577812552452, -0.047559767961502075, 0.019666511565446854, -0.04226357862353325, 0.024380117654800415, 0.02169671654701233, 0.01638287492096424, 0.019525280222296715, -0.014290880411863327, 0.0428285077214241, 0.029605690389871597, -0.052573490887880325, -0.036684926599264145, -0.01813061721622944, 0.025209855288267136, 0.03186539560556412, -0.061965398490428925, 0.014705748297274113, -0.018836775794625282, 0.00737494183704257, 0.04240481182932854, 0.01604744978249073, -0.0054859681986272335, -0.08911719173192978, -0.09024704247713089, -0.003283636411651969, -0.11771660298109055, 0.05871707201004028, -0.0544448122382164, 0.05818745121359825, -0.024062346667051315, 0.024362465366721153, 0.01695662923157215, -0.012825601734220982, 0.0016032002167776227, -0.015147097408771515, -0.06143578141927719, -0.03626123443245888, 0.018995661288499832, -0.05472727492451668, 0.018836775794625282, -0.012825601734220982, 0.005724296439439058, -0.04590029641985893, 0.010398182086646557, 0.027098828926682472, -0.0450529046356678, -0.06641419976949692, -0.00023336328740697354, -0.02498035319149494, 0.019225161522626877, -0.06260094046592712, -0.10387589782476425, -0.01708020642399788, 0.024662582203745842, -0.015050000511109829, -0.04402897506952286, -0.0021295088808983564, 0.013019795529544353, 0.0028709752950817347, 0.01731853373348713, -0.01604744978249073, 0.02736363746225834, -0.011686921119689941, 0.048830851912498474, 0.028652377426624298, 0.0010553757892921567, -0.020690441131591797, -0.024185925722122192, 0.06080023571848869, -0.05652797967195511, 0.013805396854877472, -0.02088463492691517, -0.047241996973752975, -0.04180457815527916, 0.047065455466508865, 0.0028047729283571243, 0.04971355199813843, -0.017662785947322845, 0.02656920999288559, -0.0016925734234973788, 0.00635101180523634, 0.0008849047590047121, -0.010848358273506165, 0.03059431165456772, -0.015614927746355534, -0.0366143137216568, -0.05560997501015663, -0.009365425445139408, -0.023073725402355194, 0.02123771421611309, -0.026639824733138084, 0.026039591059088707, 0.0005447901785373688, -0.044487979263067245, -0.02399173192679882, -0.05271472409367561, 0.0340721420943737, -0.00583022041246295, 0.07188692688941956, 0.04805407673120499, -0.008897596038877964, 0.0012721884995698929, -0.0016638856614008546, 0.023444458842277527, -0.005212331656366587, 0.04893677681684494, -0.011254399083554745, 0.02395642362535, 0.02625143900513649, 0.016903666779398918, 0.02884656935930252, -0.054021116346120834, -0.01897800713777542, -0.00036107865162193775, -0.02626909129321575, 0.01910158433020115, 0.02494504489004612, -0.038979943841695786, 0.01767161302268505, 0.06994498521089554, 0.025315778329968452, 0.049360472708940506, -0.04180457815527916, -0.021908564493060112, 0.06189478188753128, -0.006161232013255358, -0.03357783332467079, 0.0716397687792778, 0.00007016759627731517, -0.01943700946867466, -0.008879941888153553, 0.02964099869132042, 0.048548389226198196, -0.00005241019243840128, -0.034919533878564835, -0.048371851444244385, -0.007878080010414124, -0.08000774681568146, -0.003574926871806383, 0.02623378485441208, -0.00842093862593174, -0.09511953592300415, -0.025863051414489746, 0.03495484218001366, 0.010839531198143959, -0.046253375709056854, 0.05659859627485275, 0.00603324081748724, 0.021167097613215446, -0.05882299318909645, 0.034107450395822525, 0.03414275869727135, 0.016338739544153214, 0.0022221922408789396, 0.030258886516094208, 0.029588036239147186, 0.06514310836791992, 0.051796719431877136, 0.023744575679302216, -0.002829047152772546, -0.01717730239033699, -0.017998211085796356, -0.007644164375960827, 0.04032164439558983, -0.04145149886608124, 0.02445073425769806, -0.0064481087028980255, -0.0016142339445650578, -0.0304883886128664, -0.07746557891368866, 0.019489971920847893, 0.021784985437989235, 0.05995284765958786, 0.001166264759376645, 0.05705759674310684, -0.029376188293099403, 0.03062961995601654, 0.016073931008577347, 0.012551965191960335, 0.018925044685602188, -0.03596111759543419, 0.005000484175980091, 0.046394605189561844, -0.04244012013077736, 0.010248123668134212, -0.015288328751921654, 0.0040228962898254395, -0.027275368571281433, -0.07086299359798431, 0.05684575065970421, -0.004351701121777296, 0.04459390416741371, -0.06200070679187775, 0.03827378526329994, 0.007820704020559788, 0.0006195436581037939, -0.09335413575172424, 0.01709786057472229, 0.06433103233575821, -0.033595483750104904, 0.046253375709056854, -0.029746921733021736, -0.036861468106508255, -0.03696739301085472, -0.015553138218820095, -0.02768140845000744, 0.030841467902064323, -0.052573490887880325, 0.04618275910615921, -0.06584926694631577, -0.0215731393545866, 0.015014693140983582, 0.004318600054830313, 0.06810897588729858, -0.01747742109000683, 0.01994897425174713, 0.002873182063922286, -0.013752434402704239, -0.015756160020828247, -0.022279297932982445, 0.022402875125408173, -0.0030717889312654734, -0.05077278986573219, -0.05977630615234375, -0.04554721713066101, 0.005252053029835224, 0.04540598392486572, 0.04388774558901787, -0.024556657299399376, -0.02692228928208351, 0.016718300059437752, -0.012825601734220982, 0.036225926131010056, -0.06938005983829498, 0.034407567232847214, 0.0174332857131958, -0.030912082642316818, -0.03175947442650795, -0.02155548520386219, 0.07111015170812607, 0.0005249294335953891, 0.025721820071339607, -0.031194547191262245, 0.0697331428527832, 0.04148680716753006, -0.03451349213719368, 0.046924225986003876, 0.00612151063978672, -0.012031173333525658, 0.036190617829561234, -0.03823847696185112, 0.04455859586596489, 0.049466393887996674, -0.003144611604511738, -0.024856775999069214, 0.00473567470908165, 0.07365231961011887, -0.023426804691553116, -0.03647308051586151, 0.04342874139547348, -0.018271848559379578, -0.04565313830971718, -0.05458604544401169, 0.028281643986701965, 0.030417772009968758, -0.003579340409487486, 0.02529812417924404, 0.019507626071572304, 0.0027209166437387466, 0.01467926800251007, 0.07047460973262787, 0.03484891727566719, -0.02658686414361, 0.04522944614291191, 0.002427419414743781, -0.07224000245332718, 0.05345619097352028, -0.036067038774490356, -0.03936833143234253, 0.009506657719612122, -0.012931525707244873, 0.09554322808980942, -0.005547756794840097, -0.042863816022872925, 0.03954486921429634, 0.02432715706527233, -0.0004893456934951246, 0.004585615824908018, -0.003859597025439143, 0.03495484218001366, -0.01279029343277216, 0.07584141194820404, -0.03876809403300285, 0.03560803830623627, 0.015782639384269714, -0.0382031686604023, -0.011633959598839283, 0.014529208652675152, 0.010751261375844479, 0.043005045503377914, -0.006426041480153799, 0.07485278695821762, -0.06539026647806168, 0.048371851444244385, 0.04176926985383034, -0.013169853948056698, -0.014935250394046307, -0.03253624960780144, 0.006668783258646727, -0.03373671695590019, -0.02704586647450924, 0.018872082233428955, -0.015253021381795406, -0.08149068057537079, -0.009700850583612919, 0.019507626071572304, 0.030382465571165085, -0.019507626071572304, 0.02787560224533081, -0.026039591059088707, 0.012181232683360577, 0.037532318383455276, -0.06719096750020981, 0.04907800629734993, 0.005415352061390877, -0.03456645458936691, -0.02123771421611309, 0.019384047016501427, 0.03514903411269188, 0.01943700946867466, -0.01410551369190216, 0.01254313811659813, 0.018271848559379578, -0.0071630943566560745, 0.034584108740091324, 0.040251027792692184, -0.009480176493525505, -0.041204340755939484, 0.02185560204088688, -0.019331086426973343, 0.06125923991203308, -0.000011464730050647631, -0.04296973720192909, -0.0152441943064332, -0.008429765701293945, -0.004475278779864311, -0.0035881672520190477, -0.012128270231187344, -0.018713196739554405, 0.009127097204327583, 0.01860727369785309, -0.06302464008331299, -0.026957595720887184, 0.047877538949251175, 0.0009091789252124727, 0.002979105804115534, 0.016135718673467636, 0.03147701174020767, -0.02771671675145626, -0.009215367026627064, -0.013823050074279308, 0.007953109219670296, -0.01506765466183424, -0.022402875125408173, 0.03763824328780174, 0.029111379757523537, 0.01610923744738102, 0.061612319201231, 0.030682582408189774, -0.001519343932159245, 0.08064328879117966, -0.012101789005100727, 0.011254399083554745, -0.004400249570608139, 0.006267155520617962, -0.0857982411980629, -0.01703607104718685, 0.0272224061191082, 0.04498228803277016, -0.02821102738380432, -0.033772025257349014, -0.021184751763939857, 0.1014043465256691, -0.006306877359747887, -0.051302406936883926, -0.008919662795960903, -0.007216055877506733, -0.04007449001073837, 0.004336253739893436, 0.0053888713009655476, 0.010195162147283554, -0.02399173192679882, -0.017539208754897118, -0.02009020559489727, 0.02072574943304062, 0.04240481182932854, 0.03873278945684433, -0.00880491267889738, -0.0195782408118248, 0.0345488004386425, -0.016276950016617775, 0.0385209396481514, -0.03356017917394638, 0.04833654314279556, -0.003643336007371545, 0.022773608565330505, -0.07111015170812607, 0.03243032470345497, -0.0311239305883646, -0.01767161302268505, -0.02819337323307991, -0.03481360897421837, -0.03352487087249756, 0.05511566251516342, -0.013169853948056698, -0.0010057240724563599, 0.01092780102044344, -0.04794815555214882, -0.011598651297390461, 0.00989504437893629, 0.049007393419742584, 0.040109798312187195, 0.04229888692498207, -0.008187023922801018, -0.11729291081428528, -0.015994487330317497, 0.03191835805773735, -0.049148622900247574, -0.010203988291323185, -0.012737331911921501, 0.01596800610423088, 0.008910836651921272, 0.03675554320216179, 0.05652797967195511, -0.07605326175689697, -0.02187325619161129, -0.05779906362295151, 0.029552727937698364, 0.02625143900513649, 0.013549414463341236, 0.05928199738264084, 0.03647308051586151, -0.05024316906929016, 0.044487979263067245, -0.04452328756451607, -0.03288932889699936, 0.03746170178055763, 0.037355780601501465, 0.05656328797340393, 0.029941115528345108, 0.020355015993118286, 0.02137894555926323, 0.026110205799341202, -0.04515882954001427, -0.05578651279211044, -0.0450529046356678, -0.00833266880363226, 0.0553981252014637, -0.014096686616539955, 0.02692228928208351, -0.02720475196838379, 0.07050991803407669, -0.006289223209023476, -0.03077085129916668, -0.02948211319744587, 0.00502696493640542, -0.034742992371320724, 0.020460939034819603, -0.002083167200908065, 0.06401325762271881, -0.0037978081963956356, 0.024344811215996742, -0.025880705565214157, 0.0366143137216568, -0.061612319201231, -0.0004532102611847222, 0.0020997177343815565, -0.0074632116593420506, 0.018677890300750732, 0.023850498721003532, 0.07442909479141235, 0.013240469619631767, 0.05352680757641792, -0.041380882263183594, 0.042863816022872925, -0.01994897425174713, -0.008500381372869015, 0.02056686393916607, 0.017168475314974785, 0.025033315643668175, 0.06270686537027359, 0.00042066077003255486, 0.002292807912454009, -0.0058478740975260735, -0.03672023490071297, -0.01717730239033699, 0.028475837782025337, 0.011987038888037205, 0.012322464026510715, -0.03333067521452904, -0.036684926599264145, -0.03859155625104904, 0.03317179158329964, -0.01630343124270439, -0.011528035625815392, 0.011784018017351627, 0.013964282348752022, 0.014237918891012669, -0.010301085188984871, -0.0525381825864315, -0.06475472450256348, -0.02934088185429573, 0.03364844620227814, -0.046253375709056854, -0.023691613227128983, 0.0004518310306593776, -0.007273431401699781, 0.01642701029777527, -0.06147108972072601, 0.042369503527879715, 0.026657478883862495, -0.0023281159810721874, -0.07986651360988617, 0.0008915249491110444, 0.005132888909429312, -0.056316129863262177, 0.008253226056694984, -0.008637200109660625, 0.042687274515628815, 0.05342088267207146, -0.005313842091709375, -0.0037051248364150524, 0.055186279118061066, 0.02981753833591938, -0.04071003198623657, -0.020213784649968147, -0.0012556378496810794, 0.032006628811359406, -0.0013792156241834164, 0.00773684773594141, 0.009091788902878761, 0.0064172144047915936, -0.052396953105926514, 0.0068276687525212765, -0.10260481387376785, 0.06489595770835876, 0.04180457815527916, -0.01369947288185358, 0.02236756682395935, 0.028705338016152382, -0.05935261398553848, 0.08043143898248672, -0.02023143880069256, -0.03400152549147606, -0.012596100568771362, 0.000536514853592962, 0.04911331459879875, 0.04183988645672798, 0.018271848559379578, 0.029446804895997047, 0.0018669062992557883, 0.025227509438991547, 0.006620234809815884, -0.014829326421022415, -0.014326188713312149, -0.0560336671769619, 0.021820293739438057, -0.024503696709871292, -0.02706352062523365, -0.023462112993001938, -0.009233021177351475, 0.023373842239379883, 0.04526475444436073, -0.030029386281967163, -0.05045501887798309, 0.059070147573947906, -0.045617833733558655, 0.0041597140952944756, -0.015350118279457092, 0.030329503118991852, -0.0059140766970813274, -0.018519002944231033, -0.03682615980505943, 0.08247929811477661, -0.011960557661950588, 0.014970557764172554, -0.00846948754042387, -0.07185161858797073, -0.00019612445612438023, -0.01053941436111927, 0.02090228907763958, -0.008999105542898178, 0.007666232064366341, -0.020460939034819603, 0.004230330232530832, 0.015305982902646065, -0.013425836339592934 ]
730,326
mmengine.fileio.io
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. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Yields: Iterable[str]: A relative path to ``dir_path``. Examples: >>> dir_path = '/path/of/dir' >>> for file_path in list_dir_or_file(dir_path): ... print(file_path) >>> # list those files and directories in current directory >>> for file_path in list_dir_or_file(dir_path): ... print(file_path) >>> # only list files >>> for file_path in list_dir_or_file(dir_path, list_dir=False): ... print(file_path) >>> # only list directories >>> for file_path in list_dir_or_file(dir_path, list_file=False): ... print(file_path) >>> # only list files ending with specified suffixes >>> for file_path in list_dir_or_file(dir_path, suffix='.txt'): ... print(file_path) >>> # list all files and directory recursively >>> for file_path in list_dir_or_file(dir_path, recursive=True): ... print(file_path)
def list_dir_or_file( dir_path: Union[str, Path], list_dir: bool = True, list_file: bool = True, suffix: Optional[Union[str, Tuple[str]]] = None, recursive: bool = False, backend_args: Optional[dict] = None, ) -> 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. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Yields: Iterable[str]: A relative path to ``dir_path``. Examples: >>> dir_path = '/path/of/dir' >>> for file_path in list_dir_or_file(dir_path): ... print(file_path) >>> # list those files and directories in current directory >>> for file_path in list_dir_or_file(dir_path): ... print(file_path) >>> # only list files >>> for file_path in list_dir_or_file(dir_path, list_dir=False): ... print(file_path) >>> # only list directories >>> for file_path in list_dir_or_file(dir_path, list_file=False): ... print(file_path) >>> # only list files ending with specified suffixes >>> for file_path in list_dir_or_file(dir_path, suffix='.txt'): ... print(file_path) >>> # list all files and directory recursively >>> for file_path in list_dir_or_file(dir_path, recursive=True): ... print(file_path) """ backend = get_file_backend( dir_path, backend_args=backend_args, enable_singleton=True) yield from backend.list_dir_or_file(dir_path, list_dir, list_file, suffix, recursive)
(dir_path: Union[str, pathlib.Path], list_dir: bool = True, list_file: bool = True, suffix: Union[str, Tuple[str], NoneType] = None, recursive: bool = False, backend_args: Optional[dict] = None) -> Iterator[str]
[ 0.013908403925597668, -0.02903035655617714, -0.031267836689949036, 0.004460738971829414, 0.04558391869068146, 0.06185305118560791, 0.011139996349811554, -0.01679058186709881, 0.035856567323207855, -0.08661703020334244, 0.05806071311235428, 0.039971254765987396, -0.023000536486506462, -0.007873844355344772, -0.005451487842947245, 0.022431686520576477, 0.014496216550469398, 0.030224943533539772, -0.006854652892798185, 0.015264165587723255, -0.004512883722782135, 0.028101233765482903, 0.06905850023031235, 0.05836410075426102, 0.009172720834612846, -0.04182950034737587, -0.00939077977091074, 0.024005508050322533, -0.0015904122265055776, 0.022772997617721558, 0.005361419636756182, 0.0011489603202790022, 0.006821470335125923, 0.01040997076779604, -0.010419451631605625, 0.025048401206731796, -0.013254225254058838, 0.0303387138992548, -0.06898265331983566, 0.015292608179152012, 0.018279075622558594, -0.050589803606271744, 0.07948742806911469, 0.03989540785551071, -0.02036486193537712, -0.000016313724700012244, -0.030964449048042297, -0.030414560809731483, -0.03875770792365074, -0.04850401729345322, 0.05104488506913185, 0.011045187711715698, -0.030793793499469757, -0.06204266846179962, 0.023038459941744804, 0.0043327477760612965, 0.004816270899027586, 0.01893325336277485, 0.06420430541038513, 0.011196881532669067, 0.03703219071030617, -0.0262619499117136, -0.05578530952334404, -0.0038255222607403994, -0.02690664678812027, -0.03066106326878071, -0.06519030779600143, -0.06845172494649887, -0.02840462140738964, 0.03936447948217392, -0.03870082274079323, 0.021256061270833015, 0.05525438115000725, 0.036520227789878845, -0.0302059818059206, -0.008812448009848595, -0.023702120408415794, 0.04107103496789932, -0.04804893955588341, -0.02379692904651165, -0.0017788441618904471, 0.03200734406709671, -0.007537274155765772, 0.005446747411042452, 0.03348635509610176, -0.003434437094256282, 0.03325881436467171, -0.013168897479772568, 0.03297438845038414, 0.04330851510167122, 0.002129635540768504, -0.053396135568618774, 0.027437573298811913, 0.009433443658053875, -0.05840202420949936, 0.005442006979137659, 0.026318833231925964, 0.01451517827808857, -0.03741142526268959, -0.00003810856651398353, -0.024745013564825058, 0.02840462140738964, 0.04247419908642769, -0.022204145789146423, 0.012685374356806278, -0.030224943533539772, -0.06530407816171646, 0.0045034028589725494, 0.03902317211031914, -0.01525468472391367, -0.0219576433300972, 0.015558071434497833, 0.06378714740276337, -0.00013687973842024803, -0.019435739144682884, 0.017425797879695892, -0.013093051500618458, -0.04622861370444298, -0.006527564022690058, -0.02611025609076023, 0.04019879549741745, -0.011139996349811554, -0.022204145789146423, -0.018364403396844864, -0.00019035764853470027, -0.03413105383515358, 0.046532001346349716, -0.016259653493762016, -0.0419432707130909, 0.06693478673696518, -0.012381987646222115, 0.03875770792365074, 0.03811300918459892, 0.03310712054371834, 0.04577353596687317, -0.014695314690470695, -0.01007814146578312, -0.021104367449879646, -0.03232969343662262, 0.06321829557418823, 0.06086704507470131, 0.0033751819282770157, 0.025162171572446823, 0.044901296496391296, -0.016989680007100105, -0.013159416615962982, -0.006190993823111057, 0.0075846784748137, 0.03655815124511719, 0.03445340320467949, -0.07834972441196442, 0.0015133803244680166, 0.03418793901801109, 0.06026026979088783, 0.010599588043987751, 0.013301629573106766, -0.04035048931837082, 0.015330531634390354, -0.01040997076779604, 0.008238856680691242, -0.01261900831013918, -0.04004710167646408, -0.020800979807972908, -0.032424502074718475, -0.005043811164796352, 0.040767647325992584, -0.0670485571026802, 0.023493541404604912, -0.0005226317443884909, -0.0024626501835882664, 0.014704795554280281, -0.054875146597623825, -0.0023879886139184237, -0.03335362300276756, -0.07747749239206314, 0.05328236520290375, 0.0233039241284132, 0.044863373041152954, -0.004733313340693712, -0.025882715359330177, 0.01815582439303398, -0.025465557351708412, 0.04710085317492485, -0.0564679317176342, -0.03532563894987106, 0.05415460467338562, 0.024384740740060806, -0.007527793291956186, 0.04645615443587303, 0.0013059867778792977, -0.06503861397504807, 0.013538651168346405, -0.006759844720363617, -0.07087881863117218, -0.06905850023031235, 0.022564418613910675, -0.00020043105178046972, -0.025181131437420845, 0.001028671977110207, -0.006508602295070887, 0.03572383522987366, 0.022848844528198242, 0.05206881836056709, -0.009954890236258507, -0.00942396279424429, 0.03741142526268959, -0.023702120408415794, 0.061435896903276443, -0.017615415155887604, -0.03902317211031914, 0.011016745120286942, -0.028158118948340416, -0.00611040648072958, -0.037828583270311356, 0.0051291389390826225, 0.00216518878005445, 0.005982415284961462, 0.018980657681822777, -0.07087881863117218, -0.011433903127908707, 0.06340791285037994, -0.010628030635416508, -0.043725669384002686, -0.026337794959545135, 0.025181131437420845, -0.02592063881456852, 0.0040175095200538635, 0.006963682826608419, -0.0008674975833855569, -0.04330851510167122, -0.030319752171635628, -0.02510528638958931, 0.03794235363602638, 0.012144966050982475, -0.01820322871208191, -0.019739124923944473, 0.055216457694768906, -0.025332825258374214, -0.04493921995162964, 0.005716951563954353, -0.005868644919246435, 0.027532381936907768, -0.012287179008126259, 0.007148559205234051, -0.06507653743028641, -0.012419911101460457, 0.0564679317176342, 0.029902594164013863, 0.0033609606325626373, 0.017207739874720573, -0.04091934114694595, 0.046001072973012924, 0.0011554782977327704, -0.017245663329958916, 0.03542044758796692, -0.007741112262010574, -0.0505518801510334, 0.04072972387075424, -0.005043811164796352, 0.04205704107880592, 0.026792876422405243, 0.020933711901307106, -0.01525468472391367, -0.04262589290738106, 0.015321050770580769, -0.03710803762078285, -0.016534598544239998, -0.05115865543484688, 0.02379692904651165, 0.05711262673139572, -0.0038729263469576836, -0.08805811405181885, 0.015937305986881256, 0.023038459941744804, 0.0364823043346405, 0.04990718513727188, 0.011576115153729916, 0.019246121868491173, -0.04429452121257782, 0.036823615431785583, -0.038169894367456436, 0.002421171637251973, -0.0656074658036232, -0.0005673695122823119, 0.003109718207269907, 0.03593241423368454, -0.04675954207777977, 0.08221791684627533, -0.04744216427206993, 0.00897362269461155, 0.07592263072729111, -0.027778884395956993, 0.019814971834421158, -0.0287269689142704, -0.014467773959040642, -0.04482544958591461, 0.027608228847384453, -0.06401468813419342, 0.04926248639822006, -0.06845172494649887, -0.03542044758796692, 0.04152611270546913, 0.07956327497959137, 0.02444162592291832, -0.0028205523267388344, -0.053054824471473694, -0.0034178458154201508, -0.02032693848013878, -0.04888325184583664, 0.007143818773329258, -0.018535057082772255, -0.015046105720102787, 0.015814054757356644, -0.024536434561014175, -0.006124627776443958, -0.04228458181023598, 0.0036761988885700703, -0.0072433678433299065, -0.06458353996276855, -0.003007798921316862, -0.025484519079327583, 0.06697271019220352, -0.019947703927755356, 0.036823615431785583, -0.005982415284961462, 0.042398352175951004, 0.000089179229689762, 0.06682101637125015, 0.06469731032848358, 0.01659148372709751, -0.010637511499226093, -0.034206900745630264, -0.0594259537756443, -0.004797309171408415, 0.015036624856293201, 0.02165425755083561, -0.003512654220685363, 0.020270053297281265, 0.0010470411507412791, 0.005674287676811218, -0.012372506782412529, -0.02364523522555828, -0.0377337746322155, -0.009457145817577839, 0.004877896513789892, 0.009457145817577839, 0.056354161351919174, 0.042094964534044266, 0.08737549185752869, 0.019568471238017082, 0.09723557531833649, 0.03828366473317146, 0.0010393379488959908, -0.03244346007704735, 0.003003058722242713, -0.009964371100068092, -0.039781637489795685, 0.07194067537784576, -0.01779555156826973, 0.020592402666807175, 0.0075230528600513935, -0.022109337151050568, -0.010732320137321949, -0.010229835286736488, -0.004297194536775351, -0.020137321203947067, 0.0016378165455535054, -0.0035576883237808943, 0.03117302805185318, 0.026792876422405243, 0.01427815668284893, -0.034567173570394516, 0.021369831636548042, -0.06181512773036957, 0.048997022211551666, -0.010343605652451515, 0.02116125263273716, -0.02578790672123432, 0.03752519562840462, 0.10034529864788055, 0.002409320557489991, 0.004543696530163288, 0.07565716654062271, 0.005560517311096191, 0.04975549131631851, -0.01796620711684227, 0.05096903815865517, 0.019265083596110344, -0.041412342339754105, -0.06670724600553513, -0.011054668575525284, -0.0027731480076909065, 0.033713895827531815, 0.00882192887365818, -0.03333466127514839, -0.07633978873491287, 0.0616634339094162, 0.0020644546020776033, -0.03348635509610176, -0.06117043271660805, -0.010931417346000671, 0.025351786985993385, -0.00984111987054348, 0.04804893955588341, -0.042739663273096085, -0.008632312528789043, 0.03951617330312729, 0.018298037350177765, -0.04304305091500282, 0.028821777552366257, 0.025389710441231728, -0.076908640563488, 0.01499870140105486, 0.05415460467338562, 0.009684686549007893, 0.06515238434076309, -0.04808686301112175, 0.02169218100607395, 0.02229895442724228, 0.00811560545116663, 0.003882407210767269, -0.1085367500782013, 0.007110636215656996, 0.06196682155132294, 0.05404083430767059, -0.01687590964138508, 0.02592063881456852, -0.0011874762130901217, -0.028006425127387047, 0.012325102463364601, -0.0008597943815402687, -0.01361449807882309, -0.00562688335776329, -0.014211791567504406, 0.036178916692733765, -0.05953972414135933, -0.06120835617184639, -0.06701063364744186, -0.04171572998166084, -0.02999740280210972, -0.058819182217121124, 0.008276780135929585, 0.005588959902524948, 0.03335362300276756, -0.014695314690470695, -0.005683768540620804, -0.008068202063441277, 0.04205704107880592, 0.028821777552366257, -0.04679746553301811, -0.000029201752113294788, -0.005095955915749073, 0.09139537811279297, -0.035003289580345154, 0.008309963159263134, -0.017511125653982162, 0.024707090109586716, 0.0015998930903151631, 0.009172720834612846, -0.027115225791931152, 0.04835232347249985, -0.02918205037713051, 0.03676673024892807, -0.04512883722782135, 0.038454320281744, 0.009983332827687263, 0.04565976560115814, 0.020307976752519608, -0.045849382877349854, -0.06564538925886154, -0.01625017262995243, -0.04330851510167122, -0.05187920108437538, -0.0109124556183815, 0.013386957347393036, 0.01586145907640457, -0.05005887895822525, -0.05722639709711075, -0.009632541798055172, -0.05631623789668083, -0.00890725664794445, -0.06693478673696518, 0.04448413848876953, -0.007124857511371374, -0.018895329907536507, -0.07516416162252426, 0.08343145996332169, 0.05134827271103859, -0.046001072973012924, -0.05047603324055672, 0.04220873489975929, 0.010391009040176868, -0.005503632128238678, -0.03828366473317146, -0.05241012945771217, -0.02017524465918541, -0.06875511258840561, 0.00619573425501585, -0.01859194226562977, -0.0018262483645230532, 0.03147641569375992, -0.0742160752415657, 0.020289015024900436, 0.03532563894987106, 0.01777658984065056, 0.03644438087940216, -0.016610445454716682, 0.004818641114979982, -0.01304564718157053, 0.019739124923944473, 0.028328774496912956, 0.05517853423953056, -0.013538651168346405, 0.004538956098258495, 0.0012751740869134665, -0.02294365130364895, 0.009224865585565567, -0.003327777609229088, 0.055709462612867355, 0.00939077977091074, -0.04721462354063988, -0.03187461197376251, -0.02148360200226307, 0.03308815881609917, 0.034396518021821976, 0.030395599082112312, 0.001450569718144834, -0.0288597010076046, 0.021730104461312294, 0.0377337746322155, -0.031097181141376495, 0.025655174627900124, -0.043422285467386246, 0.013889442197978497, 0.006304763723164797, -0.02806331031024456, 0.03837847337126732, 0.08161114156246185, -0.020895788446068764, -0.016951756551861763, 0.03559110313653946, 0.10444102436304092, -0.0233039241284132, -0.038321588188409805, 0.03707011416554451, -0.021881796419620514, -0.002652267226949334, -0.018895329907536507, 0.11225324124097824, 0.014609986916184425, -0.016344981268048286, -0.04706292971968651, -0.012818106450140476, 0.07379892468452454, 0.006219436414539814, -0.016496675089001656, 0.030054287984967232, -0.010599588043987751, -0.03299335017800331, -0.023759005591273308, -0.05168958380818367, 0.04842817038297653, -0.08517593890428543, -0.03409313037991524, 0.08707211166620255, 0.043725669384002686, 0.04876948148012161, -0.020289015024900436, 0.021749066188931465, -0.09450509399175644, 0.04911079257726669, -0.0606774277985096, -0.042739663273096085, -0.0037473051343113184, 0.016771620139479637, 0.022886767983436584, 0.020118359476327896, -0.02034590020775795, 0.018686750903725624, -0.019312487915158272, 0.00797339342534542, -0.061777204275131226, 0.032234884798526764, -0.024896707385778427, -0.02755134366452694, 0.023209115490317345, 0.005413564387708902, 0.03276580944657326, -0.036975305527448654, -0.007560976315289736, 0.0021711140871047974, -0.040426336228847504, 0.02611025609076023, 0.011604557745158672, -0.02739965170621872, 0.015567552298307419, -0.03741142526268959, 0.007470908109098673, 0.04501506686210632, 0.009803196415305138, -0.027987463399767876, 0.008276780135929585, 0.025958562269806862, -0.02724795788526535, -0.026186103001236916, -0.05821240693330765, 0.10451687127351761, -0.016648368909955025, -0.025351786985993385, 0.042246658354997635, -0.017226701602339745, 0.039136942476034164, 0.02081994153559208, -0.02214726060628891, 0.021066443994641304, -0.019075466319918633, -0.00845691654831171, -0.010400489903986454, 0.04065387696027756, -0.04418075084686279, -0.0863136425614357, 0.01663888804614544, 0.005171802826225758, 0.05366159975528717, -0.012884472496807575, 0.029580246657133102, -0.008238856680691242, 0.01803257316350937, -0.004057802725583315, 0.009708388708531857, 0.008509061299264431, -0.0069162785075604916, -0.0067266616970300674, 0.03069898672401905, -0.0143634844571352, -0.10724735260009766, -0.02085786499083042, -0.028461506590247154, -0.016819024458527565, -0.05517853423953056, 0.013244744390249252, 0.006300023291260004, 0.010021256282925606, -0.004944262094795704, -0.018791040405631065, -0.0039938073605299, -0.005332977045327425, -0.009935928508639336, 0.0525238998234272, -0.012495758011937141, 0.029731938615441322, 0.022412724792957306, -0.05419252812862396, -0.04182950034737587, -0.018487652763724327, 0.033391546458005905, 0.03117302805185318, -0.03382766619324684, 0.05206881836056709, 0.04592522606253624, 0.06428015232086182, -0.005427785683423281, 0.01180365588515997, -0.0326710008084774, -0.07925988733768463, -0.025332825258374214, -0.05085526779294014, 0.023190153762698174, 0.057188473641872406, -0.04967964440584183, 0.043422285467386246, 0.02741861157119274, -0.03579968214035034, -0.023171192035079002, 0.04679746553301811, -0.020611364394426346, 0.005494151264429092, -0.03396039828658104, 0.010921936482191086, 0.006219436414539814, -0.01914183236658573, 0.05498891696333885, 0.02165425755083561, 0.1036067083477974, 0.004455998539924622, 0.008930958807468414, 0.0008224635384976864, -0.015567552298307419, 0.03597033768892288, -0.01708448864519596, -0.049793414771556854, -0.006153070367872715, 0.007229146547615528, -0.07205444574356079, 0.0008307592943310738, 0.024062391370534897, 0.02821500413119793, 0.0057501341216266155, 0.01803257316350937, 0.02083890326321125, -0.004896857775747776, 0.004527105018496513, 0.003097867127507925, 0.003725973190739751, 0.030395599082112312, 0.003856334835290909, -0.015055586583912373, 0.01379463355988264, 0.037316616624593735, -0.00916323997080326, 0.0042545306496322155, 0.03166603296995163, -0.007110636215656996, -0.034680940210819244, -0.02544659562408924, -0.016449270769953728, 0.04960379749536514, -0.0303387138992548, 0.06223228573799133, 0.002057343954220414, 0.04478752613067627, -0.04986926168203354, -0.03132472187280655, -0.0071770017966628075, -0.011661442928016186, -0.011016745120286942, -0.018658308312296867, -0.036008261144161224, 0.0029272118117660284, 0.05775732547044754, -0.00916323997080326, -0.02738068997859955, 0.0488453283905983, -0.01803257316350937, -0.008746081963181496, -0.009277009405195713, 0.025882715359330177, 0.046001072973012924, -0.025465557351708412, 0.030243905261158943, -0.013690344989299774, 0.047859322279691696, 0.015311569906771183, -0.004138390067964792, -0.009096873924136162, 0.041108958423137665, 0.047025006264448166, -0.035761758685112, -0.00648015970364213, 0.023569388315081596, 0.007907027378678322, -0.06761740893125534, -0.006300023291260004, 0.048314400017261505, -0.02724795788526535, 0.026868723332881927, -0.02559828944504261, -0.032253846526145935, -0.025484519079327583, -0.04675954207777977, -0.02493463084101677, 0.02180595137178898, -0.016600964590907097, -0.026679106056690216, 0.007058491464704275, 0.056050773710012436, -0.009746312163770199, 0.024555396288633347 ]
730,327
mmengine.fileio.parse
list_from_file
Load a text file and parse the content as a list of strings. ``list_from_file`` supports loading a text file which can be storaged in different backends and parsing the content as a list for strings. Args: filename (str): Filename. prefix (str): The prefix to be inserted to the beginning of each item. offset (int): The offset of lines. max_num (int): The maximum number of lines to be read, zeros and negatives mean no limitation. encoding (str): Encoding used to open the file. Defaults to utf-8. file_client_args (dict, optional): Arguments to instantiate a FileClient. See :class:`mmengine.fileio.FileClient` for details. Defaults to None. It will be deprecated in future. Please use ``backend_args`` instead. backend_args (dict, optional): Arguments to instantiate the prefix of uri corresponding backend. Defaults to None. New in v0.2.0. Examples: >>> list_from_file('/path/of/your/file') # disk ['hello', 'world'] >>> list_from_file('s3://path/of/your/file') # ceph or petrel ['hello', 'world'] Returns: list[str]: A list of strings.
def list_from_file(filename, prefix='', offset=0, max_num=0, encoding='utf-8', file_client_args=None, backend_args=None): """Load a text file and parse the content as a list of strings. ``list_from_file`` supports loading a text file which can be storaged in different backends and parsing the content as a list for strings. Args: filename (str): Filename. prefix (str): The prefix to be inserted to the beginning of each item. offset (int): The offset of lines. max_num (int): The maximum number of lines to be read, zeros and negatives mean no limitation. encoding (str): Encoding used to open the file. Defaults to utf-8. file_client_args (dict, optional): Arguments to instantiate a FileClient. See :class:`mmengine.fileio.FileClient` for details. Defaults to None. It will be deprecated in future. Please use ``backend_args`` instead. backend_args (dict, optional): Arguments to instantiate the prefix of uri corresponding backend. Defaults to None. New in v0.2.0. Examples: >>> list_from_file('/path/of/your/file') # disk ['hello', 'world'] >>> list_from_file('s3://path/of/your/file') # ceph or petrel ['hello', 'world'] Returns: list[str]: A list of strings. """ if file_client_args is not None: warnings.warn( '"file_client_args" will be deprecated in future. ' 'Please use "backend_args" instead', DeprecationWarning) if backend_args is not None: raise ValueError( '"file_client_args" and "backend_args" cannot be set at the ' 'same time.') cnt = 0 item_list = [] if file_client_args is not None: file_client = FileClient.infer_client(file_client_args, filename) text = file_client.get_text(filename, encoding) else: text = get_text(filename, encoding, backend_args=backend_args) with StringIO(text) as f: for _ in range(offset): f.readline() for line in f: if 0 < max_num <= cnt: break item_list.append(prefix + line.rstrip('\n\r')) cnt += 1 return item_list
(filename, prefix='', offset=0, max_num=0, encoding='utf-8', file_client_args=None, backend_args=None)
[ -0.03145477920770645, -0.006281537935137749, -0.055789850652217865, -0.029194554314017296, 0.031096909195184708, 0.11383992433547974, -0.026689473539590836, 0.029627762734889984, 0.08408031612634659, -0.035202980041503906, 0.00454870006069541, 0.01488922256976366, -0.010029741562902927, -0.034148208796978, 0.03857448324561119, 0.040985386818647385, -0.016339533030986786, -0.05477274954319, 0.000014503469174087513, -0.008833707310259342, -0.008249815553426743, -0.01602875255048275, 0.02721685916185379, 0.06743000447750092, 0.026802483946084976, -0.01538835559040308, -0.02721685916185379, -0.004073111340403557, -0.007830732502043247, -0.0032137553207576275, 0.033470142632722855, 0.002702850615605712, -0.022715246304869652, 0.03657795116305351, -0.028629498556256294, -0.037971753627061844, 0.015313014388084412, -0.050063952803611755, -0.028535321354866028, 0.003969517536461353, 0.03622008115053177, 0.015765059739351273, 0.09131303429603577, 0.011508304625749588, -0.008979680016636848, 0.05691996216773987, -0.041437432169914246, -0.05175912007689476, -0.030456511303782463, -0.007670633494853973, -0.005721190944314003, 0.0013055144809186459, -0.06957721710205078, -0.0016527884872630239, -0.049498897045850754, -0.0034044617787003517, 0.015708552673459053, 0.002980669727548957, 0.012836186215281487, 0.02989145554602146, 0.02231970801949501, -0.05379331856966019, 0.03738786280155182, -0.06486841291189194, 0.016330115497112274, 0.013005702756345272, 0.036144740879535675, -0.06727932393550873, -0.015491948463022709, 0.007501116953790188, 0.053341276943683624, 0.024448083713650703, -0.0016598516376689076, -0.02604907564818859, 0.0190894715487957, 0.03977993503212929, 0.01779926009476185, 0.06931351870298386, -0.0407593660056591, 0.00410371832549572, 0.006220323499292135, 0.02716035209596157, 0.021792322397232056, 0.013165801763534546, 0.027141517028212547, -0.07865577936172485, 0.034524913877248764, 0.014936310239136219, 0.004934821277856827, 0.06392665207386017, -0.026689473539590836, 0.01686691865324974, 0.019965307787060738, 0.020323175936937332, -0.055789850652217865, -0.08091600239276886, -0.007416358683258295, -0.04324560984969139, -0.028365805745124817, 0.018628008663654327, -0.008602975867688656, 0.02152862958610058, 0.0681457370519638, -0.019682779908180237, 0.02186766266822815, -0.013165801763534546, -0.02627509832382202, 0.013589593581855297, 0.025898395106196404, 0.04298191890120506, 0.015878070145845413, -0.050440654158592224, 0.08754599094390869, 0.021396782249212265, -0.005052541382610798, 0.01597224548459053, -0.006658241618424654, -0.0009211588185280561, 0.026519956067204475, -0.044714756309986115, 0.039478570222854614, -0.07142306119203568, -0.053906332701444626, -0.010255764238536358, 0.001276084571145475, -0.05816308408975601, 0.03872516378760338, -0.05255019664764404, 0.09312120825052261, -0.0056929378770291805, 0.027857255190610886, 0.020662210881710052, 0.014032221399247646, -0.033865682780742645, 0.04381066560745239, -0.04998860880732536, 0.034694429486989975, 0.005405701231211424, 0.01624535582959652, 0.011781414970755577, 0.04512913152575493, -0.00734572671353817, 0.011583645828068256, 0.021170759573578835, -0.0617794431746006, -0.04791674017906189, 0.058351438492536545, -0.046447593718767166, -0.0031831481028348207, 0.023129621520638466, -0.01764857955276966, 0.009474103339016438, -0.0035574976354837418, -0.04614622890949249, 0.026670638471841812, -0.05424536392092705, -0.06799505650997162, -0.03571153059601784, 0.0032325906213372946, 0.00829219538718462, -0.004063693340867758, 0.04068402200937271, 0.004576952662318945, 0.03823544830083847, 0.005565800238400698, 0.027311034500598907, -0.04946122691035271, -0.030475348234176636, -0.04893384128808975, -0.009747213684022427, 0.019324911758303642, -0.0460708886384964, -0.008876086212694645, 0.005255019757896662, 0.03593755513429642, -0.018175965175032616, 0.02141561731696129, 0.02198067307472229, -0.00046057940926402807, 0.0025686498265713453, -0.0466359443962574, -0.048670146614313126, 0.0013137549394741654, -0.017394304275512695, -0.025013141334056854, 0.05876581370830536, -0.006342752370983362, 0.03220818564295769, 0.06874846667051315, -0.03872516378760338, -0.007293929811567068, -0.03516530990600586, -0.000875248049851507, -0.006234449800103903, -0.0658101737499237, -0.058464448899030685, 0.011037425138056278, 0.01585923507809639, -0.021076584234833717, -0.020737551152706146, -0.017074104398489, 0.006375713739544153, 0.020492693409323692, -0.044488731771707535, 0.031963326036930084, 0.05899183452129364, -0.041324421763420105, -0.008447585627436638, -0.058916494250297546, 0.0390641950070858, -0.02403371036052704, 0.0024650562554597855, -0.062984898686409, 0.018119458109140396, 0.026802483946084976, -0.00688897306099534, -0.022941268980503082, 0.04384833574295044, -0.0032349450048059225, -0.04030732065439224, 0.06189245358109474, 0.06053632125258446, -0.08068998157978058, 0.03356431797146797, 0.06275887042284012, -0.0035622064024209976, 0.03139827027916908, 0.044827766716480255, 0.057748712599277496, 0.03066369891166687, 0.01229938305914402, -0.035636190325021744, 0.00913036148995161, 0.016009917482733727, 0.06264586001634598, 0.0010800807503983378, 0.04392367601394653, 0.0066064451821148396, 0.016207685694098473, 0.02604907564818859, -0.037256017327308655, 0.006436928175389767, -0.017959360033273697, -0.008485255762934685, -0.03222702071070671, 0.05514945462346077, -0.05172144994139671, 0.0323777012526989, -0.019183646887540817, 0.03516530990600586, 0.04859480634331703, 0.06294722855091095, 0.019051801413297653, 0.0013596657663583755, -0.00520322285592556, 0.02676481381058693, -0.04275589436292648, -0.03533482924103737, -0.050892699509859085, 0.026670638471841812, 0.0020942382980138063, -0.058577459305524826, 0.00892788264900446, -0.02120843157172203, 0.01207336038351059, -0.004732342902570963, -0.021905332803726196, 0.062306828796863556, -0.0025545235257595778, 0.05627956613898277, -0.011348205618560314, 0.020191330462694168, 0.003425651229918003, 0.002651053946465254, -0.04535515233874321, -0.0030654282309114933, 0.022583400830626488, 0.027198024094104767, 0.025333339348435402, 0.027951430529356003, -0.07537845522165298, 0.04625924304127693, -0.018778691068291664, -0.03721834719181061, 0.0419648177921772, -0.017111776396632195, -0.03925254940986633, 0.0022131355945020914, -0.05221116542816162, 0.00614969152957201, 0.005650558974593878, -0.01249715220183134, 0.00744461128488183, -0.08536110818386078, 0.022508058696985245, -0.02889319136738777, -0.006926643196493387, 0.00030033307848498225, 0.0009594177827239037, -0.036144740879535675, -0.012958615086972713, 0.024900129064917564, -0.0007180918473750353, -0.028177453204989433, -0.022470388561487198, -0.01903296634554863, 0.0035104097332805395, -0.04580719769001007, -0.034148208796978, -0.035636190325021744, 0.0023555767256766558, -0.024184392765164375, -0.022639906033873558, -0.06253284960985184, 0.0401943102478981, 0.01313754916191101, -0.027066176757216454, 0.0022649322636425495, 0.03367733210325241, -0.07323124259710312, 0.005514003802090883, 0.022357378154993057, -0.018110040575265884, 0.05733433738350868, 0.011913261376321316, 0.021622804924845695, 0.03490161895751953, 0.06520745158195496, 0.030079808086156845, -0.022413883358240128, 0.03605056554079056, 0.00075105344876647, -0.07074499875307083, -0.00255216914229095, -0.05616655573248863, -0.05959456041455269, 0.04151277244091034, -0.011555393226444721, 0.0008781910291872919, -0.046447593718767166, 0.0185244157910347, -0.040985386818647385, -0.016951676458120346, 0.02297893911600113, -0.040872376412153244, 0.015134080313146114, 0.0640396699309349, -0.02037968300282955, 0.043886005878448486, 0.021453289315104485, 0.00695489626377821, -0.00007442109927069396, -0.00892788264900446, 0.005287981126457453, 0.024109050631523132, 0.002429740270599723, -0.011348205618560314, -0.027386374771595, 0.015708552673459053, 0.05786172300577164, -0.028686003759503365, -0.06509444117546082, 0.005490459501743317, -0.02465527132153511, -0.018175965175032616, -0.040721695870161057, 0.06743000447750092, -0.034637924283742905, -0.006083768326789141, 0.04091004654765129, -0.040382660925388336, -0.03345130756497383, 0.02537100948393345, 0.018882283940911293, -0.004692318383604288, -0.06437870115041733, -0.008494673296809196, -0.01580272987484932, -0.0381789430975914, 0.06859778612852097, 0.0007963756215758622, 0.005127882119268179, 0.05511178448796272, -0.012544240802526474, -0.016509048640727997, 0.01466319989413023, 0.0123841417953372, 0.008235689252614975, -0.03768922761082649, -0.029740775004029274, 0.053002241998910904, 0.020360847935080528, 0.005372739862650633, -0.01746964454650879, -0.010830237530171871, -0.033413637429475784, -0.002672243397682905, -0.004619332030415535, 0.03857448324561119, -0.0001958566135726869, -0.0019388480577617884, 0.024975469335913658, -0.06366296112537384, 0.03767039254307747, -0.08061464130878448, 0.030513018369674683, 0.03277324140071869, -0.012515988200902939, -0.04765304550528526, 0.03780223801732063, 0.029627762734889984, -0.021679310128092766, 0.0010388788068667054, -0.008640646003186703, 0.016782158985733986, 0.043546974658966064, -0.10404562205076218, -0.01651846617460251, 0.026632966473698616, -0.015416608192026615, -0.03493928909301758, 0.030870886519551277, 0.018345480784773827, 0.02209368534386158, 0.0326225608587265, -0.020681045949459076, -0.017884017899632454, -0.05002628266811371, -0.01875043846666813, -0.017601490020751953, 0.02659529633820057, -0.01279851607978344, -0.022225530818104744, -0.03872516378760338, -0.00639925803989172, -0.012873856350779533, -0.027725407853722572, -0.023883027955889702, -0.023449819535017014, -0.0863405391573906, -0.0057824053801596165, 0.0010159233352169394, 0.04697497934103012, 0.06912516802549362, 0.01613234542310238, -0.009813137352466583, -0.07195045053958893, -0.007501116953790188, 0.008984388783574104, -0.019381416961550713, -0.0839296355843544, 0.0010194550268352032, 0.025465184822678566, 0.019965307787060738, 0.021848827600479126, 0.019908802583813667, 0.011640151031315327, 0.028459981083869934, -0.007534078322350979, -0.030456511303782463, 0.03571153059601784, 0.061628762632608414, 0.06486841291189194, -0.10125801712274551, 0.03428005799651146, 0.026124417781829834, -0.014964563772082329, 0.08310088515281677, -0.026745978742837906, -0.02181115746498108, -0.02047385834157467, 0.011555393226444721, -0.05492343381047249, -0.03209517523646355, 0.031417105346918106, 0.044112030416727066, 0.014493683353066444, -0.006465181242674589, 0.012063942849636078, -0.01836431585252285, 0.014540771022439003, -0.08053930103778839, 0.043659985065460205, 0.015294179320335388, -0.012534823268651962, -0.023223796859383583, 0.04151277244091034, -0.046786628663539886, -0.022018345072865486, -0.054019343107938766, -0.002229616278782487, 0.01591574028134346, 0.011611898429691792, 0.008249815553426743, 0.03691698610782623, 0.029175719246268272, 0.015086991712450981, 0.03043767623603344, -0.005471624433994293, 0.049498897045850754, 0.04998860880732536, -0.013504835776984692, 0.0015315369237214327, 0.07827907800674438, -0.0037835200782865286, 0.055337805300951004, -0.002420322736725211, 0.032867416739463806, -0.009982653893530369, -0.03390335291624069, 0.007896656170487404, 0.08008725196123123, 0.04313259944319725, 0.03580570966005325, -0.050327643752098083, 0.041098397225141525, -0.057748712599277496, 0.020662210881710052, -0.018458493053913116, 0.05635490640997887, -0.037086501717567444, -0.043546974658966064, -0.02960892766714096, -0.026256263256072998, -0.002905328990891576, -0.018712766468524933, -0.04173879325389862, -0.028309300541877747, 0.0011960349511355162, 0.08325156569480896, -0.00520322285592556, 0.0025851307436823845, -0.0008275714353658259, -0.02838464081287384, -0.03868749365210533, -0.026972001418471336, 0.020775221288204193, 0.025239162147045135, 0.0932718887925148, 0.020888231694698334, 0.018223052844405174, 0.08362827450037003, -0.00798141397535801, -0.016989346593618393, -0.034468408674001694, -0.02910037897527218, 0.0013573112664744258, -0.014229990541934967, 0.04531748220324516, -0.016838666051626205, 0.056241896003484726, -0.061854783445596695, 0.00829219538718462, -0.02616208791732788, 0.044375721365213394, -0.04113606736063957, 0.03844263404607773, -0.04987559840083122, -0.0699162483215332, -0.0206998810172081, -0.0017128256149590015, 0.05202281102538109, -0.08227213472127914, 0.020850561559200287, 0.025163821876049042, 0.0705566480755806, -0.007284512277692556, -0.0033385385759174824, 0.01279851607978344, -0.02804560773074627, 0.032867416739463806, -0.02403371036052704, 0.02793259546160698, 0.027311034500598907, -0.01703643426299095, -0.004200248513370752, 0.053680308163166046, -0.061139047145843506, 0.04802975058555603, -0.04708798974752426, 0.0588788241147995, -0.018044117838144302, 0.011009172536432743, -0.013504835776984692, 0.04475242644548416, 0.07364561408758163, -0.012176954187452793, 0.001221933402121067, -0.030456511303782463, -0.01763916201889515, 0.042266178876161575, 0.011150436475872993, 0.02832813560962677, 0.0034185880795121193, -0.00926220789551735, -0.006808923557400703, -0.02403371036052704, 0.027405209839344025, -0.0038965311832726, 0.0035386625677347183, -0.011206941679120064, 0.01724362187087536, 0.007209171541035175, 0.038762833923101425, 0.006738291587680578, -0.0009594177827239037, 0.03288625180721283, -0.05236184597015381, -0.005123173352330923, 0.03377150744199753, -0.04682429879903793, -0.015491948463022709, -0.04049567133188248, -0.08001191169023514, 0.008094425313174725, 0.027254529297351837, 0.025408679619431496, 0.02064337581396103, 0.08438167721033096, -0.04501611739397049, 0.04049567133188248, 0.03533482924103737, 0.040872376412153244, 0.07722430676221848, 0.004131970927119255, 0.010359358042478561, -0.043546974658966064, -0.010660720989108086, 0.0069596050307154655, -0.005000744480639696, 0.008748948574066162, 0.008894921280443668, 0.012176954187452793, 0.046711284667253494, 0.023449819535017014, -0.018175965175032616, -0.024579931050539017, -0.04520447179675102, -0.01322230789810419, -0.05051599442958832, -0.01452193595468998, -0.043094929307699203, -0.056241896003484726, -0.011301117949187756, -0.0495365671813488, -0.0037670391611754894, 0.030927391722798347, -0.020662210881710052, 0.08814872056245804, 0.015652047470211983, 0.030192820355296135, 0.06520745158195496, -0.01708352379500866, 0.01446543075144291, -0.05820075795054436, 0.005848328582942486, 0.05059133842587471, -0.03367733210325241, 0.02354399487376213, 0.013052791357040405, 0.0390641950070858, -0.015670882537961006, 0.05424536392092705, 0.04859480634331703, -0.060913022607564926, -0.08008725196123123, 0.015397773124277592, 0.01631128042936325, 0.038480304181575775, 0.052399516105651855, 0.023393314331769943, 0.045430492609739304, 0.02137794718146324, 0.01483271736651659, 0.09078564494848251, -0.015623794868588448, 0.007341017480939627, -0.017431974411010742, 0.007920200005173683, 0.02215019054710865, 0.005608179606497288, 0.006757126655429602, -0.0155861247330904, -0.005438663065433502, 0.004164932761341333, 0.0121016139164567, 0.006512268912047148, 0.017074104398489, 0.01580272987484932, 0.014625529758632183, 0.002648699562996626, 0.0670909658074379, -0.02047385834157467, -0.00892788264900446, -0.016396038234233856, 0.05786172300577164, -0.00040142511716112494, -0.023299137130379677, -0.007948452606797218, 0.03055068850517273, -0.010943248867988586, 0.01040644571185112, 0.031906820833683014, -0.01619826816022396, -0.042153168469667435, -0.05157076567411423, -0.06471773236989975, -0.017262456938624382, -0.04780372604727745, 0.00003649319114629179, 0.021961838006973267, 0.020492693409323692, 0.012120448984205723, -0.02371351234614849, 0.048444125801324844, -0.04298191890120506, 0.015350684523582458, 0.00190235476475209, 0.003851797664538026, 0.017045851796865463, 0.014729123562574387, 0.017874600365757942, 0.026858989149332047, 0.0060884770937263966, -0.03000446781516075, -0.03913953900337219, -0.02282825857400894, -0.006775961723178625, -0.1130865141749382, 0.025465184822678566, 0.041324421763420105, 0.023336807265877724, -0.030626028776168823, -0.05714598670601845, 0.019795790314674377, -0.012666669674217701, -0.016895171254873276, -0.04124907776713371, 0.021622804924845695, 0.009375219233334064, -0.049837928265333176, 0.0014420696534216404, -0.06543347239494324, 0.003967163152992725, -0.05530013516545296, 0.005989592522382736, 0.07217647135257721, -0.007689469028264284, -0.012873856350779533, 0.07654623687267303, -0.048670146614313126, -0.03951624035835266, -0.023223796859383583, 0.03989294543862343, -0.0023355642333626747, 0.008033211342990398, -0.028572993353009224, -0.04637225344777107, -0.047502364963293076, -0.040872376412153244, -0.05153309553861618, 0.03209517523646355, -0.008570014499127865, 0.026067910715937614, -0.03827311843633652, -0.022677576169371605, 0.0051843877881765366, 0.05025230348110199 ]
730,328
mmengine.fileio.io
load
Load data from json/yaml/pickle files. This method provides a unified api for loading data from serialized files. ``load`` supports loading data from serialized files those can be storaged in different backends. Args: file (str or :obj:`Path` or file-like object): Filename or a file-like object. file_format (str, optional): If not specified, the file format will be inferred from the file extension, otherwise use the specified one. Currently supported formats include "json", "yaml/yml" and "pickle/pkl". file_client_args (dict, optional): Arguments to instantiate a FileClient. See :class:`mmengine.fileio.FileClient` for details. Defaults to None. It will be deprecated in future. Please use ``backend_args`` instead. backend_args (dict, optional): Arguments to instantiate the prefix of uri corresponding backend. Defaults to None. New in v0.2.0. Examples: >>> load('/path/of/your/file') # file is storaged in disk >>> load('https://path/of/your/file') # file is storaged in Internet >>> load('s3://path/of/your/file') # file is storaged in petrel Returns: The content from the file.
def load(file, file_format=None, file_client_args=None, backend_args=None, **kwargs): """Load data from json/yaml/pickle files. This method provides a unified api for loading data from serialized files. ``load`` supports loading data from serialized files those can be storaged in different backends. Args: file (str or :obj:`Path` or file-like object): Filename or a file-like object. file_format (str, optional): If not specified, the file format will be inferred from the file extension, otherwise use the specified one. Currently supported formats include "json", "yaml/yml" and "pickle/pkl". file_client_args (dict, optional): Arguments to instantiate a FileClient. See :class:`mmengine.fileio.FileClient` for details. Defaults to None. It will be deprecated in future. Please use ``backend_args`` instead. backend_args (dict, optional): Arguments to instantiate the prefix of uri corresponding backend. Defaults to None. New in v0.2.0. Examples: >>> load('/path/of/your/file') # file is storaged in disk >>> load('https://path/of/your/file') # file is storaged in Internet >>> load('s3://path/of/your/file') # file is storaged in petrel Returns: The content from the file. """ if isinstance(file, Path): file = str(file) if file_format is None and is_str(file): file_format = file.split('.')[-1] if file_format not in file_handlers: raise TypeError(f'Unsupported format: {file_format}') if file_client_args is not None: warnings.warn( '"file_client_args" will be deprecated in future. ' 'Please use "backend_args" instead', DeprecationWarning) if backend_args is not None: raise ValueError( '"file_client_args and "backend_args" cannot be set at the ' 'same time.') handler = file_handlers[file_format] if is_str(file): if file_client_args is not None: file_client = FileClient.infer_client(file_client_args, file) file_backend = file_client else: file_backend = get_file_backend(file, backend_args=backend_args) if handler.str_like: with StringIO(file_backend.get_text(file)) as f: obj = handler.load_from_fileobj(f, **kwargs) else: with BytesIO(file_backend.get(file)) as f: obj = handler.load_from_fileobj(f, **kwargs) elif hasattr(file, 'read'): obj = handler.load_from_fileobj(file, **kwargs) else: raise TypeError('"file" must be a filepath str or a file-object') return obj
(file, file_format=None, file_client_args=None, backend_args=None, **kwargs)
[ 0.010310088284313679, -0.05584551393985748, -0.05446186661720276, 0.013125425204634666, -0.011857082135975361, 0.0241177286952734, 0.011463127098977566, 0.08040524274110794, 0.020312700420618057, -0.03507159650325775, 0.027692148461937904, 0.04181687533855438, -0.04446886479854584, -0.014249637722969055, -0.012779513373970985, 0.01912122592329979, -0.06114949285984039, -0.006750081200152636, 0.0055201733484864235, -0.06618442386388779, -0.012087689712643623, -0.004492046777158976, 0.04604468122124672, 0.030055878683924675, 0.038953494280576706, 0.003367834258824587, -0.00954620074480772, 0.019150052219629288, 0.02108139358460903, 0.001837655552662909, 0.06564634293317795, 0.008436400443315506, 0.000549795338883996, 0.0482354573905468, -0.009262745268642902, -0.030459441244602203, 0.0011710550170391798, 0.002916227327659726, -0.11599570512771606, -0.019207704812288284, -0.013211903162300587, -0.0014424995752051473, 0.07168057560920715, 0.023252949118614197, -0.004167754668742418, 0.08824590593576431, -0.0078022293746471405, 0.01861196756362915, -0.021427303552627563, -0.027653714641928673, 0.029575444757938385, -0.01966891996562481, -0.008013620041310787, 0.025462940335273743, -0.044661037623882294, 0.016084890812635422, -0.055268991738557816, 0.053654737770557404, -0.03551359474658966, 0.03954923152923584, 0.02678893506526947, -0.03234273940324783, 0.0390687994658947, -0.011626474559307098, -0.0323619544506073, -0.018861792981624603, 0.01631549932062626, -0.037896543741226196, -0.013365641236305237, -0.012779513373970985, 0.00571234617382288, 0.020101310685276985, 0.0451606847345829, -0.013221511617302895, 0.029940573498606682, 0.015902327373623848, -0.004463220946490765, 0.04573720693588257, -0.03186230733990669, 0.03635915741324425, 0.0031900741159915924, -0.06760650873184204, -0.02511702850461006, -0.028614578768610954, 0.0013283968437463045, -0.09162814915180206, 0.011809038929641247, 0.008748682215809822, -0.02455972693860531, 0.007634077686816454, -0.02832631953060627, 0.019246138632297516, 0.004064461681991816, 0.024040859192609787, -0.020197397097945213, -0.07414039224386215, 0.025789635255932808, 0.03397620841860771, -0.03263099864125252, 0.018352534621953964, -0.035532813519239426, -0.03215056657791138, -0.003632072126492858, 0.005155044142156839, -0.015354633331298828, -0.03047865815460682, 0.032169781625270844, -0.012577731162309647, -0.03841540962457657, -0.010454218834638596, -0.01699771359562874, -0.060572970658540726, 0.013346424326300621, 0.04723615571856499, 0.02113904431462288, -0.023752599954605103, -0.024521291255950928, 0.006778907496482134, -0.017439711838960648, -0.00951256975531578, -0.06353243440389633, 0.014172768220305443, 0.01440337672829628, 0.04362330213189125, 0.038473062217235565, -0.0903213694691658, 0.026558326557278633, -0.07552403956651688, 0.035013943910598755, -0.03370716795325279, 0.043392691761255264, -0.03622463718056679, -0.021273566409945488, 0.03140109032392502, 0.017939362674951553, -0.007619664538651705, 0.0056018466129899025, 0.022042257711291313, -0.011155650019645691, 0.05077214166522026, 0.07610055804252625, -0.009238723665475845, 0.011232519522309303, -0.030574746429920197, -0.04293147847056389, -0.05388534814119339, 0.024233032017946243, -0.06468547880649567, -0.07352544367313385, 0.08401809632778168, 0.015210503712296486, -0.02052409015595913, 0.013404075987637043, -0.006519473623484373, 0.00571234617382288, -0.07902159541845322, -0.03772358596324921, -0.04400764778256416, -0.038127150386571884, 0.036762721836566925, -0.029748400673270226, 0.04581407457590103, 0.05730602890253067, 0.016430802643299103, -0.004967675544321537, 0.05688324570655823, -0.03322673588991165, -0.04804328456521034, -0.013721161521971226, -0.000781303911935538, -0.05553803592920303, 0.011405475437641144, -0.05630672723054886, 0.027692148461937904, 0.0408560074865818, -0.03153561055660248, 0.040894441306591034, -0.016027240082621574, -0.0042254067957401276, -0.02490563876926899, 0.004004407674074173, -0.025270767509937286, 0.014941461384296417, 0.008561313152313232, -0.00961346086114645, 0.0463905930519104, 0.0008731866837479174, 0.06449330598115921, 0.08263444900512695, 0.040625400841236115, 0.01315425056964159, 0.009993002749979496, -0.018621576949954033, -0.02938327193260193, 0.014912635087966919, -0.061533838510513306, 0.00831148773431778, -0.01076169591397047, -0.00744190439581871, 0.040048882365226746, -0.039702970534563065, -0.0179970134049654, 0.042508698999881744, -0.013356032781302929, -0.03245804086327553, 0.021811651065945625, 0.024502074345946312, -0.002188371494412422, -0.04354643076658249, 0.01050226204097271, -0.059304628521203995, -0.04854293540120125, -0.0714884027838707, 0.032035261392593384, 0.07483221590518951, 0.020927654579281807, -0.01431689877063036, 0.038780536502599716, -0.05696011707186699, 0.006601147353649139, 0.09362675249576569, 0.07744577527046204, -0.06268687546253204, -0.009003311395645142, 0.004616959486156702, -0.02846084162592888, 0.016613367944955826, 0.046236857771873474, 0.0161521527916193, 0.010079480707645416, -0.027692148461937904, 0.005135826766490936, 0.03687802329659462, 0.013836465775966644, 0.056844811886548996, 0.023733381181955338, 0.023867903277277946, 0.026289284229278564, 0.021504173055291176, 0.060534536838531494, 0.07610055804252625, -0.016988104209303856, -0.021696345880627632, -0.04070226848125458, -0.06045766919851303, -0.026404589414596558, 0.04362330213189125, -0.030709266662597656, -0.03191995620727539, -0.0029474555049091578, 0.05269387364387512, 0.03793497756123543, 0.007840664125978947, 0.03234273940324783, -0.011636083014309406, -0.014633984304964542, 0.06633816659450531, -0.0878615602850914, 0.002567913383245468, -0.03854992985725403, -0.027384672313928604, -0.021696345880627632, 0.03718550130724907, 0.028211016207933426, -0.014701244421303272, -0.031151264905929565, 0.005957367364317179, -0.01758384145796299, 0.0433158241212368, -0.01308699045330286, 0.07610055804252625, 0.036013245582580566, 0.04047166183590889, 0.013279163278639317, -0.014163159765303135, -0.0658385157585144, 0.016584541648626328, -0.0192269217222929, 0.04054852947592735, 0.031766217201948166, -0.04304678365588188, -0.007302579004317522, 0.0011614463292062283, -0.04792797937989235, 0.04977283999323845, -0.02894127368927002, -0.07398665696382523, -0.029344838112592697, -0.017497364431619644, -0.018765706568956375, 0.02521311491727829, -0.030421007424592972, -0.08286505192518234, -0.021600259467959404, -0.04769737273454666, -0.023791033774614334, -0.07425569742918015, -0.047505199909210205, 0.08617043495178223, -0.05941993370652199, -0.03336125612258911, -0.014249637722969055, 0.09962255507707596, -0.03730080649256706, -0.006538690999150276, -0.043738603591918945, 0.0005984391318634152, -0.08078958839178085, -0.07879098504781723, 0.024444421753287315, 0.05603768676519394, -0.0231952965259552, -0.009277158416807652, -0.019582442939281464, -0.00532800005748868, 0.056152988225221634, 0.029210316017270088, 0.008455618284642696, 0.059189323335886, -0.06138009950518608, -0.028268668800592422, 0.04216278716921806, -0.03493707627058029, 0.06553103774785995, 0.06161070615053177, -0.04304678365588188, 0.03424525260925293, 0.036013245582580566, 0.018794532865285873, 0.01809309981763363, 0.02429068461060524, 0.03687802329659462, 0.02894127368927002, 0.013970986939966679, -0.005342413205653429, -0.016325106844305992, -0.0009350423933938146, -0.007019123528152704, 0.021542608737945557, -0.016824757680296898, 0.06268687546253204, -0.027480758726596832, -0.018765706568956375, -0.0009776807855814695, -0.06395521759986877, -0.007365035358816385, 0.07421726733446121, -0.018496664240956306, 0.053693175315856934, -0.00963267870247364, -0.05380847677588463, -0.0012455221731215715, 0.0005762191140092909, -0.03739689290523529, -0.07994402199983597, -0.06606912612915039, -0.015998413786292076, -0.04216278716921806, -0.006529082078486681, -0.005654694512486458, 0.02709641121327877, -0.026692848652601242, -0.033745601773262024, -0.016017630696296692, -0.0108289560303092, 0.013663509860634804, 0.06407052278518677, -0.018256448209285736, -0.02836475521326065, -0.001685118186287582, 0.0051166098564863205, -0.024963289499282837, -0.009368440136313438, 0.04542972892522812, 0.0006293670157901943, 0.026981107890605927, -0.017439711838960648, -0.004280656576156616, -0.035225335508584976, 0.06257157027721405, 0.051540832966566086, 0.022695647552609444, -0.001591433770954609, -0.028998926281929016, 0.0335342101752758, 0.032035261392593384, 0.01499911304563284, 0.01734362542629242, -0.03117048181593418, -0.04858136922121048, 0.04396921396255493, -0.024309901520609856, -0.013625075109302998, -0.027384672313928604, -0.007566817104816437, -0.03574420139193535, 0.0032813563011586666, 0.06626129895448685, 0.0006323697161860764, 0.01151117030531168, 0.02634693682193756, -0.005303978454321623, -0.015652501955628395, 0.0070239282213151455, -0.06303279101848602, 0.04681337624788284, 0.049350060522556305, 0.035532813519239426, 0.0011013923212885857, 0.05953523516654968, 0.06948980689048767, 0.016613367944955826, -0.06272531300783157, -0.03099752590060234, 0.012202993966639042, 0.060227058827877045, -0.0204280037432909, -0.008249031379818916, -0.010435000993311405, -0.014047856442630291, -0.022907037287950516, 0.06760650873184204, -0.007773403078317642, -0.03134343773126602, 0.03741610795259476, -0.013038947246968746, -0.013586640357971191, -0.05826689302921295, 0.03065161406993866, 0.017564624547958374, 0.022907037287950516, -0.027288584038615227, 0.0020646601915359497, -0.033514995127916336, 0.03280395269393921, -0.018227621912956238, -0.044391993433237076, -0.004924436565488577, 0.035052377730607986, -0.03117048181593418, -0.013404075987637043, -0.039049580693244934, 0.031208917498588562, -0.002918629441410303, -0.058036286383867264, -0.03657054901123047, -0.03499472886323929, -0.003603246295824647, 0.03486020490527153, 0.005126218311488628, -0.033303603529930115, 0.016027240082621574, 0.046851810067892075, -0.008556508459150791, -0.01532580703496933, -0.017285972833633423, 0.0756777822971344, 0.013836465775966644, 0.004014016129076481, 0.002014214638620615, 0.018736880272626877, -0.026327719911932945, 0.0689132884144783, -0.09700899571180344, 0.030324921011924744, 0.009575026109814644, 0.021581042557954788, 0.03424525260925293, -0.04861980304121971, -0.01731479912996292, 0.04231652244925499, 0.02152339182794094, -0.049657538533210754, 0.01762227714061737, 0.02849927544593811, 0.03718550130724907, 0.027941973879933357, -0.02175399847328663, -0.061764445155858994, -0.07022006064653397, 0.03322673588991165, -0.025539809837937355, 0.006183170713484287, 0.034533511847257614, 0.020274264737963676, -0.0659538209438324, 0.022907037287950516, 0.037339240312576294, 0.05081057548522949, -0.023579644039273262, 0.0167671050876379, 0.045929379761219025, 0.011924343183636665, 0.025405287742614746, -0.021023740991950035, -0.01508559100329876, 0.01933261752128601, -0.002025024499744177, 0.023445121943950653, -0.0004347917274571955, 0.02200382389128208, -0.013692336156964302, 0.0043383087031543255, 0.026596762239933014, -0.009397266432642937, -0.02415616251528263, 0.026404589414596558, -0.0013067773543298244, 0.014941461384296417, -0.028383972123265266, -0.027769017964601517, 0.03397620841860771, 0.03240039199590683, 0.0033342039678245783, -0.039741404354572296, 0.03020961582660675, -0.01843901164829731, 0.06837520003318787, -0.02035113424062729, 0.027461539953947067, 0.02209991030395031, -0.061533838510513306, 0.039972010999917984, 0.012750687077641487, -0.023310601711273193, -0.02630850113928318, -0.010194784961640835, -0.058689676225185394, 0.030267268419265747, 0.03165091574192047, 0.006039040628820658, -0.031151264905929565, -0.04389234259724617, -0.00814333651214838, -0.04212434962391853, 0.019034748896956444, -0.002539087552577257, -0.02104295790195465, 0.0033053779043257236, -0.0024165771901607513, 0.04658276587724686, 0.047120850533246994, -0.047851111739873886, -0.0029018144123256207, 0.009089789353311062, -0.09754708409309387, 0.012097299098968506, -0.017401278018951416, 0.039222534745931625, -0.02200382389128208, 0.025712765753269196, -0.08278818428516388, 0.04961910471320152, 0.028922056779265404, 0.0025703157298266888, -0.025924155488610268, 0.03682037070393562, -0.04170157015323639, -0.03274630010128021, -0.024655813351273537, -0.016546105965971947, 0.03486020490527153, -0.05646046623587608, 0.03512924909591675, 0.003917929716408253, 0.04443042725324631, 0.046505898237228394, 0.04458416625857353, -0.03929940611124039, -0.022157562896609306, 0.03209291398525238, 0.04070226848125458, 0.04150939732789993, -0.0028009233064949512, 0.015268155373632908, 0.0308245699852705, -0.007730164099484682, 0.016469238325953484, 0.04177843779325485, -0.042816173285245895, 0.028922056779265404, -0.009824851527810097, 0.005155044142156839, -0.002375740325078368, -0.015104807913303375, 0.043392691761255264, -0.014268855564296246, 0.0439307801425457, 0.0024189793039113283, 0.018948271870613098, -0.000722450902685523, -0.003202084917575121, 0.00545771699398756, 0.00598619319498539, 0.0256551131606102, 0.031055178493261337, -0.008364335633814335, -0.007720555644482374, 0.025904938578605652, -0.005001305602490902, -0.04389234259724617, 0.020889218896627426, -0.025924155488610268, -0.025501374155282974, -0.027115629985928535, 0.011367040686309338, 0.01493185292929411, 0.015056764706969261, 0.0201205275952816, -0.009738373570144176, 0.00584206311032176, -0.022349735721945763, -0.012020429596304893, -0.04604468122124672, 0.06991258263587952, -0.030421007424592972, 0.011953168548643589, 0.009291570633649826, 0.033303603529930115, -0.05665263906121254, 0.04431512579321861, 0.016325106844305992, 0.04239339381456375, 0.06760650873184204, 0.0010953868040814996, 0.006995101924985647, -0.05115648731589317, -0.027250150218605995, -0.0231952965259552, -0.02473268285393715, 0.01652688905596733, -0.036724284291267395, 0.041624702513217926, 0.0028369559440761805, 0.03741610795259476, -0.03766593337059021, 0.049695972353219986, 0.012510471045970917, 0.010069872252643108, -0.0040212227031588554, 0.0035479965154081583, -0.06530042737722397, 0.007336209528148174, 0.004057255107909441, -0.02723093330860138, 0.01747814565896988, 0.010732869617640972, -0.032035261392593384, 0.07364074140787125, 0.0006894211401231587, 0.0573444627225399, 0.013663509860634804, -0.0689132884144783, -0.03136265650391579, 0.010598348453640938, 0.024233032017946243, 0.08732347190380096, -0.05538429692387581, 0.011578431352972984, 0.010540696792304516, -0.004352721385657787, 0.013922943733632565, -0.0013392064720392227, 0.023963989689946175, 0.003233312861993909, -0.03818480297923088, -0.028114929795265198, -0.0026760108303278685, 0.08570921421051025, 0.028480058535933495, -0.045045383274555206, 0.04381547495722771, 0.0027168476954102516, 0.013999813236296177, 0.03441820666193962, -0.020716262981295586, -0.0034951488487422466, -0.039741404354572296, 0.03758906573057175, 0.020197397097945213, 0.03380325436592102, 0.01909240148961544, -0.04892728105187416, 0.06172601133584976, -0.05142553150653839, 0.031151264905929565, 0.009070571511983871, 0.02819179929792881, 0.015133634209632874, -0.027499975636601448, 0.019553616642951965, 0.038953494280576706, -0.018592750653624535, -0.06095731630921364, -0.01912122592329979, -0.022791733965277672, 0.039972010999917984, -0.04266243427991867, -0.013144642114639282, 0.06360930949449539, -0.003999603446573019, -0.04773580655455589, 0.017564624547958374, -0.0078022293746471405, -0.017535798251628876, -0.002199181355535984, -0.05334726348519325, 0.0323043055832386, 0.014163159765303135, -0.04400764778256416, -0.005390456411987543, 0.02819179929792881, 0.05019562318921089, -0.015047156251966953, 0.06576164811849594, 0.024175379425287247, -0.046198420226573944, 0.014086290262639523, -0.0009296375210396945, -0.02490563876926899, -0.043700169771909714, 0.008700639009475708, -0.009397266432642937, -0.01966891996562481, 0.02275329828262329, -0.04400764778256416, -0.010848172940313816, -0.010800129733979702, -0.00133200001437217, 0.042508698999881744, 0.03647446259856224, 0.005034936126321554, -0.02915266528725624, -0.05046466365456581, -0.018352534621953964, -0.08670851588249207, 0.02179243415594101, -0.05238639563322067, 0.0451606847345829, 0.04573720693588257, -0.018362142145633698, 0.018381360918283463, -0.04104818031191826, -0.0004825347277801484, 0.01091543398797512, -0.03341890871524811, 0.0690285861492157, -0.017257146537303925, -0.02152339182794094, 0.06291748583316803, -0.05211735516786575, 0.02555902674794197, -0.030747700482606888, 0.0714884027838707, -0.0010479440679773688, -0.014874200336635113, -0.012395166791975498, -0.02148495614528656, 0.0008455617935396731, -0.06387834995985031, -0.06341713666915894, 0.0033101821318268776, 0.014336115680634975, -0.04012575000524521, 0.008960071951150894, 0.00532800005748868, -0.027499975636601448, 0.0377812385559082 ]
730,330
mmengine.utils.path
mkdir_or_exist
null
def mkdir_or_exist(dir_name, mode=0o777): if dir_name == '': return dir_name = osp.expanduser(dir_name) os.makedirs(dir_name, mode=mode, exist_ok=True)
(dir_name, mode=511)
[ -0.038513682782649994, 0.07197465747594833, 0.0382310152053833, -0.030422277748584747, 0.052187807857990265, 0.013479789718985558, -0.015520308166742325, 0.018850505352020264, 0.022277869284152985, 0.0027582335751503706, 0.08508343994617462, 0.07116198539733887, 0.052682481706142426, -0.0007950072176754475, 0.002749399980530143, -0.07356467097997665, 0.02134152688086033, 0.019769180566072464, -0.030563611537218094, 0.03897302225232124, 0.0489371120929718, 0.01691598817706108, 0.05618051066994667, -0.01862083561718464, -0.023832550272345543, 0.050845131278038025, 0.03964436054229736, 0.061551228165626526, -0.05066846311092377, 0.025298897176980972, -0.04169371351599693, 0.030651945620775223, 0.024521557614207268, 0.03462698310613632, 0.04826577380299568, 0.037842344492673874, -0.028920596465468407, 0.06572059541940689, -0.06893596053123474, -0.10395161062479019, 0.003634949680417776, 0.00619222316890955, -0.060632552951574326, 0.017172155901789665, -0.002548439893871546, -0.05282381549477577, 0.004421123769134283, -0.02544023096561432, -0.052894480526447296, -0.02923860028386116, 0.014937303029000759, 0.015219972468912601, 0.00859491154551506, 0.002780317096039653, 0.004840710666030645, 0.024927893653512, -0.01953951083123684, 0.03263062983751297, -0.008073740638792515, -0.015131637454032898, -0.014946136623620987, 0.053318485617637634, 0.006121555808931589, 0.007534902077168226, -0.040810372680425644, -0.01685415394604206, -0.09250351041555405, -0.049502450972795486, 0.024397889152169228, 0.025881903246045113, -0.09179683774709702, 0.01853250153362751, 0.02547556534409523, -0.014000960625708103, 0.06458992511034012, 0.06236390024423599, -0.005825636442750692, -0.004694959614425898, 0.047205764800310135, 0.011615939438343048, -0.060420550405979156, -0.056321848183870316, 0.022613540291786194, -0.0007166106952354312, -0.025864236056804657, 0.087486132979393, -0.015219972468912601, -0.007548152003437281, 0.032188959419727325, 0.0048981280997395515, 0.023355545476078987, -0.007344983518123627, 0.014318963512778282, -0.016650985926389694, -0.007503984961658716, 0.013841959647834301, 0.038584351539611816, 0.022807873785495758, -0.0212531927973032, 0.002864234382286668, -0.02008718252182007, 0.013718292117118835, -0.0033434471115469933, -0.041234374046325684, -0.03372597321867943, 0.006293807178735733, 0.02627057209610939, -0.005397215951234102, 0.002990110544487834, 0.012260778807103634, -0.05914853885769844, -0.029591936618089676, 0.039432357996702194, 0.0016860779142007232, -0.05830053240060806, 0.020864523947238922, 0.05847720056772232, -0.04462640732526779, -0.05363648757338524, -0.05557984113693237, 0.02162419632077217, 0.0035951994359493256, -0.01438963133841753, -0.013417955487966537, 0.06568526476621628, 0.02639424055814743, 0.019468843936920166, 0.019097840413451195, -0.012684782035648823, 0.07091464847326279, -0.02731291577219963, 0.03535132110118866, 0.0012587615055963397, -0.03953836113214493, 0.00831665936857462, -0.02112952619791031, 0.015590975061058998, -0.00877599697560072, -0.0007006001542322338, 0.01432779710739851, 0.024574557319283485, -0.0697133019566536, -0.01415996253490448, 0.0314999520778656, -0.0041318293660879135, 0.014133461751043797, -0.043778397142887115, 0.05865386873483658, 0.01915084198117256, 0.038513682782649994, -0.02116485871374607, 0.01798482984304428, 0.013002784922719002, 0.07943005859851837, 0.04225905239582062, 0.025864236056804657, 0.022578205913305283, -0.025705235078930855, 0.05801786109805107, -0.016703985631465912, 0.012932118028402328, 0.010644263587892056, -0.01644781604409218, -0.00834757648408413, 0.006682477425783873, 0.006377724930644035, 0.0171279888600111, 0.03978569433093071, 0.029220933094620705, 0.053565822541713715, 0.06165722757577896, 0.030722612515091896, 0.054696496576070786, -0.009548920206725597, -0.06723994761705399, 0.008987998589873314, 0.015387807041406631, -0.041305042803287506, -0.012031110003590584, 0.0013735959073528647, 0.0321182943880558, 0.014380797743797302, 0.014106961898505688, 0.011571772396564484, 0.04635775461792946, 0.0244685560464859, -0.020811522379517555, 0.007609986234456301, 0.017419492825865746, 0.03632299602031708, -0.06020854786038399, 0.01853250153362751, 0.0009379981202073395, -0.021447528153657913, 0.018815170973539352, 0.054696496576070786, 0.011933942325413227, 0.006943063344806433, -0.03929102420806885, 0.013841959647834301, -0.023567548021674156, 0.06466058641672134, 0.01645665057003498, -0.00036962315789423883, 0.05575650930404663, -0.0017788286786526442, -0.01810849830508232, 0.03233029320836067, -0.04455573856830597, -0.020970525220036507, 0.052894480526447296, -0.010396928526461124, 0.05830053240060806, 0.06031455099582672, -0.005516467150300741, 0.018832838162779808, 0.020511187613010406, 0.06815861910581589, -0.012746616266667843, 0.03872568532824516, -0.0914435014128685, -0.03453864902257919, 0.03996236249804497, 0.01703082211315632, -0.004443207290023565, -0.06427191942930222, -0.017516659572720528, -0.011059434153139591, -0.006810562219470739, -0.0059360540471971035, 0.0029547768644988537, -0.012057609856128693, -0.0360933281481266, -0.031641289591789246, -0.03886701911687851, -0.05098646506667137, 0.08833413571119308, -0.0419057160615921, -0.004553624894469976, -0.020387519150972366, 0.0022447912488132715, -0.029097264632582664, 0.04745309799909592, 0.06232856959104538, 0.05837119743227959, 0.005609217565506697, 0.046993762254714966, 0.004743543453514576, -0.008245991542935371, -0.014310130849480629, -0.05815919488668442, 0.01923917606472969, -0.09179683774709702, -0.01587364450097084, 0.03551032394170761, -0.06409525126218796, -0.036711666733026505, 0.06261123716831207, 0.005004128906875849, 0.00442774873226881, -0.026623908430337906, 0.007411234080791473, -0.03033394366502762, -0.022136535495519638, -0.03112895041704178, -0.04702909663319588, 0.02300220914185047, 0.00620105629786849, -0.014990303665399551, 0.02969793789088726, 0.029733270406723022, 0.02936226688325405, 0.06020854786038399, -0.04321306198835373, 0.0657559335231781, 0.008338742889463902, 0.041057705879211426, -0.026341240853071213, 0.01816149801015854, 0.0654379278421402, -0.024874893948435783, 0.0020703314803540707, -0.034821316599845886, 0.008559578098356724, -0.07222199440002441, 0.029503602534532547, 0.03575766086578369, 0.03575766086578369, -0.010873932391405106, 0.006739894859492779, -0.021818531677126884, 0.04303639382123947, -0.03224195912480354, 0.013108786195516586, -0.057240523397922516, -0.023779550567269325, 0.004999712109565735, -0.021942200139164925, 0.007367067039012909, -0.049043115228414536, -0.018143832683563232, 0.045368414372205734, -0.04932578280568123, 0.006841478869318962, 0.008965915068984032, -0.03070494718849659, -0.05109246447682381, 0.010723764076828957, 0.01177494041621685, 0.027118580415844917, -0.005958137568086386, 0.0024115219712257385, 0.006845895666629076, 0.054943833500146866, 0.04872510954737663, 0.05003245547413826, 0.032559964805841446, -0.02844359166920185, -0.01969851367175579, 0.024927893653512, -0.01675698533654213, 0.0017512242775410414, -0.03174728900194168, 0.003447239752858877, -0.05865386873483658, -0.028266923502087593, 0.03681766986846924, 0.017958329990506172, -0.0050703794695436954, 0.04095170646905899, -0.05928987264633179, -0.019928181543946266, 0.0565691813826561, 0.006757561583071947, -0.048760443925857544, -0.0021674989257007837, -0.006496975664049387, -0.05533250421285629, 0.020776189863681793, 0.018603170290589333, -0.004540374502539635, 0.005436966195702553, -0.08911147713661194, -0.034114643931388855, 0.08246874809265137, 0.0233908798545599, 0.05006778985261917, 0.0535304881632328, 0.06504926085472107, -0.013400289230048656, 0.006934229750186205, 0.014230629429221153, -0.014124629087746143, -0.02091752365231514, 0.04731176421046257, -0.014363130554556847, -0.00839615985751152, -0.0026367739774286747, -0.028302257880568504, -0.023708881810307503, -0.006545559503138065, -0.01874450407922268, 0.013258954510092735, -0.005118963308632374, -0.0526118129491806, -0.03653499856591225, -0.027242248877882957, 0.010176092386245728, -0.008241575211286545, 0.018391167744994164, 0.0651552602648735, -0.03070494718849659, -0.0007922467775642872, -0.02455689013004303, 0.01874450407922268, 0.0061701396480202675, 0.06405992060899734, -0.0645192563533783, 0.025086894631385803, 0.0012664906680583954, 0.0008618099382147193, -0.03847835212945938, 0.021853866055607796, 0.01432779710739851, 0.022949209436774254, -0.03033394366502762, 0.0626819059252739, 0.020864523947238922, 0.0010097696213051677, -0.015219972468912601, 0.012622948735952377, 0.024945560842752457, 0.035775326192379, 0.0020570813212543726, -0.02510456182062626, -0.028885263949632645, 0.04473240673542023, 0.020758522674441338, -0.025881903246045113, 0.08798079937696457, 0.021818531677126884, -0.0030320691876113415, 0.039679694920778275, 0.004606625530868769, -0.03397331014275551, 0.02664157561957836, -0.010184925980865955, -0.019433509558439255, 0.01263178139925003, 0.009619588032364845, 0.014822468161582947, -0.014742967672646046, -0.00495554506778717, 0.0006244119140319526, -0.02376188337802887, 0.03107595071196556, -0.01899183914065361, -0.03095228224992752, -0.017242824658751488, -0.008926164358854294, -0.007433317601680756, -0.08190341293811798, -0.047700434923172, 0.07561402022838593, -0.010449928231537342, 0.023019876331090927, -0.026676909998059273, -0.003208737587556243, -0.0036062411963939667, -0.016500817611813545, -0.030086606740951538, -0.04116370901465416, 0.01987518183887005, -0.06448391824960709, 0.022030534222722054, -0.05345981940627098, -0.030563611537218094, 0.024203553795814514, -0.07483667880296707, 0.046993762254714966, -0.0018517043208703399, -0.03960902616381645, 0.002349687973037362, 0.0007988718571141362, -0.027754586189985275, 0.02635890617966652, 0.018726836889982224, -0.015113971196115017, 0.0651552602648735, 0.0004723115998785943, 0.05395449325442314, 0.037595007568597794, 0.06519059091806412, 0.04480307549238205, -0.02058185450732708, 0.0021928949281573296, -0.07080864161252975, -0.003915410488843918, 0.0010721556609496474, 0.004708209540694952, -0.0030850698240101337, 0.03397331014275551, 0.034944985061883926, 0.03653499856591225, -0.01572347618639469, 0.015511474572122097, 0.017569659277796745, 0.010326260700821877, 0.043319061398506165, -0.01975151337683201, -0.02556389942765236, -0.01771099492907524, 0.04907844588160515, 0.02902659773826599, -0.03960902616381645, -0.027259914204478264, -0.03142928704619408, -0.0115452716127038, 0.04780643433332443, 0.033655308187007904, 0.031517621129751205, 0.00593163724988699, 0.012084109708666801, -0.013347288593649864, 0.0010092175798490644, -0.02559923380613327, -0.0461810864508152, 0.032612964510917664, -0.04367239773273468, 0.009292751550674438, 0.017013154923915863, -0.04141104221343994, -0.035616323351860046, -0.009531253948807716, -0.028602594509720802, -0.035916659981012344, -0.0036018243990838528, 0.020422853529453278, -0.05158713832497597, -0.04642842337489128, 0.028673261404037476, -0.03107595071196556, 0.010184925980865955, -0.023496881127357483, -0.034785982221364975, 0.04271838814020157, -0.03950302675366402, -0.0415877141058445, -0.012852617539465427, 0.003963994327932596, -0.022648872807621956, 0.0068856459110975266, -0.04727642983198166, -0.028390591964125633, 0.06427191942930222, 0.020988190546631813, 0.03280729800462723, -0.06773461401462555, -0.06232856959104538, -0.04660509154200554, -0.006095055490732193, -0.0006602976936846972, -0.0051852138713002205, 0.049961790442466736, -0.011713107116520405, 0.04550974816083908, 0.01700432226061821, 0.011253769509494305, 0.03982102870941162, 0.04275372251868248, -0.0003641022776719183, -0.035121653228998184, 0.007980989292263985, 0.03234796226024628, 0.040351033210754395, 0.007941238582134247, -0.03565165773034096, 0.05420182645320892, -0.04547441378235817, -0.007804321125149727, 0.03755967691540718, -0.05660451576113701, 0.01975151337683201, -0.010140758939087391, -0.004553624894469976, 0.016889486461877823, -0.014310130849480629, -0.026235239580273628, 0.06568526476621628, -0.028001921251416206, -0.010070092044770718, 0.06119789183139801, -0.018020164221525192, 0.0596432089805603, 0.03492731973528862, -0.030563611537218094, -0.012649448588490486, -0.06681594252586365, -0.0363936647772789, 0.040386367589235306, -0.044485073536634445, -0.03816034644842148, 0.003018819261342287, -0.036994338035583496, 0.013594623655080795, -0.051269132643938065, -0.03162362053990364, 0.015529141761362553, 0.05434316024184227, -0.05201113969087601, -0.027560250833630562, 0.013806626200675964, -0.05165780335664749, -0.015652809292078018, -0.003191070631146431, 0.012543447315692902, 0.04780643433332443, -0.0061701396480202675, 0.019292175769805908, -0.005335381720215082, -0.09109016507863998, -0.029927605763077736, -0.04112837463617325, -0.008435910567641258, -0.02279020845890045, -0.08833413571119308, -0.0011003121035173535, 0.017198657616972923, -0.05271781235933304, 0.026588575914502144, 0.002356313169002533, 0.024079885333776474, 0.026005569845438004, -0.050173789262771606, 0.01816149801015854, -0.0348566509783268, -0.028938263654708862, -0.04324839264154434, -0.013541623018682003, 0.008722996339201927, -0.02736591547727585, 0.006532309576869011, -0.01771099492907524, 0.008391743525862694, 0.007146231830120087, -0.0409870408475399, -0.007442151196300983, 0.030881615355610847, -0.0804193988442421, -0.028178589418530464, -0.011244935914874077, -0.0026544409338384867, -0.01472530048340559, 0.05844186618924141, 0.016836486756801605, 0.007989822886884212, -0.009169083088636398, -0.026464907452464104, 0.018338166177272797, 0.00845799408853054, -0.10402227938175201, -0.04727642983198166, -0.009124916046857834, 0.014363130554556847, -0.05363648757338524, -0.07504868507385254, 0.03409697860479355, 0.0314999520778656, 0.01091809943318367, -0.025987902656197548, -0.014424964785575867, 0.033319637179374695, -0.012446279637515545, -0.07405934482812881, 0.018673837184906006, -0.0035709075164049864, -0.016871821135282516, -0.005754969082772732, 0.04936111718416214, -0.017808161675930023, -0.06833528727293015, -0.019981181249022484, -0.016986655071377754, -0.007645319681614637, -0.011801441200077534, -0.029556602239608765, 0.04049237072467804, 0.015052136965095997, -0.015855977311730385, -0.0040324535220861435, -0.0058168028481304646, -0.057664524763822556, 0.018355833366513252, -0.02907959744334221, 0.06702794134616852, 0.045156411826610565, -0.005498799961060286, -0.029591936618089676, -0.03475065156817436, -0.02597023732960224, 0.018673837184906006, -0.04028036817908287, -0.03293096646666527, 0.010343927890062332, -0.022684207186102867, 0.054272495210170746, -0.026570908725261688, -0.01982218027114868, -0.016933653503656387, -0.013806626200675964, -0.010494095273315907, -0.012048776261508465, -0.006090638693422079, 0.008263658732175827, 0.06165722757577896, -0.007866155356168747, -0.015352473594248295, 0.005807969719171524, -0.004641958978027105, 0.02238387055695057, -0.029344601556658745, 0.028885263949632645, 0.01936284266412258, -0.030545944347977638, -0.004937878344208002, -0.02434488758444786, 0.04794777184724808, 0.003422947833314538, 0.02434488758444786, -0.04724109545350075, -0.03082861378788948, 0.032948631793260574, 0.013568123802542686, 0.004370331298559904, -0.08437676727771759, -0.04844244197010994, 0.018179165199398994, 0.10140758752822876, 0.012958617880940437, -0.00914258323609829, 0.03752434253692627, 0.08451810479164124, -0.009946423582732677, -0.042188383638858795, 0.00922208372503519, -0.00937225203961134, -0.0011869899462908506, 0.03596965968608856, 0.07483667880296707, -0.04321306198835373, -0.020758522674441338, -0.012799616903066635, 0.038796354085206985, -0.04141104221343994, -0.04596908390522003, -0.054449163377285004, 0.037171006202697754, 0.04010370001196861, 0.03794834762811661, -0.04102237522602081, 0.05550917237997055, -0.034874316304922104, -0.03165895491838455, -0.004195871762931347, -0.0663566067814827, -0.10169026255607605, -0.04042170196771622, -0.037206340581178665, 0.04229438677430153, 0.005414882674813271, -0.04088103771209717, 0.03538665547966957, -0.0217125304043293, 0.09858089685440063, -0.005777052603662014, 0.028143256902694702, -0.002572731813415885, 0.061303891241550446, -0.05851253494620323, 0.014893135987222195, -0.016774652525782585, 0.004421123769134283, 0.025705235078930855, -0.05363648757338524, 0.06466058641672134, 0.04183504730463028, 0.06868862360715866, 0.03538665547966957, -0.053813155740499496, 0.024945560842752457, 0.048583775758743286, -0.01877983845770359, 0.003029861021786928, 0.07688603550195694, -0.00626289052888751, -0.055120501667261124, 0.029008930549025536, 0.007053480949252844, -0.0015833894722163677, -0.049431782215833664, -0.02187153324484825, -0.0115452716127038, -0.05042112618684769, -0.04982045292854309, -0.014053961262106895, 0.00013153505278751254, 0.03492731973528862, 0.018956506624817848 ]
730,331
mmengine.logging.logger
print_log
Print a log message. Args: msg (str): The message to be logged. logger (Logger or str, optional): If the type of logger is ``logging.Logger``, we directly use logger to log messages. Some special loggers are: - "silent": No message will be printed. - "current": Use latest created logger to log message. - other str: Instance name of logger. The corresponding logger will log message if it has been created, otherwise ``print_log`` will raise a `ValueError`. - None: The `print()` method will be used to print log messages. level (int): Logging level. Only available when `logger` is a Logger object, "current", or a created logger instance name.
def print_log(msg, logger: Optional[Union[Logger, str]] = None, level=logging.INFO) -> None: """Print a log message. Args: msg (str): The message to be logged. logger (Logger or str, optional): If the type of logger is ``logging.Logger``, we directly use logger to log messages. Some special loggers are: - "silent": No message will be printed. - "current": Use latest created logger to log message. - other str: Instance name of logger. The corresponding logger will log message if it has been created, otherwise ``print_log`` will raise a `ValueError`. - None: The `print()` method will be used to print log messages. level (int): Logging level. Only available when `logger` is a Logger object, "current", or a created logger instance name. """ if logger is None: print(msg) elif isinstance(logger, logging.Logger): logger.log(level, msg) elif logger == 'silent': pass elif logger == 'current': logger_instance = MMLogger.get_current_instance() logger_instance.log(level, msg) elif isinstance(logger, str): # If the type of `logger` is `str`, but not with value of `current` or # `silent`, we assume it indicates the name of the logger. If the # corresponding logger has not been created, `print_log` will raise # a `ValueError`. if MMLogger.check_instance_created(logger): logger_instance = MMLogger.get_instance(logger) logger_instance.log(level, msg) else: raise ValueError(f'MMLogger: {logger} has not been created!') else: raise TypeError( '`logger` should be either a logging.Logger object, str, ' f'"silent", "current" or None, but got {type(logger)}')
(msg, logger: Union[logging.Logger, str, NoneType] = None, level=20) -> NoneType
[ 0.07022841274738312, -0.010127616114914417, -0.02002396434545517, 0.03438185900449753, 0.032030634582042694, -0.05357711389660835, 0.01689220778644085, 0.02181629091501236, -0.027328182011842728, 0.002770399209111929, 0.028831424191594124, 0.01589968241751194, 0.030816474929451942, 0.017123475670814514, -0.0036328365094959736, 0.003064302494749427, -0.013095556758344173, -0.025979118421673775, 0.006509233731776476, 0.03399641066789627, 0.06278929114341736, 0.04548272863030434, 0.06845536082983017, 0.04224497452378273, -0.0014141080901026726, 0.022587185725569725, 0.004353140480816364, 0.012700473889708519, -0.017643829807639122, -0.004957810044288635, 0.018212363123893738, -0.043671127408742905, -0.004765086807310581, 0.043748218566179276, -0.04355549439787865, 0.01589968241751194, 0.010108343325555325, 0.05673777684569359, -0.08826732635498047, -0.018212363123893738, 0.012286118231713772, 0.021411573514342308, 0.10599788278341293, -0.050532083958387375, -0.025131134316325188, 0.004851812031120062, 0.020370865240693092, 0.03690653666853905, -0.04428784176707268, 0.024861322715878487, 0.031780093908309937, 0.006316510494798422, -0.002456019166857004, -0.07230982929468155, -0.06745319813489914, 0.04444202035665512, 0.023319534957408905, -0.03006485477089882, 0.00784866139292717, -0.010368520393967628, -0.025054045021533966, 0.025921300053596497, -0.06887935101985931, -0.025516580790281296, -0.019522882997989655, -0.048412125557661057, 0.04482746869325638, 0.016660939902067184, -0.013692999258637428, 0.037966515868902206, -0.012584839947521687, -0.02860015630722046, 0.031086288392543793, 0.021141760051250458, -0.04116572439670563, 0.01507097203284502, -0.012787199579179287, 0.05743158236145973, 0.06718338280916214, 0.022606458514928818, -0.0015152879059314728, -0.018482176586985588, -0.009534991346299648, 0.009274815209209919, -0.0054685273207724094, -0.00900982040911913, -0.06679794192314148, 0.006986224092543125, 0.0276750847697258, -0.041474081575870514, -0.0077378456480801105, 0.007925750687718391, 0.011958488263189793, 0.011052688583731651, -0.06221112236380577, -0.051457155495882034, 0.007299399934709072, 0.014049537479877472, -0.03185718134045601, 0.07084513455629349, -0.05770139396190643, 0.03530693054199219, -0.004977082367986441, -0.00680313678458333, -0.056853409856557846, -0.05446363985538483, -0.04417220875620842, -0.022529369220137596, 0.037349801510572433, 0.05130297690629959, -0.04139699041843414, -0.02992994897067547, -0.047872498631477356, -0.0022199328523129225, 0.004343504086136818, 0.01949397474527359, -0.019204888492822647, 0.032897889614105225, -0.07427560538053513, -0.009963801130652428, -0.07535485923290253, -0.023647164925932884, -0.014444620348513126, -0.036289822310209274, 0.037947241216897964, -0.04960700869560242, -0.0012924515176564455, -0.030103398486971855, -0.013914631679654121, 0.011264684610068798, 0.03174154832959175, 0.023512257263064384, 0.00937599502503872, -0.03413131833076477, 0.006711593363434076, 0.002967940643429756, -0.06529469788074493, 0.04756414145231247, -0.0020019146613776684, 0.010696150362491608, -0.06155586242675781, -0.0181738194078207, -0.024051884189248085, 0.0025945391971617937, 0.0015586507506668568, 0.006330964621156454, 0.011467044241726398, 0.007612575311213732, -0.02102612517774105, 0.03008412756025791, -0.0034690217580646276, -0.028889240697026253, 0.0545407310128212, 0.019734878093004227, -0.027520904317498207, -0.03779306262731552, 0.00940972100943327, -0.009496446698904037, -0.01983124017715454, 0.00011330029519740492, 0.005584161262959242, -0.034632399678230286, 0.040895912796258926, -0.018462903797626495, -0.015784049406647682, 0.009029092267155647, 0.002451200969517231, 0.009390449151396751, 0.031221194192767143, 0.061594408005476, -0.018241271376609802, 0.013538820669054985, -0.043478403240442276, -0.05253640562295914, 0.01211266778409481, 0.05500326678156853, -0.010021618567407131, 0.008142564445734024, -0.05592833831906319, -0.019069982692599297, 0.04690888151526451, -0.009380812756717205, -0.00037852086825296283, 0.004504910204559565, -0.0017682374455034733, 0.030643025413155556, 0.006273147650063038, 0.04105009138584137, -0.056390874087810516, 0.02960231900215149, -0.034690216183662415, -0.002351225819438696, 0.010522698983550072, -0.04845067113637924, 0.014964974485337734, 0.06668230891227722, -0.02081413008272648, -0.058433741331100464, 0.0572388581931591, 0.001785100786946714, 0.0898091197013855, 0.025439491495490074, -0.016747666522860527, -0.0028739881236106157, 0.01131286472082138, -0.02827252633869648, 0.0415126271545887, 0.012257209978997707, -0.08772770315408707, -0.07917078584432602, -0.0027366727590560913, 0.0028763972222805023, -0.05184260010719299, 0.004032737575471401, 0.03054666332900524, -0.004810858517885208, -0.027771444991230965, 0.013827905990183353, -0.03973957151174545, 0.012719745747745037, 0.0425918772816658, 0.009563899599015713, -0.035422567278146744, 0.04436493292450905, 0.023126810789108276, 0.015109516680240631, 0.04490455985069275, 0.01380863320082426, 0.029216870665550232, -0.029660135507583618, 0.03586582839488983, -0.06706774979829788, 0.017923278734087944, 0.024976955726742744, -0.02569003216922283, -0.016940388828516006, -0.032165538519620895, 0.03713780269026756, 0.02387843281030655, 0.03195354342460632, -0.0027005369774997234, 0.020910492166876793, -0.013558093458414078, 0.07346616685390472, 0.036617450416088104, -0.01682475581765175, 0.00327629828825593, 0.06305910646915436, -0.007496941369026899, 0.010329975746572018, -0.01890616863965988, -0.00935190450400114, -0.009269996546208858, -0.0008070293697528541, 0.030219033360481262, 0.011409226804971695, -0.030758658424019814, 0.0014357895124703646, -0.04405657574534416, -0.015861138701438904, -0.029024148359894753, 0.0006070787785574794, 0.044673290103673935, 0.034092772752046585, 0.011977761052548885, -0.04058755189180374, -0.03133682906627655, -0.042283520102500916, 0.05908900126814842, 0.011033415794372559, 0.09890566021203995, 0.00811365619301796, 0.05596688389778137, 0.03264734894037247, 0.03925776109099388, -0.022837726399302483, -0.021064670756459236, -0.05434800684452057, 0.0015152879059314728, 0.08364196866750717, -0.019272342324256897, -0.012103031389415264, 0.042283520102500916, -0.02135375514626503, 0.009563899599015713, 0.006181603763252497, 0.02748236060142517, -0.01583222858607769, 0.005429982673376799, -0.0028908513486385345, -0.014743342064321041, 0.03958539292216301, -0.02992994897067547, 0.037426888942718506, -0.03154882416129112, 0.012478841468691826, -0.0171620212495327, 0.007482487242668867, 0.024321695789694786, -0.03713780269026756, 0.015109516680240631, 0.028908513486385345, 0.05500326678156853, 0.0031413917895406485, 0.04598380997776985, 0.01294137816876173, -0.040279194712638855, -0.02501550130546093, -0.011524860747158527, -0.032242629677057266, -0.010956326499581337, 0.059320271015167236, -0.03657890483736992, 0.021199576556682587, -0.027771444991230965, 0.01650676131248474, 0.019734878093004227, -0.016140587627887726, 0.008667736314237118, 0.02900487557053566, 0.004100190941244364, 0.0477568656206131, -0.048797570168972015, 0.04848921298980713, -0.044866014271974564, -0.06479361653327942, -0.06568014621734619, 0.06197985261678696, 0.043478403240442276, 0.08502957224845886, -0.047602687031030655, 0.04482746869325638, -0.0011045461287721992, -0.0018091911915689707, 0.01750892400741577, -0.03985520452260971, -0.0075981211848556995, 0.011361045762896538, 0.005767248570919037, 0.021739201620221138, -0.05885773524641991, -0.031375374644994736, -0.027925623580813408, -0.0075547583401203156, 0.06197985261678696, 0.04548272863030434, 0.033900052309036255, -0.007034405134618282, 0.013798997737467289, 0.0018043731106445193, 0.010638332925736904, 0.014887884259223938, -0.031298283487558365, -0.08040421456098557, -0.049529921263456345, -0.04582963138818741, 0.0013755634427070618, -0.03233899176120758, -0.001850144937634468, 0.02707764133810997, -0.014781886711716652, -0.02607547864317894, 0.012912469916045666, -0.03355314955115318, -0.05461781844496727, 0.008369014598429203, -0.009954164735972881, -0.018453268334269524, 0.061902765184640884, 0.025227496400475502, 0.024572236463427544, -0.053846925497055054, -0.009568718262016773, 0.08217726647853851, -0.10954399406909943, 0.11771547049283981, -0.01040706504136324, 0.011081596836447716, -0.013211190700531006, 0.005333620589226484, 0.07493086904287338, 0.035750195384025574, 0.02148866280913353, 0.0015080608427524567, 0.02569003216922283, -0.023068994283676147, 0.018607446923851967, 0.05747012421488762, -0.02547803707420826, -0.016314037144184113, -0.004933719523251057, 0.0343240424990654, 0.020235959440469742, -0.030835747718811035, 0.004278460051864386, -0.011033415794372559, -0.012681201100349426, 0.040895912796258926, -0.06884080916643143, -0.03706071525812149, -0.004268823657184839, 0.027174003422260284, -0.0058973366394639015, -0.03343751281499863, -0.05407819151878357, 0.059435904026031494, -0.0789395123720169, -0.008460558019578457, -0.011592313647270203, 0.03052739053964615, 0.06899498403072357, -0.04243769869208336, -0.03006485477089882, -0.024938412010669708, 0.06710629910230637, -0.02927468903362751, 0.09867439419031143, 0.02680782787501812, 0.00961208064109087, -0.005829883739352226, -0.01610204204916954, -0.05974426120519638, 0.018520720303058624, 0.07593303173780441, 0.035557471215724945, 0.0037725609727203846, -0.005531162489205599, 0.026114024221897125, 0.06602704524993896, -0.006345418747514486, -0.033514603972435, 0.03787015378475189, 0.01040706504136324, 0.0038014696910977364, 0.0783998891711235, 0.008971275761723518, -0.017672738060355186, 0.017412561923265457, -0.0169596616178751, -0.004194143693894148, 0.03492148593068123, -0.06830117851495743, -0.011168322525918484, -0.040471918880939484, -0.026460926979780197, 0.03480584919452667, 0.032955706119537354, -0.018067821860313416, -0.014801159501075745, 0.04463474452495575, 0.014810794964432716, 0.028099074959754944, 0.021006854251027107, 0.0075981211848556995, 0.033822961151599884, -0.08387323468923569, -0.03231971710920334, -0.0014056764775887132, 0.042206428945064545, -0.007164493203163147, 0.015851501375436783, 0.011563405394554138, 0.01314373780041933, 0.013461731374263763, -0.025054045021533966, 0.08179182559251785, 0.061170414090156555, -0.04251478612422943, -0.014483164995908737, -0.061247505247592926, 0.12796835601329803, 0.025362402200698853, -0.001975415041670203, -0.025246769189834595, -0.015263695269823074, -0.0175667405128479, 0.024263879284262657, -0.018857987597584724, -0.028368888422846794, 0.019542155787348747, -0.010416701436042786, 0.011033415794372559, 0.037291981279850006, 0.00967953447252512, 0.001355086569674313, -0.017142748460173607, 0.03893013298511505, 0.007284945342689753, 0.011168322525918484, 0.004172462038695812, -0.04598380997776985, 0.02468787133693695, 0.02628747560083866, -0.06648958474397659, -0.026788556948304176, -0.04039483144879341, -0.04158971458673477, -0.02062140591442585, -0.010869600810110569, -0.00965062528848648, -0.0016369445947930217, -0.02143084444105625, 0.021141760051250458, 0.011785037815570831, 0.03681017458438873, -0.06818554550409317, 0.07446832954883575, 0.05982135236263275, -0.02721254713833332, 0.0181738194078207, 0.0029077145736664534, 0.05573561415076256, -0.07204001396894455, -0.0545407310128212, -0.019002530723810196, 0.003984556999057531, -0.05901191383600235, -0.054849088191986084, 0.049529921263456345, -0.07577884942293167, 0.029216870665550232, 0.028079804033041, -0.03318697214126587, -0.033244792371988297, 0.022394461557269096, 0.02010105364024639, -0.009241088293492794, 0.006422508042305708, -0.002390974899753928, 0.035422567278146744, -0.023801343515515327, -0.03152955323457718, -0.07527776807546616, 0.0013635181821882725, 0.012488477863371372, 0.0898091197013855, -0.038294143974781036, -0.020717767998576164, -0.03692580759525299, 0.006730865687131882, -0.024051884189248085, -0.011659767478704453, -0.038563959300518036, -0.010994871146976948, 0.013172646053135395, -0.01788473315536976, -0.03166445717215538, -0.03538402169942856, 0.03844832256436348, 0.047332871705293655, 0.009014638140797615, -0.0485663041472435, -0.01413626316934824, 0.010513062588870525, 0.00877855159342289, 0.0618642196059227, -0.04058755189180374, -0.004769905004650354, 0.057046134024858475, -0.04020210728049278, 0.02314608357846737, -0.0004348322399891913, -0.009033910930156708, 0.0065766870975494385, -0.005116806831210852, -0.06806991249322891, -0.02083340287208557, -0.0044109574519097805, 0.021662112325429916, 0.024244606494903564, 0.041936617344617844, 0.01755710318684578, 0.010705786757171154, 0.012488477863371372, 0.014059173874557018, 0.05261349678039551, 0.0423220656812191, 0.011968124657869339, 0.043478403240442276, 0.052382227033376694, -0.06957315653562546, 0.0057576121762394905, 0.031182650476694107, -0.035692378878593445, -0.02688491716980934, -0.023203900083899498, -0.025863483548164368, -0.010888873599469662, -0.02992994897067547, 0.03274371102452278, 0.01393390353769064, -0.007260855287313461, 0.05893482267856598, 0.024167517200112343, -0.0401635617017746, 0.006509233731776476, 0.036636725068092346, -0.010744331404566765, 0.06074642390012741, 0.015388965606689453, -0.03174154832959175, 0.053191665560007095, -0.0348636694252491, -0.038814496248960495, 0.027829263359308243, 0.0428616888821125, 0.03946975618600845, 0.008629191666841507, 0.016670577228069305, -0.0208912193775177, -0.041936617344617844, -0.02328098937869072, -0.03260880336165428, 0.00043061640462838113, 0.0009443447925150394, -0.029891403391957283, 0.016015317291021347, 0.01310519315302372, 0.06059224531054497, 0.0417824387550354, 0.008200381882488728, -0.041011545807123184, -0.03268589451909065, -0.019773423671722412, 0.018077457323670387, 0.029486684128642082, -0.04112717881798744, -0.06016825512051582, -0.007251218892633915, -0.06128605082631111, -0.05003100261092186, 0.03686799108982086, -0.014059173874557018, -0.023916976526379585, -0.008590647019445896, -0.07493086904287338, -0.018212363123893738, -0.06151731684803963, -0.023666435852646828, -0.01503242738544941, 0.008932731114327908, 0.0068127731792628765, -0.01696929708123207, -0.03226190060377121, 0.0272703655064106, -0.002365679945796728, 0.04995391145348549, 0.01241138856858015, 0.014483164995908737, -0.025400947779417038, 0.00447118328884244, -0.02222101017832756, -0.03145246207714081, 0.037079986184835434, 0.017277654260396957, 0.016593486070632935, 0.012951014563441277, 0.012363207526504993, 0.026460926979780197, 0.043478403240442276, 0.0169596616178751, 0.009241088293492794, 0.00784866139292717, 0.039893750101327896, -0.04579108580946922, -0.04236060753464699, -0.009236270561814308, -0.03309061378240585, 0.0564294196665287, -0.020525045692920685, -0.03172227740287781, 0.0011948852334171534, 0.029043421149253845, -0.03154882416129112, 0.056043971329927444, 0.02946741133928299, 0.033495333045721054, 0.04983827844262123, 0.00027824443532153964, -0.015803320333361626, 0.03345678746700287, 0.03727271035313606, -0.036020006984472275, 0.0065429601818323135, 0.03827487304806709, 0.10545825958251953, -0.031818635761737823, -0.012979922816157341, -0.021199576556682587, 0.0012828153558075428, -0.009337450377643108, -0.03426622599363327, -0.037291981279850006, -0.05700758844614029, 0.009751805104315281, 0.0626736581325531, -0.04864339157938957, 0.0033702508080750704, -0.007174129597842693, -0.06398417800664902, -0.004601271823048592, -0.0136351827532053, -0.03736907243728638, 0.05646796524524689, -0.008007658645510674, -0.06255802512168884, -0.051341522485017776, 0.024861322715878487, 0.03208845108747482, -0.008079929277300835, -0.04139699041843414, 0.009395266883075237, 0.0283496156334877, -0.05627524107694626, 0.02062140591442585, -0.020737040787935257, 0.0007154857157729566, 0.029024148359894753, -0.0759715735912323, -0.00894718524068594, -0.023184627294540405, -0.05195823684334755, 0.03201135993003845, -0.09559082239866257, 0.022259555757045746, 0.016747666522860527, -0.06487070769071579, -0.024533692747354507, 0.05442509427666664, 0.028523067012429237, -0.0469474270939827, 0.06541033089160919, -0.04397948458790779, 0.03359169140458107, -0.02274136431515217, -0.05862646549940109, -0.04093445464968681, -0.030219033360481262, 0.019657788798213005, 0.012334299273788929, -0.08903822302818298, 0.009857803583145142, -0.025400947779417038, -0.0066826846450567245, 0.012478841468691826, -0.011534497141838074, 0.021835563704371452, 0.0008636418497189879, -0.04563690721988678, 0.00884600542485714, 0.02407115511596203, -0.04868193715810776, -0.0347287617623806, 0.022914815694093704, -0.00337747810408473, 0.00680313678458333, -0.02029377594590187, -0.03530693054199219, 0.03636690974235535, 0.004914447199553251, -0.034092772752046585, -0.005680522881448269, 0.006528506055474281, 0.025979118421673775, -0.023916976526379585, 0.05138006433844566, -0.023126810789108276, 0.04062609747052193 ]
730,332
mmengine.fileio.io
put
Write bytes to a given ``filepath`` with 'wb' mode. Note: ``put`` should 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. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Examples: >>> filepath = '/path/of/file' >>> put(b'hello world', filepath)
def put( obj: bytes, filepath: Union[str, Path], backend_args: Optional[dict] = None, ) -> None: """Write bytes to a given ``filepath`` with 'wb' mode. Note: ``put`` should 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. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Examples: >>> filepath = '/path/of/file' >>> put(b'hello world', filepath) """ backend = get_file_backend( filepath, backend_args=backend_args, enable_singleton=True) backend.put(obj, filepath)
(obj: bytes, filepath: Union[str, pathlib.Path], backend_args: Optional[dict] = None) -> NoneType
[ -0.023772571235895157, -0.019299620762467384, -0.07669951021671295, 0.004998655524104834, -0.008139521814882755, -0.06700515002012253, -0.008861253038048744, 0.09566054493188858, -0.026695135980844498, -0.07584412395954132, 0.044408731162548065, -0.021295519545674324, -0.022632058709859848, -0.03223731741309166, -0.040024884045124054, 0.02564372681081295, -0.004263558890670538, -0.0612669438123703, 0.02334487996995449, 0.050717197358608246, 0.018150197342038155, 0.0076583679765462875, 0.06586463749408722, 0.032362062484025955, 0.02086782641708851, -0.012429811991751194, -0.03307488188147545, 0.03551629185676575, -0.019299620762467384, -0.009177567437291145, 0.05962745472788811, -0.07160284370183945, 0.015316735953092575, -0.0005304388469085097, 0.01618994027376175, -0.019210519269108772, 0.0240220595151186, 0.04601258039474487, -0.02694462426006794, -0.03394808620214462, 0.02580411173403263, 0.01093288790434599, 0.047580786049366, -0.009845836088061333, 0.06782489269971848, 0.031061163172125816, -0.0010580932721495628, 0.049006424844264984, -0.0021161865442991257, -0.0018310582963749766, 0.034429240971803665, -0.025447700172662735, -0.0149692352861166, -0.013721799477934837, 0.020172826945781708, 0.040024884045124054, 0.006308463402092457, -0.008825612254440784, -0.044087961316108704, 0.05371104180812836, 0.01649289019405842, -0.03307488188147545, 0.04045257717370987, -0.05962745472788811, 0.0020081496331840754, -0.02624962292611599, -0.046333346515893936, -0.007854393683373928, -0.021402442827820778, -0.01373961940407753, 0.0014067072188481688, -0.028673214837908745, 0.04765206575393677, -0.02056487835943699, -0.04462257772684097, 0.043482065200805664, -0.012536734342575073, 0.040880270302295685, 0.004223463125526905, 0.030811676755547523, 0.01842641644179821, -0.04052386060357094, -0.036959756165742874, -0.027514880523085594, 0.0034705461002886295, 0.006370835471898317, 0.03660334646701813, -0.009097374975681305, -0.038492318242788315, 0.011921927332878113, -0.029296932741999626, -0.009168656542897224, 0.0371379591524601, -0.028370264917612076, 0.04458693787455559, -0.04783027246594429, 0.023077571764588356, 0.008081604726612568, -0.026000136509537697, 0.03767257556319237, -0.03430449962615967, -0.06486668437719345, 0.05171514302492142, 0.0074356114491820335, 0.007128207478672266, -0.06647053360939026, 0.03362732008099556, -0.03387680649757385, -0.02464577741920948, -0.026819881051778793, 0.0065445853397250175, -0.01109327282756567, -0.07997848838567734, -0.0010564225958660245, 0.01988769881427288, 0.020083723589777946, 0.02585757151246071, -0.008219714276492596, 0.03601526841521263, -0.04184257611632347, -0.010050772689282894, -0.03154231607913971, -0.03551629185676575, 0.01896103098988533, 0.05488719791173935, -0.011039811186492443, 0.0471174493432045, 0.021099494770169258, -0.048863861709833145, -0.012411991134285927, -0.0366746261715889, 0.010531926527619362, -0.01797199249267578, 0.028423726558685303, 0.028744496405124664, 0.045335400849580765, 0.033502575010061264, -0.034732189029455185, -0.021081672981381416, -0.013409940525889397, 0.05203591287136078, -0.04255539923906326, -0.009213208220899105, -0.04583437368273735, 0.07962207496166229, 0.0033680780325084925, -0.04636899009346962, -0.059377968311309814, -0.0026663951575756073, 0.0426979623734951, -0.037280526012182236, 0.04857873544096947, -0.001261915429495275, 0.05862950533628464, -0.01378417108207941, -0.043339502066373825, -0.007890034466981888, 0.00843801535665989, -0.013124811463057995, 0.06087489053606987, -0.0034059465397149324, 0.042412832379341125, 0.040416937321424484, -0.012536734342575073, 0.015833530575037003, 0.025982316583395004, -0.02657039277255535, 0.058522582054138184, -0.007876669056713581, -0.0065445853397250175, -0.03845667839050293, -0.03054436855018139, -0.061765916645526886, 0.040951550006866455, 0.06664873659610748, -0.008874618448317051, 0.027728727087378502, -0.004521956667304039, 0.031364113092422485, 0.004312565550208092, 0.033823344856500626, 0.006326284259557724, 0.01152096502482891, 0.004290289711207151, 0.016555260866880417, 0.00625945720821619, 0.007012374233454466, 0.07926566898822784, 0.02304193004965782, 0.00981910526752472, 0.014176222495734692, 0.03154231607913971, -0.0040875812992453575, 0.0199589803814888, 0.013677247799932957, -0.03906257823109627, 0.04084462672472, -0.07669951021671295, -0.03031270205974579, 0.10656669735908508, 0.020671801641583443, -0.007845483720302582, 0.05470899119973183, -0.043268218636512756, 0.042270269244909286, 0.0037445365451276302, 0.04715309292078018, 0.02156282775104046, -0.062157969921827316, -0.003481683786958456, 0.019370904192328453, -0.018301673233509064, -0.03824283182621002, -0.02357654646039009, 0.056526683270931244, 0.009364682249724865, -0.03218385577201843, 0.05014693737030029, -0.030954239889979362, 0.040808986872434616, 0.04145052656531334, 0.05103796347975731, -0.04843616858124733, 0.036959756165742874, 0.03455398604273796, -0.006473303306847811, 0.020172826945781708, -0.013962375931441784, -0.0007506893598474562, -0.04430180788040161, -0.007453431840986013, 0.02879795804619789, 0.04761642590165138, -0.03594398498535156, 0.0060411556623876095, 0.03475001081824303, 0.0018989989766851068, -0.004450674634426832, -0.0376012958586216, 0.0051278541795909405, 0.041343603283166885, -0.05018258094787598, 0.008264265023171902, 0.031809624284505844, -0.02455667406320572, -0.00494964886456728, 0.027693085372447968, -0.04251975566148758, -0.02149154618382454, -0.06761104613542557, 0.04565616697072983, 0.028619753196835518, -0.05196463316679001, -0.01029134914278984, 0.016305774450302124, -0.014461350627243519, 0.03963283449411392, -0.03079385682940483, -0.02555462345480919, 0.04209206625819206, -0.059983864426612854, 0.01787398010492325, 0.028601931408047676, -0.029065266251564026, 0.005546636413782835, 0.00035808104439638555, -0.04861437529325485, -0.02979590743780136, 0.00606343150138855, 0.04690360650420189, -0.042484115809202194, 0.010701221413910389, 0.0037022128235548735, 0.026427829638123512, 0.015067248605191708, -0.06582899391651154, -0.030989881604909897, 0.03391244634985924, 0.030045393854379654, 0.01561968494206667, -0.01643942855298519, -0.028993982821702957, 0.0034059465397149324, -0.05203591287136078, 0.06458155810832977, -0.00594759825617075, -0.0028646483551710844, 0.03492821753025055, -0.027372317388653755, -0.016252312809228897, -0.019834237173199654, -0.009213208220899105, -0.0522141195833683, 0.037743858993053436, -0.002973799128085375, -0.005613463465124369, -0.060981813818216324, -0.02648129127919674, 0.08389899879693985, -0.05353283882141113, -0.0148534020408988, 0.09965234249830246, 0.0313284732401371, 0.0545307882130146, 0.029742445796728134, -0.014906863681972027, 0.018239300698041916, -0.04383847489953041, -0.04597693681716919, 0.01905013434588909, 0.05228540301322937, -0.05160822346806526, -0.021758852526545525, 0.034518346190452576, 0.05435258150100708, 0.04747386276721954, -0.006985643412917852, -0.014496991410851479, -0.051465656608343124, -0.01343667134642601, 0.016688914969563484, -0.05535053089261055, -0.037031035870313644, 0.011975388042628765, 0.05510104447603226, -0.026071418076753616, -0.010594298131763935, 0.018782826140522957, 0.001981418812647462, -0.048257965594530106, 0.028691034764051437, 0.03391244634985924, 0.04957668110728264, 0.014220774173736572, 0.011414041742682457, -0.008433560840785503, -0.005760482512414455, 0.006593591999262571, 0.008152887225151062, 0.061160020530223846, 0.050396427512168884, -0.0019268435426056385, 0.039347704499959946, 0.01086160633713007, -0.030829496681690216, 0.013026799075305462, -0.06187283992767334, -0.007858849130570889, 0.008184073492884636, 0.05674052983522415, -0.027301033958792686, 0.026427829638123512, 0.0121268630027771, -0.022685520350933075, -0.019085776060819626, -0.023826032876968384, 0.031506676226854324, -0.020012442022562027, -0.00490955263376236, -0.08411284536123276, -0.0003516768047120422, -0.007533624302595854, -0.03198783099651337, -0.033128343522548676, -0.01787398010492325, 0.00006588719406863675, 0.05043206736445427, 0.06276386976242065, -0.03920514136552811, 0.016599813476204872, 0.06732591986656189, -0.020404493436217308, 0.014835582114756107, 0.0422346293926239, 0.04515719413757324, 0.02058269828557968, 0.015396928414702415, -0.023166673257946968, -0.0025594718754291534, 0.010772503912448883, 0.049327194690704346, -0.02657039277255535, 0.014300965704023838, 0.0010024041403084993, 0.02617834135890007, 0.02956424094736576, 0.04508591070771217, 0.015307825058698654, 0.03261154890060425, -0.006825258489698172, 0.016466159373521805, 0.020707443356513977, 0.0074578868225216866, -0.06433207541704178, 0.013151542283594608, -0.022988468408584595, 0.03660334646701813, 0.025144752115011215, -0.002283253939822316, -0.0027399046812206507, 0.014595004729926586, -0.043268218636512756, -0.016751287505030632, 0.04415924474596977, 0.0019480054033920169, 0.06711207330226898, -0.034981679171323776, 0.046475913375616074, 0.040024884045124054, 0.02954641915857792, -0.004597693681716919, 0.0098636569455266, 0.0003945574280805886, -0.03753001242876053, 0.007061380427330732, 0.02548334188759327, -0.04152180999517441, -0.06112437695264816, -0.009003817103803158, -0.04355334863066673, -0.041949499398469925, 0.0036064274609088898, 0.027069367468357086, 0.0011438545770943165, -0.012082311324775219, -0.029368214309215546, 0.01239417027682066, -0.09195387363433838, 0.026499111205339432, 0.018159108236432076, 0.05125181004405022, -0.05028950423002243, 0.015191991813480854, 0.01074577309191227, 0.015690967440605164, -0.025608085095882416, 0.0018277169438079, -0.04109411686658859, 0.015477119944989681, 0.02403987944126129, 0.020012442022562027, -0.038421038538217545, -0.03186308592557907, -0.005617918446660042, -0.09252413362264633, -0.005831764545291662, -0.027354495599865913, -0.019513467326760292, 0.07691335678100586, 0.037886422127485275, 0.017713595181703568, -0.07178104668855667, 0.0457274504005909, 0.013695068657398224, 0.003390353638678789, -0.04490770772099495, -0.005377341527491808, -0.07224438339471817, -0.010309170000255108, -0.020137185230851173, 0.0014078209642320871, 0.009444874711334705, 0.11526311188936234, -0.05513668432831764, -0.02003026194870472, 0.017321543768048286, 0.035052958875894547, -0.011422952637076378, 0.010701221413910389, -0.00621936097741127, 0.030063215643167496, 0.01572660729289055, -0.03268283233046532, 0.01727699302136898, 0.04209206625819206, 0.022917186841368675, -0.0124743627384305, 0.027051547542214394, -0.07555899769067764, -0.04608386009931564, 0.02601795643568039, 0.011565516702830791, -0.008611765690147877, 0.06087489053606987, 0.027229752391576767, -0.017375005409121513, 0.017375005409121513, 0.02318449504673481, 0.09544669836759567, -0.005773847922682762, 0.003303478704765439, 0.002108390210196376, -0.038492318242788315, -0.01774032600224018, -0.025518981739878654, 0.02564372681081295, -0.019139237701892853, 0.034429240971803665, -0.07784002274274826, -0.011316029354929924, -0.02118859626352787, -0.047545142471790314, -0.022293468937277794, -0.028887061402201653, -0.015040517784655094, -0.025679366663098335, -0.018836287781596184, -0.003345802426338196, -0.019691672176122665, 0.005497629754245281, -0.009970580227673054, 0.031043343245983124, -0.03959719091653824, -0.027301033958792686, -0.0097478237003088, 0.04405232146382332, -0.020012442022562027, -0.03223731741309166, -0.05609899386763573, -0.0043259309604763985, 0.025465520098805428, -0.05674052983522415, 0.08596618473529816, 0.011102182790637016, 0.07220873981714249, -0.003085177391767502, 0.015102889388799667, -0.05004001781344414, -0.006704970262944698, 0.025697188451886177, -0.005172405391931534, -0.01595827378332615, -0.015396928414702415, -0.019228339195251465, 0.023665647953748703, -0.018150197342038155, 0.029956292361021042, -0.024538854137063026, 0.06108873710036278, -0.047545142471790314, -0.011164555326104164, -0.011200196109712124, -0.03959719091653824, -0.03984668105840683, 0.013597055338323116, -0.0666131004691124, -0.05210719630122185, -0.0485074520111084, 0.015904812142252922, -0.03455398604273796, -0.011414041742682457, -0.05096668377518654, 0.03291449695825577, 0.08532464504241943, -0.048329245299100876, 0.04483642429113388, 0.007970226928591728, 0.0010937342885881662, 0.004887277260422707, 0.0034349048510193825, -0.002728766994550824, 0.038884371519088745, 0.02395077608525753, 0.00025575229665264487, 0.05103796347975731, 0.0319165475666523, 0.05449514463543892, 0.00840237457305193, 0.042020782828330994, -0.03870616480708122, 0.005110033787786961, 0.08297233283519745, -0.00764054711908102, -0.018462058156728745, 0.046725399792194366, 0.020689621567726135, -0.005439713131636381, 0.03344911336898804, 0.007359873969107866, -0.04401668161153793, -0.07028412818908691, 0.008589490316808224, -0.05845130234956741, 0.02680205926299095, 0.043339502066373825, 0.004597693681716919, 0.026695135980844498, 0.031738344579935074, -0.10891900956630707, -0.0034549529664218426, -0.007012374233454466, 0.03630039468407631, 0.04401668161153793, -0.02311321347951889, 0.030989881604909897, -0.009970580227673054, -0.026303084567189217, -0.051786426454782486, 0.0833287462592125, 0.00824644509702921, -0.004330385942012072, -0.05053899064660072, -0.027425777167081833, 0.02004808373749256, 0.02010154537856579, 0.06390438228845596, -0.04152180999517441, -0.010701221413910389, 0.000246702809818089, -0.02478834055364132, -0.0036108826752752066, 0.039026934653520584, 0.04205642268061638, 0.036353856325149536, -0.0026730778627097607, 0.014381158165633678, -0.00252383085899055, -0.014612825587391853, -0.03859924152493477, 0.02986718900501728, -0.02202616073191166, -0.02441411092877388, 0.005756027530878782, 0.039490267634391785, -0.020012442022562027, -0.043339502066373825, -0.011636798270046711, -0.0222756490111351, -0.012706030160188675, -0.024164622649550438, -0.029510779306292534, -0.0022665471769869328, 0.003209920832887292, 0.04576309025287628, 0.02580411173403263, -0.0580236092209816, -0.03530244901776314, -0.0015247680712491274, 0.004350434057414532, -0.05271309241652489, 0.011333850212395191, 0.0049407389014959335, 0.02257859706878662, 0.013837632723152637, 0.01643051765859127, -0.005782758351415396, 0.018675902858376503, -0.04822232201695442, -0.03610436990857124, -0.022400392219424248, -0.001745296991430223, -0.03261154890060425, -0.031061163172125816, -0.0019803051836788654, 0.04052386060357094, 0.043018732219934464, 0.10542618483304977, -0.01703641563653946, 0.03799334540963173, 0.026516931131482124, 0.028851419687271118, -0.032825395464897156, -0.00608125189319253, -0.015432569198310375, -0.06058976426720619, 0.023220134899020195, 0.0016651046462357044, -0.04697488620877266, -0.029831547290086746, -0.01910359598696232, 0.0043459790758788586, 0.07178104668855667, -0.058237455785274506, -0.05014693737030029, 0.02079654484987259, 0.009462695568799973, -0.02248949371278286, -0.014283145777881145, -0.03416193276643753, -0.00020368295372463763, -0.01611865870654583, -0.015557312406599522, -0.014523722231388092, 0.013882184401154518, -0.01587808132171631, 0.03692411631345749, 0.05328334867954254, 0.05788104608654976, -0.007685098797082901, -0.06500925123691559, -0.015628594905138016, 0.015904812142252922, -0.024449750781059265, -0.052392326295375824, -0.0062995534390211105, -0.017553210258483887, 0.07003463804721832, 0.016617633402347565, 0.07096130400896072, -0.04483642429113388, -0.0194956474006176, 0.043339502066373825, 0.0047937193885445595, -0.025982316583395004, 0.012215965427458286, -0.03810026869177818, -0.018640263006091118, -0.05053899064660072, 0.07185233384370804, -0.07655695080757141, -0.03720924258232117, -0.024859623983502388, 0.01458609476685524, -0.03507078066468239, -0.03617565333843231, 0.02917218953371048, -0.02910090610384941, 0.02963552251458168, -0.000836450606584549, -0.04045257717370987, 0.0032032381277531385, 0.0317918062210083, 0.03884873166680336, -0.07064053416252136, 0.00898599624633789, -0.07014156132936478, -0.05210719630122185, 0.01718788966536522, -0.026231802999973297, -0.007934586144983768, 0.06657745689153671, -0.04209206625819206, 0.002461459022015333, 0.002069407608360052, -0.03909821808338165, -0.013846542686223984, 0.0118951965123415, -0.042198989540338516, 0.05203591287136078, 0.06860899925231934, 0.009213208220899105, 0.016145389527082443, 0.011797183193266392, -0.08204566687345505, 0.13023234903812408, 0.00864295195788145, 0.05114488676190376, 0.02787129022181034, 0.011102182790637016, 0.019745133817195892, 0.004430626519024372, -0.0188006479293108, -0.014995966106653214, 0.03644296154379845, 0.07096130400896072, -0.012536734342575073, -0.04444437474012375, 0.033502575010061264, -0.012215965427458286, -0.027354495599865913, -0.05527924746274948, -0.003530690213665366, 0.010122054256498814, -0.01842641644179821, 0.027924751862883568, 0.0566336065530777, -0.06600720435380936, 0.024200264364480972 ]
730,333
mmengine.fileio.io
put_text
Write text to a given ``filepath`` with 'w' mode. Note: ``put_text`` should 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, optional): The encoding format used to open the ``filepath``. Defaults to 'utf-8'. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Examples: >>> filepath = '/path/of/file' >>> put_text('hello world', filepath)
def put_text( obj: str, filepath: Union[str, Path], backend_args: Optional[dict] = None, ) -> None: """Write text to a given ``filepath`` with 'w' mode. Note: ``put_text`` should 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, optional): The encoding format used to open the ``filepath``. Defaults to 'utf-8'. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Examples: >>> filepath = '/path/of/file' >>> put_text('hello world', filepath) """ backend = get_file_backend( filepath, backend_args=backend_args, enable_singleton=True) backend.put_text(obj, filepath)
(obj: str, filepath: Union[str, pathlib.Path], backend_args: Optional[dict] = None) -> NoneType
[ -0.020292242988944054, -0.036044053733348846, -0.04837307333946228, 0.023959515616297722, 0.026090025901794434, -0.041806910187006, -0.00028705139993689954, 0.07271678000688553, 0.0301065631210804, -0.01490484457463026, 0.03127659857273102, -0.044356536120176315, -0.0004611377080436796, -0.033983394503593445, -0.03324994072318077, 0.01854592189192772, -0.06395024806261063, -0.05511387065052986, 0.04306425899267197, 0.02427385374903679, -0.004387629684060812, -0.023453082889318466, 0.061540327966213226, 0.015306497924029827, 0.01861577481031418, -0.029722372069954872, -0.042051393538713455, 0.014206316322088242, -0.0069721839390695095, -0.012337753549218178, 0.03579956665635109, -0.08668734133243561, 0.017122671008110046, -0.014738943427801132, -0.026945723220705986, -0.021340034902095795, 0.007993781007826328, -0.026683775708079338, -0.01316725555807352, -0.06356605887413025, 0.012442532926797867, 0.08040058612823486, 0.04131793975830078, -0.0037545887753367424, 0.012136926874518394, 0.02186393178999424, -0.02774902991950512, 0.02771410346031189, -0.02769664116203785, -0.023627715185284615, 0.003713113721460104, -0.01776880957186222, -0.037615738809108734, -0.008220802992582321, -0.054694753140211105, 0.020344631746411324, -0.0007918471237644553, 0.02050180174410343, -0.01844114251434803, -0.03992088511586189, 0.051376745104789734, -0.0172885712236166, 0.0648583397269249, 0.0009419215493835509, 0.008591895923018456, -0.03366905823349953, -0.008744698949158192, -0.002168711507692933, 0.006260558497160673, -0.022265585139393806, 0.023907124996185303, -0.03796500340104103, 0.04641719534993172, -0.050224173814058304, -0.012276631779968739, 0.017655298113822937, -0.03793007880449295, 0.06803663820028305, 0.009430130012333393, 0.019803272560238838, -0.006539969705045223, -0.027067964896559715, -0.019331766292452812, -0.022789480164647102, 0.014538116753101349, -0.027329914271831512, 0.008701041340827942, -0.0002102405996993184, -0.021479740738868713, -0.01497469749301672, -0.00828192476183176, -0.03929220885038376, 0.03223707526922226, 0.0022571191657334566, 0.0017048452282324433, -0.03352935239672661, 0.02876189723610878, -0.061435550451278687, -0.03546776622533798, 0.03255141153931618, -0.022265585139393806, -0.01331569254398346, 0.0652076005935669, -0.002578005427494645, 0.046696607023477554, -0.11036744713783264, 0.0034839091822504997, -0.03455967828631401, 0.02870950661599636, -0.0022331071086227894, 0.008063633926212788, -0.031800493597984314, -0.029181012883782387, -0.010041342116892338, 0.03953669220209122, -0.028325315564870834, -0.040759116411209106, -0.008190242573618889, 0.02308635599911213, -0.077396921813488, -0.012494922615587711, -0.03351188823580742, -0.04515984281897545, -0.014695285819470882, 0.014669091440737247, -0.02064150758087635, 0.05050358548760414, 0.0053524719551205635, 0.009115791879594326, -0.030840016901493073, -0.027050502598285675, 0.0037109307013452053, 0.024518337100744247, -0.0015487679047510028, 0.04254036396741867, 0.04226095229387283, 0.004457482602447271, -0.015070744790136814, 0.010800991207361221, -0.0028246731963008642, 0.04805873706936836, -0.05151645094156265, -0.030909869819879532, -0.027155281975865364, 0.029285792261362076, 0.03824441507458687, -0.03338964655995369, -0.08333440870046616, -0.0025430789683014154, 0.036253612488508224, 0.0003762774576898664, 0.033965930342674255, -0.02409922145307064, 0.023522935807704926, -0.006360971834510565, -0.03607897832989693, -0.01553351990878582, 0.03541537746787071, -0.015629567205905914, 0.08019103109836578, 0.0047150650061666965, 0.0552186481654644, 0.03897786885499954, 0.04400727152824402, 0.010215974412858486, 0.06122599169611931, 0.0035646765027195215, 0.012329021468758583, -0.023976977914571762, -0.014686554670333862, 0.0029032574966549873, -0.052808728069067, -0.08605866879224777, 0.047709472477436066, 0.03330232948064804, 0.034018319100141525, 0.037196625024080276, 0.007434959057718515, 0.04240065813064575, 0.02308635599911213, -0.009543640539050102, -0.03565986081957817, -0.014546848833560944, 0.0012966428184881806, 0.02973983623087406, -0.0074786171317100525, -0.0072472295723855495, 0.0822167620062828, 0.0028705140575766563, -0.0006532329716719687, 0.02769664116203785, -0.01090577058494091, -0.00428285077214241, 0.01954132504761219, -0.016380485147237778, -0.025164475664496422, 0.05549805983901024, -0.09108807146549225, -0.06112121418118477, 0.06499804556369781, 0.05067821592092514, -0.0015454934909939766, 0.06084180250763893, -0.010215974412858486, 0.06405503302812576, 0.014564312063157558, 0.02647421695291996, 0.008543872274458408, -0.05340247601270676, 0.03206244111061096, 0.022544996812939644, -0.023488009348511696, -0.03304038196802139, 0.009255497716367245, 0.07320574671030045, 0.024885065853595734, -0.040863897651433945, 0.051481522619724274, -0.00002215302811237052, 0.020222390070557594, 0.019104745239019394, 0.05535835400223732, -0.03824441507458687, 0.05605688318610191, 0.04854770749807358, -0.016694823279976845, 0.0392223559319973, 0.030403437092900276, 0.04250543937087059, -0.04760469123721123, 0.008495848625898361, 0.006016073748469353, -0.010853380896151066, 0.015280303545296192, 0.00421954644843936, -0.01677340641617775, -0.022527532652020454, -0.032883211970329285, -0.005103621166199446, -0.02086852863430977, 0.02638689987361431, -0.03911757469177246, 0.004728162195533514, 0.014852454885840416, -0.003833173308521509, 0.008382338099181652, 0.0013042830396443605, -0.021601982414722443, 0.017506862059235573, -0.06821127235889435, 0.051481522619724274, 0.031678251922130585, -0.05954952538013458, 0.005688638426363468, -0.025653446093201637, -0.009299156256020069, 0.026736164465546608, -0.033965930342674255, -0.023854736238718033, 0.03880323842167854, -0.03796500340104103, 0.01215439010411501, -0.01383085735142231, 0.018807869404554367, 0.012433800846338272, -0.03192273527383804, -0.0717388391494751, 0.017332229763269424, -0.018598312512040138, 0.005610054358839989, -0.05850173160433769, 0.03799993172287941, 0.022475143894553185, -0.00019236809748690575, -0.035240743309259415, -0.026683775708079338, -0.036148831248283386, 0.04812858998775482, 0.022387826815247536, -0.0021621629130095243, -0.0027264426462352276, -0.011709078215062618, 0.010224705561995506, -0.07502192258834839, 0.07404398173093796, -0.019908051937818527, 0.00519530288875103, 0.031643323600292206, 0.001445080153644085, -0.020152537152171135, -0.012625896371901035, 0.0031652057077735662, -0.02285933308303356, 0.07208810746669769, -0.0014898295048624277, -0.001073986990377307, -0.06629031896591187, -0.04638226702809334, 0.03995580971240997, -0.06873516738414764, 0.038873091340065, 0.06684914231300354, 0.01260843314230442, 0.010539043694734573, 0.007151181809604168, -0.000249259959673509, -0.008862575516104698, -0.025897931307554245, 0.0013577641220763326, -0.009342813864350319, 0.02638689987361431, -0.060282979160547256, -0.01265209075063467, 0.08228661864995956, 0.012180584482848644, 0.07243736833333969, -0.023942051455378532, -0.054624900221824646, -0.03538044914603233, -0.02312128245830536, 0.03267365321516991, -0.0822167620062828, -0.004258838947862387, 0.014695285819470882, 0.0464521199464798, -0.048896968364715576, 0.00037136595346964896, 0.004732528235763311, 0.008718504570424557, -0.0392223559319973, 0.031852882355451584, 0.05860651284456253, 0.03992088511586189, -0.027242597192525864, -0.008203339762985706, -0.019122207537293434, 0.007081328891217709, -0.028325315564870834, -0.0031979491468518972, 0.056895118206739426, 0.045404329895973206, -0.007535372395068407, -0.021514667198061943, -0.0006166693638078868, -0.013254571706056595, 0.05427563562989235, -0.013368082232773304, -0.03702199086546898, 0.029285792261362076, 0.02062404341995716, -0.01735842414200306, 0.03256887570023537, -0.001165668829344213, -0.03429773077368736, -0.040828969329595566, -0.01969849318265915, 0.012896575964987278, -0.008329948410391808, -0.01201468426734209, -0.10310275107622147, -0.030525680631399155, 0.003158656880259514, -0.03590434789657593, -0.017297303304076195, -0.016022488474845886, -0.017192523926496506, 0.03684736043214798, 0.07593000680208206, -0.04117823392152786, 0.04051463305950165, 0.0784447118639946, -0.021043160930275917, 0.014730212278664112, 0.05787305533885956, 0.038838163018226624, 0.06325172632932663, 0.0068019176833331585, -0.02418653666973114, -0.022772017866373062, 0.0016349924262613058, 0.038698460906744, 0.005448519717901945, 0.003123730653896928, -0.025863004848361015, 0.012468727305531502, 0.025967784225940704, 0.010661285370588303, 0.014136463403701782, 0.025845540687441826, -0.022230658680200577, 0.03656794875860214, 0.01976834610104561, 0.03249902278184891, -0.07509177923202515, 0.023313377052545547, -0.002097767312079668, 0.029547739773988724, 0.035188354551792145, 0.006539969705045223, 0.04184183478355408, -0.0019133122405037284, -0.021113013848662376, -0.051097333431243896, 0.018755480647087097, -0.008107292465865612, 0.11532699316740036, -0.04051463305950165, 0.041038528084754944, 0.021235255524516106, 0.03593927249312401, -0.015123134478926659, 0.003058243542909622, 0.023330839350819588, -0.018668165430426598, 0.014721480198204517, 0.015786735340952873, -0.024867601692676544, -0.034088172018527985, -0.03318008780479431, -0.005422324873507023, -0.04568374156951904, -0.005369935184717178, 0.015865320339798927, 0.020082684233784676, -0.000566462695132941, -0.037301402539014816, 0.012381411157548428, -0.07753662765026093, 0.06677929311990738, 0.008967354893684387, 0.026491679251194, -0.08165793865919113, -0.023243524134159088, 0.031800493597984314, -0.027976052835583687, -0.0070769633166491985, -0.004188986029475927, -0.03586941957473755, -0.012931502424180508, -0.014686554670333862, 0.06007342040538788, -0.0411083810031414, -0.019995369017124176, 0.01852845959365368, -0.043029334396123886, 0.003235058393329382, 0.0010936331236734986, -0.038663532584905624, 0.04044478014111519, 0.03152108192443848, 0.04830322042107582, 0.013979294337332249, 0.0194365456700325, 0.03557254746556282, 0.00927296094596386, -0.05878114327788353, 0.02186393178999424, -0.06513775140047073, -0.011971025727689266, 0.007129353005439043, -0.04858263209462166, 0.035031188279390335, 0.08452190458774567, -0.06300723552703857, 0.01557717751711607, 0.004101669881492853, 0.01039060577750206, 0.011822588741779327, -0.027137817814946175, -0.03579956665635109, 0.005596956703811884, 0.022702164947986603, -0.07201825082302094, -0.00045076894457452, 0.03183542191982269, 0.04463594779372215, -0.03115435503423214, -0.013525251299142838, -0.060597315430641174, -0.028010979294776917, 0.03487401828169823, 0.008072366006672382, 0.028272926807403564, 0.04383264109492302, -0.0014963782159611583, -0.009517446160316467, 0.046487048268318176, -0.017655298113822937, 0.08563955128192902, -0.013656225055456161, 0.02891906537115574, 0.002750454470515251, 0.021340034902095795, -0.04068926349282265, -0.026806017383933067, 0.014249973930418491, -0.04987490922212601, 0.07711751013994217, -0.06719841063022614, -0.01957625150680542, -0.020152537152171135, -0.03667272627353668, -0.023959515616297722, 0.00008404166874242947, 0.012914039194583893, 0.018161732703447342, -0.006710235960781574, 0.031783029437065125, 0.00039919791743159294, 0.007299619261175394, -0.01955878734588623, 0.023819809779524803, -0.004020902793854475, -0.0036934674717485905, 0.035118501633405685, -0.0031346450559794903, -0.04767454415559769, -0.028395168483257294, -0.03653302043676376, 0.010477921925485134, -0.033738911151885986, -0.04054955765604973, 0.027277523651719093, -0.006129584275186062, 0.09318365156650543, -0.010495385155081749, -0.02897145412862301, -0.022737091407179832, -0.005374300759285688, 0.044286683201789856, -0.007164279464632273, 0.0007716552936471999, 0.0009277326753363013, -0.006203803233802319, 0.015358887612819672, -0.014407142996788025, 0.019296839833259583, 0.00207048119045794, 0.07306604087352753, 0.01627570576965809, -0.0009653877350501716, 0.015839125961065292, -0.0765586867928505, -0.032708581537008286, 0.055742546916007996, -0.07145942747592926, -0.027976052835583687, -0.05769842490553856, 0.0483381487429142, 0.04921130836009979, -0.010076268576085567, -0.07348515838384628, 0.002186174737289548, 0.09751453250646591, -0.04942086711525917, 0.07114509493112564, -0.0022767651826143265, 0.003029865911230445, 0.007923929020762444, -0.007985049858689308, 0.002981842029839754, 0.005448519717901945, 0.03775544464588165, -0.00812038965523243, 0.059409819543361664, 0.032970529049634933, 0.04805873706936836, 0.018214121460914612, 0.014049147255718708, -0.03256887570023537, 0.02746962010860443, 0.028290389105677605, 0.04226095229387283, -0.04620763659477234, -0.009700809605419636, 0.0025256157387048006, 0.029023844748735428, 0.030857481062412262, 0.006998378783464432, -0.009622225537896156, -0.04515984281897545, 0.008452191017568111, -0.041946616023778915, 0.04760469123721123, 0.05975908413529396, 0.009962758049368858, 0.04006059095263481, 0.017629103735089302, -0.10924980044364929, 0.01826651021838188, -0.0024208365939557552, 0.03827934339642525, 0.05637122318148613, -0.032813359051942825, 0.04498521238565445, 0.006705870386213064, 0.013516519218683243, -0.03097972273826599, 0.09066895395517349, -0.022492606192827225, -0.030473290011286736, -0.04749991372227669, -0.050014615058898926, 0.05413592979311943, 0.005177839659154415, 0.07236751914024353, -0.011709078215062618, -0.029058771207928658, 0.007103158161044121, 0.011263766326010227, -0.012494922615587711, 0.03810470923781395, 0.021374961361289024, -0.034105636179447174, 0.009543640539050102, 0.01435475330799818, 0.03190527483820915, -0.036218684166669846, 0.0253740344196558, 0.02284187078475952, 0.03106703981757164, -0.0020049940794706345, 0.024675507098436356, 0.025880467146635056, -0.007775491569191217, 0.003125913441181183, 0.0024732262827455997, -0.059270113706588745, -0.031783029437065125, -0.05200542137026787, -0.03932713344693184, -0.011447129771113396, 0.013341887854039669, 0.04358815774321556, 0.003662907052785158, -0.03534552454948425, -0.05776827782392502, -0.0366378016769886, 0.0011361996876075864, -0.08347411453723907, -0.022806944325566292, 0.012180584482848644, 0.002254936145618558, -0.017192523926496506, 0.006601091008633375, -0.005837075877934694, -0.016249511390924454, -0.04390249401330948, -0.01145586185157299, -0.032708581537008286, 0.002984024817124009, -0.0007531006704084575, -0.0059243920259177685, -0.030228804796934128, 0.04512491822242737, 0.05783813074231148, 0.0765586867928505, -0.050224173814058304, 0.053437404334545135, 0.02862219139933586, 0.02980968914926052, -0.005073060747236013, 0.014049147255718708, -0.03426280617713928, -0.02069389633834362, -0.01844114251434803, 0.0016546385595574975, -0.029058771207928658, -0.011089134030044079, 0.02065896987915039, 0.03553761914372444, 0.07558074593544006, -0.024797748774290085, -0.019209524616599083, 0.052389610558748245, 0.005348105914890766, 0.019174598157405853, -0.030787628144025803, -0.012337753549218178, -0.02429131604731083, -0.022667238488793373, -0.0010636182269081473, -0.022265585139393806, -0.039781179279088974, -0.020117610692977905, 0.01491357572376728, 0.04299440607428551, 0.03803485631942749, 0.03946683928370476, -0.0221084151417017, -0.03908265009522438, 0.021305108442902565, -0.05748886615037918, -0.042191099375486374, 0.04383264109492302, -0.04264514148235321, 0.07956235855817795, -0.0068019176833331585, 0.058082614094018936, -0.037336330860853195, 0.007461153902113438, 0.0368124321103096, -0.019226986914873123, -0.061819739639759064, -0.02184646762907505, -0.053367551416158676, -0.004247924312949181, -0.03925728052854538, 0.0486874133348465, -0.10429025441408157, -0.06087672710418701, 0.009028476662933826, 0.0459282249212265, -0.02753947302699089, 0.0027395400684326887, 0.023278450593352318, -0.0010745327454060316, 0.03691721335053444, 0.0015858771512284875, -0.07376457005739212, 0.024623116478323936, 0.03197512403130531, 0.04617271199822426, -0.08466161042451859, 0.0009151810081675649, -0.045578960329294205, -0.04390249401330948, 0.01629316806793213, 0.004208632279187441, -0.018196657299995422, 0.03318008780479431, -0.017620371654629707, -0.025129549205303192, -0.005173474084585905, -0.03101464919745922, 0.0045447987504303455, 0.023959515616297722, -0.06384547054767609, 0.035153429955244064, 0.0844520553946495, -0.02987954206764698, 0.013612567447125912, -0.028028441593050957, -0.09381233155727386, 0.09548879414796829, 0.018109342083334923, 0.04058448597788811, 0.018214121460914612, 0.010399337857961655, 0.03468192368745804, 0.020204925909638405, -0.007042036857455969, -0.035101037472486496, 0.028412632644176483, 0.055847324430942535, 0.026963185518980026, 0.014817528426647186, 0.011167719028890133, -0.0046102856285870075, 0.00721230311319232, -0.05773334950208664, 0.026893334463238716, 0.02413414791226387, -0.008984818123281002, 0.014057879336178303, 0.031608399003744125, -0.04945579171180725, 0.022125879302620888 ]
730,334
mmengine.config.config
read_base
Context manager to mark the base config. The pure Python-style configuration file allows you to use the import syntax. However, it is important to note that you need to import the base configuration file within the context of ``read_base``, and import other dependencies outside of it. You can see more usage of Python-style configuration in the `tutorial`_ .. _tutorial: https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#a-pure-python-style-configuration-file-beta
def __reduce_ex__(self, proto): # Override __reduce_ex__ to avoid `self.items` will be # called by CPython interpreter during pickling. See more details in # https://github.com/python/cpython/blob/8d61a71f9c81619e34d4a30b625922ebc83c561b/Objects/typeobject.c#L6196 # noqa: E501 if digit_version(platform.python_version()) < digit_version('3.8'): return (self.__class__, ({k: v for k, v in super().items()}, ), None, None, None) else: return (self.__class__, ({k: v for k, v in super().items()}, ), None, None, None, None)
()
[ 0.013625187799334526, -0.03309747576713562, -0.05269609019160271, 0.0440337173640728, 0.002959643257781863, -0.05013347044587135, 0.011441548354923725, -0.030372437089681625, 0.0492672324180603, -0.049195047467947006, 0.0476069450378418, 0.0563054084777832, -0.0002253005950478837, 0.005224492400884628, -0.005675657652318478, 0.05764085799455643, -0.04775131866335869, 0.03311552107334137, 0.03836708515882492, 0.038114432245492935, 0.030173925682902336, 0.016323154792189598, -0.004213882610201836, 0.05847100168466568, 0.03331403434276581, 0.04280654713511467, 0.04071314260363579, -0.016765296459197998, 0.012046108953654766, -0.03385543078184128, -0.06125018000602722, 0.018750423565506935, -0.00941130518913269, 0.013444721698760986, 0.030191970989108086, -0.024056125432252884, -0.03786177933216095, 0.07247516512870789, -0.055727917701005936, -0.029614480212330818, -0.0033499011769890785, -0.015853943303227425, -0.033386219292879105, -0.07186158746480942, 0.06377670168876648, -0.009618841111660004, 0.0492672324180603, 0.04670461639761925, 0.02943401411175728, -0.09218206256628036, -0.0018588004168123007, -0.01689162291586399, 0.04522479325532913, 0.02165592648088932, -0.07023739069700241, 0.022233419120311737, 0.017821023240685463, 0.028098564594984055, -0.0757235586643219, 0.08561309427022934, -0.03818661719560623, 0.03011978417634964, 0.014960636384785175, -0.0007793877739459276, -0.01610659621655941, -0.04912286251783371, -0.025752507150173187, -0.050458308309316635, -0.06738602370023727, 0.033368173986673355, -0.0033047846518456936, -0.032465845346450806, 0.0015362172853201628, 0.01065652072429657, -0.01011512242257595, -0.0017358579207211733, -0.015366684645414352, -0.036183442920446396, 0.07132018357515335, -0.0361112579703331, 0.006356916856020689, -0.009682004339993, -0.0756513699889183, -0.020176105201244354, -0.012560437433421612, -0.011206942610442638, 0.040388304740190506, -0.01020535547286272, -0.0633435845375061, 0.02676311694085598, -0.07355796545743942, 0.08113753795623779, -0.034613389521837234, 0.022504117339849472, -0.025842739269137383, -0.03836708515882492, -0.006018543150275946, -0.0013783095637336373, 0.027719587087631226, 0.002277255989611149, 0.043239668011665344, -0.02356886677443981, -0.056341502815485, -0.043384041637182236, -0.021168667823076248, -0.0040243929252028465, 0.03771740570664406, -0.024705803021788597, -0.033909570425748825, 0.014987706206738949, 0.02939792163670063, 0.030715322121977806, -0.04244561865925789, 0.0650760605931282, 0.002616757759824395, 0.014482401311397552, -0.043564505875110626, -0.018750423565506935, 0.029271595180034637, 0.006284730508923531, -0.023370355367660522, 0.0844581127166748, -0.0721864253282547, 0.02255825698375702, -0.025590086355805397, 0.01751423068344593, 0.07261954247951508, -0.03098602220416069, 0.023478634655475616, 0.02255825698375702, 0.01337253488600254, 0.011387408711016178, -0.03658046945929527, -0.001951289246790111, 0.03306138142943382, 0.038114432245492935, 0.04295092076063156, -0.020194152370095253, -0.028044424951076508, 0.017243532463908195, 0.02838730998337269, 0.002727293409407139, 0.06042003631591797, 0.012948439456522465, -0.0032100400421768427, -0.04421418532729149, 0.026799209415912628, 0.038836296647787094, -0.016521668061614037, 0.002828805474564433, 0.0065599409863352776, 0.028224891051650047, 0.007552504539489746, 0.048003971576690674, -0.00015043537132441998, 0.03587665408849716, -0.03228537738323212, -0.03991909325122833, -0.01885870285332203, -0.06489559262990952, -0.027918098494410515, 0.027394747361540794, 0.008179623633623123, -0.052046410739421844, 0.05727992579340935, 0.017378881573677063, 0.0281527042388916, -0.05092751979827881, -0.02376738004386425, 0.010584333911538124, -0.03506455570459366, -0.058182258158922195, 0.07200595736503601, -0.0003183534136041999, -0.034631434828042984, 0.09297611564397812, -0.03396371379494667, 0.025048688054084778, -0.0029822015203535557, -0.00133093714248389, 0.008139018900692463, -0.04197640344500542, -0.03934159874916077, 0.003870996879413724, 0.04435855522751808, 0.0421929657459259, 0.03966644033789635, -0.009366188198328018, 0.02429073117673397, 0.0025287806056439877, -0.03405394405126572, -0.014455331489443779, 0.014744076877832413, 0.005341795273125172, -0.018407538533210754, 0.009817353449761868, -0.021060388535261154, 0.03710382059216499, -0.026023205369710922, 0.07601230591535568, -0.0949973315000534, 0.027773726731538773, -0.014608727768063545, -0.025572041049599648, -0.0810653567314148, -0.004836490377783775, 0.03414417803287506, -0.0013737978879362345, 0.025752507150173187, -0.029812993481755257, 0.002837828826159239, -0.012524344027042389, -0.018894795328378677, 0.00007380779425147921, 0.01725255511701107, -0.10849619656801224, 0.03818661719560623, -0.012695787474513054, 0.04554963484406471, 0.04995300620794296, 0.07449638843536377, -0.010728707537055016, -0.05323748663067818, -0.032483890652656555, 0.042301245033741, -0.04417809098958969, -0.03502846136689186, -0.009172187186777592, -0.005274120718240738, -0.04186812415719032, 0.0006513696862384677, -0.0013298093108460307, -0.004407883621752262, -0.004317650571465492, 0.00730887521058321, 0.08561309427022934, 0.028297077864408493, -0.03046267107129097, 0.0010128658032044768, 0.03031829744577408, 0.04435855522751808, -0.0017437533242627978, 0.02145741507411003, 0.008869906887412071, 0.015817850828170776, -0.03764522075653076, 0.048509277403354645, 0.07413545995950699, 0.018804563209414482, 0.05774913728237152, 0.005093654617667198, -0.010060982778668404, -0.007985622622072697, -0.0018621841445565224, 0.01356202457100153, -0.006762965582311153, 0.008129996247589588, -0.05673852935433388, 0.00612682243809104, -0.0343787856400013, 0.004958305042237043, 0.02656460367143154, 0.030336344614624977, 0.03508260101079941, -0.001683973940089345, -0.008008181117475033, 0.04280654713511467, 0.017784930765628815, -0.014509471133351326, 0.09990601241588593, 0.01769469678401947, -0.0024949433282017708, 0.0308416485786438, 0.03668874874711037, -0.03446901589632034, -0.029091129079461098, -0.02217927761375904, 0.025788599625229836, 0.025914926081895828, -0.012316808104515076, 0.01364323403686285, 0.007976599968969822, 0.007543481420725584, -0.05435637757182121, -0.0110084293410182, -0.008314973674714565, 0.009375211782753468, -0.007714923936873674, -0.024399010464549065, -0.022431930527091026, 0.05670243501663208, 0.010764800012111664, 0.010638474486768246, -0.020573129877448082, 0.05843491107225418, -0.005341795273125172, -0.012316808104515076, 0.03316966071724892, 0.0633796826004982, 0.0020550573244690895, -0.006510313134640455, 0.004586093593388796, 0.01664799451828003, 0.00815255381166935, 0.027069909498095512, -0.013534954749047756, 0.03046267107129097, 0.022774817422032356, -0.04132672771811485, 0.056341502815485, -0.012217552401125431, 0.048509277403354645, 0.03259216994047165, -0.005251562222838402, -0.027575213462114334, 0.018768470734357834, 0.02674506977200508, 0.03818661719560623, -0.007241200655698776, 0.05930114537477493, -0.05125236138701439, -0.024182451888918877, -0.012010016478598118, -0.003352157073095441, -0.036183442920446396, -0.06583401560783386, -0.012659694068133831, -0.03293505683541298, 0.018326329067349434, -0.04847318306565285, -0.03538939356803894, -0.02273872308433056, 0.0020088127348572016, 0.02198076620697975, -0.030588997527956963, 0.040063463151454926, 0.07258345186710358, 0.030408531427383423, -0.00211596442386508, -0.0220168586820364, 0.002720525721088052, -0.03013783134520054, -0.028567776083946228, 0.0229191891849041, -0.05338186025619507, -0.04212077707052231, 0.03414417803287506, -0.00642459187656641, 0.05742429941892624, -0.022792862728238106, 0.02714209444820881, -0.048653651028871536, -0.03329598903656006, 0.05374279245734215, 0.068685382604599, -0.061033621430397034, -0.04154328629374504, -0.07117581367492676, 0.02163788117468357, 0.03843927010893822, 0.0633435845375061, -0.024020032957196236, 0.015168172307312489, 0.04822053015232086, 0.020121965557336807, -0.023478634655475616, -0.04284264147281647, -0.029849085956811905, 0.003846182953566313, -0.05565573275089264, -0.024940408766269684, -0.0029009918216615915, -0.0457661934196949, -0.013625187799334526, -0.0220349058508873, 0.02429073117673397, -0.024218544363975525, 0.06568964570760727, -0.08481904864311218, -0.018425583839416504, 0.016620924696326256, -0.020338524132966995, -0.012776996940374374, 0.012650670483708382, 0.013507883995771408, 0.068685382604599, 0.07464075833559036, -0.018732376396656036, 0.057821325957775116, 0.03934159874916077, -0.026492416858673096, 0.013083789497613907, -0.0043672784231603146, -0.041290633380413055, -0.015556174330413342, 0.050458308309316635, -0.03235756233334541, -0.03405394405126572, -0.0012711577583104372, -0.05529480054974556, 0.01284918375313282, -0.02519306167960167, 0.038150522857904434, 0.033205755054950714, -0.00007430125697283074, -0.03556986153125763, 0.055547453463077545, 0.008296927437186241, 0.022648490965366364, 0.025301340967416763, 0.01954447478055954, -0.008409718051552773, -0.018371444195508957, -0.0528043694794178, 0.0035799953620880842, -0.02921745553612709, 0.043384041637182236, -0.030408531427383423, 0.0019276030361652374, 0.034270502626895905, 0.014987706206738949, 0.019869312644004822, 0.001643369090743363, -0.006844175048172474, 0.003433366771787405, -0.024904316291213036, -0.06125018000602722, 0.020482897758483887, 0.01847972348332405, -0.002253569895401597, 0.007353991735726595, -0.043420132249593735, 0.019995639100670815, -0.035281114280223846, -0.0033499011769890785, -0.042156871408224106, -0.027936145663261414, -0.035118695348501205, 0.01443728432059288, 0.03750084713101387, -0.0023054538760334253, 0.034631434828042984, 0.0013794373953714967, -0.03649023547768593, 0.0704178586602211, 0.029163314029574394, -0.02849559113383293, 0.05962598696351051, 0.0018745912238955498, 0.002188151003792882, 0.05962598696351051, 0.012912346050143242, 0.05031393840909004, -0.0006186601822264493, 0.022305604070425034, -0.029524246230721474, -0.01470798347145319, -0.023893706500530243, 0.017180368304252625, -0.02732256054878235, 0.02660069614648819, -0.03187030553817749, 0.005738820414990187, -0.00900976825505495, -0.05092751979827881, 0.01775786094367504, 0.0031897376757115126, -0.015105009078979492, -0.0020629526115953922, -0.0421929657459259, 0.0421929657459259, 0.02956034056842327, -0.006812593899667263, -0.02607734501361847, -0.02974080666899681, 0.034090038388967514, 0.05673852935433388, -0.01727060228586197, -0.03102211467921734, -0.06042003631591797, 0.05478949472308159, -0.015691524371504784, 0.047462571412324905, -0.04897848889231682, 0.0010974592296406627, 0.034270502626895905, 0.0026325485669076443, 0.02272067591547966, 0.0721142366528511, 0.08582966029644012, -0.0476069450378418, 0.08734557032585144, -0.04197640344500542, 0.07063441723585129, 0.015556174330413342, -0.005950868129730225, 0.007272782269865274, -0.025770552456378937, 0.02622171863913536, -0.046415869146585464, 0.01136033795773983, -0.04349232092499733, -0.0006998699391260743, 0.006731383968144655, 0.0010049703996628523, -0.03221319243311882, 0.000610200862865895, 0.028567776083946228, 0.02889261581003666, -0.024417057633399963, -0.0475347600877285, 0.008707487024366856, 0.004944770131260157, 0.027196234092116356, 0.009063907898962498, -0.0669889971613884, -0.013056719675660133, 0.0018091722158715129, -0.03468557447195053, -0.02515696920454502, 0.027412794530391693, 0.04280654713511467, 0.024705803021788597, 0.0163051076233387, -0.039016760885715485, 0.0038078338839113712, -0.006302777212113142, -0.025445714592933655, 0.03149132803082466, 0.016070501878857613, -0.015574220567941666, -0.06204422935843468, -0.02394784614443779, -0.00020133244106546044, -0.01903916895389557, 0.029361827298998833, -0.02676311694085598, 0.047462571412324905, 0.012515321373939514, -0.010097076185047626, 0.05670243501663208, 0.0018384979339316487, 0.0154208242893219, -0.026871396228671074, -0.022107092663645744, 0.027376700192689896, 0.014762123115360737, 0.03854754939675331, -0.03535329923033714, -0.040063463151454926, -0.026095392182469368, -0.012795043177902699, 0.0062170554883778095, 0.0052109574899077415, 0.015285475179553032, -0.051180172711610794, -0.0068847802467644215, -0.01710818149149418, 0.004507139790803194, 0.012370948679745197, 0.0352630689740181, 0.0598786361515522, -0.01900307647883892, -0.021349133923649788, -0.024868221953511238, 0.028423404321074486, -0.0031288303434848785, 0.0739188939332962, -0.03013783134520054, -0.010286564938724041, 0.004148463718593121, 0.06352405250072479, 0.0077239470556378365, 0.018326329067349434, 0.05006128549575806, 0.011685177683830261, -0.04518870264291763, 0.016783343628048897, -0.0140943992882967, -0.06363233178853989, -0.038114432245492935, 0.01918354257941246, 0.023189889267086983, -0.06828835606575012, 0.007561527658253908, -0.03455924987792969, -0.007629202678799629, 0.008179623633623123, -0.001376053667627275, 0.022991375997662544, -0.012064156122505665, 0.01793832704424858, -0.049411606043577194, 0.035642046481370926, 0.012813090346753597, -0.0017358579207211733, -0.0065599409863352776, 0.012100249528884888, -0.09131582826375961, -0.010990383103489876, -0.03436073660850525, 0.0511079877614975, 0.023189889267086983, 0.014211702160537243, 0.02941596694290638, -0.05724383518099785, -0.026997722685337067, 0.053057022392749786, 0.024579476565122604, 0.003327342914417386, -0.014581657014787197, 0.0011865643318742514, 0.012172435410320759, -0.03665265813469887, 0.042301245033741, -0.06023956835269928, -0.05543917417526245, -0.0005791832809336483, -0.010060982778668404, -0.03732037916779518, -0.03540743887424469, -0.014473377726972103, -0.03064313717186451, 0.015709569677710533, -0.04944770038127899, 0.02974080666899681, -0.009330094791948795, -0.023298168554902077, 0.03768131136894226, -0.03959425166249275, -0.0065509178675711155, 0.012677740305662155, 0.07330531626939774, -0.07456857711076736, -0.013210115022957325, 0.01047605462372303, 0.023821519687771797, 0.047787413001060486, -0.055403079837560654, 0.002560362219810486, -0.02167397364974022, -0.052732180804014206, -0.02784591354429722, 0.008838324807584286, -0.07366624474525452, -0.023857612162828445, -0.003710833378136158, -0.018966982141137123, 0.015583244152367115, 0.006749430671334267, 0.01136033795773983, 0.02288309670984745, -0.004333441145718098, -0.015529104508459568, -0.000568186107557267, 0.05598057061433792, 0.03567814081907272, -0.021782252937555313, 0.015249381773173809, 0.004768815357238054, -0.02304551564157009, -0.025391574949026108, -0.05071096122264862, -0.021006248891353607, 0.0793328806757927, 0.006005008239299059, -0.04017174616456032, 0.006393010262399912, 0.0881396234035492, -0.0528404600918293, -0.002188151003792882, -0.0007466783281415701, -0.0033295988105237484, -0.019815173000097275, -0.08691245317459106, -0.027069909498095512, 0.017117206007242203, 0.05598057061433792, 0.0006694162730127573, -0.06363233178853989, -0.011333268135786057, -0.01117987185716629, -0.08063223212957382, 0.010169262066483498, -0.04609103128314018, -0.041471101343631744, 0.008247299119830132, 0.03656242415308952, -0.01275895070284605, -0.1004113182425499, 0.08005474507808685, -0.028116611763834953, -0.0018712073797360063, 0.0036138328723609447, -0.06251344084739685, -0.007674319203943014, -0.04998909682035446, -0.08647933602333069, 0.0476069450378418, -0.012912346050143242, -0.01515914872288704, 0.0022761281579732895, -0.004482325632125139, -0.032646309584379196, 0.03221319243311882, 0.06128627434372902, -0.026167578995227814, -0.011152802035212517, 0.02270263060927391, 0.0047552804462611675, 0.0007934867171570659, 0.039522066712379456, -0.020573129877448082, -0.021619834005832672, 0.03030025027692318, -0.00869846437126398, 0.06767477095127106, 0.04461120814085007, -0.03551572188735008, 0.034739717841148376, -0.0528043694794178, 0.030246110633015633, 0.03129281476140022, 0.04630758985877037, 0.012632624246180058, 0.01461775042116642, 0.01952642761170864, -0.04244561865925789, -0.04554963484406471, 0.022792862728238106, 0.06641151010990143, -0.019598614424467087, -0.05024174973368645, -0.014581657014787197, 0.0652204304933548, -0.011378385126590729, -0.002449826803058386, 0.006474219728261232, -0.003841671161353588, 0.01434705127030611, -0.07825008034706116, -0.006045612972229719, 0.003180714324116707, 0.08330313116312027, -0.05143282562494278, -0.03629172593355179, 0.05500605329871178, 0.06078096851706505, -0.005747843999415636, -0.0023257562424987555, 0.034108083695173264, 0.03591274470090866, 0.006072682794183493, -0.013300348073244095, 0.06106971576809883, -0.06052831560373306, -0.003945439122617245, -0.04486386105418205, -0.007304363884031773, -0.04616321623325348, -0.05774913728237152, -0.041146259754896164, -0.015357661060988903, 0.014834309928119183, 0.03551572188735008, -0.0013997398782521486, 0.04291483014822006, -0.012361925095319748 ]
730,335
mmengine.fileio.backends.registry_utils
register_backend
Register a backend. Args: name (str): The name of the registered backend. backend (class, optional): The backend class to be registered, which must be a subclass of :class:`BaseStorageBackend`. When this method is used as a decorator, backend is None. Defaults to None. force (bool): Whether to override the backend if the name has already been registered. Defaults to False. prefixes (str or list[str] or tuple[str], optional): The prefix of the registered storage backend. Defaults to None. This method can be used as a normal method or a decorator. Examples: >>> class NewBackend(BaseStorageBackend): ... def get(self, filepath): ... return filepath ... ... def get_text(self, filepath): ... return filepath >>> register_backend('new', NewBackend) >>> @register_backend('new') ... class NewBackend(BaseStorageBackend): ... def get(self, filepath): ... return filepath ... ... def get_text(self, filepath): ... return filepath
def register_backend(name: str, backend: Optional[Type[BaseStorageBackend]] = None, force: bool = False, prefixes: Union[str, list, tuple, None] = None): """Register a backend. Args: name (str): The name of the registered backend. backend (class, optional): The backend class to be registered, which must be a subclass of :class:`BaseStorageBackend`. When this method is used as a decorator, backend is None. Defaults to None. force (bool): Whether to override the backend if the name has already been registered. Defaults to False. prefixes (str or list[str] or tuple[str], optional): The prefix of the registered storage backend. Defaults to None. This method can be used as a normal method or a decorator. Examples: >>> class NewBackend(BaseStorageBackend): ... def get(self, filepath): ... return filepath ... ... def get_text(self, filepath): ... return filepath >>> register_backend('new', NewBackend) >>> @register_backend('new') ... class NewBackend(BaseStorageBackend): ... def get(self, filepath): ... return filepath ... ... def get_text(self, filepath): ... return filepath """ if backend is not None: _register_backend(name, backend, force=force, prefixes=prefixes) return def _register(backend_cls): _register_backend(name, backend_cls, force=force, prefixes=prefixes) return backend_cls return _register
(name: str, backend: Optional[Type[mmengine.fileio.backends.base.BaseStorageBackend]] = None, force: bool = False, prefixes: Union[str, list, tuple, NoneType] = None)
[ -0.01766057312488556, -0.028717707842588425, -0.004816520027816296, 0.005841504316776991, -0.015220566652715206, 0.023057615384459496, -0.07379887998104095, 0.039693206548690796, 0.04586125165224075, -0.09331893920898438, 0.051194801926612854, 0.018975818529725075, 0.0026622384320944548, -0.04165246710181236, -0.018975818529725075, -0.07583071291446686, 0.005855110473930836, -0.005569384898990393, -0.0027348038274794817, -0.04038257524371147, -0.0010850776452571154, 0.016417892649769783, 0.09970468282699585, -0.01733402907848358, 0.021279767155647278, 0.028373021632432938, 0.041108228266239166, 0.030441133305430412, -0.011510666459798813, 0.034395940601825714, 0.030205294489860535, -0.023075757548213005, 0.054061129689216614, -0.012608216144144535, 0.07419799268245697, -0.03330745920538902, -0.0016417893348261714, 0.03684501722455025, -0.09404459595680237, -0.0132340919226408, 0.031402621418237686, -0.04480905830860138, 0.0047575607895851135, -0.01821388304233551, 0.03787907212972641, 0.04049142450094223, 0.027248259633779526, 0.03091280721127987, -0.010893861763179302, 0.031457047909498215, 0.03769765794277191, -0.025869520381093025, -0.03305348381400108, -0.0017415665788576007, 0.005977564491331577, -0.022041702643036842, 0.013379222713410854, 0.015710381790995598, -0.006676005199551582, 0.05166647583246231, 0.052464693784713745, -0.03635520115494728, 0.020100580528378487, 0.005002468358725309, 0.005596596747636795, -0.009923301637172699, -0.033107906579971313, -0.05148506164550781, -0.022041702643036842, -0.003551163012161851, 0.017234252765774727, -0.04898155853152275, 0.013805543072521687, -0.02810090221464634, -0.012354237958788872, 0.06146278604865074, -0.03232783079147339, -0.019048383459448814, -0.07982180267572403, 0.012889406643807888, 0.027574803680181503, -0.028518153354525566, 0.006993478164076805, -0.03684501722455025, -0.019120950251817703, 0.006090947892516851, -0.06168048456311226, -0.006961730774492025, -0.02240452915430069, -0.04299492388963699, -0.013324798084795475, -0.05192045494914055, 0.08678806573152542, 0.02915309928357601, 0.00732909282669425, -0.09926929324865341, -0.00869422685354948, -0.048219624906778336, -0.0014116213424131274, 0.03519415855407715, -0.00876679178327322, 0.011556020006537437, -0.00016624818090349436, -0.07619353383779526, 0.029860610142350197, -0.01971961371600628, 0.020626679062843323, -0.004585218150168657, -0.019048383459448814, 0.00295023201033473, 0.05489562824368477, -0.04880014806985855, 0.02944335900247097, -0.03542999550700188, 0.041398487985134125, -0.0025624611880630255, 0.05427882447838783, -0.001729094423353672, 0.026159781962633133, -0.01948377676308155, -0.05638321861624718, -0.03218269720673561, 0.015574322082102299, 0.020227570086717606, 0.053807150572538376, -0.01392346154898405, 0.06429283320903778, 0.031783588230609894, -0.01826830767095089, -0.03601051867008209, 0.017841987311840057, 0.027683651074767113, -0.06356717646121979, 0.028608858585357666, 0.05148506164550781, 0.027429673820734024, -0.006635187193751335, -0.010150067508220673, -0.01533848512917757, 0.02654074877500534, -0.024708475917577744, -0.009165900759398937, -0.03410567715764046, 0.053734585642814636, -0.003725773189216852, -0.0536620207130909, -0.015002870000898838, -0.03515787422657013, -0.003401497146114707, -0.05500447750091553, 0.0003744481655303389, 0.06871931254863739, 0.010821296833455563, 0.029007967561483383, -0.0790235847234726, -0.010558247566223145, -0.025869520381093025, 0.05573013052344322, -0.01696213334798813, 0.05355317145586014, -0.02817346714437008, 0.019937308505177498, 0.007515041157603264, -0.056927457451820374, -0.03267251327633858, 0.07383516430854797, -0.01955634169280529, 0.028645141050219536, -0.02262222394347191, 0.03617379069328308, -0.0035307540092617273, -0.012707993388175964, -0.005197487771511078, 0.03203756734728813, 0.03189243748784065, -0.0009473169920966029, 0.044264815747737885, -0.004376593045890331, -0.01652674190700054, -0.021733298897743225, 0.08584471791982651, -0.008571772836148739, -0.03737111762166023, -0.010930144228041172, 0.018386226147413254, 0.0222412571310997, 0.02528899721801281, 0.03936666250228882, 0.0948428139090538, 0.030241576954722404, 0.04589753597974777, 0.05188417062163353, 0.011483454145491123, -0.048255905508995056, 0.039983466267585754, -0.0834500640630722, 0.07067857682704926, 0.01459469087421894, -0.01256286259740591, 0.024944312870502472, -0.016472317278385162, 0.0026032791938632727, 0.03207385167479515, 0.005673697218298912, 0.09549590200185776, -0.01751544326543808, 0.04459135979413986, 0.01475796289741993, -0.023202747106552124, 0.004390199203044176, -0.007392587140202522, 0.010195421054959297, -0.09477024525403976, 0.07122281938791275, -0.004133952781558037, 0.005251911468803883, 0.059358395636081696, 0.023239029571413994, 0.046949733048677444, -0.010150067508220673, 0.0017404326936230063, 0.07300066202878952, -0.02405538782477379, -0.004458229057490826, -0.007542253006249666, -0.015030082315206528, 0.051085952669382095, -0.014059522189199924, 0.041616182774305344, -0.013751119375228882, -0.017851056531071663, 0.03773394227027893, -0.007841585204005241, -0.039802052080631256, 0.013596918433904648, 0.008190805092453957, 0.06904585659503937, -0.016290903091430664, 0.026903575286269188, 0.0025488552637398243, 0.049707211554050446, 0.0294070765376091, -0.041217073798179626, -0.009274749085307121, -0.033017199486494064, 0.005596596747636795, 0.0063041080720722675, -0.008367682807147503, 0.037026431411504745, -0.03820561617612839, -0.03065882809460163, 0.06585298478603363, 0.010658024810254574, -0.03943922743201256, -0.013696695677936077, 0.011683008633553982, -0.058197349309921265, -0.017669644206762314, -0.018295519053936005, 0.027538521215319633, -0.027030564844608307, 0.004290421959012747, -0.01692585088312626, -0.012744275853037834, -0.0027552128303796053, 0.005487748887389898, 0.004299492575228214, 0.009787240996956825, 0.012190965935587883, 0.042922358959913254, 0.03410567715764046, -0.015592463314533234, 0.0032881139777600765, 0.006598904728889465, 0.02238638699054718, -0.029951317235827446, 0.002553390571847558, 0.06389372050762177, -0.03962063789367676, -0.028663283213973045, -0.017651502043008804, -0.07858819514513016, 0.017987117171287537, -0.07474223524332047, 0.05315406247973442, -0.04056398943066597, -0.016989344730973244, 0.010703378356993198, 0.013742048293352127, -0.03615564852952957, -0.015701310709118843, -0.024781040847301483, -0.0532991923391819, 0.050868257880210876, 0.014349782839417458, -0.041398487985134125, -0.08482880145311356, -0.0022869398817420006, -0.01463097333908081, -0.041253358125686646, -0.006254219450056553, 0.05877787247300148, -0.01408673357218504, 0.04230555519461632, 0.035448137670755386, -0.06037430837750435, 0.011601373553276062, -0.053734585642814636, -0.04872758314013481, 0.04078168421983719, 0.0016202465631067753, 0.01968333125114441, -0.027756217867136, -0.015556180849671364, 0.02793763019144535, 0.05573013052344322, -0.003444582922384143, 0.006816600449383259, 0.00008709249959792942, -0.01815946027636528, 0.03624635562300682, 0.018295519053936005, -0.047131143510341644, 0.01749730110168457, 0.017506372183561325, 0.026177922263741493, -0.01551082730293274, 0.011002710089087486, 0.004428749438375235, 0.012426802888512611, -0.035575125366449356, 0.03601051867008209, 0.021878430619835854, -0.0016894103027880192, -0.021388614550232887, -0.04575240612030029, 0.044301100075244904, -0.030314143747091293, -0.05877787247300148, 0.013959744945168495, 0.03102165460586548, -0.03218269720673561, 0.014612832106649876, -0.006104553584009409, -0.0501788854598999, 0.014386065304279327, -0.029316371306777, -0.033071622252464294, 0.029316371306777, 0.07764483988285065, -0.021987278014421463, -0.03350701555609703, -0.031420763581991196, -0.03506716713309288, 0.037080854177474976, -0.08439341187477112, -0.020009873434901237, 0.017941763624548912, -0.051122236996889114, -0.05696374177932739, -0.03635520115494728, -0.00016383877664338797, -0.009496980346739292, 0.023438584059476852, 0.006054664961993694, -0.02381955087184906, 0.04622408002614975, 0.04299492388963699, -0.059503525495529175, 0.006671469658613205, 0.020209427922964096, -0.03744368255138397, 0.049598366022109985, 0.0140141686424613, 0.005016074515879154, 0.016109490767121315, 0.06770340353250504, -0.02378326840698719, -0.020427124574780464, -0.006476450711488724, 0.06846533715724945, -0.00794136244803667, 0.03472248464822769, -0.04060027003288269, 0.03379727527499199, -0.025669965893030167, 0.013605988584458828, 0.028699565678834915, -0.02097136341035366, -0.029134957119822502, 0.004753025248646736, -0.0010595663916319609, -0.009596757590770721, 0.006281431298702955, -0.007868796586990356, -0.021406756713986397, -0.04328518733382225, 0.01408673357218504, -0.05192045494914055, 0.042704664170742035, -0.028590718284249306, -0.028409304097294807, 0.07096883654594421, 0.006158977746963501, -0.015773875638842583, 0.022803638130426407, 0.04531701281666756, 0.021243484690785408, -0.0009240733925253153, 0.03664546459913254, -0.0391489639878273, -0.007242921274155378, -0.04890899360179901, -0.03343445062637329, 0.0012517509749159217, 0.06563529372215271, 0.013905320316553116, 0.011955128982663155, -0.07405286282300949, 0.029026109725236893, -0.04626036062836647, 0.06701403111219406, -0.03218269720673561, 0.00985980685800314, 0.015755735337734222, 0.04168875142931938, -0.0035693044774234295, -0.014485842548310757, -0.05765311047434807, 0.0006071672542020679, 0.0391489639878273, -0.024146094918251038, 0.01760615035891533, 0.0010181814432144165, 0.016254620626568794, -0.057907089591026306, 0.04513559862971306, -0.004440087825059891, -0.008494672365486622, -0.05141249671578407, 0.003889045212417841, -0.06759455054998398, -0.05710887163877487, 0.0014445025008171797, -0.017542654648423195, -0.05612923949956894, -0.029080534353852272, -0.026994282379746437, 0.05870530754327774, 0.02372884377837181, 0.0009830327471718192, -0.010358693078160286, 0.07880588620901108, -0.01334293931722641, 0.0562380887567997, -0.03410567715764046, 0.04919925704598427, -0.05928582698106766, 0.022041702643036842, -0.00794136244803667, 0.00453986506909132, 0.04023744538426399, -0.0019785375334322453, -0.02514386735856533, -0.009941442869603634, 0.012254460714757442, 0.030495556071400642, 0.046768318861722946, 0.015148000791668892, -0.009283820167183876, 0.01407766342163086, -0.002301679691299796, -0.02632305398583412, 0.006626116577535868, -0.003950272221118212, 0.04945323243737221, -0.04372057691216469, 0.012961972504854202, 0.024545203894376755, -0.017878269776701927, -0.007945897057652473, 0.07274668663740158, 0.007900544442236423, 0.07271040230989456, 0.04157990217208862, -0.007029761094599962, 0.04205157607793808, -0.024327507242560387, 0.03747996315360069, -0.004948044661432505, -0.023293452337384224, -0.001619112677872181, 0.005542172584682703, 0.0696626603603363, -0.038532160222530365, 0.029715480282902718, -0.010313339531421661, -0.012336096726357937, -0.031729165464639664, 0.028953544795513153, 0.051122236996889114, -0.05634693428874016, -0.016018783673644066, 0.03350701555609703, -0.001715488382615149, -0.05271867290139198, -0.02106207050383091, 0.06559900939464569, -0.017878269776701927, 0.044301100075244904, -0.0700254887342453, 0.019846603274345398, -0.028481870889663696, 0.011819069273769855, -0.015928078442811966, -0.008222552947700024, -0.04234183579683304, -0.023547431454062462, -0.05485934764146805, 0.02253151684999466, 0.0025193756446242332, -0.01251750998198986, 0.03374285250902176, 0.031184926629066467, 0.02249523438513279, 0.010458470322191715, 0.030314143747091293, -0.01812317781150341, 0.02387397550046444, 0.0452081672847271, 0.03747996315360069, 0.06291409581899643, -0.049634646624326706, -0.03463177755475044, -0.022059842944145203, -0.06588926911354065, 0.004072725772857666, 0.016073208302259445, 0.07873332500457764, -0.04916297271847725, 0.024672193452715874, 0.041471052914857864, -0.01756986603140831, -0.0452081672847271, -0.0036509402561932802, -0.04237812012434006, -0.02089879848062992, -0.012871265411376953, 0.04673203453421593, -0.014948446303606033, -0.0039865546859800816, -0.051122236996889114, -0.006970801390707493, -0.006884630303829908, -0.027302684262394905, -0.008326864801347256, 0.05489562824368477, 0.024690333753824234, -0.01808689534664154, 0.03397868946194649, 0.01619112677872181, 0.04303120821714401, 0.029207522049546242, 0.004952579736709595, 0.022096125409007072, -0.008843893185257912, 0.032799504697322845, -0.021588169038295746, 0.003775661811232567, 0.004292689263820648, -0.006825671065598726, -0.03472248464822769, 0.0477842316031456, 0.014476772397756577, -0.0053789010271430016, 0.07358118891716003, 0.05192045494914055, 0.030513698235154152, -0.06186189502477646, -0.08120054006576538, -0.04194272682070732, 0.05155762657523155, -0.06305922567844391, 0.04361173138022423, 0.009923301637172699, 0.00030330015579238534, -0.002301679691299796, 0.06926355510950089, -0.10797712951898575, -0.03191057965159416, -0.06625209748744965, 0.0646919384598732, 0.05282751843333244, -0.04811077564954758, 0.0503602996468544, 0.0007375580025836825, -0.10514707863330841, -0.028772130608558655, 0.038314465433359146, -0.0027506775222718716, -0.02793763019144535, -0.005315406247973442, -0.011410889215767384, -0.05177532136440277, 0.008127310313284397, -0.018739981576800346, 0.010240774601697922, -0.04887271299958229, -0.003136180341243744, -0.07575814425945282, 0.027665510773658752, 0.02118906006217003, -0.02378326840698719, 0.05344432592391968, -0.024182377383112907, -0.01316152699291706, -0.023202747106552124, -0.0033470732159912586, 0.016408823430538177, -0.02938893623650074, -0.01977403648197651, 0.014912163838744164, 0.04052770510315895, 0.0017064177663996816, 0.015302201732993126, -0.02236824482679367, -0.017760351300239563, 0.017170757055282593, 0.002718930132687092, -0.026014650240540504, -0.012327025644481182, -0.012825911864638329, 0.004483173135668039, -0.04909040778875351, 0.002462683944031596, -0.07996693253517151, -0.05068684369325638, -0.005029680673032999, 0.008812145330011845, -0.049852341413497925, -0.031239351257681847, 0.05173904076218605, 0.0026350265834480524, 0.03755252808332443, 0.005496819503605366, -0.041253358125686646, -0.015674099326133728, -0.045607276260852814, 0.008122775703668594, -0.021787723526358604, -0.03374285250902176, 0.056673478335142136, 0.009587686508893967, 0.03524858132004738, 0.07006177306175232, 0.03312604874372482, 0.017814774066209793, -0.02512572519481182, 0.02405538782477379, 0.008367682807147503, 0.04379314184188843, -0.05068684369325638, 0.022749213501811028, 0.031366340816020966, -0.01329758670181036, 0.00733362790197134, -0.002435472095385194, -0.04477277398109436, 0.003798338584601879, -0.06059200316667557, -0.01054917648434639, 0.024218659847974777, -0.017751280218362808, -0.019919168204069138, 0.008444784209132195, 0.01048568170517683, -0.00382781820371747, -0.03240039572119713, 0.044301100075244904, 0.019991733133792877, -0.012100259773433208, -0.059539806097745895, 0.037044573575258255, 0.047058578580617905, -0.07220244407653809, 0.04060027003288269, 0.020390842109918594, 0.00113496626727283, -0.016127632930874825, -0.056600913405418396, -0.0056056673638522625, 0.040128596127033234, 0.035756539553403854, 0.004496779292821884, 0.01733402907848358, 0.038532160222530365, 0.06893701106309891, -0.017651502043008804, -0.014304429292678833, -0.00121546839363873, -0.03196500241756439, -0.01799618825316429, -0.01109341625124216, -0.0679936632514, 0.046949733048677444, 0.039947181940078735, -0.028717707842588425, -0.04060027003288269, -0.031656600534915924, -0.04880014806985855, -0.007505970541387796, -0.008617126382887363, 0.03635520115494728, 0.015256849117577076, -0.05068684369325638, -0.06661491841077805, 0.029679197818040848, -0.020155005156993866, -0.0015510827070102096, 0.048147059977054596, -0.014295359142124653, 0.07158564031124115, 0.013352010399103165, -0.06759455054998398, -0.00031917382148094475, -0.022077985107898712, -0.020535971969366074, -0.013651342131197453, -0.025651823729276657, -0.005183881614357233, -0.003013726556673646, 0.05228327959775925, -0.016399752348661423, 0.038459595292806625, -0.007483293768018484, -0.0419064462184906, 0.0641477033495903, -0.04179759696125984, 0.013352010399103165, 0.04567984119057655, 0.03628263622522354, 0.03668174520134926, -0.011057133786380291, -0.01808689534664154, 0.020028015598654747, -0.002203036332502961, 0.020336417481303215, 0.020517831668257713, 0.03396054729819298, 0.07474223524332047, 0.009297425858676434, 0.010385904461145401, -0.0389675535261631, 0.04861873388290405, 0.040056031197309494, 0.0008362014195881784, 0.01061267126351595, 0.03397868946194649, -0.01659930683672428, -0.0420878604054451, -0.03359772264957428, 0.00489815603941679, 0.014785174280405045, -0.06480079144239426, -0.03532114624977112, -0.0295884907245636, -0.047094862908124924, 0.016680942848324776 ]
730,336
mmengine.fileio.handlers.registry_utils
register_handler
null
def register_handler(file_formats, **kwargs): def wrap(cls): _register_handler(cls(**kwargs), file_formats) return cls return wrap
(file_formats, **kwargs)
[ -0.0037200141232460737, -0.07878688722848892, 0.046893682330846786, 0.008988242596387863, -0.0007601300603710115, 0.06622914969921112, -0.016952943056821823, 0.06973844021558762, -0.01410594955086708, 0.018458150327205658, 0.03736356273293495, 0.024547792971134186, 0.02243190072476864, -0.0006665920955128968, -0.0020696609281003475, 0.005775697994977236, -0.0440036803483963, 0.011362169869244099, 0.0024147836957126856, -0.03473160043358803, -0.014329580590128899, 0.04352201521396637, 0.01754642464220524, -0.01180083118379116, 0.03197921812534332, 0.06302951276302338, -0.038946181535720825, 0.038670945912599564, 0.02927844598889351, -0.03514445573091507, 0.023085590451955795, -0.027351779863238335, 0.001782596344128251, 0.014905859716236591, 0.014123152010142803, -0.047960229218006134, -0.024771424010396004, 0.06560986489057541, -0.04011594504117966, 0.03381987288594246, -0.012394312769174576, 0.03051701746881008, 0.0016858329763635993, -0.017856067046523094, 0.03297695890069008, 0.10837497562170029, 0.01992035284638405, 0.01254053320735693, -0.009297885000705719, -0.015387526713311672, -0.019507495686411858, -0.010114997625350952, 0.00398020027205348, 0.011233152821660042, -0.00014944565191399306, 0.07046093791723251, 0.02200184017419815, 0.08085117489099503, 0.016806723549962044, -0.0022384594194591045, -0.023842494934797287, 0.015662765130400658, 0.0810576006770134, 0.01352106872946024, -0.018819401040673256, 0.015224103815853596, -0.03932463377714157, -0.011998658068478107, -0.005896114744246006, 0.03784523159265518, 0.0495772510766983, -0.0551852248609066, 0.006300370674580336, -0.02060844749212265, 0.05852248892188072, 0.012841574847698212, -0.07665379345417023, 0.0212965440005064, -0.022242674604058266, 0.07362617552280426, 0.03722594305872917, -0.0516759417951107, -0.00870440248399973, 0.012342705391347408, 0.04458856210112572, -0.06474974751472473, -0.006627216003835201, -0.030052553862333298, -0.0144930025562644, 0.02508106641471386, -0.051710344851017, -0.03197921812534332, 0.014019937254488468, -0.021898627281188965, -0.05057498812675476, -0.04778820276260376, -0.0010224663419649005, 0.017649639397859573, 0.03313177824020386, -0.005577870644629002, -0.01621324010193348, -0.03338981419801712, 0.023223210126161575, -0.04066642001271248, 0.03822368383407593, -0.032306063920259476, -0.00347703043371439, -0.02088368684053421, -0.04534546658396721, 0.03311457484960556, 0.07479593902826309, -0.0579720102250576, 0.02564874477684498, 0.03708832710981369, -0.006876650266349316, -0.02695612609386444, 0.03206523135304451, 0.05511641874909401, -0.017572227865457535, -0.018268924206495285, -0.024186542257666588, -0.028177494183182716, -0.007693763356655836, 0.04974927380681038, 0.043281182646751404, -0.04242106154561043, -0.006308971904218197, -0.00911725964397192, 0.04455415904521942, -0.019266663119196892, 0.03464558720588684, 0.08140164613723755, -0.0009977378649637103, -0.03435314819216728, -0.009977378882467747, 0.015163895674049854, -0.054806772619485855, 0.01752922311425209, 0.004412409849464893, 0.06413046270608902, 0.010373033583164215, 0.04156094416975975, -0.023498447611927986, -0.016875531524419785, -0.022810352966189384, 0.0003510360256768763, 0.0023545753210783005, 0.03435314819216728, -0.018888210877776146, 0.03856772929430008, 0.030912671238183975, 0.0008676449069753289, 0.06117165461182594, 0.09096617251634598, -0.020866483449935913, -0.05504760891199112, -0.01697014458477497, 0.09296164661645889, -0.026440054178237915, 0.019163448363542557, 0.05201999098062515, 0.013607080094516277, 0.009874165058135986, -0.0004074813041370362, -0.00831734947860241, 0.05435951426625252, -0.007302409037947655, -0.023876899853348732, 0.0181657113134861, 0.03829249367117882, 0.023206006735563278, 0.004046859219670296, -0.03019017167389393, 0.04080403968691826, 0.06175653636455536, 0.03808606415987015, 0.057455942034721375, -0.019455889239907265, 0.02955368347465992, 0.015757378190755844, 0.033905886113643646, -0.008566783741116524, 0.026216423138976097, 0.026354042813181877, 0.0433155857026577, 0.027609815821051598, -0.008497974835336208, 0.002928704721853137, -0.010596664622426033, -0.057043083012104034, 0.04462296515703201, 0.030224576592445374, 0.002130944514647126, -0.031686779111623764, 0.010398836806416512, -0.02234588749706745, -0.05212320387363434, 0.02220826968550682, -0.008454968221485615, 0.028865588828921318, -0.03849891945719719, 0.041044872254133224, 0.010897706262767315, -0.018819401040673256, 0.028951600193977356, 0.028452731668949127, 0.095025934278965, 0.006351978052407503, -0.0684654638171196, -0.02590678073465824, -0.01795928180217743, -0.06175653636455536, -0.0733509361743927, 0.05126308277249336, -0.010751485824584961, 0.029312850907444954, 0.01127615850418806, 0.043487608432769775, -0.03431874141097069, -0.008575385436415672, 0.0150176752358675, 0.08855783939361572, -0.06340796500444412, -0.020711662247776985, 0.045517489314079285, -0.028590351343154907, 0.04359082505106926, -0.048648323863744736, -0.02284475788474083, 0.01754642464220524, -0.027695827186107635, 0.020694460719823837, -0.01725398376584053, 0.06034594029188156, -0.01571437157690525, -0.06612593680620193, 0.06296069920063019, 0.021502971649169922, 0.016307853162288666, 0.019043032079935074, 0.07280045747756958, 0.022311482578516006, 0.012110473588109016, -0.03184160217642784, 0.032787732779979706, -0.000604771077632904, -0.0037329159677028656, 0.018148507922887802, -0.0023545753210783005, 0.024117732420563698, 0.0012912534875795245, 0.052364036440849304, -0.004550028592348099, 0.004580133128911257, -0.036228206008672714, 0.016084222123026848, -0.0303793977946043, -0.01880219765007496, -0.004666144959628582, -0.014983270317316055, 0.004868272691965103, -0.0037436673883348703, 0.06908474862575531, -0.005848808214068413, -0.019404280930757523, -0.00688095111399889, 0.03192761167883873, -0.06540343910455704, -0.007603450678288937, 0.01421776507049799, -0.04696248844265938, 0.04445094242691994, -0.03959987312555313, 0.028521541506052017, -0.02220826968550682, 0.017976485192775726, -0.01580038294196129, -0.0719747468829155, 0.02681850641965866, -0.02766142226755619, 0.03220285102725029, -0.013994134031236172, 0.03311457484960556, 0.022896364331245422, 0.06433688849210739, 0.03206523135304451, -0.01580038294196129, 0.04338439553976059, 0.022191066294908524, -0.04479499161243439, -0.017296990379691124, 0.00765075720846653, -0.030000945553183556, 0.029949339106678963, 0.0012471723603084683, -0.010089194402098656, -0.08463569730520248, -0.03763880208134651, 0.02514987625181675, -0.0656786784529686, -0.09296164661645889, -0.06733010709285736, 0.06550665199756622, 0.01830332912504673, -0.021330947056412697, -0.0046102371998131275, -0.007384120486676693, -0.042799513787031174, -0.04107927531003952, 0.033217791467905045, 0.015894996002316475, 0.0705985575914383, -0.06698605418205261, -0.05632058531045914, 0.01978273317217827, 0.06378641724586487, -0.0035544412676244974, 0.04658403620123863, 0.01242871768772602, -0.006201457232236862, 0.0003370590857230127, 0.014862854033708572, -0.03481760993599892, -0.0035608920734375715, 0.050471775233745575, 0.006111144553869963, -0.023033984005451202, -0.03197921812534332, -0.045379869639873505, -0.042661894112825394, -0.0419049896299839, -0.011018122546374798, 0.01690993644297123, -0.04445094242691994, -0.026457255706191063, -0.014338181354105473, 0.038326896727085114, -0.007035772316157818, 0.019954757764935493, -0.002784634940326214, -0.0016159482765942812, -0.014957467094063759, -0.03087826818227768, 0.003360914532095194, -0.07651617377996445, -0.0021847018506377935, 0.017589431256055832, -0.01710776425898075, 0.03736356273293495, -0.008222736418247223, 0.018905412405729294, -0.06395843625068665, 0.025029459968209267, -0.0011740622576326132, 0.005401546601206064, -0.05504760891199112, -0.006222960073500872, -0.000931616232264787, -0.025098267942667007, -0.009624729864299297, 0.007181992754340172, 0.013220027089118958, -0.027678625658154488, -0.0370195172727108, 0.036090586334466934, 0.06210058182477951, 0.06110284477472305, -0.002619061851873994, 0.0029975143261253834, 0.0021395457442849874, 0.043281182646751404, 0.01138797402381897, -0.012678151950240135, 0.024152137339115143, 0.01281577069312334, -0.00008366000110981986, 0.02060844749212265, 0.024702614173293114, -0.06351117789745331, 0.007237900048494339, 0.017021752893924713, 0.030224576592445374, 0.02597559057176113, -0.03849891945719719, 0.03863653913140297, -0.031824398785829544, 0.011379372328519821, 0.04500141739845276, -0.02423815056681633, 0.006549805402755737, -0.006167052313685417, -0.027214160189032555, -0.041113682091236115, -0.007349715568125248, 0.008859224617481232, -0.042730703949928284, -0.045861538499593735, 0.07493355870246887, 0.018337734043598175, 0.031342729926109314, 0.005440251901745796, -0.0887642651796341, 0.005392945371568203, -0.0012149178655818105, 0.021348150447010994, 0.006919656414538622, 0.012205086648464203, 0.04868272691965103, 0.07424546033143997, 0.032443683594465256, 0.014656425453722477, 0.019180649891495705, -0.020918091759085655, -0.010381634347140789, -0.0014729535905644298, -0.010914908722043037, -0.026285232976078987, 0.010476247407495975, -0.09681498259305954, -0.021416960284113884, -0.024823030456900597, 0.05910736694931984, -0.014071544632315636, 0.009237676858901978, 0.057318322360515594, -0.006149849854409695, -0.016049817204475403, -0.03275332599878311, -0.008222736418247223, 0.022122256457805634, -0.0398407056927681, 0.056974273175001144, -0.03743237257003784, -0.010080592706799507, 0.02576916106045246, -0.039152611047029495, -0.04981808364391327, -0.019576305523514748, -0.02926124446094036, 0.005268228240311146, -0.022259876132011414, -0.04479499161243439, -0.050609394907951355, -0.011293360963463783, -0.004390907008200884, -0.06485296040773392, 0.0003660880902316421, 0.023137196898460388, 0.012678151950240135, -0.022122256457805634, -0.004666144959628582, 0.01345225889235735, 0.002352425130084157, -0.022535113617777824, 0.05714629590511322, -0.039359040558338165, 0.05415308475494385, -0.0293472558259964, 0.00946990866214037, -0.04276511073112488, 0.011929849162697792, -0.05429070442914963, 0.015464937314391136, -0.06997927278280258, -0.052639275789260864, 0.0032727522775530815, -0.009048450738191605, 0.0036469039041548967, -0.004328547976911068, 0.029674101620912552, 0.009753747843205929, 0.0425930880010128, -0.06898153573274612, -0.003728615352883935, -0.01605841889977455, 0.026302434504032135, -0.004696249030530453, -0.04001272842288017, -0.038189277052879333, -0.019266663119196892, 0.005504760891199112, -0.0026642181910574436, 0.036709874868392944, 0.05835046246647835, 0.0342155285179615, 0.01935267448425293, 0.07775474339723587, -0.04658403620123863, 0.04637761041522026, -0.01292758621275425, 0.05769677460193634, 0.055494870990514755, 0.012678151950240135, 0.03653784841299057, 0.024186542257666588, 0.015757378190755844, 0.00419307965785265, 0.013632884249091148, 0.007452929858118296, -0.020918091759085655, 0.038120467215776443, -0.013331842608749866, -0.023928506299853325, -0.04011594504117966, 0.03708832710981369, -0.047409750521183014, -0.007181992754340172, -0.00140199379529804, -0.04706570506095886, -0.007272304967045784, -0.025459518656134605, 0.016608895733952522, -0.029089219868183136, 0.03836129978299141, -0.01614443026483059, -0.018200114369392395, -0.042868323624134064, -0.011861039325594902, -0.015912199392914772, 0.041526537388563156, 0.023085590451955795, -0.00026596488896757364, 0.05260486900806427, -0.018698984757065773, -0.011430979706346989, 0.01281577069312334, 0.03791404142975807, 0.020711662247776985, 0.021055709570646286, -0.006399284582585096, 0.003216844517737627, -0.021330947056412697, -0.06578189134597778, -0.04114808514714241, -0.047684989869594574, 0.034404754638671875, 0.013779104687273502, 0.00998597964644432, 0.055426061153411865, -0.02738618478178978, 0.006889552343636751, 0.03815487399697304, -0.07651617377996445, -0.019576305523514748, -0.022397495806217194, -0.09330569207668304, 0.0014482251135632396, -0.06512819975614548, 0.06385522335767746, -0.04637761041522026, 0.021761007606983185, -0.07417665421962738, 0.03101588599383831, 0.03388868272304535, 0.0014643523609265685, -0.023309221491217613, 0.024186542257666588, -0.01985154300928116, -0.004640341270714998, -0.001299854600802064, -0.012351307086646557, 0.07692903280258179, -0.019232258200645447, 0.015224103815853596, -0.0072465012781322, -0.030964279547333717, 0.06093082204461098, 0.05109106004238129, -0.10527855157852173, 0.004276941064745188, -0.01288458053022623, 0.07802998274564743, 0.020574042573571205, -0.03486922010779381, -0.031549159437417984, 0.0006010080687701702, 0.00450702290982008, -0.023808090016245842, 0.03399189934134483, -0.09812235832214355, -0.0377420149743557, 0.0016180985840037465, -0.08725045621395111, -0.05181356146931648, -0.04785701259970665, -0.022328685969114304, -0.00623586168512702, 0.04988689348101616, -0.03275332599878311, 0.05945141613483429, 0.018544163554906845, 0.00025588535936549306, -0.05057498812675476, -0.025304697453975677, 0.027833446860313416, 0.0030039651319384575, -0.03567773103713989, -0.021399756893515587, -0.0038705349434167147, -0.012523330748081207, -0.06997927278280258, 0.03338981419801712, -0.07789236307144165, 0.009753747843205929, 0.01935267448425293, -0.003199642291292548, 0.048097848892211914, -0.03540249168872833, -0.07238760590553284, -0.045655108988285065, -0.030276184901595116, 0.015946604311466217, 0.05140070244669914, 0.04617118090391159, 0.018698984757065773, 0.04176737368106842, -0.04906117916107178, -0.022672733291983604, 0.022466305643320084, -0.004266189411282539, -0.033217791467905045, -0.021468566730618477, -0.0074400282464921474, 0.01236850954592228, 0.02501225657761097, -0.01281577069312334, -0.022449102252721786, 0.06598831713199615, 0.0012697505299001932, -0.00942690297961235, 0.007431427016854286, -0.013443658128380775, 0.052501656115055084, -0.07383260130882263, 0.05511641874909401, -0.009323688223958015, -0.017451811581850052, -0.0065240017138421535, -0.011654610745608807, -0.06117165461182594, 0.005018793512135744, -0.08208974450826645, -0.013030800968408585, -0.0496116578578949, 0.013306038454174995, -0.01628204993903637, 0.023911304771900177, -0.015757378190755844, 0.006012231111526489, -0.043418802320957184, 0.048923559486866, 0.04727213457226753, -0.026044398546218872, 0.006622915156185627, 0.030689042061567307, 0.0005821929662488401, -0.011886842548847198, -0.020711662247776985, 0.09791593253612518, 0.01515529491007328, 0.006205757614225149, 0.002511547179892659, 0.05057498812675476, 0.027214160189032555, -0.005044597201049328, -0.04520784690976143, -0.014062943868339062, -0.011714818887412548, -0.013297437690198421, 0.014699431136250496, -0.012420116923749447, -0.0033845677971839905, 0.011706218123435974, -0.006016531493514776, -0.016677705571055412, -0.01023541484028101, -0.00592191843315959, -0.006425087805837393, 0.0537746325135231, 0.024840233847498894, -0.06891272217035294, -0.00022107742552179843, 0.0019976261537522078, 0.03197921812534332, -0.048785943537950516, 0.02193303033709526, -0.007156189065426588, 0.006425087805837393, 0.009908569045364857, 0.00014810172433499247, 0.029175231233239174, -0.01605841889977455, -0.0141489552333951, -0.023980114609003067, -0.0663323700428009, 0.04304034635424614, 0.040769632905721664, -0.08291546255350113, 0.003453377168625593, 0.003584545338526368, 0.014123152010142803, -0.00333511084318161, 0.00366840697824955, -0.04699689522385597, 0.0004908053088001907, -0.0530865378677845, 0.01670350879430771, 0.016221841797232628, -0.02499505504965782, -0.004175877198576927, 0.0001982305257115513, -0.0053413379937410355, 0.06819022446870804, 0.05016213282942772, 0.034404754638671875, -0.01837213896214962, 0.014862854033708572, -0.0030749249272048473, 0.06502498686313629, -0.02514987625181675, -0.029502077028155327, 0.03581535071134567, -0.0014686529757454991, 0.0030835261568427086, -0.02339523285627365, -0.04665284603834152, -0.025683149695396423, 0.010717080906033516, 0.0482010617852211, -0.03197921812534332, 0.021399756893515587, -0.002023429609835148, -0.11848997324705124, 0.011603003367781639, -0.01578318141400814, -0.04981808364391327, 0.010914908722043037, -0.009745147079229355, 0.02453058958053589, 0.022122256457805634, -0.043005943298339844, 0.043212372809648514, -0.00782278086990118, 0.01662609726190567, 0.07280045747756958, -0.011301961727440357, 0.021502971649169922, 0.045448679476976395, -0.03024177998304367, 0.06468094140291214, -0.053189750760793686, 0.02926124446094036, -0.05845367908477783, 0.04149213433265686, 0.04510463401675224, -0.03966868296265602, -0.0007359391893260181, 0.002090088790282607, 0.0018299028743058443, -0.0053714425303041935, -0.05140070244669914, -0.02590678073465824, 0.028057077899575233, -0.0461023710668087, 0.061859749257564545, 0.043074753135442734, 0.02360166236758232, 0.010183807462453842 ]
730,338
mmengine.fileio.io
remove
Remove a file. Args: filepath (str, Path): Path to be removed. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Raises: FileNotFoundError: If filepath does not exist, an FileNotFoundError will be raised. IsADirectoryError: If filepath is a directory, an IsADirectoryError will be raised. Examples: >>> filepath = '/path/of/file' >>> remove(filepath)
def remove( filepath: Union[str, Path], backend_args: Optional[dict] = None, ) -> None: """Remove a file. Args: filepath (str, Path): Path to be removed. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Raises: FileNotFoundError: If filepath does not exist, an FileNotFoundError will be raised. IsADirectoryError: If filepath is a directory, an IsADirectoryError will be raised. Examples: >>> filepath = '/path/of/file' >>> remove(filepath) """ backend = get_file_backend( filepath, backend_args=backend_args, enable_singleton=True) backend.remove(filepath)
(filepath: Union[str, pathlib.Path], backend_args: Optional[dict] = None) -> NoneType
[ -0.01512602623552084, 0.011671483516693115, -0.02000568062067032, -0.003298952942714095, -0.016298586502671242, -0.0005315982270985842, -0.019572734832763672, 0.06032371148467064, 0.015865640714764595, -0.03286776319146156, 0.04816516488790512, 0.025507694110274315, -0.03117206133902073, -0.007333010900765657, -0.07280696928501129, 0.004960831720381975, 0.01578446477651596, -0.022946100682020187, -0.002586397109553218, -0.04084117338061333, -0.013430324383080006, -0.008284589275717735, 0.04170706495642662, 0.051989514380693436, 0.013962485827505589, 0.0009166263625957072, -0.025110827758908272, 0.007346540689468384, -0.0031005197670310736, -0.005389267113059759, 0.03286776319146156, 0.001323640113696456, -0.04935576394200325, -0.009416560642421246, -0.003993469290435314, 0.05368521809577942, -0.01112128235399723, 0.027708498761057854, -0.09373265504837036, -0.05213383212685585, -0.001966293202713132, -0.0074322279542684555, 0.08622827380895615, 0.011824818328022957, 0.013177772983908653, 0.013439344242215157, -0.00892498716711998, -0.010679317638278008, -0.022098250687122345, -0.02242295816540718, 0.038784682750701904, 0.04473768174648285, -0.04289766401052475, 0.04163490608334541, 0.012519335374236107, -0.039903126657009125, 0.023848069831728935, 0.034184638410806656, -0.0078471340239048, 0.0131507134065032, 0.07259049266576767, -0.01475621946156025, -0.02538141794502735, -0.01665937528014183, 0.0023180614225566387, -0.03606073558330536, -0.0022988945711404085, -0.014458569698035717, 0.01393542718142271, -0.05141225457191467, -0.07309559732675552, 0.0244614090770483, 0.02260335348546505, -0.009407540783286095, 0.03200187534093857, 0.008329687640070915, 0.03459954634308815, 0.0544428713619709, -0.0058673107996582985, -0.043366689234972, 0.03470778092741966, -0.014747199602425098, -0.028375957161188126, 0.025056710466742516, 0.04347492381930351, -0.029819108545780182, 0.045892201364040375, -0.022368840873241425, -0.03983096778392792, 0.028105366975069046, 0.00747281638905406, -0.03470778092741966, 0.02065509930253029, -0.004124254919588566, 0.048489876091480255, -0.03100970759987831, 0.0011201332090422511, 0.0012638845946639776, 0.0163887832313776, -0.03936194255948067, 0.016893886029720306, -0.04542317986488342, 0.02408258244395256, -0.01102206576615572, 0.0010378285078331828, 0.011960114352405071, 0.05736525356769562, -0.007116538472473621, 0.022747667506337166, -0.012609532102942467, -0.04094941169023514, -0.03541131690144539, 0.00987656507641077, 0.026986924931406975, -0.004527886398136616, 0.014720140025019646, -0.018039388582110405, -0.041201960295438766, 0.05563347041606903, -0.04686632752418518, -0.04549533501267433, -0.06054018437862396, -0.03791879117488861, -0.012528355233371258, 0.0378466360270977, -0.006760260555893183, 0.0424286387860775, -0.03422071784734726, -0.05552523583173752, -0.004476022906601429, -0.08658906072378159, -0.029295966029167175, -0.0018614393193274736, -0.005713975988328457, 0.006277706939727068, 0.015595050528645515, 0.08175450563430786, -0.05083499476313591, 0.026175152510404587, 0.06598807871341705, 0.027636341750621796, 0.02686064876616001, 0.002071147318929434, 0.024407291784882545, 0.054839737713336945, -0.027383791282773018, -0.03128029778599739, -0.014638963155448437, 0.0008980232523754239, 0.019608814269304276, -0.0747552216053009, 0.043222371488809586, 0.012663650326430798, 0.023018259555101395, 0.04668593406677246, -0.012627571821212769, -0.027149278670549393, 0.04495415464043617, -0.018174683675169945, 0.032326582819223404, 0.002338355639949441, 0.06577160954475403, 0.03429287672042847, -0.07071439921855927, -0.0033778753131628036, -0.005777114070951939, 0.011509129777550697, 0.07280696928501129, -0.028844980522990227, 0.030143816024065018, -0.04354708269238472, -0.029656752943992615, 0.01004793867468834, 0.02960263565182686, -0.0016844278434291482, -0.04398002848029137, 0.071941077709198, 0.07771368324756622, -0.004031802993267775, -0.023920228704810143, 0.04278942942619324, -0.0364576019346714, -0.008505571633577347, -0.025146907195448875, 0.03672819212079048, 0.005601230077445507, -0.021611185744404793, 0.04394394904375076, 0.0746830627322197, 0.0036755253095179796, 0.0011725601507350802, 0.0026202211156487465, 0.008068116381764412, -0.007549483794718981, 0.03849605470895767, -0.05422639846801758, 0.06292138248682022, -0.05509229004383087, -0.059746451675891876, -0.029819108545780182, 0.009096361696720123, -0.012663650326430798, 0.01180677954107523, -0.025525733828544617, -0.020059799775481224, -0.015162105672061443, 0.01097696740180254, 0.010967947542667389, -0.03438307344913483, 0.04751574620604515, 0.0007542719249613583, -0.050329890102148056, 0.024208858609199524, 0.006255157757550478, 0.0341666005551815, -0.02601279690861702, -0.042681191116571426, 0.05563347041606903, -0.03119010105729103, 0.0299814622849226, 0.04863419011235237, 0.08341412991285324, -0.007702818606048822, 0.00604319479316473, 0.03402228653430939, -0.002253795973956585, -0.02251315675675869, 0.09236166626214981, 0.02114216238260269, -0.04372747614979744, 0.05126794055104256, -0.007725367788225412, 0.05967429280281067, -0.047732219099998474, 0.04084117338061333, -0.0016291822539642453, 0.011824818328022957, -0.03293992206454277, -0.051520492881536484, 0.012068350799381733, -0.009434599429368973, -0.03681838884949684, 0.012835023924708366, 0.043583162128925323, -0.054947976022958755, 0.02316257357597351, 0.02556181326508522, -0.013249929994344711, 0.008365766145288944, -0.07147205621004105, 0.0295124389231205, 0.048742424696683884, 0.00008716688171261922, 0.02731163240969181, 0.032506976276636124, 0.012095409445464611, -0.03440111130475998, -0.017741737887263298, -0.036493681371212006, 0.05588602274656296, 0.005948488134890795, -0.015017790719866753, 0.03589837998151779, -0.027257515117526054, 0.05473150312900543, -0.0023248260840773582, -0.018760962411761284, 0.03936194255948067, 0.056499361991882324, 0.007644190452992916, -0.005253971554338932, -0.04567572847008705, 0.0728791281580925, -0.004218961577862501, 0.0010175341740250587, -0.014287195168435574, -0.0544067919254303, 0.007675759494304657, 0.04567572847008705, 0.07168852537870407, -0.030703037977218628, -0.04740751162171364, -0.001708104507997632, -0.037233296781778336, 0.06310177594423294, 0.03369757533073425, 0.03450934961438179, 0.011878936551511288, 0.026319466531276703, 0.030757155269384384, 0.023379046469926834, -0.07212147116661072, -0.03932586684823036, 0.038135264068841934, 0.018977435305714607, -0.02821360155940056, -0.07691995054483414, -0.010778534226119518, 0.07742505520582199, -0.035952500998973846, 0.020691176876425743, 0.03755800426006317, 0.021466871723532677, 0.005858290940523148, 0.01881508156657219, -0.0322544239461422, 0.016578197479248047, -0.013556599617004395, -0.0175162460654974, 0.029728911817073822, 0.02139471471309662, -0.02381199225783348, -0.06858575344085693, -0.007093989290297031, 0.07158029079437256, 0.052927564829587936, 0.001183834858238697, -0.03227246552705765, -0.028466153889894485, -0.040444307029247284, -0.014702101238071918, -0.03189363703131676, -0.05148441344499588, 0.046649858355522156, -0.01504484936594963, -0.0017103594727814198, -0.07951761782169342, 0.006503199227154255, 0.021178241819143295, -0.010751474648714066, 0.05148441344499588, 0.054587189108133316, 0.022928060963749886, -0.07439443469047546, -0.008559689857065678, -0.025020631030201912, 0.05545307695865631, 0.0017351636197417974, -0.020438626408576965, 0.027510065585374832, -0.025056710466742516, -0.02704104222357273, 0.027365751564502716, 0.012284822762012482, -0.0497887097299099, -0.004929262679070234, -0.007811055053025484, -0.021827658638358116, 0.10838063806295395, -0.021809618920087814, 0.06061234325170517, 0.06151431053876877, -0.03144265338778496, -0.018436254933476448, -0.027528105303645134, -0.006877516396343708, -0.016948005184531212, 0.08507375419139862, -0.010120096616446972, -0.039794888347387314, 0.02870066650211811, -0.05599426105618477, -0.020366469398140907, -0.04250079765915871, 0.014909554272890091, -0.03763016313314438, 0.01679467037320137, 0.03036028891801834, -0.04437689483165741, 0.02222452498972416, 0.049680475145578384, -0.03845997527241707, 0.04181529954075813, 0.04628906771540642, -0.016957024112343788, 0.042392559349536896, 0.022657470777630806, -0.02251315675675869, -0.007373599801212549, 0.0029156161472201347, 0.0004374551645014435, 0.008410864509642124, -0.004338472615927458, 0.005529072135686874, -0.03192971646785736, 0.08803221583366394, 0.01005695853382349, -0.010516962967813015, -0.026716332882642746, -0.02065509930253029, 0.001398052554577589, -0.0424647182226181, 0.021665304899215698, -0.05112362653017044, 0.02195393480360508, -0.027528105303645134, -0.010616179555654526, 0.01277188677340746, -0.026048876345157623, 0.004216706845909357, -0.03189363703131676, 0.030215974897146225, -0.05321619287133217, 0.008244000375270844, -0.021286478266119957, 0.05783427879214287, 0.00973225012421608, 0.07226578891277313, -0.018337037414312363, -0.02316257357597351, 0.013385226018726826, -0.005145735573023558, -0.006422021891921759, -0.01185187790542841, 0.050690680742263794, 0.06577160954475403, 0.020600980147719383, -0.06703436374664307, 0.021611185744404793, -0.03396816551685333, -0.0022109525743871927, 0.03799095004796982, -0.05083499476313591, -0.0489228181540966, 0.024750040844082832, 0.014233076944947243, 0.013493462465703487, -0.025976717472076416, -0.013854249380528927, 0.030324211344122887, -0.03656584024429321, -0.08002272248268127, 0.007441247347742319, -0.014287195168435574, -0.026355545967817307, -0.004527886398136616, -0.026590056717395782, -0.030793234705924988, 0.011482070200145245, -0.021070005372166634, -0.03817134350538254, -0.022819826379418373, 0.003842389676719904, -0.020438626408576965, -0.06422021985054016, -0.019446460530161858, -0.013114634901285172, 0.013493462465703487, 0.01926606521010399, -0.012375020422041416, -0.004038568120449781, -0.01641584374010563, 0.06746730953454971, -0.017795855179429054, 0.002213207306340337, -0.062235888093709946, -0.03932586684823036, -0.012573453597724438, -0.009741269052028656, -0.023216692730784416, -0.008961065672338009, 0.08875378966331482, 0.07850741595029831, -0.10549434274435043, 0.01679467037320137, 0.055200524628162384, 0.0664210245013237, -0.023577479645609856, -0.05675191432237625, 0.0005425909766927361, 0.03606073558330536, -0.03293992206454277, -0.017877032980322838, 0.010426766239106655, -0.0004667691537179053, 0.053107958287000656, -0.026716332882642746, -0.009470678865909576, 0.014178958721458912, 0.009317344054579735, 0.027455948293209076, 0.001877223839983344, -0.03155088797211647, 0.07756936550140381, 0.029133610427379608, 0.018382135778665543, 0.0244614090770483, -0.01314169354736805, 0.03936194255948067, -0.037413690239191055, -0.02040254697203636, -0.02886302024126053, 0.018355077132582664, -0.02859243005514145, 0.0327775664627552, -0.03885684162378311, -0.02444337122142315, 0.0180033091455698, -0.0020959514658898115, 0.026337506249547005, 0.016163291409611702, -0.04805693030357361, -0.012356980703771114, 0.06061234325170517, 0.041201960295438766, 0.01827389933168888, 0.008068116381764412, 0.05985468998551369, -0.05758172646164894, -0.0060341753996908665, -0.01899547502398491, 0.0673951506614685, 0.027636341750621796, -0.0009459403809159994, 0.053757376968860626, 0.03586230427026749, -0.037052903324365616, -0.029169689863920212, -0.011563248001039028, 0.01314169354736805, -0.0008833662723191082, -0.07785800099372864, -0.02547161467373371, 0.06245236098766327, 0.023451203480362892, -0.016785649582743645, -0.023397086188197136, -0.01098598726093769, 0.03562778979539871, 0.052819326519966125, 0.03378777205944061, 0.03151480853557587, -0.04141843318939209, -0.03487013652920723, -0.034924253821372986, -0.06017939746379852, 0.00791478157043457, -0.009087341837584972, 0.08146587759256363, -0.04740751162171364, -0.01485543604940176, 0.07158029079437256, -0.011473050341010094, 0.02601279690861702, 0.006155941169708967, -0.05437071621417999, -0.043041978031396866, 0.006688103079795837, 0.005253971554338932, 0.04975263029336929, -0.06238020211458206, -0.04852595180273056, 0.02489435486495495, 0.037594083696603775, 0.027257515117526054, 0.04668593406677246, 0.002976499032229185, 0.010399706661701202, -0.013304048217833042, -0.00544338533654809, -0.030215974897146225, -0.020997846499085426, 0.03799095004796982, 0.012663650326430798, 0.02859243005514145, 0.0313524566590786, 0.060395870357751846, -0.004570730030536652, 0.03643956407904625, -0.0424286387860775, -0.016957024112343788, -0.05433463677763939, 0.047371432185173035, -0.008356746286153793, -0.03892900049686432, 0.022531194612383842, 0.06118960306048393, 0.0036056225653737783, -0.01475621946156025, 0.05321619287133217, -0.005362208001315594, 0.001196236931718886, 0.020438626408576965, 0.002775810891762376, -0.010327549651265144, 0.029458319768309593, 0.005781624000519514, -0.009768328629434109, -0.1060715988278389, -0.0035469946451485157, 0.012952280230820179, -0.015207204036414623, 0.08319765329360962, 0.0017757522873580456, -0.032344620674848557, 0.0024511017836630344, 0.003885233076289296, -0.01494563277810812, 0.03831566125154495, 0.05952997878193855, -0.025579851120710373, -0.09207303822040558, 0.05758172646164894, 0.0019178123911842704, -0.00457523949444294, 0.040913332253694534, -0.037702322006225586, -0.07136381417512894, -0.03470778092741966, -0.02574220672249794, 0.0042302366346120834, 0.017678599804639816, 0.016271527856588364, 0.031767360866069794, 0.05516444891691208, -0.0011471923207864165, 0.03256109356880188, -0.03950626030564308, -0.03227246552705765, -0.008762632496654987, -0.031244220212101936, -0.024750040844082832, 0.022549234330654144, 0.021088045090436935, 0.008023018017411232, 0.0008213558467105031, -0.020149996504187584, 0.009461659006774426, -0.04527886211872101, 0.05888056010007858, 0.016893886029720306, -0.09387697279453278, -0.029187729582190514, 0.010589120909571648, -0.017904091626405716, -0.08413570374250412, -0.02787085436284542, -0.017976250499486923, 0.0221523679792881, -0.04235648363828659, 0.06118960306048393, -0.0544067919254303, -0.03849605470895767, 0.0424647182226181, -0.04001136124134064, -0.04711887985467911, 0.0056192693300545216, -0.05931350588798523, 0.05545307695865631, -0.0034838567953556776, 0.033625420182943344, -0.014539746567606926, -0.04318629577755928, -0.06811672449111938, 0.01564916968345642, 0.012203645892441273, 0.06072057783603668, 0.002762281335890293, -0.004947301931679249, 0.023487282916903496, 0.03856820985674858, -0.01782291568815708, 0.03165912628173828, 0.09351618587970734, -0.03936194255948067, -0.06501395255327225, 0.011662464588880539, -0.019049594178795815, 0.01272678840905428, -0.024425331503152847, -0.027365751564502716, 0.005835741758346558, -0.042212165892124176, -0.005736525170505047, 0.04827340319752693, 0.04134627804160118, -0.0341666005551815, -0.023324929177761078, -0.0331924743950367, 0.0175162460654974, -0.024136701598763466, 0.03016185574233532, -0.0046496521681547165, -0.0099126435816288, 0.00608829315751791, -0.032434817403554916, 0.02527318149805069, 0.040444307029247284, -0.010300490073859692, -0.03499641269445419, -0.026048876345157623, 0.012014232575893402, -0.003912292420864105, -0.06898261606693268, -0.0038581739645451307, -0.011554228141903877, 0.05025773495435715, 0.007143597584217787, 0.023559439927339554, 0.020781375467777252, 0.03627720847725868, 0.030468525364995003, 0.028538310900330544, -0.05289148539304733, 0.040083520114421844, -0.00904675293713808, -0.015513873659074306, -0.019356263801455498, 0.07168852537870407, -0.06108136847615242, -0.001292071188800037, -0.0262833870947361, 0.02832183800637722, 0.015162105672061443, -0.008419884368777275, 0.029115572571754456, -0.05653544142842293, -0.01641584374010563, 0.01281698513776064, -0.020889611914753914, -0.0244614090770483, -0.0015446225879713893, 0.04033607244491577, -0.03155088797211647, -0.03799095004796982, -0.02177354134619236, 0.0180033091455698, -0.02316257357597351, -0.04805693030357361, 0.051340095698833466, -0.004324943292886019, -0.05191735923290253, -0.029764989390969276, -0.0005406179116107523, -0.0156762283295393, -0.027275554835796356, 0.017254674807190895, -0.01287110336124897, 0.06974027305841446, -0.007630661129951477, -0.0378466360270977, 0.01717349700629711, 0.006128882057964802, -0.0262833870947361, 0.06465316563844681, 0.02776261791586876, 0.012591492384672165, 0.022098250687122345, 0.021827658638358116, -0.007211245130747557, -0.03957841545343399, -0.014702101238071918, -0.018797041848301888, 0.03957841545343399, -0.036295246332883835, -0.027654381468892097, -0.016352705657482147, -0.012456197291612625, -0.02280178666114807, -0.052350305020809174, -0.014720140025019646, 0.036764271557331085, 0.01379111222922802, -0.04441297426819801, 0.05866408720612526, 0.01112128235399723, -0.059457823634147644, 0.014242096804082394 ]
730,339
mmengine.utils.misc
requires_executable
A decorator to check if some executable files are installed. Example: >>> @requires_executable('ffmpeg') >>> func(arg1, args): >>> print(1) 1
def requires_executable(prerequisites): """A decorator to check if some executable files are installed. Example: >>> @requires_executable('ffmpeg') >>> func(arg1, args): >>> print(1) 1 """ return check_prerequisites(prerequisites, checker=_check_executable)
(prerequisites)
[ 0.04549675062298775, -0.01599467545747757, -0.00875856727361679, -0.04351401329040527, 0.04698380455374718, -0.012436368502676487, 0.023562714457511902, 0.059234291315078735, -0.01862357184290886, 0.019331693649291992, 0.10026988387107849, 0.051161713898181915, 0.08709883689880371, -0.03386586904525757, -0.008068148978054523, -0.036751460283994675, 0.06337679922580719, 0.01821640320122242, 0.025297610089182854, -0.0023744169156998396, -0.021491460502147675, 0.08051331341266632, 0.0062934220768511295, -0.025598561391234398, -0.007306919898837805, 0.057499393820762634, 0.057534802705049515, 0.02586410567164421, -0.006576670333743095, 0.01697719283401966, 0.048187609761953354, 0.004304045811295509, -0.024270834401249886, 0.020411577075719833, 0.0107191763818264, 0.06525331735610962, 0.03933610022068024, 0.059446725994348526, -0.06369545310735703, -0.03027215600013733, -0.010975869372487068, 0.010462482459843159, 0.03919447585940361, 0.014489918015897274, -0.014985603280365467, -0.01071032416075468, -0.03306923434138298, -0.00037314638029783964, -0.008608091622591019, -0.025049766525626183, 0.05233011394739151, 0.003381276037544012, 0.11315767467021942, -0.010312006808817387, -0.005545469466596842, 0.050949279218912125, 0.050736844539642334, 0.049037352204322815, 0.03735336288809776, -0.019579535350203514, 0.01697719283401966, 0.027439674362540245, 0.0142951849848032, -0.01723388582468033, -0.0031090921256691217, -0.036751460283994675, -0.008227476850152016, -0.07916788756847382, -0.010267749428749084, 0.02223498746752739, -0.0678025484085083, 0.027439674362540245, 0.027280347421765327, -0.05261336266994476, 0.03774283081293106, -0.04804598540067673, -0.013144489377737045, -0.0046381899155676365, 0.018800603225827217, -0.005417122971266508, 0.031458258628845215, -0.02097807452082634, -0.06475763022899628, -0.0002156171976821497, 0.028731994330883026, -0.010728027671575546, 0.01346314325928688, 0.0036977173294872046, 0.030661623924970627, 0.04135424643754959, 0.006457175128161907, 0.031458258628845215, 0.004421328194439411, 0.02373974397778511, 0.008718735538423061, -0.019331693649291992, 0.0343792550265789, 0.01723388582468033, -0.0529320165514946, 0.0036623114719986916, -0.05873860791325569, 0.05551665648818016, 0.07084746658802032, 0.045673780143260956, 0.03616726025938988, 0.013888015411794186, -0.031652990728616714, -0.022164175286889076, 0.01663198322057724, -0.02223498746752739, -0.030219048261642456, -0.09191405773162842, 0.009125904180109501, -0.03898204118013382, 0.0016729349736124277, -0.026855474337935448, -0.038698792457580566, -0.036751460283994675, -0.0024208873510360718, 0.011533514596521854, 0.043549418449401855, 0.060296472162008286, 0.03494575247168541, -0.00904181506484747, 0.024022992700338364, -0.024536380544304848, 0.03290990740060806, 0.027368862181901932, 0.018030522391200066, -0.07045800238847733, 0.0019097127951681614, 0.02267756313085556, -0.04379726201295853, 0.026430603116750717, -0.010400521568953991, 0.0013830481329932809, 0.037176333367824554, 0.008802824653685093, 0.0006483729230239987, -0.0788138285279274, -0.01624251715838909, 0.021509164944291115, -0.011515812017023563, 0.005067488178610802, 0.007992911152541637, -0.00560743035748601, 0.004244298208504915, -0.007683109026402235, 0.06366004794836044, -0.01655231975018978, 0.05420663580298424, -0.06114621460437775, -0.03220178559422493, -0.024943549185991287, -0.03344099596142769, -0.016233665868639946, -0.00391679210588336, -0.01821640320122242, 0.05098468437790871, 0.03266206383705139, 0.02779373526573181, 0.06734227389097214, -0.008678903803229332, 0.012038051150739193, -0.04110640287399292, 0.03113960474729538, -0.04638190194964409, -0.00746182119473815, 0.03597252815961838, 0.0044611599296331406, 0.023403387516736984, -0.006505858153104782, 0.012418665923178196, -0.0022604537662118673, 0.0330338291823864, -0.018269512802362442, 0.028076982125639915, 0.020199140533804893, -0.027067910879850388, 0.017933154478669167, 0.015180336311459541, 0.02837793342769146, -0.023456495255231857, -0.009497667662799358, 0.029599443078041077, 0.08001763373613358, -0.01865897886455059, 0.01769416406750679, 0.036751460283994675, -0.035706982016563416, -0.06019025295972824, 0.05487934872508049, 0.026536820456385612, 0.048860322684049606, -0.03267976641654968, -0.07265317440032959, 0.012595695443451405, 0.028554964810609818, -0.02290770225226879, -0.027917655184864998, -0.009152458980679512, 0.005443677306175232, 0.01995129883289337, 0.047762736678123474, -0.045425936579704285, -0.013179895468056202, -0.00867447815835476, 0.06380166858434677, -0.07052881270647049, -0.005921658594161272, 0.019791971892118454, -0.07212208956480026, -0.05916347727179527, 0.0550563782453537, 0.016198258846998215, 0.0209603700786829, 0.07074125111103058, -0.025297610089182854, -0.009294083341956139, 0.014109303243458271, -0.025757888332009315, 0.03784904628992081, -0.00848859641700983, 0.0479043610394001, 0.05629558861255646, -0.012259338051080704, 0.0020103987772017717, 0.03446777164936066, 0.0015600782353430986, -0.026802366599440575, -0.015339663252234459, 0.018145591020584106, 0.01841113716363907, -0.0003742528206203133, -0.019969001412391663, 0.01663198322057724, 0.03841554373502731, 0.03450317680835724, -0.03816770017147064, -0.017295846715569496, -0.006966136861592531, -0.00230360496789217, 0.032750580459833145, -0.015215742401778698, 0.0008508511818945408, -0.01839343272149563, -0.007917673327028751, 0.010179233737289906, -0.04705461487174034, -0.03163528814911842, -0.023633526638150215, 0.07555647194385529, 0.0031378595158457756, -0.07690189778804779, -0.03937150537967682, 0.04029206559062004, 0.019862784072756767, -0.08667396754026413, 0.0394069142639637, 0.03629118204116821, -0.016932934522628784, -0.03183002397418022, 0.07021015882492065, -0.014914791099727154, -0.02630668133497238, -0.035689279437065125, -0.004144718404859304, 0.05300283059477806, -0.04071693494915962, -0.03961934894323349, -0.043336983770132065, 0.024837331846356392, 0.01335692498832941, -0.01910155452787876, 0.007200701627880335, -0.03069702908396721, -0.00896215159446001, -0.019154662266373634, 0.0737861692905426, 0.07569809257984161, 0.011294524185359478, 0.006417343392968178, -0.052648767828941345, 0.02545693702995777, -0.010506739839911461, -0.020677123218774796, -0.021119697019457817, -0.0013697708491235971, -0.02669614739716053, -0.008647923357784748, 0.010515591129660606, 0.0006030089571140707, 0.04620487242937088, -0.025120578706264496, -0.010400521568953991, 0.038238514214754105, 0.015082969330251217, -0.04808139055967331, 0.03117500990629196, -0.0567912757396698, 0.002963042352348566, 0.06996231526136398, -0.02540382742881775, -0.04149586707353592, -0.06734227389097214, 0.0022383250761777163, 0.016561171039938927, -0.04213317856192589, -0.02184552140533924, -0.019544130191206932, 0.022748375311493874, 0.010807691141963005, 0.006222609896212816, 0.007559187710285187, 0.05487934872508049, 0.02779373526573181, 0.03521129861474037, -0.007554762065410614, -0.0004588953743223101, 0.015711426734924316, -0.010391670279204845, 0.059411320835351944, 0.05006412789225578, -0.0030869634356349707, -0.00972780678421259, -0.005664965137839317, 0.021013479679822922, -0.0411418080329895, -0.01177250500768423, -0.0012812557397410274, -0.013507400639355183, -0.0033303797245025635, 0.06256245821714401, 0.03749498724937439, -0.03312234207987785, 0.03069702908396721, 0.009993351995944977, -0.0326443612575531, 0.034025195986032486, 0.010630660690367222, 0.01302941981703043, 0.01177250500768423, -0.012852389365434647, 0.04411591589450836, -0.0674130842089653, -0.05378176271915436, -0.014321739785373211, 0.009382598102092743, 0.022288097068667412, -0.06486385315656662, 0.047798141837120056, 0.05233011394739151, -0.06868769973516464, -0.055870719254016876, -0.0037950840778648853, -0.017331251874566078, 0.0052002607844769955, 0.019614940509200096, 0.0020137180108577013, 0.011515812017023563, 0.004673596005886793, -0.0033702116925269365, -0.05148037150502205, -0.02563396655023098, -0.05424204096198082, -0.026784662157297134, 0.05778264254331589, 0.05148037150502205, 0.0061650751158595085, -0.013011716306209564, 0.025899512693285942, 0.08058413118124008, -0.00598361948505044, -0.03558306023478508, 0.031670693308115005, 0.014445660635828972, 0.020305359736084938, 0.00656781904399395, -0.02099577710032463, 0.004779814276844263, -0.0250143613666296, 0.0052533699199557304, -0.0407523438334465, -0.08334580063819885, -0.061323247849941254, 0.029617145657539368, -0.01597697101533413, 0.00904181506484747, -0.038663387298583984, -0.021296728402376175, 0.01929628662765026, -0.05636640265583992, -0.022571345791220665, -0.03671605512499809, 0.03859257325530052, -0.03622037172317505, 0.01144499983638525, 0.062172990292310715, -0.025970324873924255, -0.00043261743849143386, 0.029971206560730934, -0.025775590911507607, 0.005828717723488808, -0.03545914217829704, 0.004886032547801733, 0.022181877866387367, 0.01027660071849823, -0.009577331133186817, 0.0067802551202476025, 0.009701252914965153, 0.002078997902572155, -0.06252705305814743, -0.04255805164575577, 0.0069794137962162495, -0.03586630895733833, 0.04935600608587265, 0.02604113705456257, -0.0585261695086956, 0.004200040362775326, -0.04932060092687607, 0.013312667608261108, -0.021084291860461235, 0.005921658594161272, 0.0668465867638588, 0.015215742401778698, 0.03622037172317505, 0.029794175177812576, -0.033157747238874435, 0.004100461024791002, -0.009170162491500378, -0.04910816624760628, -0.04347860813140869, -0.042735081166028976, -0.020889557898044586, -0.012533735483884811, -0.0034211077727377415, -0.00030067467014305294, 0.00855940766632557, -0.003498558420687914, 0.021509164944291115, -0.027634408324956894, -0.009798618964850903, 0.0428767055273056, 0.020305359736084938, -0.020393874496221542, 0.03852176293730736, 0.03136974573135376, 0.013994233682751656, -0.0250143613666296, -0.000008570576028432697, -0.028891321271657944, 0.03685767948627472, 0.0034587266854941845, -0.03529981151223183, 0.008408932015299797, -0.0334232933819294, -0.009143607690930367, 0.022394314408302307, -0.01618940755724907, -0.026005730032920837, 0.03643280640244484, 0.05233011394739151, 0.012339001521468163, -0.0979330837726593, -0.0005786673282273114, -0.028289418667554855, 0.012268190272152424, 0.013693282380700111, 0.022836890071630478, 0.08235442638397217, 0.100836381316185, -0.03096257522702217, 0.04213317856192589, -0.016295626759529114, 0.10111962258815765, 0.018535057082772255, 0.017030300572514534, 0.0322548933327198, -0.001742640626616776, 0.006227036006748676, -0.009683549404144287, 0.03714092820882797, -0.008745289407670498, 0.04358482360839844, 0.020057516172528267, -0.03788445517420769, -0.019331693649291992, -0.08200036734342575, -0.012445219792425632, 0.01121486071497202, 0.02138524316251278, -0.003206458641216159, 0.03386586904525757, 0.03455628827214241, 0.0475148931145668, 0.0020015472546219826, 0.0643327608704567, 0.047125428915023804, 0.002169725950807333, -0.01155121810734272, 0.037990670651197433, 0.012268190272152424, 0.048860322684049606, 0.005921658594161272, -0.0521530844271183, -0.045461345463991165, -0.0007396541186608374, -0.0666341483592987, -0.05548125132918358, 0.0209603700786829, 0.011099791154265404, 0.03197164461016655, 0.008966577239334583, 0.027864547446370125, 0.01926088146865368, 0.051834430545568466, -0.0028833786491304636, 0.049462225288152695, 0.00807257555425167, 0.013507400639355183, 0.0022681988775730133, 0.01927858404815197, 0.06532412767410278, -0.04900194704532623, -0.0107191763818264, -0.025917215272784233, 0.003910153638571501, -0.022376611828804016, 0.041637491434812546, 0.018694384023547173, 0.02032306231558323, 0.021491460502147675, -0.02476651966571808, -0.03009512647986412, -0.0027550319209694862, -0.05764101818203926, 0.028696589171886444, 0.008966577239334583, 0.00618720380589366, 0.03770742192864418, 0.038663387298583984, 0.03855716809630394, 0.019437910988926888, -0.04149586707353592, -0.009072795510292053, 0.019172366708517075, 0.029139162972569466, -0.0440451018512249, -0.01906614750623703, -0.01966805011034012, -0.027386564761400223, -0.029404709115624428, -0.03852176293730736, 0.012985162436962128, 0.002250495832413435, 0.017764976248145103, 0.046063248068094254, -0.04411591589450836, -0.02779373526573181, 0.0033082510344684124, -0.0022604537662118673, -0.017357807606458664, -0.00793980248272419, -0.03299842029809952, -0.05615396425127983, -0.06907716393470764, 0.07392779737710953, 0.017012597993016243, 0.007709663361310959, -0.05746398866176605, -0.02439475618302822, 0.02455408312380314, -0.017570242285728455, -0.06397870182991028, -0.04429294541478157, -0.027386564761400223, 0.009223271161317825, -0.04128343239426613, -0.04181452468037605, 0.0073600285686552525, -0.059836193919181824, -0.05406501144170761, -0.04174371063709259, -0.02244742400944233, 0.0021188296377658844, 0.025492342188954353, 0.026820069178938866, 0.06458060443401337, -0.06574899703264236, -0.04386807233095169, -0.011940684169530869, 0.0330338291823864, 0.02435934916138649, -0.05721614509820938, 0.05211767926812172, -0.017950857058167458, 0.023810556158423424, 0.030006611719727516, 0.03411371260881424, -0.002772734733298421, 0.011312226764857769, -0.012250486761331558, 0.023899070918560028, -0.029758770018815994, 0.028094686567783356, -0.02457178570330143, -0.03009512647986412, -0.006244738586246967, -0.033830463886260986, -0.04096477851271629, -0.0737861692905426, 0.0529320165514946, -0.0107191763818264, 0.017437471076846123, -0.01655231975018978, 0.014640393666923046, -0.0772559642791748, -0.042664267122745514, 0.03841554373502731, 0.042239394038915634, 0.01304712239652872, 0.06957285106182098, 0.0164195466786623, 0.01734895631670952, 0.03777823597192764, 0.002639962127432227, -0.010878503322601318, -0.0666341483592987, -0.016003526747226715, 0.007187424227595329, 0.02710331790149212, 0.028271716088056564, 0.06957285106182098, -0.017012597993016243, 0.018605869263410568, -0.10359805077314377, 0.0075636133551597595, -0.0023655653931200504, 0.027899952605366707, -0.07923869788646698, -0.0772559642791748, -0.01198494154959917, -0.039088260382413864, -0.028023874387145042, 0.043726447969675064, 0.014374848455190659, -0.012737319804728031, -0.012693062424659729, 0.08200036734342575, -0.09389679878950119, 0.03136974573135376, 0.007714089006185532, -0.020199140533804893, 0.050772249698638916, 0.054383665323257446, 0.01841113716363907, 0.01186102069914341, -0.05314445495605469, -0.024465568363666534, -0.0009526435169391334, 0.030767841264605522, -0.05714533478021622, 0.03606104478240013, 0.019756564870476723, 0.001728256931528449, -0.059234291315078735, 0.0290683526545763, -0.06574899703264236, -0.032130975276231766, 0.014374848455190659, -0.0035560932010412216, 0.008408932015299797, 0.009117052890360355, -0.05682668089866638, 0.045779999345541, 0.03152907267212868, -0.045779999345541, 0.01846424490213394, -0.03221948817372322, -0.00973665900528431, 0.015091820620000362, -0.022712968289852142, -0.027404269203543663, 0.02099577710032463, -0.037176333367824554, -0.018304917961359024, 0.018570464104413986, 0.035494547337293625, -0.013241855427622795, -0.05424204096198082, -0.01581764407455921, 0.03427303954958916, 0.05548125132918358, -0.028112389147281647, -0.012108862400054932, 0.02885591611266136, -0.0529320165514946, 0.042274802923202515, 0.03455628827214241, -0.015534396283328533, 0.05229470878839493, 0.029617145657539368, -0.009533073753118515, 0.030183641240000725, -0.03830932453274727, -0.06720064580440521, -0.08447878807783127, -0.0038703219033777714, -0.037388768047094345, -0.010365115478634834, -0.04043368622660637, -0.011692841537296772, 0.030183641240000725, -0.03707011416554451, -0.018977632746100426, -0.10324398428201675, 0.016065487638115883, -0.00824960507452488, 0.038026079535484314, -0.0440451018512249, -0.006373085547238588, 0.036503616720438004, 0.030219048261642456, -0.017587946727871895, 0.010241194628179073, -0.04454078897833824, -0.05360473319888115, -0.03290990740060806, -0.0001730193180264905, -0.020482389256358147, 0.04981628805398941, -0.03986719250679016, -0.055870719254016876, 0.06727145612239838, 0.03287449851632118, -0.030396077781915665, 0.0036136279813945293, 0.0006566712399944663, -0.047762736678123474, -0.033582620322704315, 0.027669813483953476, 0.0018001754069700837, -0.017295846715569496, -0.04871869832277298, 0.07640621811151505, 0.00022446870571002364, -0.026589930057525635, 0.015472435392439365, 0.06468681991100311, -0.0479043610394001, -0.018065927550196648, 0.005678242072463036, -0.005872975569218397, 0.03439696133136749, 0.005930510349571705, 0.012825834564864635, -0.01726929098367691, 0.021951738744974136, -0.031900834292173386, -0.023226356133818626, -0.06631549447774887, 0.032095566391944885, -0.0026488136500120163, -0.06118162348866463, 0.04832923412322998, -0.010621809400618076, -0.03707011416554451, 0.008227476850152016 ]
730,340
mmengine.utils.misc
requires_package
A decorator to check if some python packages are installed. Example: >>> @requires_package('numpy') >>> func(arg1, args): >>> return numpy.zeros(1) array([0.]) >>> @requires_package(['numpy', 'non_package']) >>> func(arg1, args): >>> return numpy.zeros(1) ImportError
def requires_package(prerequisites): """A decorator to check if some python packages are installed. Example: >>> @requires_package('numpy') >>> func(arg1, args): >>> return numpy.zeros(1) array([0.]) >>> @requires_package(['numpy', 'non_package']) >>> func(arg1, args): >>> return numpy.zeros(1) ImportError """ return check_prerequisites(prerequisites, checker=_check_py_package)
(prerequisites)
[ 0.04869740456342697, 0.03925570100545883, 0.016359567642211914, -0.01267367135733366, 0.07734934240579605, 0.01726742461323738, 0.016414038836956024, 0.05708599463105202, 0.05661391094326973, 0.013626920990645885, 0.05069468542933464, 0.024130815640091896, 0.04423075169324875, -0.04096246883273125, 0.007281006313860416, -0.04067195579409599, 0.061080560088157654, 0.04601014778017998, 0.05465294048190117, 0.0015603777719661593, -0.027816712856292725, 0.09586960822343826, 0.03842047229409218, 0.012274214997887611, 0.00027235684683546424, 0.0586111918091774, 0.07662305980920792, -0.01910129375755787, -0.01595103181898594, 0.0003858388517983258, -0.00792104471474886, -0.008892451412975788, 0.02231510356068611, 0.044484950602054596, 0.02946901135146618, 0.011702265590429306, 0.05014997348189354, -0.02638229914009571, -0.0007478464976884425, -0.04266924038529396, 0.0325738787651062, 0.06449410319328308, 0.03555164858698845, -0.04168875515460968, 0.0028983308002352715, 0.005274644121527672, -0.025147615000605583, -0.010522052645683289, -0.04495703801512718, 0.0025034132413566113, 0.07015912234783173, 0.004108048975467682, 0.0798187106847763, -0.03453484922647476, 0.005329115781933069, 0.04375866800546646, 0.06736292690038681, 0.03647765889763832, 0.053926654160022736, 0.015006862580776215, 0.03478904813528061, 0.037694185972213745, -0.005651404615491629, -0.025855742394924164, -0.0705585777759552, -0.001822521211579442, -0.033300165086984634, -0.07909242808818817, 0.007757630664855242, -0.0015342768747359514, -0.11990963667631149, 0.0390741303563118, 0.01964600756764412, -0.02605547197163105, 0.05657759681344032, -0.023259274661540985, -0.0127553790807724, -0.07197483628988266, -0.0016137142665684223, -0.04651854932308197, -0.023404531180858612, -0.005823897197842598, -0.020590176805853844, 0.027399098500609398, 0.040308814495801926, -0.0472448356449604, -0.014271498657763004, 0.05160254240036011, 0.06638243794441223, 0.028198011219501495, -0.03589663282036781, 0.018756307661533356, 0.04695431888103485, 0.07389949262142181, 0.020063620060682297, 0.009083100594580173, 0.018529344350099564, 0.0035542568657547235, -0.06819815188646317, 0.020608333870768547, 0.00450523616746068, 0.003724479814991355, 0.05036785826086998, 0.04510229453444481, -0.0214435625821352, 0.00667728204280138, -0.014307812787592411, -0.019718635827302933, 0.020063620060682297, -0.0049795908853411674, -0.009282829239964485, -0.08998670428991318, 0.023840302601456642, -0.021407248452305794, -0.015297375619411469, -0.05901065096259117, -0.02264193259179592, -0.05189305916428566, 0.0035338301677256823, 0.03682264685630798, 0.014389519579708576, 0.03206548094749451, 0.10088097304105759, 0.006627349648624659, 0.02703595533967018, -0.05051311478018761, 0.02469368651509285, 0.03469826281070709, 0.04128929600119591, -0.049423687160015106, 0.024239759892225266, 0.0004922282532788813, -0.05378139764070511, 0.028615625575184822, -0.02670912817120552, 0.002884713001549244, 0.02133462019264698, -0.029160339385271072, 0.03342726454138756, -0.055016081780195236, -0.027816712856292725, 0.05116677284240723, -0.021516190841794014, 0.0021084959153085947, 0.02837958373129368, -0.0225329902023077, 0.022296946495771408, -0.0077349343337118626, 0.00607809703797102, -0.04815268889069557, 0.028234325349330902, -0.07880191504955292, 0.030703695490956306, -0.004443956073373556, -0.04205189645290375, 0.0499320887029171, -0.00792104471474886, -0.02892429754137993, 0.021697761490941048, -0.005374508444219828, 0.005365429911762476, 0.02349531650543213, -0.022387731820344925, 0.026836227625608444, -0.018701836466789246, 0.010113517753779888, -0.009795768186450005, -0.031230252236127853, -0.004530202131718397, 0.025202086195349693, 0.033136747777462006, -0.00927828997373581, 0.01240131538361311, -0.027326470240950584, 0.008479376323521137, -0.030685538426041603, 0.02307770401239395, 0.05160254240036011, -0.025256557390093803, 0.0532003715634346, 0.03190206363797188, 0.02534734271466732, -0.0748799741268158, 0.030740009620785713, -0.004289620090276003, 0.08294174075126648, -0.033354636281728745, -0.001088292570784688, -0.00012461743608582765, -0.009414467960596085, -0.06064479053020477, 0.09325498342514038, 0.06413096189498901, 0.05334562808275223, -0.018420401960611343, -0.04793480411171913, -0.0034316962119191885, 0.0488426610827446, -0.032047320157289505, 0.01237407885491848, -0.0009889957727864385, 0.0002602993918117136, 0.021843018010258675, 0.0960874930024147, -0.008651869371533394, -0.012882478535175323, -0.06997755169868469, 0.02376767434179783, -0.04346815124154091, -0.05011365935206413, 0.013980984687805176, 0.011003216728568077, -0.02198827639222145, 0.017131244763731956, -0.029505325481295586, 0.03360883519053459, 0.07066752016544342, -0.016804417595267296, -0.016804417595267296, -0.023967402055859566, -0.004589212592691183, 0.017948316410183907, 0.027399098500609398, 0.07524311542510986, 0.018002787604928017, -0.029668739065527916, 0.020535705611109734, 0.02589205652475357, 0.009359996765851974, -0.008229715749621391, -0.0030799019150435925, 0.018810778856277466, 0.07422631978988647, 0.018919721245765686, -0.05879276245832443, -0.06627349555492401, 0.00968682486563921, 0.04550174996256828, 0.01975494995713234, 0.017340052872896194, -0.021806703880429268, 0.030976051464676857, -0.00769408093765378, 0.00592830078676343, -0.025492601096630096, 0.005733111407607794, -0.022769032046198845, -0.0214435625821352, 0.008361355401575565, 0.001769184716977179, -0.06256944686174393, 0.037694185972213745, 0.000720043433830142, -0.02828879840672016, -0.018111729994416237, 0.008660947903990746, 0.016214311122894287, -0.024021873250603676, 0.04797111824154854, 0.026200728490948677, -0.028615625575184822, 0.014807133935391903, 0.00024214225413743407, 0.025438129901885986, -0.018465794622898102, -0.010140753351151943, 0.054798197001218796, -0.0002354751923121512, 0.0033250232227146626, -0.001798689947463572, -0.05813910812139511, 0.03353620693087578, 0.04463020712137222, -0.024893416091799736, 0.02801644057035446, -0.028960611671209335, -0.015524339862167835, -0.011547930538654327, 0.03397197648882866, 0.0656561553478241, 0.05999113246798515, 0.002989116357639432, -0.06035427749156952, 0.050295230001211166, -0.04542912170290947, -0.012664592824876308, -0.03268282115459442, 0.0048524909652769566, -0.022115375846624374, 0.031393665820360184, 0.008238794282078743, -0.023640574887394905, 0.04423075169324875, -0.022169847041368484, -0.025383658707141876, -0.0023899313528090715, 0.0007035885355435312, -0.005637786816805601, 0.05113045871257782, -0.038456786423921585, 0.0054062833078205585, 0.03892887011170387, 0.014888840727508068, 0.0022458091843873262, 0.022224318236112595, -0.046700119972229004, 0.0008539521950297058, -0.062496818602085114, -0.0646030455827713, 0.025982843711972237, -0.0004491050785873085, 0.011838444508612156, -0.03838415816426277, -0.06761712580919266, 0.015324612148106098, -0.008611015975475311, 0.008002751506865025, -0.021734075620770454, -0.015424476005136967, 0.02876088209450245, 0.0325557217001915, 0.007630530744791031, 0.02089884877204895, -0.025746800005435944, -0.018493030220270157, 0.04604646563529968, -0.0019030934199690819, 0.0007858629687689245, -0.00491150189191103, 0.012927871197462082, 0.013073128648102283, 0.009450782090425491, 0.048878975212574005, 0.03413539007306099, -0.05356351286172867, -0.0019530255813151598, 0.03751261532306671, -0.10734491050243378, 0.02534734271466732, 0.0026804453227669, -0.0011387920239940286, -0.04499335214495659, -0.02837958373129368, 0.020154407247900963, -0.08504796028137207, -0.016259703785181046, -0.021570662036538124, -0.01245578657835722, 0.007648687809705734, 0.017004145309329033, 0.044484950602054596, 0.056250765919685364, -0.06529301404953003, -0.019028665497899055, -0.0042056436650455, 0.009487097151577473, 0.026128100231289864, 0.024711843580007553, -0.011874758638441563, -0.0021867984905838966, 0.03682264685630798, -0.000418181240092963, 0.0018792622722685337, -0.00898777600377798, -0.015569732524454594, -0.01617799699306488, 0.07466208934783936, 0.03713131695985794, 0.03469826281070709, -0.011411751620471478, 0.017757665365934372, -0.0015989616513252258, -0.031466294080019, 0.00007965019176481292, -0.01644127443432808, 0.011139394715428352, 0.0007489813142456114, -0.010839802213013172, -0.010522052645683289, -0.007744012866169214, -0.03549717366695404, -0.0293055959045887, 0.00618703942745924, -0.05661391094326973, -0.03326385095715523, -0.007140288595110178, -0.035587962716817856, 0.008806204423308372, -0.0754610002040863, -0.032918862998485565, 0.017140323296189308, -0.08533848077058792, 0.010540209710597992, 0.0004258412809576839, -0.0032478554639965296, -0.03251940757036209, 0.023295588791370392, 0.005460754502564669, 0.01424426306039095, 0.034280646592378616, 0.00349978543817997, -0.059845875948667526, -0.029614267870783806, -0.04862477630376816, 0.014906997792422771, 0.0363687165081501, 0.018756307661533356, -0.014289655722677708, 0.002248078817501664, -0.0015603777719661593, 0.02643677033483982, -0.025801271200180054, -0.010213381610810757, -0.05730387941002846, 0.007103974465280771, 0.012001858092844486, -0.011502536945044994, -0.010621916502714157, 0.026563871651887894, -0.07139381021261215, 0.034335117787122726, -0.032755449414253235, 0.02692701295018196, 0.035097718238830566, 0.002993655623868108, 0.028034597635269165, -0.005347272846847773, -0.030158981680870056, -0.023368217051029205, 0.026582028716802597, -0.036277931183576584, -0.04081721231341362, -0.028524840250611305, -0.017222031950950623, -0.01606905460357666, -0.013172992505133152, -0.040163554251194, 0.023894773796200752, -0.03250125050544739, -0.0363687165081501, 0.06177053228020668, 0.015624204650521278, 0.03929201513528824, -0.0037925690412521362, -0.01351797766983509, 0.04521123692393303, 0.03453484922647476, 0.014126241207122803, -0.03044949471950531, -0.03676817566156387, -0.026255199685692787, -0.0026509398594498634, 0.021134890615940094, -0.010630995035171509, -0.05276459828019142, 0.008719958364963531, 0.006273285951465368, -0.030957894399762154, -0.02491157315671444, 0.01047665998339653, 0.02801644057035446, 0.010694545693695545, -0.01704045943915844, -0.0059328400529921055, 0.03936464339494705, -0.04902423173189163, -0.019282864406704903, -0.026146257296204567, -0.006255128886550665, 0.07662305980920792, 0.04818900302052498, -0.04481177777051926, 0.034335117787122726, 0.0006241510855033994, 0.027508040890097618, 0.04161612689495087, 0.006327757146209478, 0.06790763884782791, 0.018574737012386322, 0.03006819635629654, -0.036168988794088364, 0.0039083207957446575, 0.007557902485132217, 0.016895202919840813, 0.024348702281713486, -0.05824805051088333, -0.041507184505462646, -0.031030522659420967, 0.013508899137377739, 0.009941024705767632, -0.022859817370772362, -0.013345485553145409, 0.059083279222249985, 0.046228036284446716, 0.07967345416545868, 0.006028164643794298, 0.044267065823078156, 0.020227035507559776, -0.00491150189191103, 0.017013223841786385, 0.008483915589749813, 0.05465294048190117, 0.03675001859664917, -0.016078133136034012, -0.005183858796954155, -0.10872485488653183, 0.03337279334664345, -0.02725384198129177, 0.025873899459838867, 0.014943311922252178, -0.0005546433385461569, 0.06253313273191452, -0.003064014483243227, 0.023803988471627235, 0.014689112082123756, 0.004993208684027195, -0.054362427443265915, 0.07698620110750198, 0.010703624226152897, 0.017067695036530495, -0.004711773246526718, 0.052074629813432693, 0.05171148478984833, -0.02828879840672016, 0.007158445660024881, -0.015624204650521278, 0.04971420392394066, -0.04441232234239578, 0.018483951687812805, 0.03885624185204506, 0.034171704202890396, 0.012274214997887611, -0.03006819635629654, 0.018756307661533356, 0.004251036327332258, -0.049423687160015106, 0.004838873166590929, 0.04027250036597252, -0.07034069299697876, 0.0037925690412521362, 0.034389592707157135, 0.011675029993057251, 0.06863392144441605, 0.007916505448520184, -0.003722210181877017, 0.09398126602172852, -0.00607809703797102, -0.04753534868359566, -0.03121209517121315, -0.03538823127746582, -0.05792122334241867, -0.01454385556280613, -0.02936006709933281, 0.01975494995713234, 0.05621445178985596, -0.008856136351823807, -0.002408088417723775, 0.026237042620778084, 0.0013254699297249317, -0.029178496450185776, -0.001922385417856276, 0.021734075620770454, 0.03972778469324112, -0.015642361715435982, -0.07070383429527283, -0.07172063738107681, 0.026945170015096664, -0.033027805387973785, 0.002304819878190756, -0.007281006313860416, -0.004770784173160791, -0.049314744770526886, -0.02215168997645378, -0.030921580269932747, -0.00982300378382206, -0.002405818784609437, 0.025165772065520287, -0.02024519257247448, -0.039219386875629425, -0.0022912018466740847, -0.017467152327299118, -0.03694974631071091, -0.029777681455016136, -0.028361426666378975, -0.01688612438738346, -0.00846575852483511, 0.018901564180850983, 0.03871098533272743, -0.0385294146835804, -0.01590563915669918, 0.013345485553145409, 0.006672742776572704, 0.0586111918091774, -0.05516133829951286, 0.057231251150369644, -0.009759453125298023, -0.0033023266587406397, 0.03126656636595726, 0.04190663993358612, -0.006613731849938631, 0.0026441309601068497, 0.02322296053171158, -0.02799828350543976, -0.05396296828985214, 0.0033953820820897818, 0.01590563915669918, -0.03629608824849129, -0.01888340711593628, -0.008542926050722599, -0.025692328810691833, -0.08337751030921936, 0.03820258751511574, -0.03159339353442192, 0.008878832682967186, -0.021516190841794014, -0.031030522659420967, -0.09376338124275208, -0.03625977411866188, 0.020426763221621513, -0.04731746390461922, 0.03754892945289612, 0.032700978219509125, 0.04575594887137413, -0.01807541586458683, 0.06104424595832825, -0.004997747950255871, -0.06100793182849884, -0.06758081167936325, 0.0029232967644929886, -0.04168875515460968, 0.0038878938648849726, -0.00933276116847992, 0.08591950684785843, -0.04532017931342125, 0.030467651784420013, -0.07255586236715317, -0.00010922644287347794, -0.025038672611117363, -0.0006598979234695435, -0.02796196937561035, -0.07633254677057266, -0.017793981358408928, -0.014462148770689964, -0.01484344806522131, 0.05926484987139702, -0.01419887039810419, 0.0022662358824163675, 0.004216991830617189, 0.07698620110750198, -0.07317320257425308, -0.03337279334664345, 0.045356493443250656, -0.021788546815514565, -0.010912430472671986, 0.02914218232035637, 0.05225620046257973, -0.0005174779798835516, 0.006908785086125135, -0.02068096213042736, -0.03279176354408264, 0.038565728813409805, -0.0569770522415638, 0.02828879840672016, 0.01904682256281376, -0.001417390420101583, -0.03696790337562561, 0.04840689152479172, -0.09594223648309708, -0.007276467047631741, 0.0020120362751185894, 0.00007362145697697997, 0.03006819635629654, 0.048116374760866165, -0.05036785826086998, 0.03816627338528633, 0.031066836789250374, -0.03517034649848938, -0.024021873250603676, -0.010821645148098469, 0.006532025057822466, -0.005097612272948027, -0.020717278122901917, -0.03556980565190315, 0.06256944686174393, -0.016650082543492317, 0.013735863380134106, 0.020227035507559776, 0.0342080183327198, -0.041979268193244934, -0.03162970766425133, 0.04495703801512718, 0.03522481769323349, 0.06042690575122833, 0.012029093690216541, 0.04023618623614311, 0.025038672611117363, -0.041398242115974426, 0.06827078014612198, 0.03980041295289993, -0.05356351286172867, 0.04706326127052307, -0.020935162901878357, -0.0036109979264438152, 0.0689607560634613, -0.04935105890035629, -0.008098077028989792, -0.06692715734243393, -0.0006377689423970878, -0.040998782962560654, 0.011647794395685196, -0.04441232234239578, -0.006232432555407286, 0.055778682231903076, -0.06798026710748672, 0.0002536323154345155, -0.07288268953561783, -0.01871999353170395, -0.022133532911539078, 0.023350059986114502, -0.05232882872223854, -0.007821180857717991, 0.03640503063797951, -0.03034055233001709, -0.02133462019264698, -0.029487168416380882, -0.04107141122221947, -0.06013639271259308, -0.04869740456342697, 0.007281006313860416, -0.026255199685692787, 0.03028608113527298, 0.023368217051029205, -0.035043247044086456, 0.02714489959180355, 0.043831296265125275, -0.022278789430856705, -0.051529914140701294, 0.02382214553654194, 0.011257416568696499, -0.019391806796193123, 0.022823503240942955, 0.0025919293984770775, -0.005692258011549711, -0.04949631541967392, 0.04978683218359947, -0.029541639611124992, -0.023731360211968422, -0.006618271116167307, 0.02393108792603016, -0.07153906673192978, 0.03849310055375099, 0.007362713571637869, -0.024330545216798782, -0.018810778856277466, 0.034498535096645355, 0.0025419972371309996, 0.007090356666594744, 0.005547001026570797, -0.00445076497271657, -0.04731746390461922, -0.0835953950881958, -0.03126656636595726, 0.01538816187530756, -0.04575594887137413, 0.02062649093568325, -0.012355921790003777, -0.0510215163230896, 0.017984630540013313 ]
730,341
mmengine.fileio.io
rmtree
Recursively delete a directory tree. Args: dir_path (str or Path): A directory to be removed. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Examples: >>> dir_path = '/path/of/dir' >>> rmtree(dir_path)
def rmtree( dir_path: Union[str, Path], backend_args: Optional[dict] = None, ) -> None: """Recursively delete a directory tree. Args: dir_path (str or Path): A directory to be removed. backend_args (dict, optional): Arguments to instantiate the corresponding backend. Defaults to None. Examples: >>> dir_path = '/path/of/dir' >>> rmtree(dir_path) """ backend = get_file_backend( dir_path, backend_args=backend_args, enable_singleton=True) backend.rmtree(dir_path)
(dir_path: Union[str, pathlib.Path], backend_args: Optional[dict] = None) -> NoneType
[ 0.03092442825436592, 0.014305909164249897, 0.03395412489771843, -0.07407520711421967, 0.029830869287252426, 0.04098159074783325, -0.02524150349199772, 0.026532262563705444, 0.016788827255368233, -0.046754151582717896, 0.054534558206796646, 0.038471780717372894, -0.005942868534475565, -0.006220740266144276, -0.05514408275485039, -0.0342230349779129, -0.03983424976468086, -0.008277886547148228, 0.004683482460677624, -0.03250202164053917, -0.014404509216547012, 0.029418542981147766, 0.0705973356962204, 0.04435190558433533, -0.010774250142276287, -0.015596668235957623, 0.0009921587770804763, 0.01693224534392357, -0.012853805907070637, 0.006023540627211332, 0.027769239619374275, 0.01876978389918804, -0.04700513184070587, 0.020472867414355278, -0.032017987221479416, 0.010030271485447884, -0.0384359285235405, 0.022480715066194534, -0.10419291257858276, -0.07178052514791489, -0.014628599397838116, -0.036177098751068115, 0.023699764162302017, 0.014117673970758915, 0.028002293780446053, -0.036894187331199646, 0.018294712528586388, -0.02160228230059147, -0.02429136261343956, -0.06525502353906631, 0.0518813319504261, 0.03348802030086517, -0.02533113956451416, 0.01121346652507782, 0.023197803646326065, 0.01214568130671978, -0.028271201997995377, 0.02698044292628765, 0.04277431219816208, -0.0072246636264026165, 0.07758894562721252, 0.03476085141301155, -0.08848868310451508, 0.027876803651452065, -0.04076646268367767, -0.05733120068907738, -0.04919224977493286, 0.02056250348687172, -0.0030274568125605583, -0.030153557658195496, -0.12957783043384552, 0.03621295467019081, -0.013051005080342293, 0.00586219597607851, -0.007914860732853413, 0.03104991838335991, 0.02637091837823391, -0.013561930507421494, -0.054140157997608185, -0.010191615670919418, 0.013983219861984253, -0.0023775955196470022, -0.01287173293530941, 0.004197206813842058, -0.007762479595839977, -0.026908734813332558, 0.02305438555777073, 0.03447401523590088, -0.03241238743066788, -0.0038207354955375195, 0.026030302047729492, -0.03273507580161095, 0.008237550966441631, 0.008560240268707275, 0.0011585456086322665, -0.005853232461959124, 0.04621633514761925, 0.023000603541731834, -0.048331744968891144, -0.024345144629478455, 0.017470061779022217, 0.014368654228746891, -0.051953040063381195, -0.035137321799993515, -0.020186033099889755, 0.02730313315987587, -0.011186575517058372, -0.021440936252474785, 0.04653902351856232, 0.02773338556289673, -0.009044274687767029, -0.016134483739733696, 0.02732105925679207, 0.05761803686618805, -0.02056250348687172, 0.026012374088168144, -0.019594434648752213, -0.07278445363044739, 0.014610671438276768, -0.028934508562088013, 0.0030476248357445, -0.030171485617756844, 0.012997223064303398, -0.007874525152146816, 0.07909482717514038, 0.05055471882224083, 0.06665334850549698, -0.03072722814977169, -0.09996209293603897, 0.02117202803492546, -0.016770899295806885, 0.009492455050349236, 0.010110943578183651, 0.056327275931835175, 0.052992817014455795, 0.009286291897296906, 0.03291434794664383, -0.030350757762789726, 0.0015473418170586228, 0.049263957887887955, 0.06116762384772301, 0.02647848054766655, 0.011733355931937695, 0.0074532353319227695, 0.024237580597400665, -0.025707611814141273, -0.05926733836531639, 0.045929498970508575, -0.00186891108751297, 0.03468913957476616, -0.09279121458530426, 0.03146224468946457, 0.06278107315301895, 0.06095249578356743, -0.005234743934124708, -0.009492455050349236, -0.03911716118454933, 0.027428623288869858, 0.02461405284702778, 0.03176700696349144, -0.020831411704421043, -0.006422420963644981, 0.0477580726146698, -0.06360572576522827, -0.021835334599018097, 0.014368654228746891, -0.014682380482554436, 0.007740070577710867, -0.0965917780995369, -0.0013535039033740759, -0.012683497741818428, -0.03104991838335991, -0.027984365820884705, -0.010343996807932854, -0.06500404328107834, 0.006292448844760656, 0.02303645759820938, 0.0612393319606781, -0.03987010195851326, -0.04607291519641876, 0.021727772429585457, 0.022677913308143616, -0.015453250147402287, -0.04090988263487816, 0.027070078998804092, 0.019361380487680435, 0.014682380482554436, 0.015740085393190384, 0.032233115285634995, -0.012638679705560207, -0.0591597743332386, 0.0014666694914922118, -0.01839331164956093, -0.0353165939450264, 0.03273507580161095, 0.021315446123480797, 0.04306114464998245, -0.08547691255807877, 0.024273434653878212, 0.021261664107441902, -0.013454367406666279, 0.011742318980395794, 0.06493233889341354, -0.009582091122865677, -0.02669360861182213, -0.03381070867180824, -0.029866723343729973, 0.019791634753346443, -0.009375927969813347, -0.009573127143085003, 0.04223649576306343, -0.0223372969776392, 0.01489750761538744, 0.014467254281044006, 0.0026599490083754063, -0.07070489227771759, 0.017676223069429398, 0.023753546178340912, -0.018339529633522034, -0.012692460790276527, 0.01599106751382351, 0.05478553846478462, -0.03456364944577217, -0.02884487248957157, -0.010218506678938866, -0.039619121700525284, -0.0757962241768837, 0.05120009556412697, 0.04069475457072258, -0.0726051777601242, 0.03434852510690689, 0.019038692116737366, 0.07801919430494308, -0.046682439744472504, -0.026514336466789246, -0.030763084068894386, 0.05521579086780548, -0.07859286665916443, -0.060558099299669266, -0.006435866467654705, -0.022480715066194534, -0.057474616914987564, 0.03707345947623253, 0.02680117078125477, -0.005924941040575504, 0.031695298850536346, 0.05510822683572769, -0.01857258379459381, 0.02979501523077488, -0.07005951553583145, -0.08597887307405472, 0.02502637729048729, -0.008026906289160252, 0.030781010165810585, 0.0342409610748291, 0.02004261501133442, -0.00013144282274879515, 0.08397102355957031, -0.01661851815879345, 0.059339046478271484, 0.020723849534988403, -0.028002293780446053, -0.011034194380044937, -0.006915419362485409, -0.0022229733876883984, 0.002881798194721341, -0.01631375588476658, 0.0037042086478322744, 0.05991271883249283, 0.020365305244922638, 0.08504665642976761, -0.07636988908052444, 0.07830602675676346, 0.009250437840819359, 0.02502637729048729, 0.03768298402428627, -0.03983424976468086, -0.01054119598120451, 0.03807738423347473, 0.043132856488227844, -0.06582869589328766, -0.07325056195259094, -0.019128328189253807, -0.024434780701994896, 0.010397778823971748, 0.033900342881679535, 0.019952978938817978, 0.025994446128606796, 0.03459950536489487, 0.030458321794867516, 0.034940123558044434, -0.05306452512741089, 0.0024291363079100847, 0.028396692126989365, 0.038758616894483566, -0.05234743654727936, -0.04535582661628723, 0.021942898631095886, 0.025384921580553055, -0.02138715609908104, -0.00035882421070709825, 0.030888574197888374, 0.00017380985082127154, 0.023377075791358948, 0.05647069588303566, -0.031282972544431686, -0.0006033625104464591, 0.022086316719651222, -0.01807062327861786, 0.043634817004203796, -0.010424669831991196, 0.004376478958874941, -0.03241238743066788, -0.005611215252429247, 0.026711534708738327, 0.029920505359768867, 0.0021882394794374704, -0.05876537784934044, -0.06080907955765724, -0.02585102990269661, -0.010774250142276287, -0.03832836449146271, -0.014673417434096336, 0.05980515480041504, -0.06787239760160446, -0.016035884618759155, -0.035764772444963455, 0.033900342881679535, 0.02531321346759796, -0.01993505097925663, -0.00654342956840992, 0.013104787096381187, 0.04607291519641876, -0.04184209555387497, 0.059625882655382156, 0.03298605605959892, 0.051737911999225616, -0.021261664107441902, -0.04607291519641876, 0.015865575522184372, -0.008040351793169975, 0.005279561970382929, 0.01048741489648819, -0.002002244582399726, -0.013006187044084072, 0.02303645759820938, -0.0025456631556153297, -0.007632507476955652, 0.12491676211357117, 0.005924941040575504, 0.0456785187125206, 0.0737166628241539, 0.0024067272897809744, -0.0069557554088532925, -0.018294712528586388, -0.0090846111997962, 0.014108709990978241, 0.09616152942180634, -0.04912054166197777, -0.02314402163028717, 0.008049314841628075, -0.008649876341223717, -0.011437556706368923, -0.030045995488762856, 0.0018431406933814287, -0.04578608274459839, -0.044065069407224655, 0.010890777222812176, -0.0032672330271452665, 0.0487978495657444, 0.06012784317135811, -0.05905221402645111, 0.014592744410037994, 0.00976136326789856, 0.03592611849308014, 0.028683528304100037, 0.012593861669301987, -0.05360234156250954, 0.03164151683449745, -0.000670029257889837, -0.009205619804561138, -0.027159715071320534, 0.0602354072034359, -0.054140157997608185, -0.01909247227013111, 0.03155187889933586, 0.0023036457132548094, 0.01489750761538744, -0.021853262558579445, -0.012127754278481007, -0.022588277235627174, -0.05449870228767395, 0.009976489469408989, -0.0003719895030371845, -0.024631978943943977, -0.009411782957613468, 0.02594066597521305, 0.029561961069703102, -0.05794072523713112, -0.016116557642817497, -0.00430925190448761, 0.03282471373677254, -0.003861071774736047, -0.0008991613867692649, -0.029454397037625313, 0.016439246013760567, 0.0015327760484069586, 0.04270260035991669, -0.014099746942520142, -0.005176480393856764, 0.02793058566749096, 0.04456702992320061, 0.02368183806538582, 0.027751313522458076, -0.00044761988101527095, 0.05284940078854561, 0.023179875686764717, -0.0090935742482543, 0.03303983807563782, -0.009546236135065556, -0.017299752682447433, -0.0071574365720152855, -0.042595040053129196, -0.01785549521446228, 0.028737308457493782, 0.004578160122036934, -0.005974241066724062, 0.003959671128541231, -0.027446551248431206, 0.05209645628929138, -0.0074890898540616035, -0.07235419750213623, -0.02585102990269661, 0.001960787922143936, -0.0006784326396882534, 0.035352446138858795, -0.0675497055053711, -0.023000603541731834, -0.027464477345347404, 0.023233657702803612, -0.07443375140428543, -0.03282471373677254, 0.059123922139406204, -0.008340631611645222, -0.04069475457072258, 0.007619061972945929, 0.017514878883957863, -0.00023459427757188678, -0.03262751176953316, -0.009752399288117886, 0.03678662329912186, -0.00938489194959402, 0.03352387249469757, -0.01680675521492958, -0.06704774498939514, -0.06012784317135811, -0.005517097190022469, 0.028217419981956482, 0.004428019747138023, -0.04539168253540993, 0.02585102990269661, 0.009456600062549114, 0.059948571026325226, -0.0550006628036499, 0.04008523002266884, 0.05378161370754242, 0.07152954488992691, -0.0021736735943704844, -0.01753280684351921, -0.053315505385398865, 0.005902532022446394, 0.00628348533064127, -0.021010683849453926, 0.03667905926704407, 0.0034689141903072596, 0.043957505375146866, -0.08232172578573227, -0.08124609291553497, -0.050518862903118134, -0.014915434643626213, 0.007305335719138384, -0.0049523902125656605, 0.057259492576122284, 0.0019372585229575634, -0.011338956654071808, -0.020490795373916626, 0.023484637960791588, 0.007632507476955652, 0.01794513128697872, -0.010621869005262852, -0.03332667425274849, -0.012181535363197327, -0.011966409161686897, -0.02472161501646042, -0.04575022682547569, -0.0446387380361557, -0.0477222204208374, 0.010630832053720951, -0.04237991198897362, 0.023018531501293182, 0.04184209555387497, -0.018447093665599823, -0.05026788264513016, 0.027446551248431206, 0.03972668573260307, 0.02624542824923992, 0.027482405304908752, 0.0591956302523613, -0.03092442825436592, 0.009003938175737858, -0.023699764162302017, 0.008860521018505096, -0.03135468065738678, -0.044280197471380234, 0.06034297123551369, 0.03915301337838173, 0.007955197244882584, -0.01690535433590412, -0.018949056044220924, -0.003834180999547243, -0.0446028858423233, 0.0032784375362098217, 0.012387698516249657, 0.07178052514791489, 0.03662528097629547, 0.02346671186387539, 0.004257711116224527, 0.055610187351703644, 0.06615138798952103, 0.07102758437395096, 0.031175408512353897, 0.013866692781448364, -0.02866560034453869, 0.021028611809015274, -0.006570320576429367, -0.01599106751382351, -0.03789811208844185, 0.006476202514022589, 0.0467182956635952, -0.05969759076833725, -0.016457173973321915, 0.03583648055791855, -0.015964176505804062, 0.024685760959982872, 0.003766953945159912, -0.027070078998804092, 0.01329302228987217, 0.036589425057172775, 0.002859389176592231, 0.06217154487967491, -0.07005951553583145, -0.06009199097752571, 0.01786446012556553, 0.06830265372991562, -0.03551379218697548, -0.020365305244922638, -0.009474528022110462, -0.01151822879910469, 0.040121085941791534, -0.014574817381799221, -0.027984365820884705, 0.025169795379042625, 0.03311154618859291, 0.0280381478369236, 0.1049100011587143, 0.02543870359659195, 0.05353063344955444, 0.03377485275268555, -0.007014018949121237, -0.051343515515327454, -0.01469134446233511, -0.0653267353773117, -0.01839331164956093, 0.0009484611800871789, -0.00770869804546237, 0.04169867932796478, 0.004746227525174618, -0.01680675521492958, -0.021871190518140793, 0.0021008444018661976, 0.002233057515695691, 0.030798938125371933, 0.0016380983870476484, -0.03614124655723572, -0.021512646228075027, -0.004273397382348776, 0.05016031861305237, 0.006292448844760656, -0.12785682082176208, 0.018823565915226936, 0.005207852926105261, -0.021225810050964355, 0.03883032500743866, 0.003043143078684807, 0.008421304635703564, 0.014924397692084312, -0.013992182910442352, 0.00044621931738220155, 0.04245162010192871, 0.026191646233201027, 0.006350712385028601, -0.056004587560892105, 0.06407182663679123, -0.03893788903951645, 0.003939503338187933, -0.011159684509038925, 0.02791265770792961, -0.00338600086979568, -0.013526076450943947, -0.012468370608985424, 0.03696589544415474, 0.01137481164187193, 0.013902546837925911, 0.011016267351806164, 0.039905957877635956, -0.004109811503440142, -0.011329993605613708, -0.038866180926561356, -0.009053238667547703, 0.01641235686838627, -0.06887631863355637, -0.04650316759943962, 0.002049303613603115, 0.017783787101507187, 0.02615579217672348, 0.011338956654071808, -0.026317136362195015, 0.006243149284273386, -0.023377075791358948, 0.024542342871427536, 0.032448239624500275, -0.026532262563705444, -0.009635872207581997, -0.015408432111144066, -0.03707345947623253, -0.08841697126626968, -0.05575360730290413, -0.0186801478266716, 0.00425322912633419, -0.0405154824256897, -0.0053826430812478065, 0.03868690878152847, -0.04144769906997681, 0.037432003766298294, -0.015704231336712837, -0.0674780011177063, -0.030476247891783714, -0.029328906908631325, -0.007282927166670561, -0.0054902066476643085, 0.003670595120638609, -0.021225810050964355, 0.0050823623314499855, -0.015713194385170937, 0.019988832995295525, 0.028414620086550713, 0.03915301337838173, -0.021620208397507668, -0.01427005510777235, 0.04496143013238907, 0.03983424976468086, -0.01096248533576727, 0.010801141150295734, 0.042595040053129196, -0.008112059906125069, -0.023341219872236252, -0.002890761708840728, 0.06116762384772301, 0.0005198889411985874, -0.07536596804857254, -0.01660059206187725, 0.04747123643755913, -0.05898050218820572, -0.0026263354811817408, 0.018733929842710495, 0.0009518225560896099, 0.009510382078588009, -0.037324439734220505, -0.011706464923918247, 0.05492895469069481, -0.008640912361443043, 0.04962250217795372, -0.009716545231640339, 0.04098159074783325, -0.012549043633043766, -0.014028037898242474, 0.05231158435344696, 0.056327275931835175, -0.031731151044368744, -0.05650654807686806, -0.03915301337838173, -0.008856039494276047, 0.03164151683449745, -0.0861222892999649, -0.00677648326382041, -0.00186218845192343, 0.05177376791834831, -0.005046508274972439, 0.023305365815758705, -0.019666142761707306, -0.009582091122865677, -0.03757541999220848, 0.008488531224429607, -0.03081686422228813, 0.07127856463193893, 0.024972597137093544, 0.02253449708223343, 0.037324439734220505, 0.0498017743229866, -0.05062642693519592, 0.02845047414302826, -0.015049888752400875, 0.03667905926704407, -0.0008168082567863166, -0.005001690238714218, -0.003614572575315833, -0.033989980816841125, -0.02773338556289673, 0.012002263218164444, -0.03165944293141365, -0.030691374093294144, -0.0353165939450264, -0.02127959206700325, -0.02084933966398239, -0.0233591478317976, 0.03786225616931915, 0.028522182255983353, -0.00023655507538933307, 0.032233115285634995, 0.006157994735985994, -0.03051210194826126, -0.004979281220585108, 0.021942898631095886, -0.013400585390627384, -0.005517097190022469, 0.0014924397692084312, 0.012558006681501865, 0.03983424976468086, 0.05765388906002045, -0.002926616230979562, -0.004912054166197777, 0.005543988198041916, 0.042917728424072266, -0.04184209555387497, 0.05223987624049187, 0.045104846358299255, 0.00824651401489973, 0.024865033105015755, 0.008277886547148228, -0.03144431859254837, 0.011580973863601685, -0.04435190558433533, -0.02472161501646042, 0.04962250217795372, 0.0032649922650307417, -0.023735618218779564, -0.017281824722886086, -0.06622309237718582, -0.02563590370118618, -0.041268426924943924, 0.05062642693519592, -0.012746242806315422, -0.014117673970758915, -0.08339735865592957, 0.016968099400401115, 0.008206178434193134, -0.018751855939626694, -0.021100319921970367 ]
730,342
mmengine.utils.path
scandir
Scan a directory to find the interested files. Args: dir_path (str | :obj:`Path`): Path of the directory. suffix (str | tuple(str), optional): File suffix that we are interested in. Defaults to None. recursive (bool, optional): If set to True, recursively scan the directory. Defaults to False. case_sensitive (bool, optional) : If set to False, ignore the case of suffix. Defaults to True. Returns: A generator for all the interested files with relative paths.
def scandir(dir_path, suffix=None, recursive=False, case_sensitive=True): """Scan a directory to find the interested files. Args: dir_path (str | :obj:`Path`): Path of the directory. suffix (str | tuple(str), optional): File suffix that we are interested in. Defaults to None. recursive (bool, optional): If set to True, recursively scan the directory. Defaults to False. case_sensitive (bool, optional) : If set to False, ignore the case of suffix. Defaults to True. Returns: A generator for all the interested files with relative paths. """ if isinstance(dir_path, (str, Path)): dir_path = str(dir_path) else: raise TypeError('"dir_path" must be a string or Path object') if (suffix is not None) and not isinstance(suffix, (str, tuple)): raise TypeError('"suffix" must be a string or tuple of strings') if suffix is not None and not case_sensitive: suffix = suffix.lower() if isinstance(suffix, str) else tuple( item.lower() for item in suffix) root = dir_path def _scandir(dir_path, suffix, recursive, case_sensitive): for entry in os.scandir(dir_path): if not entry.name.startswith('.') and entry.is_file(): rel_path = osp.relpath(entry.path, root) _rel_path = rel_path if case_sensitive else rel_path.lower() if suffix is None or _rel_path.endswith(suffix): yield rel_path elif recursive and os.path.isdir(entry.path): # scan recursively if entry.path is a directory yield from _scandir(entry.path, suffix, recursive, case_sensitive) return _scandir(dir_path, suffix, recursive, case_sensitive)
(dir_path, suffix=None, recursive=False, case_sensitive=True)
[ 0.0029400279745459557, -0.031551070511341095, -0.014926295727491379, -0.02538485638797283, 0.033858783543109894, 0.04072653874754906, 0.036997273564338684, -0.045415814965963364, 0.07680072635412216, -0.04596966877579689, 0.004419272765517235, 0.02822796069085598, 0.026141786947846413, 0.030424904078245163, -0.027341797947883606, -0.005589284002780914, 0.041575778275728226, 0.013643206097185612, -0.02540331892669201, -0.015812458470463753, -0.015664763748645782, 0.0376434326171875, 0.017095547169446945, 0.05364973843097687, -0.003120029577985406, 0.034394171088933945, -0.035760339349508286, 0.0385480597615242, -0.01635707914829254, -0.008187769912183285, 0.011797035112977028, 0.04633890092372894, 0.002889258088544011, 0.012443195097148418, -0.049292776733636856, -0.027101796120405197, -0.014141672290861607, 0.0000854575409903191, -0.02401868999004364, 0.006890834774821997, -0.00008596235420554876, 0.010486253537237644, 0.046006590127944946, 0.013643206097185612, 0.016578618437051773, 0.012581657618284225, 0.017612474039196968, -0.032160304486751556, 0.016661696135997772, -0.027415644377470016, 0.043791186064481735, 0.029852591454982758, -0.023612532764673233, -0.07307146489620209, 0.02233867347240448, 0.03413571044802666, -0.018720177933573723, 0.04567427933216095, 0.08499772846698761, -0.03275107964873314, 0.04659736528992653, -0.03203107416629791, -0.020160190761089325, 0.022006362676620483, -0.011603186838328838, -0.05560668185353279, -0.05516359955072403, -0.09304703772068024, -0.020547887310385704, 0.02470177225768566, -0.06265905499458313, -0.01661554165184498, 0.03581572324037552, 0.022246364504098892, -0.03221569210290909, 0.0031638762447983027, -0.03708958253264427, 0.026714099571108818, -0.03718189150094986, -0.010237020440399647, -0.01920018158853054, -0.004285425413399935, 0.008012384176254272, -0.0020227115601301193, 0.011224721558392048, 0.00405465392395854, 0.025680243968963623, 0.007855459116399288, 0.040283460170030594, 0.08573620021343231, 0.018757101148366928, -0.026271019130945206, 0.03832651674747467, 0.024904852733016014, -0.03548341244459152, 0.026492558419704437, 0.04308963939547539, -0.011003181338310242, -0.006078519392758608, -0.0017019392689689994, -0.0198094192892313, 0.038363441824913025, 0.03360031917691231, -0.03234492242336273, 0.005787747446447611, -0.01090164203196764, -0.038068052381277084, -0.010809333063662052, 0.059852875769138336, 0.002552331890910864, -0.011981652118265629, 0.027175642549991608, 0.04419734328985214, -0.018766332417726517, -0.05316973477602005, -0.04375426098704338, -0.017806323245167732, -0.012138577178120613, -0.08344694972038269, -0.019181720912456512, 0.03862190619111061, 0.023926381021738052, -0.005741592962294817, 0.044788118451833725, -0.016643235459923744, -0.035760339349508286, 0.04416041821241379, 0.030812600627541542, -0.036055728793144226, 0.07953306287527084, -0.036683425307273865, -0.012046268209815025, 0.04500965774059296, 0.04500965774059296, 0.04475119337439537, 0.014713985845446587, 0.025754090398550034, -0.015941690653562546, -0.01052317675203085, 0.037071119993925095, 0.07211145758628845, 0.03742189332842827, 0.03396955505013466, 0.021138662472367287, 0.04268348217010498, -0.032160304486751556, 0.004818507470190525, 0.006775449030101299, -0.015397069044411182, 0.02134174108505249, -0.027415644377470016, -0.012710889801383018, 0.042572710663080215, 0.08197000622749329, 0.003636957611888647, -0.0065216002985835075, -0.0014215519186109304, -0.012784737162292004, 0.009858555160462856, -0.019089411944150925, -0.014344751834869385, 0.01635707914829254, -0.002545408671721816, -0.0004823122581001371, -0.020695582032203674, 0.05852363258600235, -0.06686832755804062, 0.016938623040914536, -0.00875546783208847, -0.03265877068042755, 0.010015479288995266, -0.034320324659347534, -0.01667092740535736, -0.04667121171951294, -0.07716996222734451, 0.0023365607485175133, 0.026529483497142792, 0.060849808156490326, 0.04268348217010498, 0.040689617395401, 0.05047432705760002, -0.03345262631773949, 0.06302829086780548, -0.016495540738105774, -0.007463147863745689, 0.044788118451833725, 0.023760225623846054, -0.0018496329430490732, 0.04903431236743927, -0.007052374538034201, -0.042572710663080215, 0.08824699372053146, -0.008847775869071484, -0.01942172273993492, -0.03784651309251785, 0.029963361099362373, -0.007241607178002596, -0.04704044759273529, -0.040652692317962646, 0.027286412194371223, 0.026806408539414406, 0.023150989785790443, 0.04083731025457382, 0.0056538996286690235, 0.0023330990225076675, 0.007176991086453199, -0.06978527456521988, 0.04596966877579689, -0.033083390444517136, -0.04260963574051857, -0.018157094717025757, -0.019181720912456512, 0.0037984976079314947, -0.08721313625574112, 0.0042761946097016335, -0.038806524127721786, 0.02363099344074726, 0.021230971440672874, -0.025495626032352448, -0.038363441824913025, 0.010237020440399647, 0.007740073371678591, -0.07019143551588058, -0.04427118971943855, 0.024646388366818428, -0.003410801524296403, 0.05604976415634155, 0.020215576514601707, 0.03343416377902031, -0.04268348217010498, 0.007236992008984089, -0.036443423479795456, 0.05616053193807602, -0.023741763085126877, -0.027101796120405197, -0.032160304486751556, 0.049772780388593674, -0.041354238986968994, -0.001336166518740356, 0.0004277925181668252, 0.00527543481439352, 0.04109577462077141, 0.0219509769231081, 0.018332481384277344, -0.04238809645175934, -0.028431039303541183, 0.05324358120560646, 0.04500965774059296, 0.021378664299845695, 0.0028107960242778063, -0.026677176356315613, -0.008847775869071484, -0.03932344913482666, -0.017095547169446945, 0.03356339409947395, -0.04848045855760574, -0.03891729190945625, 0.07665303349494934, 0.009664706885814667, 0.043717339634895325, -0.007869305089116096, 0.0385480597615242, -0.017003238201141357, 0.00043327335151843727, -0.006240059155970812, -0.016874006018042564, -0.027951033785939217, -0.015286299400031567, 0.001295781577937305, -0.000277646875474602, 0.015784764662384987, -0.034615714102983475, 0.012535504065454006, 0.049772780388593674, 0.0074123782105743885, 0.0439019538462162, -0.08219154924154282, 0.04681890457868576, 0.004892354365438223, -0.003055413719266653, -0.03635111451148987, 0.03548341244459152, -0.04312656447291374, 0.0011521263513714075, 0.03465263545513153, -0.0035884955432265997, -0.024572541937232018, 0.03260338678956032, -0.016015537083148956, 0.02477562054991722, 0.06871449947357178, -0.041021928191185, -0.007463147863745689, -0.04896046593785286, -0.005566206760704517, -0.03323108330368996, 0.03112644888460636, -0.06875142455101013, 0.02684333175420761, -0.0053585125133395195, -0.056418996304273605, 0.06697909533977509, 0.027877187356352806, 0.026344865560531616, -0.012821660377085209, -0.023150989785790443, -0.0013546282425522804, -0.01097548846155405, -0.07428993284702301, 0.032400306314229965, -0.03387724608182907, -0.018840178847312927, 0.04619120806455612, -0.05652976781129837, -0.02272637002170086, -0.0792376771569252, 0.04582197219133377, 0.008663158863782883, -0.05918825417757034, -0.005529283080250025, -0.04515735059976578, 0.05789593607187271, -0.05357589200139046, 0.01200934499502182, -0.015009373426437378, 0.044935811311006546, -0.026234095916152, 0.05088048428297043, 0.07908998429775238, -0.007643149700015783, 0.0065169851295650005, -0.03297261893749237, -0.045415814965963364, 0.0028361808508634567, 0.043643489480018616, 0.04201886057853699, 0.0013407819205895066, 0.050991252064704895, 0.03297261893749237, -0.0024600233882665634, 0.023372529074549675, -0.01403090264648199, -0.050991252064704895, -0.020843274891376495, -0.01988326571881771, -0.008270847611129284, 0.004786199424415827, 0.03753266483545303, 0.019144797697663307, -0.026215633377432823, 0.09504090249538422, 0.015775535255670547, 0.011981652118265629, 0.022320212796330452, 0.0018784793792292476, 0.03703419864177704, -0.008040076121687889, 0.0141878267750144, -0.018304789438843727, -0.015877073630690575, 0.055348217487335205, 0.009318550117313862, -0.008746236562728882, -0.034154169261455536, -0.015018603764474392, 0.014870909973978996, -0.027101796120405197, -0.02257867529988289, 0.028357192873954773, -0.013098586350679398, 0.0460435152053833, 0.035151101648807526, -0.03022182546555996, -0.031791072338819504, 0.05579129979014397, -0.02012326754629612, -0.006152366288006306, -0.016689389944076538, 0.025643320754170418, 0.09179163724184036, 0.005695438478142023, 0.013929363340139389, 0.07366223633289337, 0.0016361693851649761, 0.06000056862831116, -0.04009884223341942, 0.07901613414287567, -0.02326175943017006, -0.0453050471842289, -0.044418882578611374, -0.033692628145217896, -0.003830805653706193, 0.00929085724055767, -0.004993893671780825, 0.001140587730333209, -0.10309021174907684, 0.08093615621328354, 0.01661554165184498, -0.003270030952990055, -0.027341797947883606, -0.015720149502158165, 0.0015703995013609529, 0.003323108423501253, 0.0015784765128046274, 0.019938651472330093, -0.0013177047949284315, 0.04962508752942085, -0.004696198273450136, -0.01776016876101494, 0.03862190619111061, -0.00165001570712775, -0.07325608283281326, 0.022357136011123657, 0.057785164564847946, -0.010846257209777832, -0.020326346158981323, -0.03073875419795513, -0.014473984017968178, 0.04833276569843292, 0.020769428461790085, -0.009120086207985878, -0.11941036581993103, -0.021618666127324104, 0.041871167719364166, 0.074954554438591, -0.00423004012554884, 0.026658713817596436, 0.010837025940418243, -0.007735458202660084, 0.001746939611621201, -0.01745554991066456, -0.012184730730950832, -0.040689617395401, -0.027729494497179985, 0.045415814965963364, -0.043569643050432205, -0.06225289776921272, -0.026271019130945206, -0.04268348217010498, -0.03197568655014038, -0.06720063835382462, 0.0028846426866948605, 0.02233867347240448, -0.008857007138431072, -0.00007579399243695661, -0.025754090398550034, 0.004315425641834736, 0.06694217771291733, -0.012341655790805817, -0.04932969808578491, -0.018452482298016548, -0.026658713817596436, 0.058708250522613525, -0.04013576731085777, -0.01530476100742817, 0.005990826059132814, 0.018803255632519722, 0.007430839817970991, -0.026991024613380432, -0.044492729008197784, 0.06723756343126297, -0.054203592240810394, 0.03817882388830185, -0.01537860743701458, 0.042941946536302567, -0.01737247221171856, 0.026289479807019234, 0.013033970259130001, -0.02593870833516121, -0.06923142820596695, 0.04419734328985214, -0.03387724608182907, -0.030184902250766754, -0.02134174108505249, 0.004449272993952036, -0.04523119702935219, -0.06701602041721344, -0.027249488979578018, -0.00998778734356165, 0.006918527185916901, 0.03991422429680824, -0.044788118451833725, 0.06173596903681755, -0.007481609471142292, -0.016938623040914536, -0.08536696434020996, 0.04401272535324097, 0.014049364253878593, -0.05693592503666878, -0.01227703969925642, 0.03895421698689461, 0.0546097494661808, 0.0031777224503457546, 0.005686207674443722, -0.05309588834643364, -0.03564956784248352, -0.0599636472761631, 0.03947114571928978, -0.0342649407684803, -0.007620072457939386, 0.01265550497919321, -0.08241309225559235, -0.04434503614902496, 0.057415928691625595, 0.00039692685822956264, 0.06513292342424393, -0.025274086743593216, -0.024110998958349228, -0.00872777495533228, 0.00012641947250813246, 0.017243240028619766, 0.01736324094235897, -0.019901728257536888, -0.01835094392299652, 0.03725573793053627, -0.05900363624095917, 0.0198094192892313, 0.041575778275728226, 0.019144797697663307, 0.003837728640064597, -0.05796978250145912, -0.03625880554318428, 0.0019927113316953182, 0.05187741667032242, -0.002070019720122218, 0.0053354352712631226, 0.020234039053320885, -0.03725573793053627, 0.008137000724673271, 0.03358185663819313, -0.02316945046186447, -0.013680130243301392, -0.010264712385833263, 0.02494177594780922, 0.05767439305782318, -0.02080635167658329, 0.06018518656492233, 0.007500071078538895, 0.0017711706459522247, 0.002281175460666418, 0.013292433694005013, 0.06683140248060226, -0.004716967698186636, 0.009664706885814667, 0.02776641771197319, -0.0010315482504665852, -0.01081856433302164, -0.02844949997961521, 0.04796353355050087, 0.017169393599033356, 0.03563110902905464, -0.058855943381786346, -0.026067940518260002, 0.047225065529346466, 0.025421779602766037, -0.0333603173494339, 0.02036326937377453, -0.011030874215066433, -0.023520223796367645, 0.023741763085126877, -0.04212963208556175, 0.04796353355050087, -0.025440242141485214, -0.07325608283281326, 0.05468359589576721, -0.008972393348813057, 0.003219261299818754, 0.04759429767727852, 0.010855487547814846, -0.0971086174249649, 0.04836969077587128, -0.035372644662857056, -0.031938765197992325, -0.014049364253878593, -0.03708958253264427, 0.06974835693836212, -0.04032038152217865, -0.06690525263547897, -0.027507953345775604, 0.015793995931744576, 0.014409367926418781, -0.04404965043067932, -0.01858171448111534, -0.0043108100071549416, -0.030572598800063133, 0.017704783007502556, -0.006664678454399109, 0.024664849042892456, -0.055717453360557556, -0.0062308283522725105, 0.028320269659161568, -0.023372529074549675, -0.02004942111670971, 0.002607717178761959, 0.0005382743547670543, -0.01136318501085043, 0.01956941746175289, -0.038215748965740204, 0.04644967243075371, -0.021932516247034073, -0.021858669817447662, 0.057268235832452774, 0.011935497634112835, -0.009060085751116276, -0.005709284916520119, -0.027563339099287987, 0.0724068433046341, -0.021858669817447662, -0.029021814465522766, 0.0613667368888855, -0.05446205660700798, 0.041428085416555405, 0.03865882754325867, -0.008169308304786682, 0.03579726442694664, 0.03703419864177704, -0.06753294914960861, -0.04083731025457382, -0.006189289502799511, -0.05468359589576721, -0.06657294183969498, 0.006987758446484804, -0.0011325107188895345, 0.018858641386032104, 0.004530042875558138, 0.00018360750982537866, -0.004693890921771526, -0.028117189183831215, -0.020640196278691292, 0.007560072001069784, 0.02156328223645687, 0.028634117916226387, 0.03498494625091553, -0.018341712653636932, 0.040652692317962646, -0.06461599469184875, -0.03884344547986984, 0.005704669747501612, -0.013550898060202599, -0.03177260980010033, -0.0018530945526435971, -0.012904738076031208, 0.009784708730876446, -0.003175414865836501, 0.0003028874925803393, -0.0018115557031705976, -0.017944786697626114, -0.027212565764784813, 0.003533110488206148, -0.026751022785902023, 0.048775848001241684, -0.049145083874464035, -0.07307146489620209, -0.025292547419667244, -0.02479408122599125, 0.059557490050792694, 0.012018575333058834, -0.043791186064481735, 0.05892978981137276, 0.04596966877579689, 0.03917575627565384, 0.013790899887681007, -0.034541867673397064, -0.018794024363160133, -0.056640539318323135, -0.0021530974190682173, -0.04526812210679054, 0.020012497901916504, 0.06022211164236069, -0.025034083053469658, 0.03825267031788826, 0.04412349686026573, -0.019144797697663307, -0.03755112737417221, 0.009997017681598663, -0.01790786162018776, -0.018147865310311317, -0.006987758446484804, 0.001142318593338132, -0.050917405635118484, -0.046855829656124115, 0.08359464257955551, 0.02555101178586483, 0.09954556077718735, 0.0034846484195441008, -0.026141786947846413, 0.0033877245150506496, -0.0364064984023571, 0.032621849328279495, -0.03603726625442505, -0.025458702817559242, 0.03441263362765312, 0.009544705972075462, -0.035926494747400284, -0.05911440774798393, 0.06180981919169426, 0.018858641386032104, -0.020307885482907295, -0.005344666074961424, -0.048997387290000916, 0.008090846240520477, -0.010947796516120434, 0.0008717390592209995, -0.0004433695867192, 0.03758804872632027, 0.028117189183831215, -0.04759429767727852, 0.04013576731085777, 0.060628268867731094, 0.04013576731085777, 0.010680101811885834, 0.0003937537258025259, -0.044418882578611374, -0.010495483875274658, -0.02263406105339527, -0.058708250522613525, 0.08521927148103714, -0.0439019538462162, 0.07004374265670776, 0.0059677488170564175, 0.02379714883863926, -0.09341627359390259, -0.03433878719806671, -0.01502783503383398, -0.05907748267054558, 0.015812458470463753, 0.07672688364982605, 0.0012080883607268333, 0.04608043655753136, 0.0324556939303875, -0.004170039668679237, -0.022523291409015656, 0.01858171448111534, 0.058782096952199936, -0.0025592551100999117, -0.009729322977364063, 0.00263771740719676, 0.023206373676657677, -0.02287406288087368, -0.015821687877178192, 0.02516331523656845, 0.024443309754133224, 0.026344865560531616, -0.0029377201572060585, -0.015701686963438988, 0.011261645704507828, 0.04733583331108093, -0.006023134104907513, 0.007343146484345198, -0.02608640119433403, -0.01154780201613903, -0.01883094757795334, 0.010772409848868847, 0.01958787813782692, -0.0345972515642643, 0.0015773227205500007, -0.00447696540504694, -0.012406271882355213, 0.0005137549014762044, -0.01502783503383398, -0.013329356908798218, -0.0513974092900753, -0.036369577050209045, -0.023224836215376854, 0.05080663785338402, 0.07321915775537491, 0.018009401857852936, 0.03788343816995621 ]
730,343
mmengine.utils.misc
slice_list
Slice a list into several sub lists by a list of given length. Args: in_list (list): The list to be sliced. lens(int or list): The expected length of each out list. Returns: list: A list of sliced list.
def slice_list(in_list, lens): """Slice a list into several sub lists by a list of given length. Args: in_list (list): The list to be sliced. lens(int or list): The expected length of each out list. Returns: list: A list of sliced list. """ if isinstance(lens, int): assert len(in_list) % lens == 0 lens = [lens] * int(len(in_list) / lens) if not isinstance(lens, list): raise TypeError('"indices" must be an integer or a list of integers') elif sum(lens) != len(in_list): raise ValueError('sum of lens and list length does not ' f'match: {sum(lens)} != {len(in_list)}') out_list = [] idx = 0 for i in range(len(lens)): out_list.append(in_list[idx:idx + lens[i]]) idx += lens[i] return out_list
(in_list, lens)
[ -0.04854680225253105, -0.010781287215650082, -0.08873079717159271, -0.018656853586435318, -0.006591025274246931, 0.033415790647268295, 0.02117278426885605, 0.02120821923017502, -0.027551194652915, 0.00779583677649498, -0.0410698838531971, -0.008982929401099682, -0.03061637654900551, -0.024007633328437805, 0.049007464200258255, -0.002662101062014699, 0.03027973882853985, -0.003621077397838235, 0.002060802886262536, -0.01615864224731922, 0.04170772433280945, -0.007011823356151581, 0.029074925929307938, 0.06187059357762337, -0.013483253307640553, 0.04546390101313591, 0.08320283889770508, 0.019471874460577965, 0.014404579997062683, -0.005071723368018866, 0.024308836087584496, 0.026098335161805153, 0.015113292261958122, 0.005598828196525574, -0.0466332770884037, 0.028507957234978676, 0.02398991584777832, 0.032441310584545135, -0.0027329721488058567, 0.130615696310997, -0.043231457471847534, -0.033008281141519547, 0.04011312127113342, -0.00802173838019371, -0.013412382453680038, 0.0014971549389883876, -0.01633582077920437, 0.023493817076086998, 0.0023321066983044147, 0.022058673202991486, -0.015467648394405842, 0.017832975834608078, -0.04231012985110283, -0.029004056006669998, -0.009390439838171005, 0.0008177876588888466, 0.030793555080890656, 0.011746908538043499, 0.048369623720645905, 0.05067293718457222, -0.009913114830851555, 0.0015669187996536493, 0.009647347964346409, -0.06601656228303909, -0.01802787184715271, -0.000942919694352895, -0.029854509979486465, -0.020924733951687813, -0.0495389960706234, -0.06445739418268204, -0.017638079822063446, 0.015866300091147423, 0.0037650347221642733, -0.029252104461193085, -0.04138880595564842, 0.021881496533751488, 0.021686600521206856, 0.0006970851100049913, 0.0631108433008194, -0.01713312231004238, 0.014245119877159595, -0.0172837246209383, -0.00802173838019371, 0.034797780215740204, 0.028065010905265808, 0.008579849265515804, 0.0015004770830273628, 0.002613377058878541, 0.07583222538232803, 0.024716345593333244, 0.023263484239578247, 0.042593616992235184, -0.045180417597293854, -0.07342260330915451, -0.07717878371477127, -0.0017839620122686028, -0.024308836087584496, -0.027303146198391914, -0.05442911386489868, 0.012429043650627136, -0.030634094029664993, -0.0014052438782528043, -0.0872424989938736, -0.00903165340423584, 0.0025912297423928976, 0.03773893788456917, -0.030864425003528595, 0.01024975348263979, 0.0028547821566462517, 0.03756175935268402, 0.016964802518486977, 0.02023373916745186, -0.03454973176121712, -0.016185220330953598, -0.017301442101597786, 0.04890115559101105, 0.04021942988038063, -0.05056663230061531, -0.06541415303945541, -0.05729939788579941, -0.005390643607825041, -0.0698436051607132, -0.0716862604022026, 0.02604518085718155, 0.011578588746488094, 0.03844764828681946, 0.0008958567632362247, 0.011773484759032726, 0.023529252037405968, 0.00034217521897517145, 0.0030563222244381905, 0.034532010555267334, -0.04627892002463341, -0.003395175328478217, 0.039298102259635925, -0.040680091828107834, -0.0009733721963129938, -0.0007723857997916639, -0.04819244518876076, -0.007211148738861084, -0.01448430959135294, -0.01019660010933876, 0.012836553156375885, 0.06899315118789673, -0.02248390205204487, -0.03231728449463844, 0.041282497346401215, -0.03290197253227234, 0.03501039370894432, 0.05935466289520264, -0.012180994264781475, 0.044400833547115326, -0.009266414679586887, -0.0415305458009243, 0.00707383593544364, -0.022040955722332, -0.031041603535413742, -0.07951753586530685, 0.018426522612571716, 0.04287710040807724, -0.016628164798021317, -0.013811033219099045, -0.06757573038339615, 0.01001056283712387, -0.04160141944885254, -0.0011416914639994502, -0.018010154366493225, -0.07802923768758774, -0.03621520474553108, 0.00034272889024578035, 0.045782823115587234, 0.031909774988889694, 0.03975876793265343, -0.03508126363158226, -0.03830590471625328, 0.048334185034036636, -0.05322430282831192, 0.010542097501456738, -0.04822788015007973, -0.06417390704154968, -0.05861051753163338, -0.026257794350385666, 0.008243211545050144, -0.03752632066607475, -0.009168966673314571, 0.03384101763367653, -0.021243654191493988, 0.006037343759089708, 0.008362806402146816, -0.008252070285379887, -0.05574022978544235, -0.015884017571806908, 0.02919895201921463, -0.04291253536939621, -0.0487239770591259, 0.015299329534173012, -0.06052403897047043, 0.041176192462444305, -0.004540188703685999, -0.0029035061597824097, -0.040715526789426804, 0.023104025050997734, 0.001646648976020515, -0.04227469488978386, 0.010453508235514164, 0.04727111756801605, -0.0073661794885993, 0.0428062304854393, 0.021987803280353546, -0.008371665142476559, -0.031537704169750214, -0.008061603643000126, 0.046987634152173996, 0.02469862811267376, 0.04936182126402855, -0.00940815731883049, -0.08454938977956772, -0.02016286738216877, 0.05705134943127632, -0.043869297951459885, 0.020588096231222153, -0.03653412684798241, -0.045818258076906204, 0.035665951669216156, -0.015423353761434555, 0.04500323906540871, 0.023245766758918762, -0.021385397762060165, 0.03017343021929264, -0.01379331573843956, -0.025992028415203094, -0.04135337099432945, 0.050956424325704575, 0.03322089463472366, 0.0077249654568731785, 0.043231457471847534, -0.046952199190855026, -0.039935942739248276, 0.04985791817307472, 0.006462571211159229, -0.05396845191717148, 0.010329483076930046, 0.04032573476433754, 0.011047055013477802, -0.002994309877976775, 0.0843367800116539, -0.03901461884379387, 0.0504603236913681, -0.019365565851330757, 0.048334185034036636, -0.011755767278373241, 0.033858735114336014, 0.04160141944885254, 0.025177009403705597, 0.04036117345094681, 0.07965927571058273, 0.0068922280333936214, -0.011029336601495743, -0.009204402565956116, -0.031874340027570724, 0.02264336124062538, -0.07484003156423569, 0.015246176160871983, -0.06417390704154968, 0.012508774176239967, -0.03594943881034851, 0.054889775812625885, 0.00984224397689104, -0.02271423302590847, 0.06668984144926071, 0.0788796916604042, 0.040573786944150925, 0.010347201488912106, -0.0341067835688591, 0.002197008579969406, -0.011303963139653206, 0.039865072816610336, 0.02799414098262787, 0.028100447729229927, 0.03144911304116249, 0.042593616992235184, 0.04337320104241371, -0.06839074939489365, 0.06176428869366646, 0.030332891270518303, -0.0198971014469862, 0.08554159104824066, -0.004708508029580116, 0.003463831963017583, 0.03196293115615845, 0.020977888256311417, -0.020038843154907227, 0.029287541285157204, -0.06293366104364395, -0.05145252123475075, 0.06179972365498543, 0.009452451951801777, -0.037278272211551666, -0.020570378750562668, -0.0025690824259072542, -0.0029610891360789537, -0.05191318318247795, 0.011578588746488094, 0.021686600521206856, 0.030031688511371613, -0.04291253536939621, -0.002837064443156123, -0.03830590471625328, 0.0024937817361205816, -0.05662612244486809, 0.018391087651252747, -0.02113734744489193, -0.028507957234978676, -0.05776006355881691, 0.02103104069828987, -0.03276023268699646, -0.01656615361571312, 0.021420832723379135, 0.017531773075461388, 0.039191797375679016, 0.013695867732167244, 0.01979079470038414, -0.018532829359173775, 0.08348632603883743, 0.015697980299592018, 0.02069440297782421, 0.012942860834300518, 0.05574022978544235, -0.012978295795619488, 0.04092814028263092, -0.07533612847328186, -0.01858598366379738, -0.0070206825621426105, 0.032335005700588226, 0.02234215848147869, -0.06449282914400101, 0.041282497346401215, 0.03578997775912285, -0.036073461174964905, -0.007215578109025955, 0.025655388832092285, -0.05265733227133751, 0.014599476009607315, -0.005488091614097357, 0.07037514448165894, 0.013500971719622612, 0.06268561631441116, 0.0066618965938687325, -0.00962962955236435, 0.05010596662759781, 0.0341067835688591, -0.027675218880176544, 0.0060417731292545795, -0.018267063423991203, 0.015210740268230438, 0.040644656866788864, -0.00027767132269218564, -0.027604348957538605, -0.014767794869840145, -0.04422365501523018, 0.05067293718457222, -0.030368326231837273, 0.04482606053352356, -0.062154076993465424, -0.008229922503232956, -0.003512555966153741, -0.04301884397864342, -0.0381641648709774, 0.021881496533751488, 0.0402548648416996, -0.016743330284953117, -0.07044601440429688, 0.04532215744256973, 0.01682306081056595, 0.036108896136283875, -0.019702205434441566, -0.04596000164747238, 0.0013687008759006858, -0.04468431696295738, 0.05510238930583, -0.04975161328911781, -0.037420015782117844, 0.023777302354574203, -0.008194487541913986, 0.018320215865969658, 0.02893318422138691, -0.07618658244609833, -0.0030075982213020325, 0.00828307680785656, 0.03256533667445183, -0.02879144251346588, 0.03270707651972771, 0.05496064946055412, 0.02136767841875553, -0.0171685591340065, 0.012083546258509159, 0.006258816458284855, 0.002852567471563816, 0.04893659055233002, -0.02980135753750801, 0.01777096465229988, -0.02638182044029236, -0.056874170899391174, 0.06314627826213837, -0.013164333067834377, 0.027374016121029854, 0.010143446736037731, -0.021296808496117592, -0.010170022957026958, -0.03975876793265343, 0.009487887844443321, -0.01855054683983326, 0.016955943778157234, 0.01199495792388916, 0.08993560820817947, 0.05605915188789368, -0.04043204337358475, 0.045782823115587234, 0.008788034319877625, -0.026133770123124123, 0.058716822415590286, -0.042522743344306946, 0.0328311026096344, 0.02005656063556671, -0.03198064863681793, -0.06031142547726631, -0.029021773487329483, 0.028242189437150955, -0.005674128886312246, -0.0019611401949077845, 0.0026975367218255997, 0.011064772494137287, -0.07724965363740921, -0.026222359389066696, -0.018763160333037376, -0.005563392303884029, -0.021952366456389427, 0.026434972882270813, -0.01731915958225727, -0.0010193277848884463, 0.05605915188789368, 0.056094586849212646, 0.0006051739328540862, 0.02664758637547493, 0.07710791379213333, 0.054287370294332504, -0.037384580820798874, 0.029624179005622864, -0.054287370294332504, -0.04996422678232193, 0.029145797714591026, -0.01956046186387539, 0.005833589006215334, 0.009638489224016666, -0.025478212162852287, -0.030722683295607567, -0.08773859590291977, 0.006325258407741785, -0.0239544790238142, 0.0036609426606446505, 0.06261473894119263, 0.01713312231004238, 0.03784524276852608, 0.008446966297924519, -0.001294507528655231, 0.008362806402146816, -0.03290197253227234, 0.04220382496714592, -0.011614024639129639, 0.0016012471169233322, -0.007835702039301395, -0.039227232336997986, -0.039333537220954895, 0.02705509588122368, 0.06793008744716644, 0.045180417597293854, 0.003629936370998621, -0.016920508816838264, 0.022891411557793617, -0.006046202965080738, -0.0852581039071083, -0.03299056366086006, -0.02950015477836132, 0.004695219919085503, -0.06722137331962585, 0.010506661608815193, -0.04992878809571266, 0.0171685591340065, -0.04266448691487312, -0.0448969304561615, -0.015503084287047386, -0.009886538609862328, -0.01945415511727333, -0.019578181207180023, 0.04145967587828636, -0.0011793418088927865, -0.03020886704325676, 0.04716481268405914, 0.07916317880153656, 0.049645304679870605, 0.0064802891574800014, 0.049645304679870605, 0.088163822889328, 0.0037251696921885014, -0.005869024898856878, 0.021934648975729942, 0.0315554216504097, 0.0394398458302021, -0.01384646911174059, -0.07654093950986862, 0.0026643157470971346, 0.05566935986280441, -0.017035674303770065, 0.05042488873004913, -0.033344920724630356, 0.024982113391160965, -0.013979352079331875, 0.019808512181043625, 0.0031094758305698633, -0.004256703890860081, 0.02701966091990471, 0.045180417597293854, -0.015724556520581245, -0.02758663147687912, 0.043196022510528564, -0.011587448418140411, -0.00021648949768859893, -0.0209956057369709, -0.01862141862511635, 0.034053631126880646, -0.05510238930583, 0.022909129038453102, -0.010967324487864971, 0.006617601960897446, 0.04411734640598297, 0.06038229912519455, -0.0448969304561615, -0.03720740228891373, 0.11126784980297089, -0.013244063593447208, -0.00492112198844552, -0.004026372451335192, 0.031041603535413742, -0.002892432501539588, -0.03520528972148895, 0.027338581159710884, -0.016663599759340286, -0.01581314578652382, -0.007166854105889797, 0.02574397809803486, 0.018603701144456863, -0.031909774988889694, 0.034425705671310425, -0.04007768630981445, -0.015334764495491982, -0.02133224345743656, 0.02661215141415596, -0.06541415303945541, -0.039298102259635925, -0.025141572579741478, 0.00022244156571105123, 0.022253569215536118, 0.026860199868679047, 0.03175031766295433, -0.008903199806809425, 0.045215852558612823, 0.0025181437376886606, -0.04142424091696739, -0.007826842367649078, -0.026417255401611328, 0.020977888256311417, 0.04684589058160782, -0.005572251509875059, 0.024486014619469643, 0.02361784130334854, -0.03024430200457573, 0.05070837214589119, -0.04875941574573517, 0.01589287631213665, -0.024822652339935303, 0.014369144104421139, -0.05988619849085808, -0.021084195002913475, -0.03460288420319557, -0.012375890277326107, 0.04163685441017151, -0.03332719951868057, 0.0014207469066604972, -0.02315717749297619, 0.0313250869512558, 0.06732767820358276, 0.009656206704676151, 0.031466830521821976, 0.011011619120836258, -0.047696344554424286, -0.05067293718457222, -0.0827067419886589, -0.03626835718750954, -0.02248390205204487, -0.010949607007205486, -0.07349348068237305, 0.021261371672153473, 0.0059709022752940655, 0.04369211941957474, -0.006099356338381767, 0.02912808023393154, -0.0081501929089427, 0.03320317715406418, 0.002060802886262536, -0.005488091614097357, -0.02133224345743656, 0.043302327394485474, -0.013811033219099045, -0.016282668337225914, -0.02184605970978737, -0.02358240634202957, 0.011188797652721405, 0.02409622259438038, 0.06396129727363586, 0.018532829359173775, -0.032210979610681534, 0.06661896407604218, 0.013217486441135406, -0.002573512028902769, -0.05411019176244736, -0.05559848994016647, 0.013022590428590775, 0.016477564349770546, 0.04681045562028885, -0.016087772324681282, 0.008495690301060677, 0.026807047426700592, 0.011782343499362469, 0.03460288420319557, 0.019312413409352303, 0.014626052230596542, 0.004881256725639105, -0.01772666908800602, 0.012402467429637909, 0.025655388832092285, 0.0461726151406765, -0.05333060771226883, 0.01975535787642002, -0.021084195002913475, 0.021048758178949356, -0.028950901702046394, 0.022519337013363838, 0.020747555419802666, 0.050389453768730164, 0.02893318422138691, -0.009603053331375122, 0.06342975795269012, -0.0034350405912846327, 0.0030009541660547256, -0.01456404011696577, -0.015804287046194077, 0.07179256528615952, -0.0016887288074940443, 0.023901326581835747, -0.003756175749003887, 0.016123207286000252, -0.01731915958225727, 0.0226787980645895, -0.006134791765362024, 0.023263484239578247, -0.022661078721284866, -0.028454802930355072, 0.060063377022743225, 0.006316399201750755, 0.05499608442187309, 0.00962962955236435, -0.06771747022867203, 0.007193430792540312, 0.04627892002463341, 0.07119016349315643, -0.04397560656070709, 0.008703874424099922, -0.026842482388019562, -0.006373982410877943, -0.007667382247745991, 0.010267470963299274, -0.004389587324112654, 0.017753245308995247, -0.0030031688511371613, -0.001651078462600708, 0.08447851985692978, 0.039333537220954895, -0.0182139091193676, -0.06562677025794983, 0.04209751635789871, 0.019914818927645683, -0.02328120358288288, -0.011020477861166, -0.015653684735298157, -0.06637091934680939, -0.014324849471449852, -0.02439742535352707, 0.018497394397854805, 0.00779583677649498, 0.007826842367649078, 0.0016687962925061584, 0.010045998729765415, 0.020322328433394432, 0.025106137618422508, -0.05407475680112839, -0.05967358499765396, -0.04606630653142929, -0.02530103363096714, 0.008836758323013783, 0.00009225719259120524, 0.05662612244486809, 0.03258305415511131, 0.023848172277212143, 0.0004626009613275528, 0.012056970037519932, -0.06626461446285248, -0.026931071653962135, 0.011401411145925522, -0.03194521367549896, 0.014590617269277573, 0.06814269721508026, -0.0487239770591259, 0.04737742617726326, -0.0028348497580736876, -0.043869297951459885, -0.03403591364622116, -0.0012767896987497807, 0.05779549852013588, -0.058078981935977936, 0.0049078334122896194, -0.01627380959689617, 0.02345838025212288, 0.02375958301126957, -0.06668984144926071, 0.02661215141415596, -0.024220246821641922, -0.02496439404785633, -0.02526559680700302, -0.01847967691719532, -0.04932638257741928, 0.002266772324219346, -0.03844764828681946, -0.03460288420319557, 0.012092405930161476, -0.06938294321298599, 0.026080617681145668, 0.04425908997654915, -0.04404647648334503, -0.0301025602966547, -0.048369623720645905, -0.005944325588643551, -0.011959522031247616, -0.06555590033531189, -0.06474088132381439, 0.013757879845798016, -0.030634094029664993, -0.0010824474738910794, -0.052834510803222656, -0.050920985639095306, -0.030386045575141907, -0.0034106785897165537, -0.010471225716173649, -0.005567822139710188, 0.07101298123598099, -0.025513647124171257, 0.026558997109532356, -0.03166172653436661, -0.03343350812792778 ]
730,344
mmengine.utils.path
symlink
null
def symlink(src, dst, overwrite=True, **kwargs): if os.path.lexists(dst) and overwrite: os.remove(dst) os.symlink(src, dst, **kwargs)
(src, dst, overwrite=True, **kwargs)
[ -0.015615354292094707, -0.010123294778168201, -0.009434635750949383, 0.001841088174842298, -0.025514835491776466, 0.022295352071523666, -0.0227429810911417, 0.054369669407606125, 0.03038710169494152, 0.04830946400761604, 0.022295352071523666, -0.0071061053313314915, 0.06449296325445175, -0.024826176464557648, -0.0012503474717959762, 0.01819782704114914, 0.029147515073418617, 0.01676025055348873, 0.003992073237895966, 0.036464519798755646, 0.03591359406709671, 0.015348498709499836, -0.020556487143039703, -0.039081428200006485, -0.005591054446995258, 0.08422306180000305, -0.01929968222975731, -0.012206490151584148, -0.05140843242406845, 0.029956689104437828, 0.007880846969783306, 0.008857883512973785, 0.054472967982292175, 0.04968678578734398, 0.026427309960126877, 0.009908088482916355, -0.00976174883544445, 0.04848163202404976, -0.12843500077724457, -0.03815173730254173, 0.020849166437983513, 0.01979896053671837, 0.01800844632089138, 0.01700988970696926, 0.03393369913101196, -0.0016753794625401497, -0.027615247294306755, -0.014384375885128975, -0.005741698667407036, -0.06328780949115753, 0.0026319706812500954, 0.022777413949370384, 0.005457626655697823, 0.01528824120759964, -0.01538293156772852, -0.005169250536710024, 0.026014113798737526, 0.0517183281481266, -0.06614574790000916, 0.022260919213294983, 0.041801631450653076, -0.004751750733703375, -0.027632463723421097, 0.011156284250319004, 0.02214040420949459, -0.06449296325445175, -0.006430358160287142, -0.01911030150949955, 0.014952519908547401, -0.0006214076420292258, -0.09083419293165207, 0.015512055717408657, 0.02241586707532406, -0.018886487931013107, 0.021090198308229446, 0.07027770578861237, 0.02857936918735504, -0.029233597218990326, 0.03400256484746933, -0.05461069941520691, -0.05905255302786827, -0.0770609974861145, -0.017414476722478867, 0.017440302297472954, -0.02455071173608303, 0.04545152932405472, 0.08394759893417358, -0.03377874940633774, 0.017225096002221107, 0.015417365357279778, -0.012748809531331062, 0.0012083821929991245, -0.005724482238292694, -0.057778533548116684, 0.001669999328441918, 0.012206490151584148, -0.0029849086422473192, -0.012206490151584148, 0.09372656047344208, 0.005853605922311544, 0.0112165417522192, -0.025497619062662125, -0.013471901416778564, 0.015598137862980366, 0.02556648477911949, 0.0017507015727460384, -0.02052205428481102, 0.018972570076584816, -0.03460514172911644, -0.016527827829122543, -0.030352668836712837, -0.0034067125525325537, 0.04837832972407341, -0.020986899733543396, -0.005324198864400387, -0.010639789514243603, 0.057193174958229065, -0.04786183685064316, 0.00159144913777709, 0.00796693004667759, -0.05189049616456032, -0.017414476722478867, -0.01721648871898651, -0.09000779688358307, 0.07086306810379028, -0.0016570870066061616, 0.037669677287340164, 0.02818339131772518, 0.019454631954431534, 0.041698332875967026, -0.03401977941393852, 0.000652074464596808, -0.008509249426424503, 0.008190744556486607, -0.020143290981650352, -0.03462235629558563, 0.029836174100637436, 0.0029655401594936848, 0.022708548232913017, -0.02062535285949707, -0.005888038780540228, -0.03663668781518936, -0.0003696164640132338, 0.02201988734304905, 0.012903757393360138, -0.03049040026962757, -0.03222926706075668, 0.006206544116139412, 0.04001111909747124, 0.030025554820895195, 0.0315750390291214, 0.01911030150949955, -0.0293885450810194, 0.05261358618736267, -0.050650905817747116, 0.027184834703803062, -0.06621461361646652, -0.03283184394240379, 0.02988782338798046, 0.01615767367184162, 0.006469095591455698, -0.019075868651270866, -0.000009104226592171472, -0.01624375581741333, 0.004041570704430342, -0.021761640906333923, 0.01478896290063858, -0.0034583620727062225, 0.04844719544053078, 0.01792236417531967, -0.018352776765823364, -0.011689995415508747, 0.10605356842279434, -0.010372933931648731, 0.027012670412659645, -0.020763084292411804, 0.047620806843042374, -0.008883708156645298, 0.004575281869620085, -0.04917028918862343, 0.007450435310602188, -0.030094420537352562, 0.009055872447788715, -0.03601689264178276, 0.0018722930690273643, 0.0440397746860981, -0.055368226021528244, 0.044521838426589966, -0.007708682678639889, -0.03129957616329193, 0.024171948432922363, 0.004131956957280636, 0.030421534553170204, 0.0032539162784814835, -0.016854941844940186, -0.028286689892411232, -0.000002845596327460953, -0.002410308225080371, -0.051236268132925034, 0.06452739983797073, -0.022054320201277733, 0.03358936682343483, 0.015339890494942665, 0.0027202051132917404, 0.05953461676836014, -0.04104410856962204, 0.01756942644715309, 0.021847723051905632, -0.07409976422786713, -0.005982729606330395, 0.046105753630399704, -0.023483289405703545, 0.04576142504811287, 0.00018924685718957335, 0.032625243067741394, 0.04830946400761604, -0.023052876815199852, 0.053371112793684006, -0.012938191182911396, 0.00890092458575964, -0.008935357443988323, -0.0450727641582489, 0.0005654540145769715, 0.06748863309621811, 0.04307565465569496, -0.012189273722469807, 0.022708548232913017, -0.008616852574050426, 0.05478286370635033, -0.02837277203798294, -0.02002277597784996, 0.025910815224051476, 0.05189049616456032, -0.04335111752152443, 0.06263358145952225, -0.062013790011405945, 0.03047318384051323, -0.013730148784816265, -0.026392875239253044, 0.019144734367728233, -0.07034657150506973, 0.04734534025192261, 0.06239255145192146, 0.03601689264178276, 0.08353439718484879, 0.030352668836712837, -0.01402282901108265, -0.013523551635444164, -0.021055765450000763, -0.07960904389619827, 0.011285407468676567, 0.04799956828355789, -0.01942019909620285, 0.03160947188735008, 0.03098967857658863, -0.02174442447721958, 0.002995668910443783, 0.021847723051905632, -0.025497619062662125, 0.046518951654434204, 0.023190610110759735, -0.034364111721515656, -0.010080253705382347, -0.05392203852534294, 0.012791850604116917, 0.009701491333544254, 0.010579532012343407, 0.03770411014556885, -0.033038441091775894, 0.03400256484746933, 0.05543709173798561, -0.04097524285316467, 0.00789375975728035, -0.00636579655110836, 0.018352776765823364, 0.001606513513252139, -0.02988782338798046, -0.007984146475791931, 0.08663336932659149, 0.02000555954873562, 0.015899427235126495, -0.024602361023426056, 0.013041489757597446, 0.008341388776898384, -0.01051066629588604, 0.00734713627025485, 0.006370100658386946, -0.0033120219595730305, -0.008978398516774178, -0.00726535776630044, 0.0575375035405159, 0.013471901416778564, -0.03159225732088089, 0.04979008436203003, 0.002847176743671298, 0.0741686299443245, -0.035362664610147476, 0.025480402633547783, -0.036981016397476196, -0.018025662750005722, -0.030128853395581245, -0.0008538301917724311, -0.0125680360943079, 0.07382430136203766, -0.03150617331266403, -0.03581029549241066, 0.050341010093688965, -0.012163449078798294, 0.031523387879133224, 0.018146177753806114, 0.01212040800601244, -0.056573379784822464, -0.012240923009812832, 0.0025867773219943047, 0.0072524454444646835, 0.021176280453801155, -0.024671226739883423, 0.01750916801393032, -0.016923807561397552, -0.04121627286076546, -0.025514835491776466, -0.01333416998386383, -0.06872822344303131, 0.026719989255070686, -0.0006041910964995623, -0.015615354292094707, -0.0019314747769385576, 0.042008232325315475, -0.013007056899368763, 0.007213708478957415, 0.02966400794684887, -0.00395118398591876, -0.007618295960128307, 0.026737205684185028, -0.09090305864810944, -0.017182055860757828, -0.021951021626591682, -0.05812286213040352, 0.018266694620251656, 0.03403699770569801, 0.007971233688294888, 0.024705659598112106, -0.008952573873102665, -0.013781799003481865, -0.002722357166931033, 0.023879269137978554, -0.047724105417728424, -0.032039884477853775, -0.013997004367411137, 0.03853049874305725, 0.030042771250009537, 0.1040564551949501, -0.024912258610129356, -0.009994171559810638, 0.018731538206338882, 0.025394320487976074, 0.002048762049525976, -0.04052761197090149, 0.016269581392407417, -0.1371121108531952, -0.02121071331202984, -0.013015665113925934, -0.03453627601265907, -0.03358936682343483, 0.02504999004304409, 0.013067314401268959, -0.052648019045591354, -0.0168291162699461, -0.014255251735448837, -0.012154840864241123, -0.024085866287350655, -0.04686328023672104, 0.06304677575826645, -0.007312703412026167, 0.0446595698595047, -0.02704710327088833, 0.030421534553170204, -0.02444741316139698, 0.010786130093038082, 0.005014302209019661, -0.005707265809178352, -0.03853049874305725, 0.025497619062662125, -0.016631128266453743, 0.020573703572154045, 0.014909478835761547, -0.012955407612025738, 0.005948296748101711, 0.04999668151140213, 0.007441827096045017, 0.023655453696846962, 0.0033916481770575047, 0.009288295172154903, -0.03935689106583595, 0.029732875525951385, -0.03049040026962757, 0.025514835491776466, 0.04645008593797684, -0.023293908685445786, 0.04879152774810791, -0.030731430277228355, 0.07196491956710815, -0.06056760624051094, 0.03358936682343483, -0.03357215225696564, 0.021916588768363, 0.025928031653165817, 0.020952465012669563, 0.032745759934186935, 0.027425864711403847, -0.02253638207912445, 0.025686999782919884, -0.055368226021528244, -0.005350023508071899, 0.04565812647342682, 0.06714430451393127, 0.015675611793994904, -0.04434967413544655, -0.04614018648862839, -0.03828946873545647, 0.0012912366073578596, -0.031936585903167725, 0.016519220545887947, 0.02808009274303913, 0.03186772018671036, -0.03508720174431801, 0.018060095608234406, 0.024998340755701065, -0.047620806843042374, 0.02716761827468872, 0.05925915017724037, -0.025411536917090416, 0.06931357830762863, 0.01453071553260088, 0.0033443027641624212, 0.008573810569941998, 0.07926470786333084, -0.07451295852661133, -0.030025554820895195, 0.003441145643591881, 0.03086916357278824, -0.024481846019625664, -0.006357188336551189, -0.006705821957439184, -0.08401646465063095, 0.011096026748418808, -0.03894369676709175, -0.029026998206973076, 0.05058204010128975, 0.03970121964812279, -0.0008861111127771437, 0.004388052504509687, 0.004258928820490837, 0.023655453696846962, -0.037566374987363815, -0.07754306495189667, -0.07836945354938507, -0.05505833029747009, -0.04799956828355789, 0.030197719112038612, 0.008634069003164768, 0.013067314401268959, 0.054266370832920074, -0.052751317620277405, -0.020074425265192986, 0.04235256090760231, 0.04545152932405472, -0.05963791534304619, -0.0258591640740633, -0.023483289405703545, 0.026100195944309235, -0.044900599867105484, 0.06914141774177551, 0.059913378208875656, 0.010579532012343407, 0.013635458424687386, 0.01383344829082489, -0.02766689658164978, -0.014840612187981606, 0.01940298266708851, 0.020367104560136795, -0.026685556396842003, 0.005780435632914305, 0.011681387200951576, 0.02022937312722206, 0.015469014644622803, 0.014668447896838188, 0.0285621527582407, -0.0035638129338622093, -0.004114740528166294, 0.02475730888545513, -0.023879269137978554, 0.005259637255221605, -0.05932801589369774, -0.003813452087342739, -0.01830112747848034, -0.03870266675949097, 0.027632463723421097, -0.0378074087202549, -0.07651007175445557, -0.014134736731648445, -0.010751696303486824, -0.03016328625380993, -0.03501833602786064, -0.0571243055164814, 0.07774966210126877, 0.009047264233231544, -0.022897928953170776, -0.06965790688991547, 0.034846171736717224, -0.006210848223417997, 0.08732202649116516, 0.021916588768363, 0.06841832399368286, 0.06769523024559021, -0.0007994906627573073, -0.02808009274303913, -0.003124792594462633, 0.025583701208233833, -0.05113296955823898, 0.00874597579240799, -0.04131957143545151, 0.02496390789747238, -0.023087309673428535, -0.006137677934020758, 0.032246481627225876, 0.010217986069619656, 0.050134412944316864, 0.018628239631652832, 0.0012697159545496106, 0.02343164011836052, 0.0031656816136091948, -0.08312120288610458, -0.05757193639874458, 0.02403421700000763, 0.040183283388614655, 0.01703571528196335, -0.02415473200380802, 0.06614574790000916, -0.0019798961002379656, -0.027821844443678856, -0.025618134066462517, -0.03508720174431801, 0.0029311070684343576, -0.04593358933925629, 0.028699886053800583, -0.043213386088609695, -0.006249585188925266, 0.052648019045591354, -0.03994225338101387, -0.02766689658164978, 0.03632678836584091, 0.0293885450810194, 0.04734534025192261, -0.01819782704114914, 0.03550039976835251, -0.01931689865887165, -0.036464519798755646, 0.032849058508872986, 0.014625406824052334, -0.050547607243061066, -0.012809067033231258, 0.06173832714557648, 0.004349315073341131, 0.08422306180000305, -0.02033267170190811, 0.02394813485443592, -0.02253638207912445, 0.05082307383418083, -0.02775297872722149, 0.008358605206012726, 0.02224370278418064, 0.001566700404509902, -0.003783323336392641, -0.01842164248228073, -0.020763084292411804, 0.06490615755319595, -0.06094636768102646, 0.02152061089873314, 0.02382761985063553, -0.08043543249368668, 0.021072981879115105, 0.005840693600475788, 0.00379838771186769, 0.011285407468676567, -0.026582257822155952, 0.011397315189242363, 0.03632678836584091, -0.03248751163482666, -0.06893482059240341, -0.06349440664052963, 0.05784739926457405, 0.013876489363610744, -0.053646575659513474, -0.033847615122795105, -0.03107576072216034, -0.008560898713767529, -0.0666622444987297, 0.03181606903672218, 0.023775970563292503, 0.003992073237895966, -0.06538822501897812, -0.004665668122470379, -0.025876382365822792, 0.018559373915195465, 0.03241864591836929, -0.04255915805697441, -0.09028325974941254, -0.04545152932405472, -0.007781852502375841, -0.01962679624557495, 0.03188493475317955, 0.012034324929118156, -0.04875709488987923, 0.04930802062153816, -0.004889482632279396, 0.012705768458545208, -0.051959361881017685, -0.01051927451044321, 0.02143452689051628, -0.031523387879133224, -0.040183283388614655, 0.0005826705018989742, 0.029801741242408752, -0.0517183281481266, 0.019351333379745483, -0.02415473200380802, 0.06380430608987808, -0.06025770679116249, -0.0025523442309349775, -0.04875709488987923, -0.026375658810138702, 0.030404318124055862, 0.047035444527864456, -0.020952465012669563, -0.07967790961265564, -0.0022026344668120146, -0.022071538493037224, 0.06700657308101654, -0.02806287631392479, -0.0034798826090991497, -0.03339998796582222, -0.0014547932660207152, 0.03259081020951271, -0.036154624074697495, 0.005203683394938707, 0.028493287041783333, 0.011681387200951576, 0.0059698172844946384, 0.03107576072216034, 0.012017108500003815, -0.02966400794684887, -0.0001979896187549457, 0.012163449078798294, 0.07692326605319977, 0.04558926075696945, 0.048825960606336594, -0.06497502326965332, 0.006796208675950766, 0.04951461777091026, 0.0028342644218355417, -0.033141739666461945, -0.03398534655570984, 0.026272360235452652, 0.026289576664566994, 0.0006698289653286338, 0.0261690616607666, -0.05746863782405853, -0.070208840072155, -0.023672670125961304, -0.034450192004442215, 0.00181633944157511, -0.047930702567100525, 0.0024404372088611126, -0.00926247052848339, -0.027184834703803062, -0.01780184917151928, 0.014255251735448837, 0.008952573873102665, -0.04951461777091026, -0.037463076412677765, -0.0340714305639267, 0.03839276731014252, -0.019661229103803635, -0.0442463755607605, 0.03591359406709671, 0.07027770578861237, 0.016682777553796768, 0.0027202051132917404, -0.014573757536709309, 0.00734713627025485, 0.02976730838418007, 0.028820401057600975, -0.005083167925477028, -0.0704154372215271, -0.027305349707603455, 0.007123321760445833, 0.053474411368370056, 0.006240976974368095, -0.023569371551275253, 0.036051325500011444, 0.09324450045824051, 0.006055899430066347, -0.06697213649749756, -0.002313465578481555, -0.036877717822790146, -0.058501627296209335, -0.05571255460381508, 0.008560898713767529, -0.002928955014795065, 0.01333416998386383, -0.03722204640507698, 0.044211942702531815, 0.017293961718678474, 0.027890710160136223, -0.06679997593164444, -0.013454684987664223, -0.028631020337343216, 0.004502111580222845, 0.003985616844147444, 0.04366101324558258, -0.04372987896203995, -0.008091749623417854, 0.0014311205595731735, -0.03067978098988533, -0.09723872691392899, -0.060808636248111725, 0.015365715138614178, -0.0032625244930386543, -0.003294805297628045, -0.007205100264400244, 0.035362664610147476, -0.0045064156875014305, 0.017603859305381775, -0.013454684987664223, 0.03209153190255165, 0.03269411250948906, 0.05481729656457901, 0.026289576664566994, -0.016958240419626236, 0.03307287395000458, 0.013988396152853966, -0.001895965775474906, -0.03563813120126724, 0.06714430451393127, -0.0166139118373394, -0.027012670412659645, 0.03911586105823517, -0.0002573058009147644, 0.023810403421521187, 0.04658781737089157, -0.01781906560063362, -0.021279579028487206, 0.035362664610147476, 0.053474411368370056, -0.03711874783039093, -0.002920346800237894, -0.02424081601202488, -0.010123294778168201, -0.028631020337343216, -0.021572260186076164, 0.026082979515194893, -0.01676025055348873, -0.057296473532915115, 0.042214829474687576, 0.0038672536611557007, -0.05323338136076927, -0.02344885654747486 ]