Skip to content
This repository was archived by the owner on Jan 8, 2021. It is now read-only.

Commit 4c69d3a

Browse files
committed
Added l1s
1 parent 7aa6a62 commit 4c69d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Train.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def train(EPOCH, dataloader, optimizer, loss_function, network, model_name, nega
4444
parser.add_argument('origional_size', type = int, help = "Size of origional image. Please note that for ConvNet, it is the number of images' channel.")
4545
parser.add_argument('bottleneck', type = int, help = "Size of bottle neck. Please note that for ConvNet, its \"bottleneck\" is input * origional size in one channel / 4")
4646
parser.add_argument('--loss_func', type = str, dest = "loss_function", default = "mse",
47-
choices = ['mse', 'l1', 'ssim', 'psnr'])
47+
choices = ['mse', 'l1', 'ssim', 'psnr', 'l1s'])
4848
parser.add_argument('--model_name', type = str, dest = "model_name", help = "Model name for saving & restoring model",
4949
default = "saved.pkl")
5050
parser.add_argument('--disable-cuda', action='store_true',

0 commit comments

Comments
 (0)