Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
3 years ago
by
Yi Hu
Browse files
Options
Download
Email Patches
Plain Diff
修改: .gitignore
修改: src/crmask.py 默认配置文件改为../conf/crmask.ini
parent
3bafde3e
main
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
.gitignore
src/crmask.py
+2
-2
src/crmask.py
with
3 additions
and
2 deletions
+3
-2
.gitignore
+
1
-
0
View file @
3099dd38
doc/
__pycache__/
This diff is collapsed.
Click to expand it.
src/crmask.py
+
2
-
2
View file @
3099dd38
...
...
@@ -29,7 +29,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
=
'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.
...
...
@@ -65,7 +65,7 @@ class CRMask:
gpu_flag : (optional) boolean
whether use GPU, default is False
config_path : (optional) string
configuration file path, default is ``./crmask.ini``
configuration file path, default is ``.
./conf
/crmask.ini``
"""
self
.
model
=
model
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets