Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
221cb0332
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
221cb0332
Commits
a8020515
Commit
a8020515
authored
Jun 25, 2022
by
anzhengqi
Browse files
Options
Downloads
Patches
Plain Diff
modify vit_base network
parent
15ccc378
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
research/cv/ras/export.py
+1
-1
1 addition, 1 deletion
research/cv/ras/export.py
research/cv/vit_base/scripts/run_distribute_train_ascend.sh
+1
-2
1 addition, 2 deletions
research/cv/vit_base/scripts/run_distribute_train_ascend.sh
with
2 additions
and
3 deletions
research/cv/ras/export.py
+
1
−
1
View file @
a8020515
...
@@ -19,7 +19,7 @@ import argparse
...
@@ -19,7 +19,7 @@ import argparse
import
numpy
as
np
import
numpy
as
np
import
mindspore
as
ms
import
mindspore
as
ms
from
mindspore
import
load_checkpoint
,
load_param_into_net
,
export
from
mindspore
import
load_checkpoint
,
load_param_into_net
,
export
from
.
src.model
import
BoneModel
from
src.model
import
BoneModel
def
run_export
(
device_target
,
device_id
,
pretrained_model
,
model_ckpt
,
batchsize
):
def
run_export
(
device_target
,
device_id
,
pretrained_model
,
model_ckpt
,
batchsize
):
...
...
This diff is collapsed.
Click to expand it.
research/cv/vit_base/scripts/run_distribute_train_ascend.sh
+
1
−
2
View file @
a8020515
...
@@ -26,10 +26,9 @@ RANK_TABLE_FILE=$(realpath $1)
...
@@ -26,10 +26,9 @@ RANK_TABLE_FILE=$(realpath $1)
export
RANK_TABLE_FILE
export
RANK_TABLE_FILE
echo
"RANK_TABLE_FILE=
${
RANK_TABLE_FILE
}
"
echo
"RANK_TABLE_FILE=
${
RANK_TABLE_FILE
}
"
device_start
=
$3
for
((
i
=
0
;
i<
${
DEVICE_NUM
}
;
i++
))
for
((
i
=
0
;
i<
${
DEVICE_NUM
}
;
i++
))
do
do
export
DEVICE_ID
=
$
((
device_start
+
i
))
export
DEVICE_ID
=
$
i
export
RANK_ID
=
$i
export
RANK_ID
=
$i
rm
-rf
./train_parallel
$i
rm
-rf
./train_parallel
$i
mkdir
./train_parallel
$i
mkdir
./train_parallel
$i
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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