Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Status code 200 but still cannot load images #20

Closed
holydrinker opened this issue Nov 26, 2018 · 1 comment
Closed

Status code 200 but still cannot load images #20

holydrinker opened this issue Nov 26, 2018 · 1 comment

Comments

@holydrinker
Copy link

Hello, I'm trying to use Training Api. I 'm facing with some issues hard to debug.

My data: I have some images and some regions (zero or more) for each image
My goal: I want to load images on a project I just created
My issue: I follow the steps described in python samples code here. After lots of Bad Request, I understood lots of stuffs (max size for each file, max batch size) and now I get a 200 Response Code, but after that if I check project remote page I cannot see my images loaded. So I used my Pycharm debugger to read thee body of the responde code, and:

{"isBatchSuccessful":false,"images":[{"sourceUrl":"scissors_8","status":"ErrorUnknown","image":null},{"sourceUrl":"scissors_6","status":"ErrorUnknown","image":null},{"sourceUrl":"scissors_17","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_20","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_9","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_5","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_15","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_2","status":"ErrorUnknown","image":null},{"sourceUrl":"scissors_13","status":"ErrorUnknown","image":null},{"sourceUrl":"scissors_9","status":"ErrorUnknown","image":null},{"sourceUrl":"scissors_18","status":"ErrorUnknown","image":null},{"sourceUrl":"scissors_2","status":"ErrorUnknown","image":null},{"sourceUrl":"scissors_3","status":"ErrorUnknown","image":null},{"sourceUrl":"scissors_4","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_1","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_8","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_12","status":"ErrorUnknown","image":null},{"sourceUrl":"scissors_16","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_6","status":"ErrorUnknown","image":null},{"sourceUrl":"scissors_15","status":"ErrorUnknown","image":null},{"sourceUrl":"scissors_5","status":"ErrorUnknown","image":null},{"sourceUrl":"scissors_11","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_13","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_11","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_3","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_18","status":"ErrorUnknown","image":null},{"sourceUrl":"scissors_19","status":"ErrorUnknown","image":null},{"sourceUrl":"scissors_1","status":"ErrorUnknown","image":null},{"sourceUrl":"scissors_12","status":"ErrorUnknown","image":null},{"sourceUrl":"scissors_14","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_16","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_19","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_7","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_10","status":"ErrorUnknown","image":null},{"sourceUrl":"scissors_7","status":"ErrorUnknown","image":null},{"sourceUrl":"scissors_10","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_14","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_4","status":"ErrorUnknown","image":null},{"sourceUrl":"fork_17","status":"ErrorUnknown","image":null},{"sourceUrl":"scissors_20","status":"ErrorUnknown","image":null}]}

Fields "isBatchSuccessful":false and "status":"ErrorUnknown" caught my attention, but I don't know how to debug.

The first time I ran the samples.py script everything worked. Now I'm trying to re-open the project with the api trainer.get_project(<project_id>) and add more images (without creating again classes), but I don't know how to fix my problem.

Can you help me?
Thank you very much.

@areddish
Copy link
Contributor

Hi @holydrinker

Are you still having problems debugging?

@shonohs shonohs closed this as completed Jul 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants