Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting this error "error": "Unable to base64 decode" #16

Closed
neelam123-a opened this issue May 11, 2021 · 11 comments
Closed

getting this error "error": "Unable to base64 decode" #16

neelam123-a opened this issue May 11, 2021 · 11 comments

Comments

@neelam123-a
Copy link

Hi,
once model is created. when I am following curl request to verify.

It is giving error in api response.
Unable to base64 decode.

@TinusGreen
Copy link
Contributor

Hi neelam123-a,

I'll need more information that this to be able to provide guidance.

Can you please send me your full command for hosting the model and your cURL request please?

@neelam123-a
Copy link
Author

Hi,
I have hosted model
tensorflow_model_server --port=9000 --rest_api_port=9001 --model_name=exported-model --model_base_path=/home/neelam.singh/Desktop/captcha_breaker/ .
Screenshot from 2021-05-11 16-46-08

cURL request to verify
Screenshot from 2021-05-11 16-46-56

please help.

@TinusGreen
Copy link
Contributor

Hi neelam123-a,

/9j/4AAQ== can't be the entire image. Usually that image string is roughly 100 - 300 characters long?

From where did you pull that image string? To verify that the string is correct, you should be able to base64 decode it to binary data and save as png. If you can see the actual image, that means that it is working.

@neelam123-a
Copy link
Author

Hi,
Thankyou...
I wanted to know that once model is hosted on tensorflow...then how will I verify that model is working?
please help.

@neelam123-a
Copy link
Author

and also when i am connecting to
captcha22 client api...
when I opt option 6 : activate a server-side Captcha model
I am getting this error..
Uploading Screenshot from 2021-05-11 20-20-50.png…

@neelam123-a
Copy link
Author

Hi
Screenshot from 2021-05-11 20-20-50
,
also when i am connecting to
captcha22 client api...
when I opt option 6 : activate a server-side Captcha model
I am getting this error.

@TinusGreen
Copy link
Contributor

Hi neelam123-a,

In terms of how you test if the model is working, you need to send it a captcha image, like you are doing with cURL, but it requires the full base64 encoded image. Should it be a full image, tensorflow will respond with what it thinks the text it as well as an accuracy rating. This will help you verify that the model is working.

However, you should already have indicative results. If you used the API to upload the images for training, you can use the client API to query stats about the model using option [2] and then providing your captcha ID which is your case is 1.

In terms of the issue that you are having activating the model client side, I'll have a look and see if I can replicate the issue.

@neelam123-a
Copy link
Author

Hi,
Thankyou so much for your response..

@neelam123-a
Copy link
Author

Hi TinusGreen,
I am trying to connect captcha22 client api.. but getting this error whenever try to activate a sever side captcha model.
please resolve this issue.. though i am able to extract model but failing to activate.
Screenshot from 2021-05-11 20-20-50

@GEkuL
Copy link

GEkuL commented Jun 6, 2021

@TinusGreen hi, exactly the same, as mentioned above, goes for me. Please fix this in the future updates!

@TinusGreen
Copy link
Contributor

Hi Neelam123-a, the issue mentioned above has been resolved in version 1.0.7. Seems like one of the log inputs was not parsing correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants