Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torch-harmonics
Commits
7126fb9a
"vscode:/vscode.git/clone" did not exist on "bfec2c6e1014e9053c727bcabd3f5079716c765b"
Commit
7126fb9a
authored
Jan 10, 2025
by
Boris Bonev
Committed by
Boris Bonev
Jan 14, 2025
Browse files
some cleanup in the model
parent
d81fbd34
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
torch_harmonics/examples/models/lsno.py
torch_harmonics/examples/models/lsno.py
+3
-5
torch_harmonics/examples/models/sfno.py
torch_harmonics/examples/models/sfno.py
+3
-5
No files found.
torch_harmonics/examples/models/lsno.py
View file @
7126fb9a
...
...
@@ -275,10 +275,10 @@ class LocalSphericalNeuralOperatorNet(nn.Module):
Parameters
-----------
operator_type : str, optional
Type of operator to use ('driscoll-healy', 'diagonal'), by default "driscoll-healy"
img_shape : tuple, optional
Shape of the input channels, by default (128, 256)
operator_type : str, optional
Type of operator to use ('driscoll-healy', 'diagonal'), by default "driscoll-healy"
kernel_shape: tuple, int
scale_factor : int, optional
Scale factor to use, by default 3
...
...
@@ -308,8 +308,6 @@ class LocalSphericalNeuralOperatorNet(nn.Module):
Fraction of hard thresholding (frequency cutoff) to apply, by default 1.0
big_skip : bool, optional
Whether to add a single large skip connection, by default True
rank : float, optional
Rank of the approximation, by default 1.0
pos_embed : bool, optional
Whether to use positional embedding, by default True
...
...
@@ -340,8 +338,8 @@ class LocalSphericalNeuralOperatorNet(nn.Module):
def
__init__
(
self
,
operator_type
=
"driscoll-healy"
,
img_size
=
(
128
,
256
),
operator_type
=
"driscoll-healy"
,
grid
=
"equiangular"
,
grid_internal
=
"legendre-gauss"
,
scale_factor
=
4
,
...
...
torch_harmonics/examples/models/sfno.py
View file @
7126fb9a
...
...
@@ -146,10 +146,10 @@ class SphericalFourierNeuralOperatorNet(nn.Module):
Parameters
----------
operator_type : str, optional
Type of operator to use ('driscoll-healy', 'diagonal'), by default "driscoll-healy"
img_shape : tuple, optional
Shape of the input channels, by default (128, 256)
operator_type : str, optional
Type of operator to use ('driscoll-healy', 'diagonal'), by default "driscoll-healy"
scale_factor : int, optional
Scale factor to use, by default 3
in_chans : int, optional
...
...
@@ -178,8 +178,6 @@ class SphericalFourierNeuralOperatorNet(nn.Module):
Fraction of hard thresholding (frequency cutoff) to apply, by default 1.0
big_skip : bool, optional
Whether to add a single large skip connection, by default True
rank : float, optional
Rank of the approximation, by default 1.0
pos_embed : bool, optional
Whether to use positional embedding, by default True
...
...
@@ -205,8 +203,8 @@ class SphericalFourierNeuralOperatorNet(nn.Module):
def
__init__
(
self
,
operator_type
=
"driscoll-healy"
,
img_size
=
(
128
,
256
),
operator_type
=
"driscoll-healy"
,
grid
=
"equiangular"
,
grid_internal
=
"legendre-gauss"
,
scale_factor
=
3
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment