Skip to content

Commit

Permalink
[doc][src] update conda to anaconda3/2023.03/default
Browse files Browse the repository at this point in the history
This should work on both el7 and el9 hosts identically.
RT513441
  • Loading branch information
smokhov committed Feb 29, 2024
1 parent b6a193a commit 8301ce2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion doc/speed-manual.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand All @@ -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}

Expand Down
6 changes: 3 additions & 3 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

<!-- TOC --><a name="initialize-shell"></a>
#### Initialize Shell
Expand Down Expand Up @@ -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/<encs_username>/myconda
```

Expand Down Expand Up @@ -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.
```
Expand Down
2 changes: 1 addition & 1 deletion src/openiss-reid-speed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/openiss-yolo-cpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion src/openiss-yolo-gpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8301ce2

Please sign in to comment.