pggan-pytorch icon indicating copy to clipboard operation
pggan-pytorch copied to clipboard

Error in trainer.py with indentation

Open mcanet opened this issue 6 years ago • 5 comments

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 avatar Jan 31 '19 17:01 mcanet

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

mcanet avatar Jan 31 '19 23:01 mcanet

me too how to make it?

paulchou0309 avatar Feb 22 '19 02:02 paulchou0309

@mcanet

paulchou0309 avatar Feb 22 '19 06:02 paulchou0309

I get the same. How can I solve it?

orrimoch avatar Mar 27 '19 12:03 orrimoch

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

adrianblevine avatar Apr 30 '19 13:04 adrianblevine