The Wayback Machine - https://web.archive.org/web/20230404170544/https://github.com/p-ranav/PhotoLab
Skip to content

p-ranav/PhotoLab

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
December 4, 2022 19:24
src
December 5, 2022 17:30
November 27, 2022 15:16
November 18, 2022 11:27
December 5, 2022 19:07
December 3, 2022 13:36

PhotoLab

Anime Style Interactive Colorization
Portrait Mode Grayscale Background
Super-Resolution
White Balance Correction
Instagram Filters Bezier Curves and Selective Editing
Spot Removal Exposure Adjustment

Quick Start

Download the pretrained models by running the included download script:

foo:bar$ python download_models.py

Start the editor by running:

foo:bar$ python src/main.py

Features

Basic Tools

  • Zoom and Pan
  • Color Picker
  • Rectangle Select
  • Path Select
  • Crop
  • Paint and Erase
  • Exposure and Color Adjustment
  • Histogram Viewer
  • Curve Editor
  • Spot Removal Tool
  • Blur Tool
  • Rotate Left/Right
  • Horizontal/Vertical Stack
  • Horizontal/Vertical Flip
  • Panorama Image Stitching
  • Instagram Filters

AI Tools

  • White Balance Correction
  • Background Removal
  • Human Segmentation
  • Grayscale Background
  • Portrait Mode Background Blur
  • Interactive Colorization
  • Super-Resolution
  • Anime Style

Example Results

Before After

Notes on PyTorch CUDA Support

This project has been testing with torch==1.11.0+cu113 torchvision-0.12.0+cu113

foo:bar$ pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 -f https://download.pytorch.org/whl/torch_stable.html

foo:bar$ python
Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.version.cuda
'11.3'
>>> torch.cuda.is_available()
True