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
Hu Yi
CSST-COMMOM-CRMASK
Commits
c9ab289f
Commit
c9ab289f
authored
Apr 01, 2022
by
Hu Yi
Browse files
Update crmask.py
parent
0fce31a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
crmask.py
View file @
c9ab289f
...
...
@@ -31,7 +31,7 @@ import sys
__all__
=
[
'CRMask'
]
class
CRMask
:
def
__init__
(
self
,
obj
,
flag
=
None
,
mask
=
None
,
clean
=
None
,
sky
=
None
,
save_flag
=
True
,
update_flag
=
True
,
save_name
=
None
,
flag_suffix
=
'flg'
,
clean_suffix
=
'crclean'
,
append_flag
=
False
,
mask_suffix
=
'crmask'
,
model
=
'deepCR'
,
fill_flag
=
True
,
fill_method
=
'inpainting'
,
gpu_flag
=
False
,
config_path
=
'
MSC_
crmask.ini'
,
**
kwargs
):
def
__init__
(
self
,
obj
,
flag
=
None
,
mask
=
None
,
clean
=
None
,
sky
=
None
,
save_flag
=
True
,
update_flag
=
True
,
save_name
=
None
,
flag_suffix
=
'flg'
,
clean_suffix
=
'crclean'
,
append_flag
=
False
,
mask_suffix
=
'crmask'
,
model
=
'deepCR'
,
fill_flag
=
True
,
fill_method
=
'inpainting'
,
gpu_flag
=
False
,
config_path
=
'crmask.ini'
,
**
kwargs
):
"""
Instantiation of CRMask with specified model configuration.
Parameters
...
...
@@ -66,7 +66,7 @@ class CRMask:
gpu_flag : (optional) boolean
whether use GPU, default is False
config_path : (optional) string
configuration file path, default is ``.
./conf/MSC_
crmask.ini``
configuration file path, default is ``.
/
crmask.ini``
"""
self
.
model
=
model
if
model
==
'deepCR_train'
:
...
...
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