Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Huiying Zhang
CNN_for_Classifying_Cloud_Particles
Commits
7d06b2f4
Commit
7d06b2f4
authored
Sep 01, 2020
by
Huiying Zhang
Browse files
Update dcnn.py
parent
14ee3463
Changes
1
Hide whitespace changes
Inline
Side-by-side
pipeline/dcnn.py
View file @
7d06b2f4
...
...
@@ -29,6 +29,7 @@ def extract_data_labels(filename):
img_ang
=
row
[
"img_ang"
]
ids
.
append
(
id_
)
data
.
append
(
np
.
stack
((
img_abs
,
img_ang
),
2
))
#此处应该是因为ID只有三个所以才是【0,0,0】的状态,之后要改
one_hot_label
=
[
0
,
0
,
0
]
one_hot_label
[
label
]
=
1
labels
.
append
(
one_hot_label
)
...
...
Write
Preview
Supports
Markdown
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