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

Can't run #116

Open
okanduzyel opened this issue Jul 3, 2022 · 4 comments
Open

Can't run #116

okanduzyel opened this issue Jul 3, 2022 · 4 comments

Comments

@okanduzyel
Copy link

okanduzyel commented Jul 3, 2022

Hi,

I cloned the project and I guess installed all required libraries but unfortunately can not run it. I got this output while I want to run.

(env_pytorch) okanduzyel@Okan-MacBook-Pro waveganv2 % python train_wavegan.py train ./train \                                                   
        --data_dir /Users/okanduzyel/Downloads/IDMT-SMT-DRUMS-V2/audio
Found 155 audio files in specified directory
Traceback (most recent call last):
  File "train_wavegan.py", line 653, in <module>
    infer(args)
  File "train_wavegan.py", line 244, in infer
    samp_z_n = tf.placeholder(tf.int32, [], name='samp_z_n')
AttributeError: module 'tensorflow' has no attribute 'placeholder'
(env_pytorch) okanduzyel@Okan-MacBook-Pro waveganv2 % 


@okanduzyel
Copy link
Author

I tried a bunch of things and it gives always the same error.

(base) okanduzyel@Okan-MacBook-Pro wavegan % python train_wavegan.py train ./train \
        --data_dir /Users/okanduzyel/Downloads/wavegan-pytorch-master/wavegan-pytorch/sc09/train
Found 18620 audio files in specified directory
Traceback (most recent call last):
  File "/Users/okanduzyel/Downloads/wavegan/train_wavegan.py", line 653, in <module>
    infer(args)
  File "/Users/okanduzyel/Downloads/wavegan/train_wavegan.py", line 244, in infer
    samp_z_n = tf.placeholder(tf.int32, [], name='samp_z_n')
AttributeError: module 'tensorflow' has no attribute 'placeholder'
(base) okanduzyel@Okan-MacBook-Pro wavegan % 

@mattjwarren
Copy link

wha versions of tf and python do you have?

@atthom
Copy link

atthom commented Jul 22, 2022

This is because you are using TensorFlow 2.X and wavegan require tensorflow-gpu==1.12.0

@mattjwarren
Copy link

I have created an updated fork of this repository migrated to run on Tensorflow 2. You may have more success getting it to run in modern environments, especially if you are aiming to train on newer GPU hardware. https://github.com/mattjwarren/wavegan

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