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
3099dd38
Commit
3099dd38
authored
Jun 03, 2022
by
Yi Hu
Browse files
修改: .gitignore
修改: src/crmask.py 默认配置文件改为../conf/crmask.ini
parent
3bafde3e
Changes
2
Show whitespace changes
Inline
Side-by-side
.gitignore
View file @
3099dd38
doc/
doc/
__pycache__/
src/crmask.py
View file @
3099dd38
...
@@ -29,7 +29,7 @@ import sys
...
@@ -29,7 +29,7 @@ import sys
__all__
=
[
'CRMask'
]
__all__
=
[
'CRMask'
]
class
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
=
'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
=
'
../conf/
crmask.ini'
,
**
kwargs
):
"""
"""
Instantiation of CRMask with specified model configuration.
Instantiation of CRMask with specified model configuration.
...
@@ -65,7 +65,7 @@ class CRMask:
...
@@ -65,7 +65,7 @@ class CRMask:
gpu_flag : (optional) boolean
gpu_flag : (optional) boolean
whether use GPU, default is False
whether use GPU, default is False
config_path : (optional) string
config_path : (optional) string
configuration file path, default is ``./crmask.ini``
configuration file path, default is ``.
./conf
/crmask.ini``
"""
"""
self
.
model
=
model
self
.
model
=
model
...
...
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