-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
zero-size array to reduction operation minimum which has no identity #14
Comments
@silvio-barbotto @erdogant Did you find a solution to the problem? I am also stuck as well. Load example datasetpathnames = cl.import_data("/content/drive/MyDrive/Colab Notebooks/Cassava/data/test/cbsd") Preprocessing of the first imageimg = cl.imread(X[0], dim=(128,128), colorscale=1, flatten=False) This the error I get KeyError: 0 |
Thanks for notifying! I created a few fixes and the examples work on my machine. Can you check whether this also works for you? update to the latest version: |
Dear @erdogant, I have tried have it and the error is still the same. I have included an example of the code I am using below and the output I get from running pathnames. The output is the same when running from Colab or on my PC. #install Preprocessing of the first imageimg = cl.imread(pathnames[0], dim=(128,128), colorscale=1, flatten=False) KeyError Traceback (most recent call last) KeyError: 0 |
Why is there an attached docx? |
The underneath works. I can not check it without having the images. What kind of images are you using?
|
Hi @erdogant, #Load example dataset pathnames = cl.import_data("D:\Python\DSA\DSA_2023\Computer Vision\cassava_leaves_dsa_512\test\cbsd") |
please copy paste the output from the docx here.
or
|
@erdogant I am using windows 11 and this is the output when I load pathnames = cl.import_data("D://Python//DSA//DSA_2023//Computer Vision//cassava_leaves_dsa_512//test//cbsd") and run pathnames {'img': array([[125, 161, 144, ..., 114, 101, 125], |
Hi! Thank you for your work!
I really love to use your library but I'm stuck to the beginnig, I don't want bother you but can you give me some advise?
I'm trying to cluster jpg images from a Google Drive folder, I've read the documentations and the blog but I can't make it right
Here is the snippet from Coolab
`
!pip install -U clustimage
from google.colab import drive
from clustimage import Clustimage
drive.mount('/content/drive', force_remount=True)
cl = Clustimage(method='pca')
X = cl.import_data('/content/drive/MyDrive/images/immagini/1')
Xfeat = cl.extract_feat(X)
...
`
It import the data but throws on feat extraction:
ValueError: zero-size array to reduction operation minimum which has no identity
Best regards, Silvio
The text was updated successfully, but these errors were encountered: