Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复误删文件的BUG #418

Closed
wants to merge 1 commit into from
Closed

修复误删文件的BUG #418

wants to merge 1 commit into from

Conversation

jedi007
Copy link
Contributor

@jedi007 jedi007 commented Apr 2, 2022

运行: python demo/demo_copy.py video --config config\nanodet-plus-m-1.5x_416.yml --model nanodet-plus-m-1.5x_416_checkpoint.ckpt --path D:\TestData\testvedio-1.mp4

运行上述指令后,因为我的 --path “路径” 是用“\”分隔的,导致源代码分割失败,直接在我原始文件上写入数据。

demo运行失败不说,
还导致原始视频文件被覆盖写入,变成1kb, 数据全部丢失。(还好有备份~~!)

修改后增加填写路径的兼容性,以及避免文件被误删!

@RangiLyu
Copy link
Owner

merged in #459

@RangiLyu RangiLyu closed this Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants