[MF]修改文件
This commit is contained in:
parent
e9cb1e5d8f
commit
e53572bc2f
6
.idea/le-yolo.iml
generated
6
.idea/le-yolo.iml
generated
@ -2,8 +2,10 @@
|
|||||||
<module type="WEB_MODULE" version="4">
|
<module type="WEB_MODULE" version="4">
|
||||||
<component name="Go" enabled="true" />
|
<component name="Go" enabled="true" />
|
||||||
<component name="NewModuleRootManager">
|
<component name="NewModuleRootManager">
|
||||||
<content url="file://$MODULE_DIR$" />
|
<content url="file://$MODULE_DIR$">
|
||||||
<orderEntry type="inheritedJdk" />
|
<excludeFolder url="file://$MODULE_DIR$/.venv" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="jdk" jdkName="Python 3.13 (le-yolo)" jdkType="Python SDK" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
@ -1,3 +1,3 @@
|
|||||||
from ultralytics import YOLO
|
from ultralytics import YOLO
|
||||||
model = YOLO("yolov8n.pt")
|
model = YOLO("yolov8n.pt")
|
||||||
results = model.predict("../res/test.mp4", show=True, save=True)
|
results = model.predict("../res/video.mp4", show=True, save=True)
|
||||||
|
@ -16,13 +16,13 @@ if not exist "venv" (
|
|||||||
echo 激活虚拟环境...
|
echo 激活虚拟环境...
|
||||||
call venv\Scripts\activate.bat
|
call venv\Scripts\activate.bat
|
||||||
|
|
||||||
:: 检查测试视频文件是否存在
|
@REM :: 检查测试视频文件是否存在
|
||||||
if not exist "res\test.mp4" (
|
@REM if not exist "res\test.mp4" (
|
||||||
echo ❌ 错误: res\test.mp4 文件不存在!
|
@REM echo ❌ 错误: res\test.mp4 文件不存在!
|
||||||
echo 请在 res\ 目录中放置名为 test.mp4 的视频文件
|
@REM echo 请在 res\ 目录中放置名为 test.mp4 的视频文件
|
||||||
pause
|
@REM pause
|
||||||
exit /b 1
|
@REM exit /b 1
|
||||||
)
|
@REM )
|
||||||
|
|
||||||
echo ✅ 找到测试视频文件: res\test.mp4
|
echo ✅ 找到测试视频文件: res\test.mp4
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user