Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion graid/src/graid/graid.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import sys
from pathlib import Path
from typing import dict, Optional
from typing import Optional

import typer

Expand Down
13 changes: 7 additions & 6 deletions graid/src/graid/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def install_depth_pro() -> None:
os.chdir("ml-depth-pro")

# Install the package in editable mode
subprocess.run(["pip", "install", "-e", "."])
subprocess.run(["uv", "pip", "install", "-e", "."])

# Change back to the original directory
os.chdir("..")
Expand Down Expand Up @@ -90,16 +90,17 @@ def install_detectron2() -> None:
if platform.system() == "Darwin":
subprocess.run(
[
'CC=clang CXX=clang++ ARCHFLAGS="-arch x86_64" python',
'CC=clang CXX=clang++ ARCHFLAGS="-arch x86_64" uv python',
"-m",
"pip",
"install",
"--no-build-isolation",
"-e",
".",
]
)
else:
subprocess.run(["python", "-m", "pip", "install", "-e", "."])
subprocess.run(["uv", "python", "-m", "pip", "install", "--no-build-isolation", "-e", "."])

# Change back to the original directory
os.chdir("..")
Expand Down Expand Up @@ -141,12 +142,12 @@ def install_mmdetection() -> None:
# Change to the mmdetection directory
os.chdir("mmdetection")

subprocess.run(["pip", "install", "-e", "."])
subprocess.run(["uv", "pip", "install", "--no-build-isolation", "-e", "."])

# Change back to the original directory
os.chdir("..")

subprocess.run(["pip", "install", "--upgrade", "openmim"])
subprocess.run(["uv", "pip", "install", "--upgrade", "openmim"])
subprocess.run(["mim", "install", "mmengine"])
subprocess.run(["mim", "install", "mmcv==2.1.0"])
subprocess.run(["mim", "install", "mmdet"])
Expand Down Expand Up @@ -555,7 +556,7 @@ def download_nuimages(split: Optional[str] = None) -> None:
else:
raise ValueError(f"Unknown split {split}")

subprocess.run(["pip", "install", "nuscenes-devkit"])
subprocess.run(["uv", "pip", "install", "nuscenes-devkit"])


def install_all() -> None:
Expand Down
Loading