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
1 change: 0 additions & 1 deletion .envrc
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deleted this by mistake, just re-adding

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you deleted my dotenv init in the bottom of envrc also

This file was deleted.

5 changes: 5 additions & 0 deletions .envrc
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deleted this by mistake, just re-adding

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you deleted my dotenv init in the bottom of envrc also

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if ! has nix_direnv_version || ! nix_direnv_version 3.0.6; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.6/direnvrc" "sha256-RYcUJaRMf8oF5LznDrlCXbkOQrywm0HDv1VjYGaJGdM="
fi
use flake .
dotenv
4 changes: 1 addition & 3 deletions dimos/perception/detection2d/module2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from reactivex.subject import Subject

from dimos.core import In, Module, Out, rpc
from dimos.models.vl import QwenVlModel, VlModel
from dimos.msgs.sensor_msgs import Image
from dimos.msgs.sensor_msgs.Image import sharpness_barrier
from dimos.msgs.vision_msgs import Detection2DArray
Expand All @@ -40,7 +39,6 @@
class Config:
max_freq: float = 5 # hz
detector: Optional[Callable[[Any], Detector]] = lambda: Yolo2DDetector()
vlmodel: VlModel = QwenVlModel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one sec dont merge yet



class Detection2DModule(Module):
Expand All @@ -52,6 +50,7 @@ class Detection2DModule(Module):
detections: Out[Detection2DArray] = None # type: ignore
annotations: Out[ImageAnnotations] = None # type: ignore

# just for visualization, emits latest top 3 detections in a frame
detected_image_0: Out[Image] = None # type: ignore
detected_image_1: Out[Image] = None # type: ignore
detected_image_2: Out[Image] = None # type: ignore
Expand All @@ -60,7 +59,6 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.config: Config = Config(**kwargs)
self.detector = self.config.detector()
self.vlmodel = self.config.vlmodel()
self.vlm_detections_subject = Subject()

def process_image_frame(self, image: Image) -> ImageDetections2D:
Expand Down
2 changes: 1 addition & 1 deletion dimos/types/test_timestamped.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def process_video_frame(frame):
)
assert diff <= 0.05

assert len(aligned_frames) > 3
assert len(aligned_frames) > 2


def test_timestamp_alignment_primary_first():
Expand Down
Loading