 transferred counterparts are encouraged to be close to each other. Suppose we have $C$ cameras in the target set, we train CamStyle model [@zhong2018camera] for the target domain with CycleGAN [@zhu2017cyclegan] or StarGAN [@stargan]. For Market-1501 [@zheng2015scalable] and DukeMTMC-reID [@zheng2017unlabeled] that have less cameras, we use CycleGAN to train CamStyle model. For MSMT17 that has many cameras, we apply StarGAN to train CamStyle model. With the learned CamStyle model, each real target image collected from camera $c$ is augmented with $C-1$ images in the styles of other cameras while remaining the original identity. Examples of real images and fake images generated by the CamStyle model are shown in Fig. \[fig:camstyle\_example\].

![Example of camera style-transferred images on DukeMTMC-reID. A real image collected from a certain camera is transferred to images in the styles of other cameras. In this process, the identity information is preserved to some extent. The real image and its corresponding fake images are assumed to belong to the same class during camera-invariance learning.[]{data-label="fig:camstyle_example"}](img/camstyle_example){width="\linewidth"}

**Neighborhood-invariance.** Besides the camera-invariance property that is natural and can be easily identified, there are many crucial intra-domain variations that are hard to overcome without the annotation of identity, such as the variations of pose and background. In fact, for each target image, there may exist a number of positive samples in the target dataset. If we could exploit these positive samples during the adapting process, we are able to further improve the robustness of re-ID model in overcoming the variations in the target domain. Assuming that we are given an appropriate transferred model and a query target sample. The nearest neighbors of the query in the target set are most likely to be positive samples of the query. In light of this, we introduce the neighborhood-invariance under the assumption that a target image and its reliable neighbors will share the same identity and should be close to each other.

Next, we will introduce the loss functions of enforcing the three invariance constraints into the network.

### Target Invariance Learning with Memory

An essential step of enforcing the three properties of invariance is to estimate the similarities (relationships) among target samples. Intuitively
transferred counterparts are encouraged to be close to each early. presuppose we have $ C$ cameras in the prey bent, we train CamStyle model [ @zhong2018camera ] for the aim world with CycleGAN [ @zhu2017cyclegan ] or StarGAN [ @stargan ]. For Market-1501 [ @zheng2015scalable ] and DukeMTMC - reID [ @zheng2017unlabeled ] that have less cameras, we use CycleGAN to train CamStyle mannequin. For MSMT17 that has many cameras, we enforce StarGAN to aim CamStyle model. With the conditioned CamStyle model, each real prey image collected from camera $ c$ is augment with $ C-1 $ images in the styles of other cameras while stay the original identity. Examples of real images and fake images generate by the CamStyle model are shown in Fig.   \[fig: camstyle\_example\ ]. 

! [ Example of camera style - transferred images on DukeMTMC - reID. A real image collected from a certain camera is transferred to images in the styles of other cameras. In this procedure, the identity information is preserved to some extent. The veridical image and its corresponding fake images are simulate to belong to the same class during camera - invariability learning.[]{data - label="fig: camstyle_example"}](img / camstyle_example){width="\linewidth " } 

 * * Neighborhood - invariance. * * Besides the camera - invariance property that is natural and can be easily identified, there are many crucial intra - domain variations that are hard to get the best without the annotation of identity, such as the variation of airs and background. In fact, for each target image, there may exist a numeral of positive samples in the target dataset. If we could overwork these positive sample distribution during the adapting process, we are able to far improve the robustness of re - ID mannequin in overcoming the variations in the prey domain. wear that we are given an appropriate transfer model and a question target sample. The nearest neighbors of the query in the aim set are most likely to be positive samples of the query. In light of this, we introduce the neighborhood - invariability under the assumption that a target double and its reliable neighbors will share the same identity and should be close to each other. 

 Next, we will introduce the passing functions of enforcing the three invariance constraints into the network. 

 # # # Target Invariance Learning with Memory 

 An all-important gradation of enforce the three properties of invariance is to estimate the similarities (relationships) among target sample. Intuitively
 trwnsferred counterparts ave encouraged to be clove to sach othdr. Suppose we have $C$ cameras ib the target set, we train CxmStyle mldel [@zhobg2018canwra] for thx target domaih witk RycleGAN [@zhu2017cyckegan] or SdarGAN [@stargan]. Fur Market-1501 [@zheng2015scalable] and DukeMTMC-rqID [@zhemg2017knlabeled] that havt lqss dameras, we use CycleGAN to train CzmStyle model. For MSKT17 that has many cameras, wf apoly StarGAN to traln CamStyle modqo. With the ldarned CamStyle model, gach real target image collected from camera $c$ us auhkented with $C-1$ imwges in the styles ox other cameras while rekaibing the original ideitity. Examples of rewl images aud fake images generaree by jhe CdmSthoe oodtl ere shown in Fig. \[fig:camatyle\_examplw\].

![Example of camera xtroe-transferred imagef jn DukeMTMC-reID. A real image collected xroj a certain camera is teansferred to images ln the strles of other cameras. In this process, the identitf infkfmauiin is prfserved to some extent. The real image and its dotrvsponding fake imcges are assumed tl nglong to the sxme clcas during camera-invagiance jearnung.[]{data-lafel="fog:camstyle_example"}](img/camstylw_example){widtk="\libewidth"}

**Neighborhoob-invariance.** Yesidex the camera-invariance propexty thzt is naturwl and cah be easily identkfivd, tvere are many crucial intrw-domain veriatnons thag arg hard eo overcomf witmmut the annotation of ibentidy, such as the variations of pose and background. In facj, fmr vach targzt imane, there may exyst a number oy positire samoles in thv target vataset. If wq could explohj these positmve samplqs dyrint the aaxpting process, we are ayje ti further improve bhe rugustness of re-IB nodel in overcokine tre veriatymns in the tdrgeg dukain. Xssuming thct we sre given an approprhate transferred model akd a queri target fample. The nesrest neighbors of the xuecy in yhe target set are most likely to be positlve samples of ehe wuery. In ligkt of this, we introduce the neighborhood-mnvariance under the aswumption that a taryeu image and ivs relyable neichbors will share thw same identity akd should be close to sach odher.

Nfxt, we will introduce the loss functions of enforcing the three invariancw consvrwints into fhe metwogk.

### Caryet Invwriaicx Learning with Mvmory

An essential step of enforcmng the thsez properties of invariance is tu estimate thg similarities (relationshils) among target samples. Intuitively
transferred counterparts are encouraged to be close other. we have cameras in the model for the target with CycleGAN [@zhu2017cyclegan] StarGAN [@stargan]. For Market-1501 [@zheng2015scalable] and [@zheng2017unlabeled] that have less cameras, we use CycleGAN to train CamStyle model. For that has many cameras, we apply StarGAN to train CamStyle model. With the CamStyle each target collected from camera $c$ is augmented with $C-1$ images in the styles of other cameras while the original identity. Examples of real images and images generated by the model are shown in Fig. ![Example camera style-transferred on A image collected from certain camera is transferred to images in the styles of other cameras. In this process, the identity is preserved extent. The image its fake images are belong to the same class during Besides the camera-invariance property that is natural and be easily there are many crucial intra-domain variations are hard to overcome without the annotation of such as the variations of pose and background. In fact, for each target image, there a number of positive in the target If could these samples during adapting process, we are able to further improve the robustness of model in overcoming the variations in the target domain. Assuming are an appropriate transferred and a query target The neighbors of the query target are be samples the query. In light this, we introduce the neighborhood-invariance the assumption that a neighbors will share the same identity and should close to each other. Next, we will the loss functions of enforcing the three invariance constraints into the network. Target Invariance Memory An essential step of enforcing the three of invariance is to the similarities (relationships) among target samples. Intuitively
 transferred counterparts arE encourageD to be CloSe tO eAch oTher. suppose we have $C$ CAmerAs in the target set, we traiN CamSTyLE modEL [@zHong2018cAmera] foR ThE TArgEt DoMaiN wITh cyclegAN [@Zhu2017cyclEgan] or StargAN [@StArgan]. For MarkET-1501 [@zHeng2015scalabLe] aNd DukeMTMC-reiD [@zHeng2017unLaBelED] that HavE less CameraS, We use CYcleGAN to TrAIn CamSTYle modeL. fOr mSMT17 That has many cameraS, We APply StarGAN to tRain CaMSTYlE MOdeL. WiTh the learnEd camStYLe model, EAcH REAl tARget image collEcted from caMEra $C$ is augMeNteD With $C-1$ iMages In THe sTyles of otheR camEras while RemainINg the orIGinal idEntity. exaMplEs of REaL iMagEs ANd fAKe ImaGEs gEnerated By ThE CamSTyle MODEL are ShoWn in fig. \[fiG:camstyle\_examPle\].

![examPLe oF cameRa styLe-trAnSferrEd imagEs on DUkEMTMC-reID. A real iMage Collected FroM a CerTaIn camERa is trAnsFerRed to imAges in tHE stYlES OF oTher cameras. In this pRoCESs, The identIty infORmAtIOn is presErVed To soME ExtenT. The REaL image anD its coRReSpOnding fAkE imageS aRe aSsuMed to BElonG to the Same clasS duriNG camera-invariaNCe learning.[]{datA-LaBEL="fIG:camStyLe_example"}](imG/camSTyle_ExamPLe){WidTH="\lineWidth"}

**neIGhBOrhood-invariance.** BesIdEs the cAmera-Invariance proPerty that iS NATural and Can bE EaSIly identified, tHere aRe many crucIAl intra-dOmain VariatioNs that are HARd to overComE wiThoUt tHE AnNotation of ideNTIty, sUcH as the vAriAtions oF poSe aNd bAckGrOund. In facT, for each TaRgEt ImAge, There MAy exist a NuMbeR oF poSitivE SampleS in thE tarGeT dATasEt. If we cOUlD EXploIt ThEse pOsiTiVe samPles DUriNg the adApting proCesS, We arE aBlE to furtHer improve the RoBustness of Re-iD mOdel in OVErcoming The variations in the targeT Domain. ASsuMing tHat wE are given An aPproprIatE TransfErred mOdel aNd A quERY targET SaMplE. THe nearest nEIGhbOrs of ThE queRy in the Target set are most liKEly To be positive sAmpLes oF THe QueRY. IN LigHt OF thIS, We introduce the nEighborhooD-iNVaRiance undeR The AsSumptioN that a tArget IMage and Its reliabLe neighboRs Will SHAre The same ideNtity and Should be cLOse to EAcH otheR.

NeXt, we wiLl IntRoducE the loSS fuNctioNs of enFoRcing tHe thrEe InvarianCe constraints into the netWork.

### TaRget INvaRiance LeaRniNG wiTh Memory

AN essEntial step Of eNfoRcing The THree pRopeRTiEs oF InvarIancE Is to estimATe The SIMiLarities (relATIOnsHips) aMonG Target SampLes. Intuitively
 transferred counterpartsare encour agedtobecl oseto e ach other. Sup p osewe have $C$ cameras in  theta r gets et , wetrain C a mS t y lemo de l [ @z h on g2018 cam era] fo r the targ etdo main with Cy c le GAN [@zhu2 017 cyclegan] or  St arGAN[@ sta r gan].  Fo r Mar ket-15 0 1 [@zh eng2015sc al a ble] a n d DukeM T M C- reID  [@zheng2017unlab e le d ] that have le ss cam er a s, w e u seCycleGAN t otrain CamStyl e  m o d e l.F or MSMT17 tha t has manyc ame ras, w eapp l y Star GAN t ot rai n CamStylemode l. With t he lea r ned Cam S tyle mo del, e ach  re al t a rg et  im ag e  co l le cte d  fr om camer a$c $ isaugm e n t e d wi th$C-1 $ ima ges in the st yle s of oth er ca meras  whi le  rema iningthe o ri ginal identity.  Exa mples ofrea lima ge s and fake i mag esgenerat ed by t h e C am S t y le  model are shown i nF i g.  \[fig:c amstyl e \_ ex a mple\].
! [Ex ampl e of ca mera st yle-tran sferre d  i ma ges onDu keMTMC -r eID . A  real imag e coll ected fr om ac ertain camerai s transferred to i ma g es i n t he styles o f ot h er c amer a s.  In thisproce ss ,  t h e identity informat io n is p reser ved to some e xtent. The r e al image  and it s  corresponding  fake  images ar e  assumed  to b elong to  the same c lass dur ing  ca mer a-i n v ar iance learnin g . []{d at a-label ="f ig:cams tyl e_e xam ple "} ](img/cam style_ex am pl e) {w idt h="\l i newidth" }
** Ne igh borho o d-inva rianc e.**  B es i des  the ca m er a - inva ri an ce p rop er ty th at i s  na tural a nd can be  ea s ilyid en tified,  there are ma ny  crucial i nt ra- domain v ariation s that are hard to over c ome wit hou t the  ann otation o f i dentit y,s uch as  the v ariat io nso f  pose a nd  ba ck ground. In f act , for  e achtargetimage, there may e x ist  a number ofpos itiv e sa mpl e si n t he tar g e t dataset. If w e could ex pl o it  these pos i tiv esamples  during  thea dapting  process,  we are a bl e to f urt her improv e the ro bustnesso f re- I Dmodel  in  overc om ing  thevariat i ons  in t he tar ge t doma in. A ss uming th at we are given an appr opriat e tra nsf erred mod ela nda query t arge t sample.The  ne arest  ne i ghbor s of th e q u ery i n th e  target s e tare m os t likely to b e  po sitiv e s a mplesof t he query. In ligh t  of this, we i ntro d u cethe neig hb orhood-invaria nce  u n d er the a ss umption tha t a targ et image  and i ts rel iable n e i gh b ors wi ll s har e the sam e i de n tity an dsh o uld be  clo se  to ea ch oth e r.
N e xt, we will intr oduce t he lo s s f uncti on s of en f orci ng the thr ee invarian ce con stra intsinto th enetwor k.
# ## TargetI nvariance  Lear ning wi th  Mem ory 

An e ssen t i al st ep o fenf orcing th e th r ee  p r ope rtie s ofin vari ance is t o  estimat e t h e simil ar iti e s  (rela t io n s hips) amon g t arget s amples. In t uiti v el y 
 transferred_counterparts are_encouraged to be close_to each_other._Suppose we_have_$C$ cameras in_the target set,_we train CamStyle model_[@zhong2018camera] for the_target_domain with CycleGAN [@zhu2017cyclegan] or StarGAN [@stargan]. For Market-1501 [@zheng2015scalable] and DukeMTMC-reID [@zheng2017unlabeled] that_have_less cameras,_we_use_CycleGAN to train CamStyle model._For MSMT17 that has many_cameras, we_apply StarGAN to train CamStyle model. With the_learned_CamStyle model, each_real target image collected from camera $c$ is augmented_with $C-1$ images in the styles_of other cameras_while_remaining_the original identity. Examples_of real images and fake images_generated by the CamStyle model are_shown in Fig. \[fig:camstyle\_example\].

![Example of camera style-transferred images_on DukeMTMC-reID. A real image collected_from a certain camera is_transferred to_images in the styles of_other cameras. In_this process,_the identity information_is preserved to some extent. The_real image and_its corresponding fake images are assumed_to_belong to the_same_class_during camera-invariance_learning.[]{data-label="fig:camstyle_example"}](img/camstyle_example){width="\linewidth"}

**Neighborhood-invariance.** Besides the_camera-invariance_property that_is_natural and can be easily identified,_there_are many crucial intra-domain variations that are_hard to overcome without_the_annotation of identity, such_as the variations of pose_and background. In fact, for each_target image,_there may_exist a number of positive samples in the target dataset. If_we could exploit these positive samples_during the adapting process,_we are_able_to further improve_the_robustness of_re-ID model in overcoming the variations in_the target_domain. Assuming that we are given_an appropriate transferred model_and_a query target sample. The nearest_neighbors of the query in the_target set are most likely_to_be_positive samples of the query._In light of this, we introduce_the neighborhood-invariance under_the assumption that a target image and_its_reliable neighbors will share the same_identity_and should be close to each_other.

Next,_we_will introduce the loss functions_of enforcing the three invariance constraints_into the network.

### Target Invariance Learning with Memory

An essential_step of enforcing_the three properties of invariance_is_to_estimate the similarities (relationships) among target samples. Intuitively