SPADE 代码略解 ade20k数据集
train.py # Training # train generator if i % opt.D_steps_per_G == 0: trainer.run_generator_one_step(data_i)通过这一行代码开始训练。trainers/pix2pix_trainer.py def run_generator_one_step(self, data): self.optimize