Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenGVLab/DragGAN
/ __init__
Method
__init__
draggan/deprecated/stylegan2/model.py:321–324 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
319
320
class
NoiseInjection(nn.Module):
321
def
__init__(self):
322
super().__init__()
323
324
self.weight = nn.Parameter(torch.zeros(1))
325
326
def
forward(self, image, noise=None):
327
if
noise is None:
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected