Xsmos commited on
Commit
17c7f4c
·
verified ·
1 Parent(s): a8d1207

0802-230641

Browse files
diffusion.py CHANGED
@@ -257,12 +257,12 @@ class TrainConfig:
257
 
258
  # dim = 2
259
  dim = 2
260
- stride = (2,2) if dim == 2 else (2,2,2)
261
- num_image = 3000#6000#30#60#6000#1000#2000#20000#15000#7000#25600#3000#10000#1000#10000#5000#2560#800#2560
262
- batch_size = 30#50#10#50#20#50#1#2#50#20#2#100 # 10
263
- n_epoch = 50#5#50#100#50#100#30#120#5#4# 10#50#20#20#2#5#25 # 120
264
  HII_DIM = 64
265
- num_redshift = 64#512#64#512#64#256CUDAoom#128#64#512#128#64#512#256#256#64#512#128
266
  channel = 1
267
  img_shape = (channel, HII_DIM, num_redshift) if dim == 2 else (channel, HII_DIM, HII_DIM, num_redshift)
268
 
 
257
 
258
  # dim = 2
259
  dim = 2
260
+ stride = (2,4) if dim == 2 else (2,2,2)
261
+ num_image = 30#3000#6000#30#60#6000#1000#2000#20000#15000#7000#25600#3000#10000#1000#10000#5000#2560#800#2560
262
+ batch_size = 10#50#10#50#20#50#1#2#50#20#2#100 # 10
263
+ n_epoch = 5#50#5#50#100#50#100#30#120#5#4# 10#50#20#20#2#5#25 # 120
264
  HII_DIM = 64
265
+ num_redshift = 512#64#512#64#512#64#256CUDAoom#128#64#512#128#64#512#256#256#64#512#128
266
  channel = 1
267
  img_shape = (channel, HII_DIM, num_redshift) if dim == 2 else (channel, HII_DIM, HII_DIM, num_redshift)
268
 
phoenix_diffusion.sbatch CHANGED
@@ -2,10 +2,10 @@
2
  #SBATCH -J diffusion # Job name
3
  #SBATCH -A gts-jw254-coda20
4
  #SBATCH -qembers
5
- #SBATCH -N6 --gpus-per-node=RTX_6000:1 # -C A100-80GB # Number of nodes and cores per node required
6
  #SBATCH --ntasks-per-node=1
7
- #SBATCH --mem-per-gpu=8G # Memory per core
8
- #SBATCH -t 01:00:00 # Duration of the job (Ex: 15 mins)
9
  #SBATCH -oReport-%j # Combined output and error messages file
10
  #SBATCH --error=error-%j
11
  #SBATCH --mail-type=BEGIN,END,FAIL # Mail preferences
@@ -31,7 +31,7 @@ export MASTER_PORT=$MASTER_PORT
31
  srun python diffusion.py \
32
  --train 1 \
33
  --sample 0 \
34
- --resume outputs/model_state-N3000-device_count2-node2-epoch49-172.27.149.189 \
35
  --num_new_img_per_gpu 200 \
36
  --max_num_img_per_gpu 40 \
37
 
 
2
  #SBATCH -J diffusion # Job name
3
  #SBATCH -A gts-jw254-coda20
4
  #SBATCH -qembers
5
+ #SBATCH -N1 --gpus-per-node=RTX_6000:1 # -C A100-80GB # Number of nodes and cores per node required
6
  #SBATCH --ntasks-per-node=1
7
+ #SBATCH --mem-per-gpu=16G # Memory per core
8
+ #SBATCH -t 00:05:00 # Duration of the job (Ex: 15 mins)
9
  #SBATCH -oReport-%j # Combined output and error messages file
10
  #SBATCH --error=error-%j
11
  #SBATCH --mail-type=BEGIN,END,FAIL # Mail preferences
 
31
  srun python diffusion.py \
32
  --train 1 \
33
  --sample 0 \
34
+ --resume outputs/model_state-N3000-device_count3-node2-epoch49-172.27.145.67 \
35
  --num_new_img_per_gpu 200 \
36
  --max_num_img_per_gpu 40 \
37
 
quantify_results.ipynb CHANGED
The diff for this file is too large to render. See raw diff