Giter VIP home page Giter VIP logo

awb-lib's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently a Video Codec Engineer at Cisco, focusing on AV1 codec. I have recently graduated from Imperial College London, earning a first-class honour MEng (Master in Engineering) degree in Mathematics and Computer Science course, focusing on computational photography and rendering (See full course list here).
  • ๐ŸŒฑ Iโ€™m currently learning Video Codec, Compression and more.
  • ๐Ÿ“ซ How to reach me: [email protected]
  • ๐Ÿ“ Also check my Resume here! (and maybe my LinkedIn)

Some Languages and Tools

android arduino bash c cplusplus dart flask flutter git haskell jax jenkins kotlin linux nextjs opencv pandas photoshop python pytorch react rust selenium tailwind tensorflow unity

awb-lib's People

Contributors

joeyteng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

awb-lib's Issues

Artefacts in CHS realization

You can see a lot of color artefacts in the AWB-Lib example of CHS and modCHS (https://github.com/JoeyTeng/AWB-Lib/blob/master/docs/assets/report.png). I mean some pixel have totally different color in comparison with as it should be. And there is a remark about it "The implementation largely reproduced the results", but in the corresponding article "Fast automatic white balancing method by color histogram stretching" there are no such artefacts. I think there is something wrong with the realization of CHS method in AWB-Lib

DHM throws OverflowError with large images

DHM fails to handle images with resolution 5616x3744:

Failed handle \awb\awb_dataset\JPG\Canon1DsMkIII_0015.jpg with DHM: Traceback (most recent call last):
  File "\awb_ext.py", line 87, in awb_pic
    handled_pic = m(src_img.copy())
                  ^^^^^^^^^^^^^^^^^
  File "\awblib\dhm.py", line 130, in balance
    idx, k = jax.lax.cond(
             ^^^^^^^^^^^^^
  File "\venv\Lib\site-packages\awblib\dhm.py", line 107, in find_best_fit_channel_if_majority_below_half
    ch_ = channel_intensity.at[channel_idx].set(total_pixels * max_value)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "\venv\Lib\site-packages\jax\_src\numpy\array_methods.py", line 490, in set
    return scatter._scatter_update(self.array, self.index, values, lax.scatter,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "\venv\Lib\site-packages\jax\_src\ops\scatter.py", line 75, in _scatter_update
    y = jnp.asarray(y)
        ^^^^^^^^^^^^^^
  File "\venv\Lib\site-packages\jax\_src\numpy\lax_numpy.py", line 2233, in asarray
    return array(a, dtype=dtype, copy=bool(copy), order=order)  # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "\venv\Lib\site-packages\jax\_src\numpy\lax_numpy.py", line 2121, in array
    _ = dtypes.coerce_to_array(object, dtype)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OverflowError: Python int 5382733824 too large to convert to int32
--------------------
For simplicity, JAX has removed its internal frames from the traceback of the following exception. Set JAX_TRACEBACK_FILTERING=off to include these.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.