Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
gpu-base-image-build
Commits
df39499f
Commit
df39499f
authored
Oct 16, 2024
by
chenpangpang
Browse files
修复了paddle 检测脚本路径识别错误的问题
parent
cc4fd7c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
script/2_text_test.sh
script/2_text_test.sh
+4
-4
script/3_image_test.sh
script/3_image_test.sh
+4
-4
No files found.
script/2_text_test.sh
View file @
df39499f
...
@@ -6,12 +6,12 @@ if [ -z "$1" ]; then
...
@@ -6,12 +6,12 @@ if [ -z "$1" ]; then
exit
1
exit
1
fi
fi
if
[[
"
$1
"
==
*
"pytorch"
*
]]
;
then
\
if
[[
"
$1
"
==
*
"pytorch"
*
]]
;
then
docker run
--rm
--platform
=
linux/amd64
--gpus
all
-v
./
$TARGET_DIR
:/workspace
--workdir
/workspace/pytorch/gpt2
$1
python infer.py
;
fi
docker run
--rm
--platform
=
linux/amd64
--gpus
all
-v
./
$TARGET_DIR
:/workspace
--workdir
/workspace/pytorch/gpt2
$1
python infer.py
;
fi
if
[[
"
$1
"
==
*
"tensorflow"
*
]]
;
then
\
if
[[
"
$1
"
==
*
"tensorflow"
*
]]
;
then
docker run
--rm
--platform
=
linux/amd64
--gpus
all
-v
./
$TARGET_DIR
:/workspace
--workdir
/workspace/tensorflow/bert
$1
python infer.py
;
fi
docker run
--rm
--platform
=
linux/amd64
--gpus
all
-v
./
$TARGET_DIR
:/workspace
--workdir
/workspace/tensorflow/bert
$1
python infer.py
;
fi
if
[[
"
$1
"
==
*
"paddle"
*
]]
;
then
\
if
[[
"
$1
"
==
*
"paddle"
*
]]
;
then
TARGET_DIR
=
gpu-base-image-test/paddletest
\
TARGET_DIR
=
gpu-base-image-test/paddletest
docker run
--rm
--platform
=
linux/amd64
--gpus
all
-v
./
$TARGET_DIR
:/workspace
--workdir
/workspace
$1
python text.py
;
fi
docker run
--rm
--platform
=
linux/amd64
--gpus
all
-v
./
$TARGET_DIR
:/workspace
--workdir
/workspace
$1
python text.py
;
fi
script/3_image_test.sh
View file @
df39499f
...
@@ -6,13 +6,13 @@ if [ -z "$1" ]; then
...
@@ -6,13 +6,13 @@ if [ -z "$1" ]; then
exit
1
exit
1
fi
fi
if
[[
"
$1
"
==
*
"pytorch"
*
]]
;
then
\
if
[[
"
$1
"
==
*
"pytorch"
*
]]
;
then
docker run
--rm
--platform
=
linux/amd64
--gpus
all
-v
./
$TARGET_DIR
:/workspace
--workdir
/workspace/pytorch/stable-diffusion-v1-4
$1
python infer.py
;
fi
docker run
--rm
--platform
=
linux/amd64
--gpus
all
-v
./
$TARGET_DIR
:/workspace
--workdir
/workspace/pytorch/stable-diffusion-v1-4
$1
python infer.py
;
fi
if
[[
"
$1
"
==
*
"tensorflow"
*
]]
;
then
\
if
[[
"
$1
"
==
*
"tensorflow"
*
]]
;
then
docker run
--rm
--platform
=
linux/amd64
--gpus
all
-v
./
$TARGET_DIR
:/workspace
--workdir
/workspace/tensorflow/mnist
$1
python train.py
;
fi
docker run
--rm
--platform
=
linux/amd64
--gpus
all
-v
./
$TARGET_DIR
:/workspace
--workdir
/workspace/tensorflow/mnist
$1
python train.py
;
fi
if
[[
"
$1
"
==
*
"paddle"
*
]]
;
then
\
if
[[
"
$1
"
==
*
"paddle"
*
]]
;
then
TARGET_DIR
=
gpu-base-image-test/paddletest
\
TARGET_DIR
=
gpu-base-image-test/paddletest
docker run
--rm
--platform
=
linux/amd64
--gpus
all
-v
./
$TARGET_DIR
:/workspace
--workdir
/workspace
$1
python image.py
;
fi
docker run
--rm
--platform
=
linux/amd64
--gpus
all
-v
./
$TARGET_DIR
:/workspace
--workdir
/workspace
$1
python image.py
;
fi
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