person_generation_spt
person_generation_spt copied to clipboard
[Lotayou] 20190715: Python3 compatible branch
Using 2to3 for a pre-screening and reformatting, then fix the float division problem by changing all /
to //
. Also, a bug related to string processing is fixed, where split('\r\n')[0]
method is replaced with strip('\n')
.
Demo script has passed test under following environments:
- Ubuntu 18.04
- Python 3.6.5
- CUDA 9.0
- Pytorch 1.0.0