-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Replacing data/camera.png due to copyright #4913
Replacing data/camera.png due to copyright #4913
Conversation
This image is pretty widely used in lot of test cases, including some with some pre-computed results such as: scikit-image/skimage/data/_registry.py Lines 121 to 124 in 59fd968
I am wondering if we can keep using it in the test suite for that purpose, but just not keep it as part of the public API or demos in the documentation? Wouldn't that usage fit within the non-profit restrictions of the license? |
Hello @alexdesiqueira! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2020-09-30 12:15:11 UTC |
@grlee77 indeed, I'm seeing that now! 😅
Personally, I'd not be comfortable with that, Greg. It would give us some work (by Tupã, I know 😂), but IMHO it's not like we don't have alternatives around with less restrictive licenses. Of course, my two BRL cents. |
Sure, in most cases it is probably trivial to switch. For the few with precomputed outputs, I guess we can just regenerate those for a different image and update the registry. |
Best to just bite the bullet, I think. It wouldn't be the end of the world to use it internally, but it is shouldn't be too hard to switch. |
Alright, based on the discussion we had on #4914, |
I was surprised that all tests passed with the new image but there is a catch: pooch uses the data files in master because of https://github.com/scikit-image/scikit-image/blob/master/skimage/data/__init__.py#L120, so that the old image is used (as you can see from https://225-2014929-gh.circle-artifacts.com/0/doc/build/html/auto_examples/data/plot_general.html#sphx-glr-auto-examples-data-plot-general-py for example). As a workaround, could you please modify https://github.com/scikit-image/scikit-image/blob/master/skimage/data/__init__.py#L120 so that it points to your repo and branch? Then we can see if tests pass and the doc looks good, and of course we'll revert the code in |
Sure thing @emmanuelle, thanks for the catch! You're right, I think it's very unlikely the tests will pass for the new image 🙂 |
I pushed a commit to your branch because the URL where to find the files was not the correct one I think, let's keep fingers crossed this one works! |
ok, you also need to modify the hash in the registry (see the error in CI). |
We're making progress, now the next thing is to fix the 25 failing tests...
Note that the tests probably fail on your machine too, it will be easier to fix them and run the tests locally. |
I'm on it 🙂 It seems we used |
Kindly pinging @grlee77 🙂 Could you help us with the coefficients for the latest image? Thanks! |
Here you go! IPOL results |
All green again 🎉 Gotta point the first reviewers one more time (@emmanuelle @rfezzani @jni). Thanks again @grlee77 and @JDWarner for all your help! |
Whoo! I updated plot_glcm with the new sky and grass locations. The other example looks ok, not great, but master also looks ok, not great, so I say leave it for now. My approval from before still stands. Thank you everyone who has contributed to this (a lot of people now! 😅) and particularly @alexdesiqueira for the hard work here! I'm really happy with the end result. |
@scikit-image/core the travis failure is unrelated and should not hold up a merge. =) |
there is one line to be changed before merging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @alexdesiqueira for your hard work on this 👏. Since the CI is green now, I approve this PR, but I think that we need to improve some gallery examples involving data.camera
. Some examples where tuned for the old image. To illustrate this, please see:
- Multi-Otsu Thresholding: new vs old
- Markers for watershed transform: new vs old
- Flood Fill: new vs old
- Rank filters: new vs old
But this can be addressed in different PRs 😉
+100 |
Sure thing :) I will open an issue to deal with them later; my |
looks like there are some issues with checksums on azure, but not on travis... |
Yes a8cc0a9 was green. |
Of course... I'm stupid. |
Thanks everyone, we made it! 🎉 |
awesome job! |
Thank you very much, @alexdesiqueira ! |
Description
Removing
data/camera.png
(a.k.a. cameraman) due to copyright issues. Solves #3927.