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

Why parameter [timesteps] is fixed? #287

Open
4daJKong opened this issue Apr 23, 2023 · 4 comments
Open

Why parameter [timesteps] is fixed? #287

4daJKong opened this issue Apr 23, 2023 · 4 comments

Comments

@4daJKong
Copy link

4daJKong commented Apr 23, 2023

I found that in line 2308, the creating of NoiseScheduler layer depends on timesteps in dalle2_pytorch.py.
Did it means I cannot change (increase or decrese) the value of timesteps if I have loaded a pretrained model when testing?
'sampling loot time steps =1000' in decoder is too long for me, and I haven't other parameter, like sample_timesteps in prior, that can control this process.

@funmooya
Copy link

I meet the same problem, do you find the answer?

@4daJKong
Copy link
Author

4daJKong commented Jun 7, 2023

I meet the same problem, do you find the answer?

Hi, adding "default_sample_timesteps": [100], after "default_cond_scale": [1.7], in gradio.example.json can adjust the sample_timesteps of decoder.

@funmooya
Copy link

funmooya commented Jun 7, 2023

I meet the same problem, do you find the answer?

Hi, adding "default_sample_timesteps": [100], after "default_cond_scale": [1.7], in gradio.example.json can adjust the sample_timesteps of decoder.

Thank you very very much.

@moonbaby9
Copy link

I meet the same problem, do you find the answer?

Hi, adding "default_sample_timesteps": [100], after "default_cond_scale": [1.7], in gradio.example.json can adjust the sample_timesteps of decoder.

Hello! I add "default_sample_timesteps": [100], after "default_cond_scale": [1.7], in gradio.example.json, but meet the error below:
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 3 validation errors for DecoderConfig
sample_timesteps
value is not a valid integer (type=type_error.integer)
sample_timesteps -> 1
none is not an allowed value (type=type_error.none.not_allowed)
sample_timesteps
wrong tuple length 2, expected 1 (type=value_error.tuple.length; actual_length=2; expected_length=1)

Do you know how to deal with this bug? Thank you very much!

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