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 #34

Open
GrahamboJangles opened this issue May 22, 2019 · 7 comments
Open

Comments

@GrahamboJangles
Copy link

GrahamboJangles commented May 22, 2019

Windows 10, python 3.6.3

Full error when trying to run main.py:

 Using TensorFlow backend.
 Traceback (most recent call last):
   File "\speech-denoising-wavenet-master\main.py", line 169, in <module>
     main()
   File "speech-denoising-wavenet-master\main.py", line 163, in main
     training(config, cla)
   File "\speech-denoising-wavenet-master\main.py", line 72, in training
     model = models.DenoisingWavenet(config, load_checkpoint=cla.load_checkpoint, print_model_summary=cla.print_model_summary)
   File "speech-denoising-wavenet-master\models.py", line 50, in __init__
     self.samples_of_interest_indices = self.get_padded_target_field_indices()
   File "speech-denoising-wavenet-master\models.py", line 184, in get_padded_target_field_indices
     target_sample_index + self.half_target_field_length + self.target_padding + 1)
 TypeError: 'float' object cannot be interpreted as an integer
@pKrysenko
Copy link

It causes, because you use python3, this project uses python2

@huihui890
Copy link

I have encountered the same problem, but python2.7 does not support GPU on windows. Have you solved this problem?

@GrahamboJangles
Copy link
Author

I have encountered the same problem, but python2.7 does not support GPU on windows. Have you solved this problem?

No, @huihui890 unfortunately not. This is, I believe, the only one I got at least running on my computer but I created another issue on there because it was taking a ridiculous amount of time to run. Good look, and if you find a repository that does allow you to train and denoise your audio files link me to it because I would like to use it as well!

@GrahamboJangles
Copy link
Author

@huihui890 I now use Google Colab for many of my neural network needs and it seems to work better. I would recommend you give this repository a try with Google Colab. I might link a notebook here if I can get it working.

@huihui890
Copy link

@GrahamboJangles Thank you very much for your recommendation, I will go to run Google Colab model as soon as possible.

@GrahamboJangles
Copy link
Author

@huihui890 I started one here but couldn't quite get it working. I get this error.

@huihui890
Copy link

@GrahamboJangles I will go to run this model as soon as possible.

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