vsitzmann / siren

Official implementation of "Implicit Neural Representations with Periodic Activation Functions"
MIT License
1.72k stars 247 forks source link

Typos in the class initialization #61

Open ivanstepanovftw opened 8 months ago

ivanstepanovftw commented 8 months ago

Hello @vsitzmann,

class Sine(nn.Module):
    def __init(self):
        super().__init__()

should be

class Sine(nn.Module):
    def __init__(self):
        super(Sine).__init__(self)

Diff:

class Sine(nn.Module):
-    def __init(self):
+    def __init__(self):
-        super().__init__()
+        super(Sine).__init__(self)

Defined here https://github.com/vsitzmann/siren/blob/4df34baee3f0f9c8f351630992c1fe1f69114b5f/modules.py#L28