-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopts.lua
37 lines (29 loc) · 1.15 KB
/
opts.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--------------------------------------------------------------------------------
-- Contains options required by main.lua
--
-- Written by: Abhishek Chaurasia
--------------------------------------------------------------------------------
local opts = {}
lapp = require 'pl.lapp'
function opts.parse(arg)
local opt = lapp [[
Command line options:
## Dataset
--input (default /media/tensor.t7) Input .t7 file location
## Model
--dmodel (default predNet) model directory name
--net (default 1) model number
--layers (default 3) # of layers in the model
--model (default pred) choose among [pred|PCBC]
## Device
--dev (default cuda) Device to be used: cpu/cuda
--devID (default 1) GPU number
## Miscellaneous parameters
--seed (default 8)
--nrow (default 5) Images in one row
-v Verbose mode
--save Save views to file
]]
return opt
end
return opts