mirror of
https://github.com/AntoineHX/smart_augmentation.git
synced 2025-05-04 12:10:45 +02:00
Dataugv5- Modification des TF pour propagation du gradient (mag)
This commit is contained in:
parent
05f81787d6
commit
994d657a28
5 changed files with 94 additions and 21 deletions
|
@ -170,7 +170,7 @@ def viz_sample_data(imgs, labels, fig_name='data_sample'):
|
|||
plt.xticks([])
|
||||
plt.yticks([])
|
||||
plt.grid(False)
|
||||
plt.imshow(sample[i,], cmap=plt.cm.binary)
|
||||
plt.imshow(sample[i,].detach().numpy(), cmap=plt.cm.binary)
|
||||
plt.xlabel(labels[i].item())
|
||||
|
||||
plt.savefig(fig_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue