-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from NAG-DevOps/oi-yolo
integrate oi-yolo job example
- Loading branch information
Showing
4 changed files
with
218 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/encs/bin/tcsh | ||
|
||
# Give job a name | ||
#$ -N yoloNonInteractiveCPU | ||
|
||
# Set output directory to current | ||
#$ -cwd | ||
|
||
# Send an email when the job starts, finishes or if it is aborted. | ||
#$ -m bea | ||
|
||
# Request GPU | ||
# #$ -l gpu=2 | ||
|
||
# Request CPU with maximum memoy size = 80GB | ||
#$ -l h_vmem=80G | ||
|
||
# Request CPU slots | ||
#$ -pe smp 16 | ||
|
||
#sleep 30 | ||
|
||
# Specify the output file name in our case we commntes that system will genreate file with the same name of the job | ||
# -o name.qlog | ||
|
||
|
||
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 | ||
|
||
# Video example | ||
python yolo_video.py --input video/v1.avi --output video/001.avi #--gpu_num 2 | ||
|
||
conda deactivate |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/encs/bin/tcsh | ||
|
||
# Give job a name | ||
#$ -N yoloNonInteractiveGPU | ||
|
||
# Set output directory to current | ||
#$ -cwd | ||
|
||
# Send an email when the job starts, finishes or if it is aborted. | ||
#$ -m bea | ||
|
||
# Request GPU | ||
#$ -l gpu=2 | ||
|
||
# Request CPU with maximum memoy size = 40GB | ||
# #$ -l h_vmem=40G | ||
|
||
#sleep 30 | ||
|
||
# Specify the output file name in our case we commntes that system will genreate file with the same name of the job | ||
# -o name.qlog | ||
|
||
|
||
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 | ||
|
||
# Video example | ||
python yolo_video.py --input video/v1.avi --output video/002.avi --gpu_num 2 | ||
|
||
conda deactivate |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/encs/bin/tcsh | ||
## since it is qlogin no need to configure cluster setting because qlogin choosed the proper computational node | ||
# Give job a name | ||
#$ -N yoloInteractive | ||
|
||
# Set output directory to current | ||
# #$ -cwd | ||
|
||
# Send an email when the job starts, finishes or if it is aborted. | ||
# #$ -m bea | ||
|
||
# Request GPU | ||
# #$ -l gpu=2 | ||
|
||
# Request CPU with maximum memoy size = 80GB | ||
# #$ -l h_vmem=80G | ||
|
||
# Request CPU slots | ||
# #$ -pe smp 16 | ||
|
||
#sleep 30 | ||
|
||
# Specify the output file name in our case we commntes that system will genreate file with the same name of the job | ||
# # -o name.qlog | ||
|
||
|
||
conda activate /speed-scratch/$USER/YOLO | ||
|
||
# Image example | ||
#python yolo_video.py --model model_data/yolo.h5 --classes model_data/coco_classes.txt --image | ||
|
||
# Video example | ||
python yolo_video.py --input video/v1.avi --output video/003.avi --interactive | ||
|
||
conda deactivate |