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

TypeError: 'float' object cannot be interpreted as an integer #107

Open
lmc2000 opened this issue Nov 23, 2023 · 2 comments
Open

TypeError: 'float' object cannot be interpreted as an integer #107

lmc2000 opened this issue Nov 23, 2023 · 2 comments

Comments

@lmc2000
Copy link

lmc2000 commented Nov 23, 2023

0it [00:02, ?it/s]
Traceback (most recent call last):
File "D:\Users\Limc\Downloads\point-e-main\point_e\测试运行point_e.py", line 49, in
for x in tqdm(sampler.sample_batch_progressive(batch_size=1, model_kwargs=dict(images=[img]))):
File "D:\DevelopTools\anaconda3\lib\site-packages\tqdm\std.py", line 1195, in iter
for obj in iterable:
File "D:\Users\Limc\Downloads\point-e-main\point_e\diffusion\sampler.py", line 163, in sample_batch_progressive
for x in samples_it:
File "D:\Users\Limc\Downloads\point-e-main\point_e\diffusion\k_diffusion.py", line 182, in karras_sample_progressive
for obj in sample_fn(
File "D:\DevelopTools\anaconda3\lib\site-packages\torch\autograd\grad_mode.py", line 43, in generator_context
response = gen.send(None)
File "D:\Users\Limc\Downloads\point-e-main\point_e\diffusion\k_diffusion.py", line 266, in sample_heun
denoised = denoiser(x, sigma_hat * s_in)
File "D:\Users\Limc\Downloads\point-e-main\point_e\diffusion\k_diffusion.py", line 174, in guided_denoiser
x_0 = denoiser(x_t, sigma)
File "D:\Users\Limc\Downloads\point-e-main\point_e\diffusion\k_diffusion.py", line 161, in denoiser
_, denoised = model.denoise(
File "D:\Users\Limc\Downloads\point-e-main\point_e\diffusion\k_diffusion.py", line 100, in denoise
t = th.tensor(
TypeError: 'float' object cannot be interpreted as an integer

@hjwdzh
Copy link

hjwdzh commented Nov 27, 2023

I meet the same problem and simply apply an integer conversion to sigma_to_t result. Not sure whether it will be the correct solution.

@lmc2000
Copy link
Author

lmc2000 commented Nov 29, 2023

Thank you, the problem has been solved.

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