Commit 3805abbe authored by Kai Zhang's avatar Kai Zhang Committed by Facebook GitHub Bot
Browse files

GAN task

Summary:
This diff introduces the D2 (https://github.com/facebookresearch/d2go/commit/9d9f438b191634dc38d16f3973e490909b7f67dd)Go GANs Lightning task for migrating D2 (https://github.com/facebookresearch/d2go/commit/9d9f438b191634dc38d16f3973e490909b7f67dd)Go's GANsRunner to Lightning based workflow.
The Lightning task could directly work with D2 (https://github.com/facebookresearch/d2go/commit/9d9f438b191634dc38d16f3973e490909b7f67dd)Go e2e workflow.

Reviewed By: tax313

Differential Revision: D28165835

fbshipit-source-id: 4d9d679e188f9d5f9a46f01f7d34a8f30c3e170b
parent 9d9f438b
...@@ -129,7 +129,7 @@ class DefaultTask(pl.LightningModule): ...@@ -129,7 +129,7 @@ class DefaultTask(pl.LightningModule):
self.model_ema = deepcopy(self.model) self.model_ema = deepcopy(self.model)
self.dataset_evaluators[ModelTag.EMA] = [] self.dataset_evaluators[ModelTag.EMA] = []
def _build_model(self): def _build_model(self) -> torch.nn.Module:
model = build_model(self.cfg) model = build_model(self.cfg)
if self.cfg.MODEL.FROZEN_LAYER_REG_EXP: if self.cfg.MODEL.FROZEN_LAYER_REG_EXP:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment