Resireg runs locally #24
Merged
Merged
Conversation
- Implemented the ReSiReg-Mini server in `server.py` for handling image processing and chat completions. - Created systemd service files for `twfarmbot-api`, `twfarmbot-resireg`, and `twfarmbot-ui`. - Added scripts for managing services: `install_services.sh`, `start_all.sh`, `stop_all.sh`, `restart_all.sh`, and `logs.sh`. - Ensured services are set to restart on failure and configured to run under the 'farmbot' user.
…odule level' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
- Cleaned up import statements and removed unused imports in resireg_cli.py, server.py, and huggingface.py. - Enhanced formatting and consistency in function definitions and calls across multiple files. - Simplified logic in the AgentLoop class for better clarity. - Updated type hints for better type safety in various functions. - Improved the structure of the chat_completions function to enhance readability. - Adjusted test assertions for clarity and consistency in test_ui.py.
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces the new
twfarmbot-resireg-servercomponent, integrating a local ReSiReg-Mini vision server into the TWFarmBot project. It also updates environment and documentation files to support the new vision server and adds client scripts for local inference. Additionally, a minor API change exposes chat metrics in responses.New ReSiReg-Mini vision server integration:
apps/resireg_serverpackage, including a FastAPI-based server for vision tasks (traversability, segmentation, similarity, embeddings) using theSimonSchwaiger/resireg_minimodel. Includes project metadata, a main entrypoint, and package structure. [1] [2] [3]client_infer.pyandclient_traverse.pyfor running local inference and saving result images, demonstrating how to interact with the server. [1] [2]Documentation and configuration updates:
.env.examplewith new configuration options for FarmBot, LLM planner, and the vision server, including credentials, endpoints, and safety limits.README.mdto document how to run the new vision server alongside other services, including systemd integration and log viewing.API improvement:
/chatendpoint now includes ametricsfield in its response for better observability of chat interactions.