Closed Venseven closed 5 years ago
Hi @Venseven,
Would you mind sharing with us which version of TGAN you used and the commands you run?
Thanks
import tgan
num_samples=100
model_path="models/covertype_1.pkl"
from tgan.data import load_demo_data
data,c_m=load_demo_data("census")
from tgan.model import TGANModel
tgan_m=TGANModel(c_m,gpu=0)
tgan_m.fit(data)
sample=tgan_m.sample(num_samples)
print(sample)`
tgan --version-0.1.0
I think that the issue here is that you are trying to sample too few records ( less than the batch size, that defaults to 200). If you try with 1000 samples it should work perfectly.
I have trained the census data ....after training and on restoring checkpoints it kind of stucks in generating samples...have attached the issue