facebookresearch/odin

Two TabErrors

cclauss opened this issue · 2 comments

Unfortunately, Python 3 treats tab errors as syntax errors...

flake8 testing of https://github.com/facebookresearch/odin on Python 3.6.3

$ _flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./code/cal.py:71:104: E999 TabError: inconsistent use of tabs and spaces in indentation
	testset = torchvision.datasets.CIFAR10(root='../data', train=False, download=True, transform=transform)
                                                                                                       ^
./code/calMetric.py:37:12: E999 TabError: inconsistent use of tabs and spaces in indentation
	start = 0.1
           ^
2     E999 TabError: inconsistent use of tabs and spaces in indentation
2

I solved it by executing:
autopep8 -i cal*

Even better do: black .

https://github.com/psf/black