Closed kadnan closed 3 years ago
I installed pip install opencv-python-headless
and now it says:
Created DFX Collector:
mode: discrete
number chunks: 2
chunk duration: 5.010000228881836s
Created measurement b3376627-6633-405b-abda-6a099d36710a
Extraction started
Sent chunk 1
Extraction complete, waiting for results
None
Status 400 for req#:QZYuPINBlB, Code: VALIDATION_ERROR, Message: '', Description: '{}'.
None
Measurement b3376627-6633-405b-abda-6a099d36710a failed
On dashboard it shows status as In Progress
Hello Adnan,
If you use opencv-headless, there is no GUI support. If so, please run python dfxdemo.py measure make --no_render
so that the demo doesn't attempt to show any GUI.
That said, your Status 400 seems to indicate an issue on the server. I will ask someone from the backend team to take a look.
Hello @kadnan ,
Please make sure that you are using the latest Python demo client. You should see a message saying Loaded: mobile20200702
before you see Created DFX Collector
.
If the issue persists, please send us the payloads generated with --debug_save_chunks_folder
as an argument when making a measurement, or the video you used.
@YukeSW
I just cloned a couple of days back. ARe you saying to run a git pull
of this repo?
If you just cloned a few days ago, it should be the latest version. You can still run a git pull
to make sure.
If you still see that error, please send us the payloads or the video.
@YukeSW Here I got the error dump:
➜ dfx-demo-py git:(master) ✗ python dfxdemo.py measure make --no_render vid2.mp4
Created DFX Factory: libdfx2 version 4.4.1 - Jun 26, 2020
Retrieved new DFX SDK config data with md5: 24d0bb4bde33fc9d0a7cdc9ec5354d6b
Config updated in ./config.json
[2020-12-02 00:58:44.089] [dfx] [info] Loading: mobile20200702 (64-bit version)
[2020-12-02 00:58:44.093] [dfx] [info] Loading:
[2020-12-02 00:58:44.093] [dfx] [info] Loaded:
[2020-12-02 00:58:44.093] [dfx] [info] Loaded: mobile20200702
Created DFX Collector:
mode: discrete
number chunks: 2
chunk duration: 5.010000228881836s
Created measurement 4ce4677b-f69c-4558-880b-eac81ba299ff
Extraction started
Sent chunk 1
Extraction complete, waiting for results
Config updated in ./config.json
Measurement 4ce4677b-f69c-4558-880b-eac81ba299ff completed
Use 'python dfxdemo.py measure get' to get comprehensive results
Task exception was never retrieved
future: <Task finished coro=<main.<locals>.receive_results() done, defined at dfxdemo.py:296> exception=ValueError("Status 400 for req#:VczJtMCDYb, Code: VALIDATION_ERROR, Message: '', Description: '{}'.")>
Traceback (most recent call last):
File "dfxdemo.py", line 299, in receive_results
status, request_id, payload = dfxapi.Measurements.ws_decode(msg)
File "/Users/Me/Data/XXX/X/deepaffex/dfx-demo-py/dfx_apiv2_client/Base.py", line 63, in ws_decode
raise ValueError(f"Status {status} for req#:{request_id}, Code: {error.Code}, Message: '{error.Message}', "
By enabling debugging it generated 3 files:
DOwnlaod from here: https://www.dropbox.com/s/6xo62foqob1h62j/debug_error.zip?dl=0
From your payload, it seems your video has a low FPS. The expected FPS for Deepaffex to work is 30.
Please try if our sample video works for you. You can find it in Sample Data
at https://deepaffex.ai/developers-sdk when you scroll the page to the bottom.
@YukeSW The sample file worked well and I can see graph on Deepaffex website. My measurementId is 851ce148-f729-40f8-bf05-e1bef2d061c6 in case if you want to check further.
What should we do while making videos? The earlier videos i made from my mobile for ~ 30 seconds
In general, a mobile camera (iPhone preferable) should work for a 30 FPS camera, and a rear camera is better than the front one.
The FPS of your video was about 17 FPS based on the payload. You might want to try to record a new video or try a new camera.
I am getting bunch of errors while running the command
python dfxdemo.py measure make vid.mp4
. The error dump is below: