fix image gen
This commit is contained in:
parent
a02a662b6f
commit
50628e594a
6
check.py
6
check.py
@ -83,13 +83,15 @@ def plot_preds(
|
|||||||
theta[i],
|
theta[i],
|
||||||
height=1,
|
height=1,
|
||||||
width=width,
|
width=width,
|
||||||
edgecolor="none",
|
edgecolor=colors[i],
|
||||||
|
linewidth=0.25,
|
||||||
# facecolor=[rgb_values[i][1]]*3,
|
# facecolor=[rgb_values[i][1]]*3,
|
||||||
# facecolor=rgb_values[i],
|
# facecolor=rgb_values[i],
|
||||||
facecolor=colors[i],
|
facecolor=colors[i],
|
||||||
bottom=0.0,
|
bottom=0.0,
|
||||||
zorder=1,
|
zorder=1,
|
||||||
alpha=1,
|
alpha=1,
|
||||||
|
align='edge',
|
||||||
)
|
)
|
||||||
|
|
||||||
ax.set_xticks([])
|
ax.set_xticks([])
|
||||||
@ -126,7 +128,7 @@ if __name__ == "__main__":
|
|||||||
for v in versions:
|
for v in versions:
|
||||||
name = f"out/v{v}"
|
name = f"out/v{v}"
|
||||||
# ckpt = f"/teamspace/jobs/{name}/work/colors/lightning_logs/version_2/checkpoints/epoch=999-step=8000.ckpt"
|
# ckpt = f"/teamspace/jobs/{name}/work/colors/lightning_logs/version_2/checkpoints/epoch=999-step=8000.ckpt"
|
||||||
ckpt_path = f"/teamspace/studios/this_studio/colors/lightning_logs/version_{v}/checkpoints/*.ckpt"
|
ckpt_path = f"/teamspace/studios/colors-refactor-secondary/colors/lightning_logs/version_{v}/checkpoints/*.ckpt"
|
||||||
ckpt = glob.glob(ckpt_path)
|
ckpt = glob.glob(ckpt_path)
|
||||||
if len(ckpt) > 0:
|
if len(ckpt) > 0:
|
||||||
ckpt = ckpt[-1]
|
ckpt = ckpt[-1]
|
||||||
|
BIN
hsv.png
BIN
hsv.png
Binary file not shown.
Before Width: | Height: | Size: 2.7 MiB After Width: | Height: | Size: 2.7 MiB |
2
hsv.py
2
hsv.py
@ -10,7 +10,7 @@ if __name__ == "__main__":
|
|||||||
# xkcd_rgb = np.random.rand(1000, 3)
|
# xkcd_rgb = np.random.rand(1000, 3)
|
||||||
xkcd_hsv = rgb_to_hsv(xkcd_rgb)
|
xkcd_hsv = rgb_to_hsv(xkcd_rgb)
|
||||||
plot_preds(
|
plot_preds(
|
||||||
xkcd_hsv[:, 0], xkcd_rgb, fname="hsv", roll=False, dpi=300, figsize=(6, 6)
|
xkcd_hsv[:, 0], xkcd_rgb, fname="hsv", roll=True, dpi=300, figsize=(6, 6)
|
||||||
)
|
)
|
||||||
rgb = np.vstack([np.eye(3), np.eye(3) + np.eye(3)[:, [1, 2, 0]]])
|
rgb = np.vstack([np.eye(3), np.eye(3) + np.eye(3)[:, [1, 2, 0]]])
|
||||||
print("Pure RGB in Hue-Space:")
|
print("Pure RGB in Hue-Space:")
|
||||||
|
Loading…
Reference in New Issue
Block a user