mirror of
https://github.com/microsoft/foldingdiff.git
synced 2026-06-04 21:34:32 +08:00
More comprehensive variance plots
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -86,10 +86,11 @@ def plot_variance_schedule(
|
||||
logging.info(
|
||||
f"Plotting {keyword} variance schedule with {timesteps} timesteps, ranging from {np.min(variance_vals)}-{np.max(variance_vals)}"
|
||||
)
|
||||
|
||||
alpha_beta_vals = compute_alphas(variance_vals)
|
||||
fig, ax = plt.subplots(dpi=300)
|
||||
ax.plot(np.arange(timesteps), variance_vals)
|
||||
fig.savefig(fname)
|
||||
for k, v in alpha_beta_vals.items():
|
||||
ax.plot(np.arange(timesteps), v.numpy(), label=k, alpha=0.7)
|
||||
fig.savefig(fname + "_alpha_beta.pdf")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user