Delete 4b_show.py

This commit is contained in:
David Rotermund 2023-07-13 11:05:31 +02:00 committed by GitHub
parent 7d7f84dd58
commit d72b12ebdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,24 +0,0 @@
import numpy as np
import torch
from Anime import Anime
# Convert from avi to npy
filename: str = "example_data_crop"
torch_device: torch.device = torch.device(
"cuda:0" if torch.cuda.is_available() else "cpu"
)
print("Load data")
input = np.load(filename + str("_decorrelated.npy"))
data = torch.tensor(input, device=torch_device)
del input
print("loading done")
data = data.nan_to_num(nan=0.0)
data -= data.min(dim=0, keepdim=True)[0]
data *= data.std(dim=0, keepdim=True)
ani = Anime()
ani.show(data)