You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to go through this, because I'm going a similar project, but I get stuck on one line of code.
XHist_train = [color_frequencies(x[0]) for x in X_train]
XHist_test = [color_frequencies(x[0]) for x in X_test]
I'm working in jupyter notebooks, and these two lines of code take forever to load, and they haven't loaded at all. I'm using a dataset of 50 images in total.
Why is it taking so long to load? I haven't managed to get an output yet because the lines won't load.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
I haven’t seen this code in a long time. I was also working in Jupyter and I think it took a long time for me too (I don’t exactly remember, but working with images is very consuming).
If I remember well, the function called converts the image into a histogram. Yo can check if there is a way to optimize that function.
Also, you can try to run the function on just one image to see how long it takes with different images... yo can try to somehow make the images lighter by changing their size (keeping the general proportions of colors and light).
Thanks for uploading this btw!
I've been trying to go through this, because I'm going a similar project, but I get stuck on one line of code.
I'm working in jupyter notebooks, and these two lines of code take forever to load, and they haven't loaded at all. I'm using a dataset of 50 images in total.
Why is it taking so long to load? I haven't managed to get an output yet because the lines won't load.
Thanks in advance!
The text was updated successfully, but these errors were encountered: