-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added conda local install, partialy adjusted model to pycandle
- Loading branch information
w.jurasz
committed
Jun 4, 2019
1 parent
993e5ec
commit e5ff4c3
Showing
5 changed files
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,12 @@ case ${i} in | |
CUDA="${i#*=}" | ||
shift # past argument=value | ||
;; | ||
-e=*|--venv=*) | ||
VENV="${i#*=}" | ||
-a=*|--anaconda=*) | ||
ANACONDA="${i#*=}" | ||
shift # past argument=value | ||
;; | ||
-p=*|--python_path=*) | ||
VENV_PATH="${i#*=}" | ||
-e=*|--venv=*) | ||
VENV="${i#*=}" | ||
shift # past argument=value | ||
;; | ||
*) | ||
|
@@ -26,11 +26,12 @@ case ${i} in | |
esac | ||
done | ||
|
||
VENV=${VENV:-true} | ||
VENV=${VENV:-./venv} | ||
|
||
if [ "$VENV" = true ] ; then | ||
VENV_PATH=${VENV_PATH:-./venv} | ||
source ${VENV_PATH}/bin/activate | ||
if [ -z ${ANACONDA+x} ] ; then | ||
conda activate ${ANACONDA} | ||
elif [ -z ${VENV+x} ] ; then | ||
source ${VENV}/bin/activate | ||
fi | ||
|
||
#TODO: Infer this automatically | ||
|
@@ -50,4 +51,9 @@ cd ../pytorch_binding && python setup.py install | |
cd ../.. | ||
rm -rf warp-ctc | ||
|
||
git clone [email protected]:pytorch/audio.git | ||
cd audio; MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py install | ||
cd .. | ||
rm -rf audio | ||
|
||
pip install -r post_requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
-e git://github.com/pytorch/audio.git#egg=torchaudio-0.2 | ||
-e git://github.com/NVIDIA/apex.git#egg=apex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters