Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
AMBS
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esde
machine-learning
AMBS
Commits
b1b34f40
Commit
b1b34f40
authored
3 years ago
by
Michael Langguth
Browse files
Options
Downloads
Patches
Plain Diff
Ensure taht you are virtual environment when you are running without container.
parent
4b4cf7c0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
video_prediction_tools/env_setup/create_env.sh
+9
-2
9 additions, 2 deletions
video_prediction_tools/env_setup/create_env.sh
with
9 additions
and
2 deletions
video_prediction_tools/env_setup/create_env.sh
+
9
−
2
View file @
b1b34f40
...
@@ -32,7 +32,7 @@ check_argin() {
...
@@ -32,7 +32,7 @@ check_argin() {
if
[[
-z
"
${
bool_container
}
"
]]
;
then
if
[[
-z
"
${
bool_container
}
"
]]
;
then
bool_container
=
1
bool_container
=
1
fi
fi
if
[[
-z
"
${
bool_
container
}
"
]]
;
then
if
[[
-z
"
${
bool_
hpc
}
"
]]
;
then
bool_hpc
=
1
bool_hpc
=
1
fi
fi
# in case that no TF-container is set manually, set the default
# in case that no TF-container is set manually, set the default
...
@@ -69,6 +69,9 @@ WORKING_DIR="$(dirname "$THIS_DIR")"
...
@@ -69,6 +69,9 @@ WORKING_DIR="$(dirname "$THIS_DIR")"
EXE_DIR
=
"
$(
basename
"
$THIS_DIR
"
)
"
EXE_DIR
=
"
$(
basename
"
$THIS_DIR
"
)
"
ENV_DIR
=
${
WORKING_DIR
}
/virtual_envs/
${
ENV_NAME
}
ENV_DIR
=
${
WORKING_DIR
}
/virtual_envs/
${
ENV_NAME
}
TF_CONTAINER
=
${
WORKING_DIR
}
/HPC_scripts/
${
TF_CONTAINER_NAME
}
TF_CONTAINER
=
${
WORKING_DIR
}
/HPC_scripts/
${
TF_CONTAINER_NAME
}
if
[[
${
bool_hpc
}
==
0
]]
;
then
TF_CONTAINER
=
${
WORKING_DIR
}
/no_HPC_scripts/
${
TF_CONTAINER_NAME
}
fi
## perform sanity checks
## perform sanity checks
...
@@ -124,10 +127,14 @@ if [[ "$ENV_EXIST" == 0 ]]; then
...
@@ -124,10 +127,14 @@ if [[ "$ENV_EXIST" == 0 ]]; then
if
[[
${
bool_hpc
}
==
1
]]
;
then
if
[[
${
bool_hpc
}
==
1
]]
;
then
source
${
THIS_DIR
}
/modules_train.sh
source
${
THIS_DIR
}
/modules_train.sh
fi
fi
unset
PYTHONPATH
./install_venv.sh
"
${
ENV_DIR
}
"
./install_venv.sh
"
${
ENV_DIR
}
"
# Activate virtual environment again
source
"
${
ENV_DIR
}
/bin/activate"
if
[[
${
bool_hpc
}
==
0
]]
;
then
if
[[
${
bool_hpc
}
==
0
]]
;
then
pip
install
--no-cache-dir
tensorflow
==
1.13.1
pip
3
install
--no-cache-dir
tensorflow
==
1.13.1
fi
fi
fi
fi
elif
[[
"
$ENV_EXIST
"
==
1
]]
;
then
elif
[[
"
$ENV_EXIST
"
==
1
]]
;
then
...
...
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