Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
221cb0332
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
221cb0332
Commits
ce32d64b
Unverified
Commit
ce32d64b
authored
2 years ago
by
zhaoting
Committed by
Gitee
2 years ago
Browse files
Options
Downloads
Plain Diff
!3312 [西安交通大学][高校贡献][Mindspore][pointnet性能提升]
Merge pull request !3312 from jialing/master
parents
aca98aac
10c99104
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
research/cv/pointnet/train.py
+5
-0
5 additions, 0 deletions
research/cv/pointnet/train.py
with
5 additions
and
0 deletions
research/cv/pointnet/train.py
+
5
−
0
View file @
ce32d64b
...
...
@@ -187,6 +187,11 @@ if __name__ == "__main__":
num_classes
=
dataset_generator
.
num_seg_classes
classifier
=
PointNetDenseCls
(
k
=
num_classes
,
feature_transform
=
args
.
feature_transform
)
classifier
.
set_train
(
True
)
if
context
.
get_context
(
"
device_target
"
)
==
"
Ascend
"
:
classifier
.
to_float
(
mindspore
.
float16
)
for
_
,
cell
in
classifier
.
cells_and_names
():
if
isinstance
(
cell
,
nn
.
LogSoftmax
):
cell
.
to_float
(
mindspore
.
float32
)
num_batch
=
math
.
ceil
(
len
(
dataset_generator
)
/
args
.
batchSize
)
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment