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
c6ae0723
Commit
c6ae0723
authored
3 years ago
by
anzhengqi
Browse files
Options
Downloads
Patches
Plain Diff
modify xception network readme file
parent
7e5aa8ab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
official/cv/xception/README.md
+7
-7
7 additions, 7 deletions
official/cv/xception/README.md
with
7 additions
and
7 deletions
official/cv/xception/README.md
+
7
−
7
View file @
c6ae0723
...
...
@@ -137,7 +137,7 @@ Major parameters in train.py and config.py are:
```
python
Major
parameters
in
train
.
py
and
config
.
py
are
:
'
num_classes
'
:
1000
# dataset class numbers
'
batch_size
'
:
64
# input batchsize
'
batch_size
'
:
64
# input batchsize
'
loss_scale
'
:
1024
# loss scale
'
momentum
'
:
0.9
# momentum
'
weight_decay
'
:
1e-4
# weight decay
...
...
@@ -147,7 +147,7 @@ Major parameters in train.py and config.py are:
'
keep_checkpoint_max
'
:
5
# max numbers to keep checkpoints
'
save_checkpoint_path
'
:
"
./gpu-ckpt
"
# save checkpoint path
'
warmup_epochs
'
:
1
# warmup epoch numbers
'
lr_decay_mode
'
:
"
linear
"
# lr decay mode
'
lr_decay_mode
'
:
"
linear
"
# lr decay mode
'
use_label_smooth
'
:
True
# use label smooth
'
finish_epoch
'
:
0
# finished epochs numbers
'
label_smooth_factor
'
:
0.1
# label smoothing factor
...
...
@@ -201,9 +201,9 @@ bash run_infer_310.sh MINDIR_PATH DATA_PATH LABEL_FILE DEVICE_ID
# training example
python:
Ascend:
python train.py
--device_target
Ascend
--
dataset_path
/dataset/train
python train.py
--device_target
Ascend
--
train_data_dir
/dataset/train
GPU:
python train.py
--device_target
GPU
--
dataset_path
/dataset/train
python train.py
--device_target
GPU
--
train_data_dir
/dataset/train
shell:
Ascend:
...
...
@@ -290,8 +290,8 @@ bash scripts/run_eval_gpu.sh DEVICE_ID DATA_DIR PATH_CHECKPOINT
```
shell
# eval example
python:
Ascend: python eval.py
--device_target
Ascend
--checkpoint_path
PATH_CHECKPOINT
--
datase
t_
p
at
h
DATA_DIR
GPU: python eval.py
--device_target
GPU
--checkpoint_path
PATH_CHECKPOINT
--
datase
t_
p
at
h
DATA_DIR
Ascend: python eval.py
--device_target
Ascend
--checkpoint_path
PATH_CHECKPOINT
--
tes
t_
d
at
a_dir
DATA_DIR
GPU: python eval.py
--device_target
GPU
--checkpoint_path
PATH_CHECKPOINT
--
tes
t_
d
at
a_dir
DATA_DIR
shell:
Ascend: bash scripts/run_eval.sh DEVICE_ID DATA_DIR PATH_CHECKPOINT
...
...
@@ -383,7 +383,7 @@ result: {'Loss': 1.7846775874590903, 'Top_1_Acc': 0.798735595390525, 'Top_5_Acc'
### Inference
Before performing inference, we need to export model first. Air model can only be exported in Ascend 910 environment, mindir model can be exported in any environment.
Current batch_
size can only be set to 1.
Current batch_size can only be set to 1.
```
shell
# Ascend310 inference
...
...
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