1
0
Fork 0
mirror of synced 2024-05-16 02:42:20 +12:00
waifu2x/lib/portable.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

22 lines
457 B
Lua

local function load_cuda()
require 'nn'
require 'cunn'
end
local function load_cudnn()
require 'cudnn'
--cudnn.fastest = true
end
if pcall(load_cuda) then
else
--[[ TODO: fakecuda does not work.
io.stderr:write("use FakeCUDA; if you have NVIDIA GPU, Please install cutorch and cunn. FakeCuda will be extremely slow.\n")
require 'torch'
require 'nn'
require('fakecuda').init(true)
--]]
end
if pcall(load_cudnn) then
end