-
Notifications
You must be signed in to change notification settings - Fork 0
Final cpu pipeline #169
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
Final cpu pipeline #169
Conversation
|
|
||
| return pipeline | ||
|
|
||
| # Main |
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.
Please remove this comment
|
|
||
| CLASS_LABELS = load_class_labels() | ||
|
|
||
| # Pipeline construction |
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.
Please remove this comment
| PLANT_LABELS = "/workspace/configs/crop_and_weed_83_classes.txt" | ||
|
|
||
| # Load class labels | ||
| def load_class_labels() -> List[str]: |
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.
Maybe we can create a helper since this function is being used in many places?
| except Exception as e: | ||
| raise RuntimeError("BackgroundRemovalProbe: failed to fetch/map NvBufSurface") from e | ||
|
|
||
| return Gst.PadProbeReturn.OK No newline at end of file |
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.
please run linting on this file
This PR introduces a new
deepstream_pipeline_cpu.pythat integrates multiple modular CPU-based features into a unified DeepStream pipeline.The new pipeline includes:
All components are organized as independent modules, improving clarity, reuse, and maintainability.
closes #138