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

TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' #30

Closed
mehrdadscomputer opened this issue Jul 15, 2018 · 6 comments

Comments

@mehrdadscomputer
Copy link

When I run the model, I get this error on this line:
detector.loadModel()

TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

I did everything according to instruction but encountered that error.
Any idea about the possible reason of the problem?

@Airyzf
Copy link

Airyzf commented Jul 19, 2018

hi, do you kown the reason ?

@OlafenwaMoses
Copy link
Owner

Hello, did you ensure you downloaded the correct model file, set the correct model type and set the correct model path to the model file you downloaded? Ensure all of this is done before running your python code.

@cowry5
Copy link

cowry5 commented Jul 23, 2018

Hello, I have same problem. Have you solved it? Could you tell me something about it? Thank you.

@OlafenwaMoses
Copy link
Owner

Hello, I am working on getting a solution to this error. I will update you all once I find the cause and solution to it.
For the mean time, you can opt to use YOLOv3 or TinyYOLOv3 instead of the RetinaNet, as the latest version ( 2.0.2) of ImageAI now supports YOLO. All you need to do is install the latest version of ImageAI as instructed in the repository , download the Yolo and/or Tiny Yolo files in the release whose link is below. Remember that if you are using the Yolo model, you must set your model types to YOLOv3 and if you are using the Tiny Yolo model, you must set the model type as TinyYOLOv3.

https://github.com/OlafenwaMoses/ImageAI/releases/tag/1.0

@musafirsafwan
Copy link

Looks like it has something to do with anaconda. I am getting the same error in conda environment, but not in virtualenv. Error trace given in #35 also shows that the person is using anaconda.

@pentanol2
Copy link

The solution is easy. Just install the true versions for the requirements. See the following link:
https://imageai.readthedocs.io/en/latest/

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

6 participants