diff --git a/doc/speed-manual.tex b/doc/speed-manual.tex index 77de962..9e9e854 100644 --- a/doc/speed-manual.tex +++ b/doc/speed-manual.tex @@ -544,6 +544,7 @@ \subsubsection{Anaconda} \texttt{a\_user}, execute the following at the command line: \begin{verbatim} +module load anaconda3/2023.03/default conda create --prefix /speed-scratch/a_user/myconda \end{verbatim} @@ -561,7 +562,7 @@ \subsubsection{Anaconda} \begin{verbatim} # conda environments: # -base * /encs/pkg/anaconda3-2019.07/root +base * /encs/pkg/anaconda3-2023.03/root /speed-scratch/a_user/myconda \end{verbatim} diff --git a/src/README.md b/src/README.md index 2417683..3cf3ebe 100644 --- a/src/README.md +++ b/src/README.md @@ -129,7 +129,7 @@ To view the Anaconda modules available, run Load the desired version of anaconda using the module load command. For example: -`module load anaconda3` +`module load anaconda3/2023.03/default` #### Initialize Shell @@ -158,7 +158,7 @@ To view your conda environments, type ``` # conda environments: # -base * /encs/pkg/anaconda3-2019.07/root +base * /encs/pkg/anaconda3-2023.03/root /speed-scratch//myconda ``` @@ -250,7 +250,7 @@ git clone --depth=1 https://github.com/NAG-DevOps/openiss-yolov3.git ``` 2. Starting by loading anaconda module ``` -module load anaconda/default +module load anaconda3/2023.03/default ``` 3. Switch to the project directoy. Create anaconda virtual environment, and configure development librires. The name of the environment can by any name here as an example named YOLO. Activate the conda environment YOLOInteractive. ``` diff --git a/src/openiss-reid-speed.sh b/src/openiss-reid-speed.sh index 11b0c50..897ed1b 100755 --- a/src/openiss-reid-speed.sh +++ b/src/openiss-reid-speed.sh @@ -20,7 +20,7 @@ #SBATCH --gpus=1 # Execute the script -module load anaconda/default +module load anaconda3/2023.03/default conda env create -f environment.yml -p /speed-scratch/$USER/reid-venv conda activate /speed-scratch/$USER/reid-venv srun python reid.py diff --git a/src/openiss-yolo-cpu.sh b/src/openiss-yolo-cpu.sh index 5fdf023..593f944 100755 --- a/src/openiss-yolo-cpu.sh +++ b/src/openiss-yolo-cpu.sh @@ -23,10 +23,12 @@ # Specify the output file name #SBATCH -o openiss-yolo-batch-cpu.log +module load anaconda3/2023.03/default + conda activate /speed-scratch/$USER/YOLO # Image example -#python yolo_video.py --model model_data/yolo.h5 --classes model_data/coco_classes.txt --image --gpu_num 2 +#srun python yolo_video.py --model model_data/yolo.h5 --classes model_data/coco_classes.txt --image --gpu_num 2 # Video example srun python yolo_video.py --input video/v1.avi --output video/001.avi #--gpu_num 2 diff --git a/src/openiss-yolo-gpu.sh b/src/openiss-yolo-gpu.sh index 6815356..0445d9c 100755 --- a/src/openiss-yolo-gpu.sh +++ b/src/openiss-yolo-gpu.sh @@ -23,12 +23,16 @@ # Specify the output file name #SBATCH -o openiss-yolo-batch-gpu.log +module load anaconda3/2023.03/default + conda activate /speed-scratch/$USER/YOLO # Image example -#python yolo_video.py --model model_data/yolo.h5 --classes model_data/coco_classes.txt --image --gpu_num 2 +#srun python yolo_video.py --model model_data/yolo.h5 --classes model_data/coco_classes.txt --image --gpu_num 2 # Video example srun python yolo_video.py --input video/v1.avi --output video/002.avi --gpu_num 2 conda deactivate + +# EOF