-
Notifications
You must be signed in to change notification settings - Fork 7
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
Issue with not detecting objects on IOS #13
Comments
You need to start the backend first in here: https://github.com/iamvon/viBlind/tree/master/Backend/AI |
You should use a lower python version (<3.7) or you can try upgrade |
Thanks for the information, i upgraded to the latest version of pyexpect, however another error came upon as i tried to run the server, firstly im not exactly sure why your path is showing instead of mine, and i don't think i see the yolov3.weights anywhere in the source code? Any idea how i can fix this? |
yolov3.weights is a pre-trained model for real-time object detection. You can download it at this link. I do not push it in this source because of the large size of the file. |
Thanks for the comment, so basically i add this file to the object_detection folder, where the yoloModel.py is? Is that correct? |
That's is correct. |
Hey, sorry for bothering, i included the yolo.weights in the object_detection folder, but it seems it did not change anything. Im still getting the same error as earlier, which is this below? Any idea what i could do? Here is the error. **_[INFO] loading YOLO from disk... |
You need to import another pre-trained model for the module question answering. Here we use DrQA from https://github.com/facebookresearch/DrQA. |
Thanks for that, that issue is now solved, however i've faced another issue were it gives me a NameError that SpacyTokenizer is not defined. I checked the requirements.txt and it seems there is a pip for "spacy". Not sure if i missing something. Below is the error. _**[INFO] loading YOLO from disk... |
You need at least a tokenizer for DrQA works, refer to: https://github.com/facebookresearch/DrQA#tokenizers. |
Done that, however keep on coming up with errors, im sorry for constantly bugging, but really want to start the backend and im not so familiar with the errors. So im getting this error now. It saya unexpected argument 'parser' in the spacy_tokenizer.py File "/Users/tamerjar/Desktop/viBlind-master/Backend/AI/ml_core/question_answering/drqa/tokenizers/spacy_tokenizer.py", line 32, in init |
Glad to hear that you've found a way to fix it yourself. It's always a version error. |
Maybe you'll need to run this python client for testing the Flask backend: https://github.com/iamvon/viBlind/blob/master/Backend/AI/client.py |
Thanks for the information, i did so and the back end seems to work perfectly, it displays the json output as it should. However, while running the server and the mobile application simultaneously, it does not seem to be calling the api. As when im trying to take a picture on the device it does the same thing it was doing earlier. When checking xcode terminal it still shows empty bracket. So not sure if im supposed to do something in the xcode file. This is the output xcode gives me when i try taking a picture, please note the api is running and does not get any requests sent to it. |
Did you change the endpoint in here https://github.com/iamvon/viBlind/blob/master/App/iOS/BlindVision/BlindVision/Resources/Extensions/1%20-%20Vision%20View/CallAPI.swift
|
Yeah, so i changed each api url in the code to have "http://0.0.0.0:5000/" this on the start rather than "http://52.163.230.167:5000". But still nothing happens, i check the terminal were the api is running but still no requests seem to be going through, and in the console of xcode it shows me up with this error, which im not really sure what it means, any idea if im doing anything wrong? |
You should change to your current machine IP (eg: 192.168.2.104:5000) rather than 0.0.0.0 |
Okay, so for example my mac ip address is : 192.168.1.6, so instead of having "http://0.0.0.0:5000/v1/api/predict" how do i connect the ip address to the api? As i tried to format it in this way "http://192.168.1.6/v1/api/predict", but still didnt work it gave me this, i think i might be doing wrong so any help would be appreciated. |
It seems that the client application is not pointing correctly to the backend, have you tried replacing |
Hi again! thanks for the response, i managed to configure the IP successfully. And the Object detection in the mobile application works smoothly. However i seem to be getting issues when clicking on the news tab. It shows me the following error. And once checking the backend server, i can see that a request is trying to be made, but do't really understand the probelm. Lastly i also have question, i noticed there is a microphone button next to the news tab, what is the major function of that? As i can see from my xcode console that it detects the words im saying once clicked, but does not do anything. Your help will be appreciated for those matters. Thanks in advance. |
It looks like you handled it by configuring the phone and the backend on the same network, I almost forgot about this. Great! |
Document of this backend is missing, so I'll explain it. |
So basically to get this in order,
So what i'm assuming is to link the database to the crawler file is that correct, and a question can i use (phpmyadmin) for the database? |
Hey again guys, im trying to run the client_for_nlpAPI.py file here : https://github.com/iamvon/viBlind/blob/master/Backend/AI/client_for_nlpAPI.py But i seem to be getting this error down here, this is the mic button in the application that answers questions, is that correct? Traceback (most recent call last): |
Hey guys i was wondering if you have any sort of Readme or detailed description of how the backend works, as I'm trying to understand how the backend works and connected to each other. That would be helpful if available! Thanks in advance! |
Hi, so i cloned the IOS repo to my mac and opened the project workfile, it downloads smoothly to my ios device however anytime i try to make a detection it does not detect any object, and when i try to see what the console logs out, it just shows an empty bracked list [ ]. Any idea what i can do?
The text was updated successfully, but these errors were encountered: