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

Stops at formatting train images. #2

Open
iBuaSpaz opened this issue Jan 23, 2023 · 3 comments
Open

Stops at formatting train images. #2

iBuaSpaz opened this issue Jan 23, 2023 · 3 comments

Comments

@iBuaSpaz
Copy link

Hi, i followed the installation guide.

Im on Windows 11, Xampp, with PHP 8.1, checked all modules required is loaded (gd, mbstring, pdo_sqlite, openssl and rindow_openblas).

I put OpenBLAS in C drive, and added the path.

Running any php sample file, it stops at:

D:\xampp\htdocs>php cnn-image-classification.php
Loading pickle file ...Done!
dataset=mnist
train=[60000,1,28,28]
test=[10000,1,28,28]
formating train images ...

So, what am i missing?

I wish to use this to identify images i download on a website, the item on them and then put a certain category to it, EG. lamp > home appliences or sofa -> home furniture, this seems promissing if i can get it to work.

Ps. where does this store all the data it uses to compare to? a file? can change this to a database maybe?, thanks :)

@yuichiis
Copy link
Member

Thank you for your asking.
I am sorry. I just checked it now.

The latest openblas library was upgraded to 0.3.21. It doesn't seem to work with the latest openblas library. The current rindow-openblas extension is built with openblas library 0.3.20. I just confirmed that rindow-openblas extension works by reverting to openblas library 0.3.20.

For now, downgrade openblas library to 0.3.20.

I will think about how to do it later.

thanks for letting me know about the problem.

@yuichiis
Copy link
Member

I linked OpenBLAS 0.3.21 and rebuilt the PHP extension and confirmed that it works correctly.
However, I have decided not to publish pre-built binaries linked against 0.3.21 of OpenBLAS. The reason is that the different OpenBLAS DLL version numbers can be confusing.

Ubuntu 22.04 LTS OpenBLAS is still 0.3.20 and has not been updated, and Ubuntu 20.04 LTS OpenBLAS is still 0.3.8 and has not been updated. It doesn't seem like the library should be changed frequently.

The policy for the Windows version of rindow-openblas is to use the same version of OpenBLAS DLLs for Windows when the latest LTS of Ubuntu is released.

If you want to use a different version of OpenBLAS, you can use the rindow-openblas source code and build it with the OpenBLAS you want to use.

Thanks,

@iBuaSpaz
Copy link
Author

Can confirm also downgrading to 0.3.20 works, for now that is great as i can atleast work on setting up a system for what i need and do some testing,

thanks

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

2 participants