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
Improve LUTs support. #500
Comments
Heya -- so, I think I may be able to contribute some stuff here. Over the past few months, on and off, I've been messing around with creating additional LUTSequenceOperators, sort of frankensteining together work from Nick's CLF branch and Thomas's various lut-related feature branches, and trying my hand at... uh, reimplementing in numpy much of the work contributed by the OCIO2 crew and the AMPAS gang to their respective projects. Regretfully, I hadn't anticipated where my experimental operators would take me, so I hadn't been working in my colour library fork; so I have some stuff to extract and refactor, and certainly some documentation and testing to... document and test, but I'd be happy to share some code and ideas to do with as you please. For your consideration...
...and... perhaps other stuff I'm almost definitely forgetting. anyway, I'll start extracting / refactoring these jams if you guys are interested; happy to share gists of where things are now, too, if you'd rather discuss / deliberate / reject stuff before I go too far with refactoring for public consumption. Anyway. More soon. Cheers! |
Hey @zachlewis, That is quite an awesome and fat list! Might be useful to slice that down into multiple PRs down the road. I will have a careful read tomorrow or end of week. Tagging @nick-shaw ! |
Great work indeed! I had parked my CLF work until the VWG finished the spec for CLF 2.0, but you have made a major head start on support for that. |
Just noting here for posterity (even though you are probably well aware of it) that my CLF stuff was very experimental and tentative, and only pushed to colour-science so others could have a look. There is a lot missing, even from CLF 1.0 spec. The major gaps are:
I'm sure there's plenty more! |
Holy crap, I wrote far too many words. Sorry about that, it seemed like less at the time. Yeah, I definitely didn't mean to suggest that I'd dump all that goodness in a single PR! That would be kind of a nightmare. No, it's gonna take me some time just to get everything fully refactored and migrated over into meaningful feature branches; and even after that, I've got my work cut out for me in terms of documentation / citation / test..ation. The good news is, I've been using the colour-science yapf config, and it makes saving documents the most satisfying part of my day. In any case, I figured the first thing I'd do is kill a few birds with one stone with a colab notebook focusing on just one or two of these operators demonstrating a handful of ideas worth considering for separate PRs; and at the same time, I'd like to use the opportunity to demonstrate some sympy stuff, cuz it dovetails with the 'need for speed' thread (i'll elaborate further there), among other reasons. Nick, I'm definitely picking up what you're putting down. As I recall, your branch sprouted rather organically during the halcyon days of 0.3.12 dev, as the LUTSequence and LUT Operators provided enough meat-and-bones to hang a CLF proof-of-concept off of -- and I think what you've put together is remarkable. And educational. And useful. Also, generating half-domain LUTs in milliseconds is kind of a religious experience. That said, I do agree with you, spending time trying to implement a spec that's still under active development doesn't make a whole lot of sense. On the other hand, given the lack of urgency, I'm not averse to treating CLF as something to chip away at and mold into place as the spec crystalizes, with the understanding that "experimental and tentative" is the name of the game. As it is, my Log and Exponent ops are months old, and also need to be updated to incorporate the more late-breaking features. More to say, but enough wordage for now. |
FWIW, |
Closing this one as most of it is implemented and I will create a new one for CLF. |
Starting this issue to track down some of the work @nick-shaw, @jdvandenberg and I were doing with respect to LUTs and before we forget.
colour.LUT_to_LUT
definition does not handle explicit domains.The text was updated successfully, but these errors were encountered: