You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sending a multipart request (with files) if we want to attach a metadata field or any field that is nested, currently the user should json.dumps it or it might be ignored by the server (hard to debug).
We should probably improve
This is also the case when trying to post a file using ImageInput with a bbox (or other nested field). If the encoding is binary we should automatically dumps the bbox dict.
If we have a bbox in input, it will separate the coordinates in 4 keys: 'image.input.bbox.xmin': 0.25, 'image.input.bbox.xmax': 0.65, ... this is not good, and it fails anyway because floats make Vulcan fail.
I tried dumping the data and files to stringified json, but it doesn't work if the image has a binary as source instead of a url.
The best way to solve this is still to convert precise jsons we want to pass, like the bbox. So I modified the ImageInput.get_input() method to convert the bbox in those cases.
When sending a multipart request (with files) if we want to attach a metadata field or any field that is nested, currently the user should
json.dumps
it or it might be ignored by the server (hard to debug).We should probably improve
deepomatic-client-python/deepomatic/api/http_helper.py
Line 242 in f479724
Example:
Instead of:
The text was updated successfully, but these errors were encountered: