Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

t_emd error in ViTset code #5

Open
zjw511 opened this issue Feb 27, 2023 · 5 comments
Open

t_emd error in ViTset code #5

zjw511 opened this issue Feb 27, 2023 · 5 comments

Comments

@zjw511
Copy link

zjw511 commented Feb 27, 2023

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.

@WindFall-wyx
Copy link

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?

@zjw511
Copy link
Author

zjw511 commented Feb 28, 2023

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

@WindFall-wyx
Copy link

WindFall-wyx commented Mar 1, 2023

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.

@zjw511
Copy link
Author

zjw511 commented Mar 5, 2023

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 202122011629@std.uestc.edu.cn

@flytomatolll
Copy link

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 202122011629@std.uestc.edu.cn

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants