if you use predict with patches - inside there exists section that merge data together - and if your predict is empty nms function fails