Michael Pilosov
10 months ago
5 changed files with 41 additions and 18 deletions
After Width: | Height: | Size: 329 KiB |
@ -0,0 +1,14 @@ |
|||
import numpy as np |
|||
from matplotlib.colors import rgb_to_hsv |
|||
|
|||
from check import plot_preds |
|||
from utils import extract_colors |
|||
|
|||
if __name__ == "__main__": |
|||
rgb_tensor, _ = extract_colors() |
|||
xkcd_rgb = rgb_tensor.numpy() |
|||
xkcd_hsv = rgb_to_hsv(xkcd_rgb) |
|||
plot_preds(xkcd_hsv[:, 0], fname="hsv") |
|||
rgb = np.eye(3) |
|||
print("Pure RGB in Hue-Space:") |
|||
print(rgb_to_hsv(rgb)[:, 0]) |
Loading…
Reference in new issue