From 1b946a5484f107f64c8f70921e36c867d60f579f Mon Sep 17 00:00:00 2001 From: nagadomi Date: Tue, 13 Nov 2018 10:45:11 +0900 Subject: [PATCH] CLEAN_MODEL=true by default. No overhead --- web.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web.lua b/web.lua index 22613b5..6a69fb1 100644 --- a/web.lua +++ b/web.lua @@ -76,7 +76,7 @@ local photo_model = { noise3 = w2nn.load_model(path.join(PHOTO_MODEL_DIR, "noise3_model.t7"), opt.force_cudnn) } collectgarbage() -local CLEANUP_MODEL = false -- if you are using the low memory GPU, you could use this flag. +local CLEANUP_MODEL = true -- if you are using the low memory GPU, you could use this flag. local CACHE_DIR = path.join(ROOT, "cache") local MAX_NOISE_IMAGE = opt.max_pixels local MAX_SCALE_IMAGE = (math.sqrt(opt.max_pixels) / 2)^2