Skip to content

Commit

Permalink
fix lapstyle (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangna11BD authored Jan 4, 2022
1 parent 67d7e41 commit f210ea3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ppgan/models/lapstyle_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def __init__(self,
self.nets['net_dec'] = build_generator(draftnet_decode)

self.set_requires_grad([self.nets['net_enc']], False)
self.set_requires_grad([self.nets['net_enc']], False)
self.set_requires_grad([self.nets['net_dec']], False)

# define revision-net params
self.nets['net_rev'] = build_generator(revnet_generator)
Expand Down Expand Up @@ -322,7 +322,7 @@ def __init__(self,
self.nets['net_enc'] = build_generator(draftnet_encode)
self.nets['net_dec'] = build_generator(draftnet_decode)
self.set_requires_grad([self.nets['net_enc']], False)
self.set_requires_grad([self.nets['net_enc']], False)
self.set_requires_grad([self.nets['net_dec']], False)

# define the first revnet params
self.nets['net_rev'] = build_generator(revnet_generator)
Expand Down

0 comments on commit f210ea3

Please sign in to comment.