Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bo Zhang
csst
Commits
1e309842
Commit
1e309842
authored
Jun 02, 2022
by
BO ZHANG
🏀
Browse files
set binary=True explicitly
parent
34f9bb57
Changes
1
Show whitespace changes
Inline
Side-by-side
csst/msc/inst_corr.py
View file @
1e309842
...
...
@@ -100,11 +100,11 @@ class CsstMscInstrumentProc(CsstProcessor):
model
=
deepCR
(
clean_model
,
inpaint_model
,
device
=
'CPU'
,
hidden
=
50
)
if
self
.
n_jobs
>
1
:
masked
,
cleaned
=
model
.
clean
(
self
.
__img
,
threshold
=
0.5
,
inpaint
=
True
,
segment
=
True
,
patch
=
256
,
parallel
=
True
,
self
.
__img
,
threshold
=
0.5
,
inpaint
=
True
,
binary
=
True
,
segment
=
True
,
patch
=
256
,
parallel
=
True
,
n_jobs
=
self
.
n_jobs
)
else
:
masked
,
cleaned
=
model
.
clean
(
self
.
__img
,
threshold
=
0.5
,
inpaint
=
True
,
segment
=
True
,
patch
=
256
,
parallel
=
False
,
self
.
__img
,
threshold
=
0.5
,
inpaint
=
True
,
binary
=
True
,
segment
=
True
,
patch
=
256
,
parallel
=
False
,
n_jobs
=
self
.
n_jobs
)
else
:
cleaned
,
masked
=
cosmicray_lacosmic
(
ccd
=
self
.
__img
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment