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

Test on VE settings #1

Closed
chen-hao-chao opened this issue Jul 11, 2021 · 2 comments
Closed

Test on VE settings #1

chen-hao-chao opened this issue Jul 11, 2021 · 2 comments

Comments

@chen-hao-chao
Copy link

Hi,
I really like your work and I wanted to use your method on VE settings.

I have tried this code on sub-VP settings, but have trouble under VE settings. Do you have any helpful comments on how I should use your code to sample from a pretrained VE model?

(Specifically, I would like to evaluate this code on the configuration "cifar10_deep_continuous_ve.py".)

Thanks!

@AlexiaJM
Copy link
Owner

Hi,

Any of these three lines should work:

python main.py --config 'configs/ncsnpp/cifar10_deep_continuous_ve.py' --mode 'eval' --workdir 'cifar10_ncsnpp_deep_continuous' --config.sampling.predictor="adaptive" --config.sampling.corrector="none" --config.eval.num_samples=$total_lowres --config.eval.batch_size=$bs_lowres --config.sampling.abstol=0.0039 --config.sampling.reltol=1e-2

python main.py --config 'configs/ncsnpp/cifar10_deep_continuous_ve.py' --mode 'eval' --workdir 'cifar10_ncsnpp_deep_continuous' --config.sampling.predictor="adaptive" --config.sampling.corrector="none" --config.eval.num_samples=$total_lowres --config.eval.batch_size=$bs_lowres --config.sampling.abstol=0.0039 --config.sampling.reltol=2e-2

python main.py --config 'configs/ncsnpp/cifar10_deep_continuous_ve.py' --mode 'eval' --workdir 'cifar10_ncsnpp_deep_continuous' --config.sampling.predictor="adaptive" --config.sampling.corrector="none" --config.eval.num_samples=$total_lowres --config.eval.batch_size=$bs_lowres --config.sampling.abstol=0.0039 --config.sampling.reltol=5e-2

You just need to change --workdir to the directory of your pretrained models in ./checkpoints/.

Alexia

@chen-hao-chao
Copy link
Author

Thank you so much.
I successfully sampled from a pretrained VE model using adaptive method under "cifar10_deep_continuous_ve.py" settings.

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

2 participants