Skip to content

Commit

Permalink
fixes on default arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Javi Ribera committed Nov 7, 2017
1 parent 6df1781 commit 095b3a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from torchvision import transforms
import torchvision as tv
from torchvision.models import inception_v3
import unet
import unet_pix2pix
import losses
import unet_model

Expand Down
10 changes: 5 additions & 5 deletions train_and_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from torchvision import transforms
import torchvision as tv
from torchvision.models import inception_v3
import unet
import unet_pix2pix
import losses
import unet_model

Expand All @@ -34,7 +34,7 @@
parser.add_argument('--batch-size', type=int, default=1, metavar='N',
help='input batch size for training')
parser.add_argument('--eval-batch-size', type=int, default=1, metavar='N',
help='input batch size for validation and testing')
help='input batch size for validation')
parser.add_argument('--epochs', type=int, default=np.inf, metavar='N',
help='number of epochs to train')
parser.add_argument('--nThreads', '-j', default=4, type=int, metavar='N',
Expand All @@ -55,8 +55,8 @@
help='only use the first N images of the training dataset')
parser.add_argument('--max-valset-size', type=int, default=np.inf, metavar='N',
help='only use the first N images of the validation dataset')
parser.add_argument('--out-test-csv', type=str,
help='path where to store the results of analyzing the test set')
parser.add_argument('--env-name', default='Pure U-Net', type=str, metavar='NAME',
help='Name of the environment in Visdom')
args = parser.parse_args()
args.cuda = not args.no_cuda and torch.cuda.is_available()

Expand All @@ -78,7 +78,7 @@
torch.cuda.manual_seed_all(args.seed)

# Visdom setup
viz = visdom.Visdom(env='Pure U-Net')
viz = visdom.Visdom(env=args.env_name)
viz_train_input_win, viz_val_input_win = None, None
viz_train_loss_win, viz_val_loss_win = None, None
viz_train_gt_win, viz_val_gt_win = None, None
Expand Down

0 comments on commit 095b3a1

Please sign in to comment.