-
Notifications
You must be signed in to change notification settings - Fork 173
alibaba env var fix #673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alibaba env var fix #673
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. deleted this by mistake, just re-adding
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
|
@@ -40,7 +39,6 @@ | |
| class Config: | ||
| max_freq: float = 5 # hz | ||
| detector: Optional[Callable[[Any], Detector]] = lambda: Yolo2DDetector() | ||
| vlmodel: VlModel = QwenVlModel | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. one sec dont merge yet |
||
|
|
||
|
|
||
| class Detection2DModule(Module): | ||
|
|
@@ -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 | ||
|
|
@@ -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: | ||
|
|
||
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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