khlee369 / FluidCNN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FluidCNN

import torch
from models.cnn1d import FluidCNN


# in features means time dimension (e.g. 12 hours)
# in ch means number of regions (e.g. seocho, yongsan, namhyun)
in_f = 12
in_ch = 3
model = FluidCNN(in_features=in_f , in_ch=in_ch )

batch_size = 8
x = torch.ones(batch_size , in_ch, in_f)
print(x.shape) # torch.Size([8, 3, 12])
out = model(x)
print(out.shape) # torch.Size([8, 65536])

train

See train.py

python train.py

evaluation

See evaluation.py

python evaluation.py

About


Languages

Language:Python 100.0%