Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
Im
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王肇一
Im
Commits
779e4979
Commit
779e4979
authored
Jan 16, 2020
by
王肇一
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refined README
parent
46cb23a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
README.md
README.md
+25
-8
No files found.
README.md
View file @
779e4979
...
...
@@ -27,22 +27,39 @@
4.
运行第二阶段
5.
查看结果
## 主程序入口
## 主程序入口
: UnetBasedMethod.py
### 参数
*
-m ,--method : 0 使用Kmeans,1 使用阈值法(butterworth滤波),2 使用阈值法(fft),3 使用unet。默认Kmeans
*
-c ,--core : Kmeans分为几类,默认5,仅对Kmeans法有效
*
-p ,--process : 使用线程数量,默认8,仅对阈值法有效
### 示例
```
usage: UnetBasedMethod.py [-h] [--step STEP] [-p P] [--module FILE]
[--mask-threshold MASK_THRESHOLD] [--scale SCALE]
A simple toolkit designed by Ulden
optional arguments:
-h, --help show this help message and exit
--step STEP, -s STEP step 1: recognize; step 2: barcharts (default: 2)
-p P, --process P Num of process (default: 8)
--module FILE, -m FILE
Specify the file in which the model is stored
(default: MODEL)
--mask-threshold MASK_THRESHOLD, -t MASK_THRESHOLD
Minimum probability value to consider a mask pixel
white (default: 0.5)
--scale SCALE, -S SCALE
Scale factor for the input images (default: 1.0)
```
-
`python main.py -m 1 -p 16`
-
`python main.py -m 0 -c 8`
### 用法
1.
步骤一:
`python UnetBasedMethod.py -s 1 -p 8 -m MODEL`
2.
步骤二:根据output结果,从imgs文件夹下挑选对应图片,删除不需要的图
3.
步骤三:
`python UnetBasedMethod.py -s 2 -p 8`
## 使用Unet模型
### 训练
```
python train.py -h
usage: train.py [-h] [-e E] [-b [B]] [-l [LR]] [-f LOAD] [-s SCALE] [-v VAL]
Train the UNet on images and target masks
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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