Comments (5)
awesome, so for client.py I'm envisioning client to work as follows:
- Use
start
andstop
from theDeploy
class for instantiating and then closing the instance. - Use either paramiko https://www.paramiko.org/ or https://pexpect.readthedocs.io/en/stable/ to have a runner for functions within the instance.
- Write up or reuse SOM logic from one of the existing demos (
demo_som.py
for example) into a function and then plug that into the runner above, and inference is done.
The original repo doesn't have any architecture or heavy ML code laid out so I'm guessing the meat n potatoes is within the demo files, but I could be wrong.
from openadapt.
@FFFiend thoughts? 🙏 😄
from openadapt.
I took a look at the client.py
code as well as the docs so from my understanding:
Instead of using a gradio app url or HuggingFace space, we would like to create an entry point to the EC2 SoM instance we have available and return a marked screenshot as the output of predict
Bit confused on how a marked screenshot is defined though 😄
from openadapt.
@FFFiend thanks for your quick response!
Instead of using a gradio app url or HuggingFace space, we would like to create an entry point to the EC2 SoM instance we have available and return a marked screenshot as the output of predict
Exactly right! We would need to integrate the deploy.py
and a variation of client.py
, which would both be called from elsewhere in openadapt (e.g. visualize.py, replay.py).
Bit confused on how a marked screenshot is defined though 😄
No worries! You can see the marked screenshot in the PR description, reproduced here:
The original screenshot is on the left, the marked screenshot is on the right.
from openadapt.
@FFFiend thanks for your patience! Just saw this 😅
- Use start and stop from the Deploy class for instantiating and then closing the instance.
Agreed.
- Use either paramiko https://www.paramiko.org/ or https://pexpect.readthedocs.io/en/stable/ to have a runner for functions within the instance.
This may be unnecessary. https://github.com/microsoft/SoM includes a client.py
which uses the Gradio API -- the client.py
should look similar.
- Write up or reuse SOM logic from one of the existing demos (demo_som.py for example) into a function and then plug that into the runner above, and inference is done.
Bingo! This should all go in client.py
.
from openadapt.
Related Issues (20)
- Implement NanoLLaVA completion adapter
- Implement Autodistill
- Support winget HOT 1
- [Bug]: manual installation on Windows fails on `poetry shell`
- please make docker type installation for ease. HOT 2
- please add python3.12 support HOT 2
- please add install instructions for linux on the `https://openadapt.ai/#start` page HOT 2
- [Bug]: from matplotlib._path import ( ImportError: DLL load failed while importing _path: The specified module could not be found.
- Regarding the warning and the GUI not visible
- Implement prettier for dashboard
- Implement MiniCPM-V-2
- [Bug]: fix notification icons
- Trigger replay programmatically
- Evaluate on OSWorld
- [Bug]: `poetry run install-dashboard` generates warning
- Refactor RecordProc and related
- Automatically lint dashboard
- [Bug]: replay from system tray
- Refactor config HOT 1
- [Bug]: database is locked when running dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openadapt.