Megvii-BaseDetection / Megvii-BaseDetection/YOLOX
tools/demo.py保存目标目录BUG
Open
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
tools/demo.py中的第219行,有这样一句,
save_path = os.path.join(save_folder, args.path.split("/")[-1])
当args.path不是"/"分割的时候,就会出错误,导致源文件被覆盖。
应该改成这样:
save_path = os.path.join(save_folder, args.path[len(os.path.dirname(args.path))+1:])
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open tools/demo.py around line 219 and inspect how args.path is converted into save_path. Reproduce the case where args.path uses a separator other than "/", then verify that saving preserves the intended path and does not overwrite the source file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100