mirror of
https://github.com/wassname/attentive-neural-processes.git
synced 2026-08-03 12:40:14 +08:00
misc fixes
This commit is contained in:
@@ -108,6 +108,7 @@ def plot_from_loader_to_tensor(
|
||||
# Send fig to tensorboard
|
||||
buf = io.BytesIO()
|
||||
plt.savefig(buf, format='jpeg')
|
||||
plt.close()
|
||||
buf.seek(0)
|
||||
image = PIL.Image.open(buf)
|
||||
image = ToTensor()(image)#.unsqueeze(0)
|
||||
|
||||
Reference in New Issue
Block a user