few-shot-diffusion-models icon indicating copy to clipboard operation
few-shot-diffusion-models copied to clipboard

t_emd error in ViTset code

Open zjw511 opened this issue 2 years ago • 5 comments

Im vfsddpm.py line 223-225: x_set_tmp = batch[:, ix] yout select ns - 1 of data, but you don't select ns-1 t_emd, that cause vitset.py line 176 :t_emb = t_emb.view(b, ns, -1) error, this t_emd is 49152 contain deleted data t_emd, but x_set 's ns is 5. I want to know this code is the origin code of your paper result? Thank you.

zjw511 avatar Feb 27 '23 03:02 zjw511

Hi, how to run the preprocess_datasets.py with dataset cifar? I find that the type of dataset in it is h5py. How did you prepare the dataset?

WindFall-wyx avatar Feb 27 '23 11:02 WindFall-wyx

Hi, how to run the preprocess_datasets.py with dataset cifar? I find that the type of dataset in it is h5py. How did you prepare the dataset?

run this code to download cifar100,

from torchmeta.datasets import Omniglot, DoubleMNIST, TripleMNIST, CUB, FC100
dataset = FC100("./", meta_split='train', download=True)

This code will have an errror, but the h5py file arleady download, you ignore that and continue run preprocess_datasets.py

zjw511 avatar Feb 28 '23 06:02 zjw511

run this code to download cifar100,

from torchmeta.datasets import Omniglot, DoubleMNIST, TripleMNIST, CUB, FC100
dataset = FC100("./", meta_split='train', download=True)

This code will have an errror, but the h5py file arleady download, you ignore that and continue run preprocess_datasets.py

Thank you. I met the same error about the shape of t_emb as you mentioned. It seems that there are some other mistakes in this code instead of running directly.

WindFall-wyx avatar Mar 01 '23 08:03 WindFall-wyx

Maybe only unet or vit is correct. I fix vit-set code error and sample code error, and i get 46 FID on Vit-set LAC T, although paper is 40.71. I won't take more tests,and there is no need to waste time to modify code errors. If you need help about this, you can email me [email protected]

zjw511 avatar Mar 05 '23 12:03 zjw511

Maybe only unet or vit is correct. I fix vit-set code error and sample code error, and i get 46 FID on Vit-set LAC T, although paper is 40.71. I won't take more tests,and there is no need to waste time to modify code errors. If you need help about this, you can email me [email protected]

Hello, can you tell me how to fix the vit-set code error and sample code error? I met the same problems now. Thank you.

flytomatolll avatar May 08 '23 03:05 flytomatolll