Giter Club home page Giter Club logo

vkdt's Introduction

vkdt: darktable which sucks less

this is an experimental complete rewrite of darktable, at this point with a reduced feature set. vkdt is designed with high performance in mind. there are already some new features, too: support for animations, raw video, and heavy lifting algorithms like image alignment and better highlight inpainting. this is made possible by faster processing, allowing more complex operations.

the processing pipeline has been rewritten as a generic node graph (DAG) which supports multiple inputs and multiple outputs. all processing is done in glsl shaders/vulkan. this facilitates potentially heavy duty computational photography tasks, for instance aligning multiple raw files and merging them before further processing, as well as outputting intermediate results for debugging. the gui profits from this scheme as well and can display textures while they are still on GPU and output the data to multiple targets, such as the main view and histograms.

features

packages

there are up-to-date packages (deb/rpm/pkgbuild) in the

opensuse build system

build instructions

you should have checked out this repo recursively. if not, do

  git submodule init
  git submodule update

to grab the dependencies in the ext/ folder. you should then be able to simply run 'make' from the bin/ folder. for debug builds (which enable the vulkan validation layers, so you need to have them installed), try

  cd bin/
  make debug -j12

simply run make without the debug for a release build. make sanitize is supported to switch on the address sanitizer. changes to the compile time configuration as well as the compiler toolchain can be set in config.mk. if you don't have that file yet, you can copy it from config.mk.defaults.

running

the binaries are put into the bin/ directory. if you want to run vkdt from anywhere, create a symlink such as /usr/local/bin/vkdt -> ~/vc/vkdt/bin/vkdt.

  cd bin/
  ./vkdt -d all /path/to/your/rawfile.raw

raw files will be assigned the bin/default-darkroom.i-raw processing graph. if you run the command line interface vkdt-cli, it will replace all display nodes by export nodes. there are also a few example config files in bin/examples/. note that you have to edit the filename in the example cfg to point to a file that actually exists on your system.

licence

our code is licenced under the 2-clause bsd licence (if not clearly marked otherwise in the respective source files). there are parts from other libraries that are licenced differently. in particular:

rawspeed: LGPLv2 imgui: MIT

and we may link to some others, too.

dependencies

  • vulkan, glslangValidator (libvulkan-dev, glslang-tools, or use the sdk)
  • glfw (libglfw3-dev and libglfw3, only use libglfw3-wayland if you're on wayland)
  • submodule imgui
  • submodule rawspeed (depends on pugixml, stdc++, zlib, jpeg, libomp)
  • libjpeg
  • build: make, pkg-config, clang, rsync, sed
  • build rawspeed: cmake, libomp-dev

optional (configure in bin/config.mk):

  • freetype (libfreetype-dev libpng16-16) for nicer font rendering
  • exiv2 (libexiv2-dev) for raw metadata loading to assign noise profiles
  • asound (libasound2) for audio support in mlv raw video
  • ffmpeg (libavformat-dev libavcodec-dev) for the video input module i-vid

you can also build without rawspeed if that is useful for you.

faq

  • can i load canon cr3 files?
    this has been confirmed to work:
cd ext/rawspeed
git remote add cytrinox https://github.com/cytrinox/rawspeed.git
git fetch --all
git checkout canon_cr3
cd ../../
rm -rf built/ext
cd bin
make -j20
  • does it work with wayland?
    vkdt has been confirmed to run on wayland, using amd hardware. there are a few known quirks, such as fullscreen mode (f11) does not work and there were refresh issues when window focus is lost.

  • can i run my super long running kernel without timeout?
    if you're using your only gpu in the system, you'll need to run without xorg, straight from a tty console. this means you'll only be able to use the command line interface vkdt-cli. we force a timeout, too, but it's something like 16 minutes. let us know if you run into this..

  • how do i build a binary package?
    you mostly need the bin/ directory for this. after running make inside bin/, a straight copy of bin/ to say /opt/vkdt/ would work (you can put a symlink to the binaries vkdt and vkdt-cli in /usr/bin). the shader sources (*.{glsl,comp,vert,geom,frag,tese,tesc}) as well as the examples/ and various test/ directories are optional and do not have to be copied. to build for generic instruction sets, be sure to edit config.mk, especially set OPT_CFLAGS= to -march=x86-64 (not native) and whatever you require. to convince rawspeed to do the same, set RAWSPEED_PACKAGE_BUILD=1.

  • i have multiple GPUs and vkdt picks the wrong one by default. what do i do? make sure the GPU you want to run has the HDMI/dp cable attached (or else you can only run vkdt-cli) on it. then run vkdt -d qvk and find a line such as

[qvk] dev 0: NVIDIA GeForce RTX 2070

and then place this printed name exactly as written there in your ~/.config/vkdt/config.rc in a line such as, in this example:

strqvk/device_name:NVIDIA GeForce RTX 2070

vkdt's People

Contributors

aferrero2707 avatar cryptomilk avatar hanatos avatar houz avatar phweyland avatar valpackett 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.