Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mnist_cINN/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from sklearn.decomposition import PCA
import matplotlib.pyplot as plt
import torch
import torch, os
from tqdm import tqdm
from torch.nn.functional import avg_pool2d, interpolate

Expand Down Expand Up @@ -299,6 +299,7 @@ def temperature(temp=None, rows=10, columns=24, save_as=None):

for s in tqdm(range(0, 256)):
torch.manual_seed(s)
os.makedirs('./images/samples', exist_ok=True)
temperature(0.88, columns=1, save_as='./images/samples/T_%.4i.png' % (s))
plt.title(str(s))

Expand Down