Skip to content

Commit 531e294

Browse files
committed
Dilated convolutions in encoder
1 parent 7253c09 commit 531e294

20 files changed

Lines changed: 2581966 additions & 85 deletions

code/autoencoder_model/scripts/argparse

Lines changed: 150964 additions & 0 deletions
Large diffs are not rendered by default.

code/autoencoder_model/scripts/config_r16.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
PRINT_MODEL_SUMMARY = True
6464
SAVE_MODEL = True
65-
PLOT_MODEL = False
65+
PLOT_MODEL = True
6666
SAVE_GENERATED_IMAGES = True
6767
SHUFFLE = True
6868
VIDEO_LENGTH = 32
@@ -77,7 +77,7 @@
7777
print ("Loading network/training configuration.")
7878
print ("Config file: " + str(__name__))
7979

80-
BATCH_SIZE = 10
80+
BATCH_SIZE = 9
8181
NB_EPOCHS_AUTOENCODER = 30
8282

8383
OPTIM_A = Adam(lr=0.0001, beta_1=0.5)

code/autoencoder_model/scripts/gifimages.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ def strip(image, img_height, img_width, vid_len, vid_num=1, rev=False):
4646
frame_num = frame_num + 1
4747

4848

49-
def gifmax(folder):
49+
def gifmax(folder, rev=False):
5050
for i in range(880):
51-
im_pred = cv2.imread(folder+'/truth/' + str(i) + '_truth.png', cv2.IMREAD_COLOR)
52-
strip(im_pred, 128, 32, i)
51+
im_pred = cv2.imread(folder+'/pred/' + str(i) + '_pred.png', cv2.IMREAD_COLOR)
52+
strip(im_pred, 128, 208, 32, i, rev=rev)
5353

5454

5555
def get_args():
@@ -79,7 +79,7 @@ def get_args():
7979
args = get_args()
8080
if args.mode == 'gifmax':
8181
print ('going into gifmax')
82-
gifmax(args.folder)
82+
gifmax(args.folder, args.rev)
8383
else:
8484
try:
8585
im = cv2.imread(args.file, cv2.IMREAD_COLOR)

0 commit comments

Comments
 (0)