1
0
Fork 0
mirror of synced 2024-06-14 08:54:31 +12:00
waifu2x/lib/mynn.lua
nagadomi 8dea362bed sync from internal repo
- Memory compression by snappy (lua-csnappy)
- Use RGB-wise Weighted MSE(R*0.299, G*0.587, B*0.114) instead of MSE
- Aggressive cropping for edge region
and some change.
2015-10-26 09:23:52 +09:00

21 lines
367 B
Lua

local function load_cunn()
require 'nn'
require 'cunn'
end
local function load_cudnn()
require 'cudnn'
cudnn.fastest = true
end
if mynn then
return mynn
else
load_cunn()
--load_cudnn()
mynn = {}
require './LeakyReLU'
require './LeakyReLU_deprecated'
require './DepthExpand2x'
require './RGBWeightedMSECriterion'
return mynn
end