This file contains hidden or 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
| #!/bin/bash | |
| # Timeout value in seconds (3 hours = 10800 seconds) | |
| timeout=10800 | |
| # Initialize a counter | |
| count=0 | |
| # Run in a loop | |
| while true; do |
This file contains hidden or 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
| import simulation | |
| import helper | |
| import copy | |
| import time | |
| from collections import defaultdict | |
| from torch.utils.data import Dataset, DataLoader | |
| from torchvision import transforms, datasets, models | |
| import torch.nn.functional as F | |
| import torch.nn as nn |
This file contains hidden or 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
| import tensorflow as tf | |
| import numpy as np | |
| from tensorflow.python.platform import gfile | |
| import cv2 | |
| import glob | |
| from matplotlib import pyplot as plt | |
| # import tqdm | |
| def random_pad_to_size(img, size, mask, pad_symmetric, use_random): |
This file contains hidden or 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
| from MODEL import * | |
| from EVALUATION import * | |
| timer = Timer() | |
| timer.start() | |
| netG_act_o_1 = dict(size=2, index=0) | |
| netG_act_o_2 = dict(size=2, index=1) | |
| netD_act_o = dict(size=1, index=0) |