NVlabs / FUNIT

Translate images to unseen domains in the test time with few example images.

Home Page:https://nvlabs.github.io/FUNIT/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The purpose of gen_test object in FUNITModel

NTU-P04922004 opened this issue · comments

The gen_test object in FUNITModel seems to be a clone of the whole model except the discriminator. The gen_test object is only used in generating testing results and it seems that it is redundant because we can run the gen object in evaluation mode. Why making a clone of the gen object? Was it designed for the multi-GPU environment?

self.gen_test = copy.deepcopy(self.gen)

@NTU-P04922004

I find the answer in the paper.

The final generator is a historical average version of the intermediate generators where the update weight is 0.001.

def update_average(model_tgt, model_src, beta=0.999):

@NTU-P04922004

I find the answer in the paper.

The final generator is a historical average version of the intermediate generators where the update weight is 0.001.

def update_average(model_tgt, model_src, beta=0.999):

Got it, thanks!