소스 검색

CLEAN_MODEL=true by default. No overhead

nagadomi 6 년 전
부모
커밋
1b946a5484
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web.lua

+ 1 - 1
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