GithubHelp home page GithubHelp logo

gcam-autotune's Introduction

GCam-Autotune

Auto tuner for finding the optimum values for Google Camera lib tunables.

How does it work?

We iteratively test the effects that changing each parameter has on image quality.

We use Facebooks' ax-platform package for Bayesian optimisation to try and find the optimum value in as few tests as possible - we don't want to be running 100,000s of experiments on each value as it would take forever!

Does it work?

This is a very experimental - it is my first Python project so expect bugs!

I upload everything I do so people can collaborate and I can learn. Don't be shy - fork, modify, test, post issues etc.

Requirements

A Google Camera mod installed.

Root on the handset you want to test.

Python 3.10.8 and git installed.

Pytorch set up on your machine

PyCharm or VS Code (recommended, not needed - helps with debugging and reporting issues)

How to use

I recommend using pyenv to install the required Python version.

Use git clone to get this repository onto your hard drive and open it up in PyCharm.

Once you've done that, run pip install -r requirements.txt in the project root to install all dependencies.

Go into AutoTuner.py and make sure the values in args_dict are correct. If you want to run the tests proper, remove the testParam field - this is only one tunable that I'm using for debugging currently.

To-do:

More robust exception catching

Correctly read user variables from JSON

De-duplicate the values in Rivovs' API

Write code to roll-back changes to lib if that tunable isn't working

gcam-autotune's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.