Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
starblade
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
starblade
Commits
129ddb65
"src/python/git@gitlab.mpcdf.mpg.de:nomad-lab/cpp_sisso.git" did not exist on "46eb0d86eb77a749cb5fac010068ccdf02d9ea5d"
Commit
129ddb65
authored
7 years ago
by
Martin Reinecke
Browse files
Options
Downloads
Patches
Plain Diff
more imports
parent
94f91052
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
demos/multichannel_demo.py
+3
-5
3 additions, 5 deletions
demos/multichannel_demo.py
starblade/__init__.py
+2
-1
2 additions, 1 deletion
starblade/__init__.py
with
5 additions
and
6 deletions
demos/multichannel_demo.py
+
3
−
5
View file @
129ddb65
import
numpy
as
np
from
matplotlib
import
pyplot
as
plt
from
starblade.sugar
import
build_multi_starblade
,
multi_starblade_iteration
import
starblade
as
sb
if
__name__
==
'
__main__
'
:
...
...
@@ -10,10 +10,10 @@ if __name__ == '__main__':
data
=
data
.
astype
(
float
)
data
=
data
.
clip
(
0.0001
)
alpha
=
1.25
MultiStarblade
=
build_multi_starblade
(
data
,
alpha
)
MultiStarblade
=
sb
.
build_multi_starblade
(
data
,
alpha
)
for
i
in
range
(
10
):
MultiStarblade
=
multi_starblade_iteration
(
MultiStarblade
,
multiprocessing
=
True
)
MultiStarblade
=
sb
.
multi_starblade_iteration
(
MultiStarblade
,
multiprocessing
=
True
)
#plotting a three channel RGB image in each iteration
diffuse
=
np
.
empty_like
(
data
)
...
...
@@ -24,5 +24,3 @@ if __name__ == '__main__':
plt
.
imsave
(
'
rgb_diffuse.jpg
'
,
diffuse
/
255.
)
plt
.
imsave
(
'
rgb_point.jpg
'
,
point
/
255.
)
This diff is collapsed.
Click to expand it.
starblade/__init__.py
+
2
−
1
View file @
129ddb65
from
.sugar
import
build_starblade
,
starblade_iteration
from
.sugar
import
(
build_starblade
,
starblade_iteration
,
build_multi_starblade
,
multi_starblade_iteration
)
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