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.
https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/htl.2018.5098
GNU General Public License v3.0
131 stars 51 forks source link

run the code in google colab #12

Closed gzx666 closed 2 years ago

gzx666 commented 3 years ago

I have followed your step on https://github.com/MahmudulAlam/Automatic-Identification-and-Counting-of-Blood-Cells/wiki/A-Step-by-Step-Guide-of-How-to-Run-the-Code but when I do the step 3, runing code by command "python detect.py" on google colab, it report an error below.

image

MahmudulAlam commented 3 years ago

@gzx666 Hi, I think cython is missing and you need to install cython==0.29.23

WidianaAR commented 3 years ago

image Help, it's still not working

MahmudulAlam commented 3 years ago

@WidianaAR Seems like you are using Python 3.7. I tested on Python 3.6 and it worked without any issue. Can you please change the python version and let me know?

WidianaAR commented 3 years ago

oh it works, thank u

MahmudulAlam commented 3 years ago

Great!

akochman commented 3 years ago

oh it works, thank u

@ WidianaAR are you using a local runtime? if not what method was successful for modifying the hosted runtime to 3.6? thanks!

7HAB commented 2 years ago

oh it works, thank u

I've already tried that and I'm still getting the same error...is there anyway I could get a link to the project on colab so i can take a look at it and hopefully figure out where I'm going wrong.. thanks!

MahmudulAlam commented 2 years ago

@7HAB Can you please share your error message here?

7HAB commented 2 years ago

@7HAB Can you please share your error message here? hi, i really appreciate you reaching out to help :)

Screen Shot 2021-11-25 at 9 23 21 PM

python version 3.6.9 python 0.29.23

MahmudulAlam commented 2 years ago

@7HAB I built the darkflow module for Linux. I should work now without any issue. Can you please clone the repo again and test it in colab and verify whether it is working or not? Please let me know.

MahmudulAlam commented 2 years ago

If you are getting ": cannot connect to X server" in colab then comment line 103 cv2.imshow and use matplotlib for visualizing.

7HAB commented 2 years ago

@7HAB I built the darkflow module for Linux. I should work now without any issue. Can you please clone the repo again and test it in colab and verify whether it is working or not? Please let me know.

It works! thank you so much for your help 😊

Jagan3534 commented 2 years ago

can you please help me in this

`Traceback (most recent call last): File "C:/Users/jagan/Downloads/Automatic-Identification-and-Counting-of-Blood-Cells-master/Automatic-Identification-and-Counting-of-Blood-Cells-master/test.py", line 26, in output = tfnet.return_predict(image) File "C:\Users\jagan\Downloads\Automatic-Identification-and-Counting-of-Blood-Cells-master\Automatic-Identification-and-Counting-of-Blood-Cells-master\darkflow\net\flow.py", line 83, in return_predict 'Image is not a np.ndarray'

AssertionError: Image is not a np.ndarray `