Comments (8)
@V4A001 Please allow me some time to get more details on your concern
from vision-ai-developer-kit.
Hello @V4A001 Can you kindly share more details about the Dev box mentioned in your query.
Whereas to debug on the device,
- we can use docker logs to check the logs from the container.
https://docs.docker.com/engine/reference/commandline/logs/ - we can also use docker exec -it to get into the shell of that container to
https://docs.docker.com/engine/reference/commandline/exec/
Developer can actually change the code (e.g., main.py) directly from the container shell and run it. This will save a lot of module deployment time.
from vision-ai-developer-kit.
I will check those. I mean debugging on a dev-box without having a device and step into a docker module with visual (studio) code. It is not like windows .ce with platform builder and you just start up the debugger and it automatically connects.
from vision-ai-developer-kit.
@V4A001 We didn’t provide a debugger on from a dev box as it won’t be able to access Qualcomm’s SNPE and hardware acceleration.
Qualcomm didn’t provide such an emulator as well.
from vision-ai-developer-kit.
I am fighting with this already quite a time. Help appreciated to get pytest running and debugger. Python is really a pain in setting up properly with respect to a .NET library.
https://docs.pytest.org/en/latest/goodpractices.html#test-package-name
from vision-ai-developer-kit.
@V4A001 Looking at the screenshot, we cannot tell where your image_decoder module is. This error is just indicating that the module's path is invalid. This has nothing to do with DevKit.
from vision-ai-developer-kit.
I fixed above. I added pytest to start with, but missed the init.py in the test framework.
I want to debug real-time the code on either my laptop or on the device and step through the code.
while True:
try:
while camera_client.vam_running:
with camera_client.get_inferences() as results:
for result in results:
last_time = print_inference(
result, iot_hub_manager, last_time)
from vision-ai-developer-kit.
I followed this article on a Windows instead Mac box:
https://devblogs.microsoft.com/iotdev/easily-build-and-debug-iot-edge-modules-on-your-remote-device-with-azure-iot-edge-for-vs-code-1-9-0/
I have created deployment files with debug and docker file:
RUN pip3 install --upgrade pip
RUN pip install setuptools
RUN pip install ptvsd
main with:
Debugging with Visual Studio Code on Edge Device
import ptvsd
ptvsd.enable_attach(('0.0.0.0', 5678))
and .env file:
"DOCKER_HOST"="ssh://useradmin@myip"
(Inner Exception #0) Microsoft.Azure.Devices.Edge.Agent.Edgelet.EdgeletCommunicationException- Message:Error calling start module AIVisionDevKitGetStartedModule: Could not start module AIVisionDevKitGetStartedModule
caused by: Could not start module AIVisionDevKitGetStartedModule
caused by: failed to add interface veth5943327 to sandbox: error setting interface "veth5943327" IP to 172.18.0.4/16: cannot program address 172.18.0.4/16 in sandbox interface because it conflicts with existing route {Ifindex: 9 Dst: 172.18.0.0/16 Src: 172.18.0.1 Gw: Flags: [] Table: 254}, StatusCode:500, at: at Microsoft.Azure.Devices.Edge.Agent.Edgelet.Version_2019_01_30.ModuleManagementHttpClient.HandleException(Exception exception, String operation) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Edgelet/version_2019_01_30/ModuleManagementHttpClient.cs:line 194
from vision-ai-developer-kit.
Related Issues (20)
- Firmware upgrade fails from 3530 to 5370 HOT 4
- AI dev kit Device is automatically getting switched off. HOT 5
- Can't connect a new device to iot edge via connection string. Also unable to update firmware. HOT 5
- Custom Vision Classification Model Failure HOT 9
- Please helpme device stopped working after first setup #245 HOT 2
- Stuck with 3 solid red lights HOT 13
- Cannot choose Export for AI Dev Kit in object detection HOT 3
- Object Detection with General Compact S1 does not show anything on WebStream HOT 7
- I cant choose VAIDK in Coustum Vision. HOT 1
- How to save Azure Vision AI Devkit stream to Blob storage?
- Fastboot upgrade failed battery capacity is too low error when trying to upgrade to latest firmware
- needed refresh
- Support needed - unable to do FW flash HOT 1
- invalid web link
- Support needed - Device remains offline repeatedly after 1st successful connection about 3 days back
- Support Needed - Domain sign in issue
- BUG: Firmware update source HOT 4
- Support of image segmentation like yolo
- SNPE converter issues.
- This repo is missing important files
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 vision-ai-developer-kit.