Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NIFTy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ift
NIFTy
Commits
ccd864ba
Commit
ccd864ba
authored
7 years ago
by
Jakob Knollmueller
Browse files
Options
Downloads
Patches
Plain Diff
current status
parent
bf1d9f6e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
demos/getting_started_1.py
+5
-5
5 additions, 5 deletions
demos/getting_started_1.py
with
5 additions
and
5 deletions
demos/getting_started_1.py
+
5
−
5
View file @
ccd864ba
...
@@ -7,7 +7,7 @@ def make_chess_mask():
...
@@ -7,7 +7,7 @@ def make_chess_mask():
for
i
in
range
(
4
):
for
i
in
range
(
4
):
for
j
in
range
(
4
):
for
j
in
range
(
4
):
if
(
i
+
j
)
%
2
==
0
:
if
(
i
+
j
)
%
2
==
0
:
mask
[
i
*
12
8
/
4
:(
i
+
1
)
*
12
8
/
4
,
j
*
12
8
/
4
:(
j
+
1
)
*
12
8
/
4
]
=
0
mask
[
i
*
5
12
/
4
:(
i
+
1
)
*
5
12
/
4
,
j
*
5
12
/
4
:(
j
+
1
)
*
5
12
/
4
]
=
0
return
mask
return
mask
def
make_random_mask
():
def
make_random_mask
():
...
@@ -25,12 +25,12 @@ if __name__ == '__main__':
...
@@ -25,12 +25,12 @@ if __name__ == '__main__':
# mask = np.ones(position_space.shape)
# mask = np.ones(position_space.shape)
# # Two dimensional regular grid with chess mask
# # Two dimensional regular grid with chess mask
#
position_space = ift.RGSpace([12
8
,12
8
])
position_space
=
ift
.
RGSpace
([
5
12
,
5
12
])
#
mask = make_chess_mask()
mask
=
make_chess_mask
()
# # Sphere with half of its locations randomly masked
# # Sphere with half of its locations randomly masked
position_space
=
ift
.
HPSpace
(
128
)
#
position_space = ift.HPSpace(128)
mask
=
make_random_mask
()
#
mask = make_random_mask()
# set up corresponding harmonic transform and space
# set up corresponding harmonic transform and space
harmonic_space
=
position_space
.
get_default_codomain
()
harmonic_space
=
position_space
.
get_default_codomain
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment