Imported from https://github.com/hli1221/densefuse-pytorch