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

Error in trainer.py with indentation #43

Open
mcanet opened this issue Jan 31, 2019 · 5 comments
Open

Error in trainer.py with indentation #43

mcanet opened this issue Jan 31, 2019 · 5 comments

Comments

@mcanet
Copy link

mcanet commented Jan 31, 2019

I am executing in windows and get this error

C:\Users\admin\Documents\pggan-pytorch-master\pggan-pytorch-master>python3 trainer.py
  File "trainer.py", line 270
    loss_d = self.mse(self.fx.squeeze(), self.real_label) + \
                                                            ^
TabError: inconsistent use of tabs and spaces in indentation
@mcanet
Copy link
Author

mcanet commented Jan 31, 2019

I try with git clone and also in Linux and this problem is there.

@paulchou0309
Copy link

me too how to make it?

@paulchou0309
Copy link

@mcanet

@orrimoch
Copy link

I get the same. How can I solve it?

@adrianblevine
Copy link

You need to replace all tabs with spaces.
in vim:
:%s/\t/ /g

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

4 participants