TransGAN
TransGAN copied to clipboard
train
trafficstars
UnboundLocalError: local variable 'gen_net' referenced before assignment
请问 全局变量和局部变量冲突了?
is the global variable conflict with the local variable...

Did you use distributed training mode? This code only works on distributed training mode even on a single gpu. If you changed this setting you might meet this problem that makes gen_net failed to be init. The easiest way is to NOT change the launch script before you fully understand the training pipeline