forked from dlcv-journal-club/TextToImageModels
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinference.qsub.sh
More file actions
53 lines (36 loc) · 1.19 KB
/
inference.qsub.sh
File metadata and controls
53 lines (36 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# This is the most basic QSUB file needed for this cluster.
# Further examples can be found under /share/apps/examples
# Most software is NOT in your PATH but under /share/apps
#
# For further info please read http://hpc.cs.ucl.ac.uk
# For cluster help email cluster-support@cs.ucl.ac.uk
#
# NOTE hash dollar is a scheduler directive not a comment.
#########################FLAGS#################################
# These are flags you must include - Two memory and one runtime.
# Runtime is either seconds or hours:min:sec
#$ -l mem=8G
#$ -l gpu=1
# only need 1 hour to test this script.
#$ -l h_rt=1:00:00
# choose your preferred shell.
#$ -S /bin/bash
# merge STDOUT and STDERROR
#$ -j y
# make sure you give it a memorable name
#$ -N Dreambooth_inference
# output directory for STDOUT file
#$ -o ~/runLog/
#########################/FLAGS#################################
set -e
#The code you want to run now goes here.
# print hostname and data for reference.
hostname
date
pwd
export LD_LIBRARY_PATH=/home/$USER/miniconda3/lib/:${LD_LIBRARY_PATH}
conda activate dreambooth
cd /home/cceajes/text_to_image/TextToImageModels/dreambooth
python3 inference.py --prompt "$MYPROMPT"
sleep 10
date