MahmudulAlam / Automatic-Identification-and-Counting-of-Blood-Cells

Machine learning approach of automatic identification and counting of blood cells (RBC, WBC, and Platelet) with KNN and IOU based verification.

Home Page:https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/htl.2018.5098

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to run Blood Cell Detection.py

ThanhDEHA opened this issue · comments

Thank for your source code.
When I try this github, follow the instruction in wiki, I meet following error. I hope you can help me.

(tf_gpu) D:\Download\Automatic-Identification-and-Counting-of-Blood-Cells\Automatic-Identification-and-Counting-of-Blood-Cells-master>python "Blood Cell Detection.py" Traceback (most recent call last): File "Blood Cell Detection.py", line 6, in <module> from darkflow.net.build import TFNet File "D:\Download\Automatic-Identification-and-Counting-of-Blood-Cells\Automatic-Identification-and-Counting-of-Blood-Cells-master\darkflow\net\build.py", line 7, in <module> from .framework import create_framework File "D:\Download\Automatic-Identification-and-Counting-of-Blood-Cells\Automatic-Identification-and-Counting-of-Blood-Cells-master\darkflow\net\framework.py", line 1, in <module> from . import yolo File "D:\Download\Automatic-Identification-and-Counting-of-Blood-Cells\Automatic-Identification-and-Counting-of-Blood-Cells-master\darkflow\net\yolo\__init__.py", line 2, in <module> from . import predict File "D:\Download\Automatic-Identification-and-Counting-of-Blood-Cells\Automatic-Identification-and-Counting-of-Blood-Cells-master\darkflow\net\yolo\predict.py", line 7, in <module> from ...cython_utils.cy_yolo_findboxes import yolo_box_constructor ModuleNotFoundError: No module named 'darkflow.cython_utils.cy_yolo_findboxes'

I downloaded weight, installed cython. I check the folder contain .cy_yolo_findboxes, it exits.
When i find it on google, i found this link thtrieu/darkflow#168. I did as abagshaw suggest, problem is still unsolved.

Does anyone know why? Any help is appreciated.
I use window 10, virtual enviroment of anaconda

Hi.
What is the version of the cython you have installed? I am using version '0.29.2'. Worked for me without any problem.

Thanks, I reinstalled Cython as you said and problem is solved.

Thanks, I reinstalled Cython as you said and problem is solved.

how to reinstall it in google colab

What do you want to reinstall?

i am getting the same error sir,
the code ran fine in the morning..
but its showing from ...cython_utils.cy_yolo_findboxes import yolo_box_constructor ModuleNotFoundError: No module named 'darkflow.cython_utils.cy_yolo_findboxes'
what should i do sir..

install cython version==0.29.2
if it doesn't work, try running the code from the beginning.
what changes did you make that caused the code not to run?

I didn't make any changes sir,
I tried installing cython command too sir
But still it's showing the same error

what is your python version?

I am running in colab sir

check your python version.

requirement is python 3.6 or 3.7.

The version is python 3.7 only sir