Skip to content

JepEtau/py_algo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

py_algo

Some algorithms I share

Color correction

import numpy as np
import torch
from torch import Tensor
from color_correction import ColorCorrection

in_tensor: Tensor
ref_tensor: Tensor

color_correction = ColorCorrection()
color_correction = color_correction.to(device=device)
with torch.inference_mode():
    d_out: Tensor = color_correction(in_tensor, ref_tensor)
    d_out = torch.clamp(d_out, 0., 1.)

Color transfer

About

Some algorithms I share

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages