Slide 13
Slide 13 text
© 2024 Masafumi Abeta
13
$ uv venv
$ source .venv/bin/activate
$ uv sync
$ uv run mim install mmengine
$ uv run mim install "mmcv==2.1.0"
$ git clone https://github.com/open-mmlab/mmdetection.git
$ cd mmdetection
$ uv pip install -v -e .
$ uv run demo/image_demo.py demo/demo.jpg rtmdet-s
(例)MMDetectionのインストール
[project]
name = “sample"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = "==3.10.12"
dependencies = [
"wheel>=0.44.0",
"numpy==1.26.4",
"torch==2.1.2+cu121",
"openmim",
"setuptools>=75.3.0",
"importlib-metadata>=8.5.0",
"platformdirs>=4.3.6",
]
[tool.uv.sources]
torch = { index = "pytorch" }
[[tool.uv.index]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cu121"
explicit = true
pyproject.toml