Pixel2Mesh icon indicating copy to clipboard operation
Pixel2Mesh copied to clipboard

upgrade to Python 3

Open mewmew opened this issue 4 years ago • 5 comments

As Python 2 has reached the end of its life, as of the 1st of January 2020, it would be good to see Pixel2Mesh updated to support Python 3. Has there been any work in this direction?

Cheers, Robin

Deprication message from pip:

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support

mewmew avatar Mar 28 '20 12:03 mewmew

Hi, @mewmew . We do have plan to upgrade to python3, we are working in progress to complete the codebase. After the update, I will inform everyone.

walsvid avatar Apr 04 '20 03:04 walsvid

Hi, @mewmew . We do have plan to upgrade to python3, we are working in progress to complete the codebase. After the update, I will inform everyone.

Hi @walsvid,

Thanks for the update. That's amazing news!

Happy coding!

Cheers, Robin

mewmew avatar Apr 04 '20 10:04 mewmew

I was able to run the demo in Python 3.6 and Tensorflow 1.15 with very little changes:

Fix the only print at the end of demo.py and use pickle (replace import cPickle as pickle line with import pickle), with this adjustment when loading for compatibility

pkl = pickle.load(open('Data/ellipsoid/info_ellipsoid.dat', 'rb'), encoding='latin1')

5agado avatar Jul 19 '20 10:07 5agado

我能够在Python 3.6和Tensorflow 1.15中运行该演示,而几乎没有什么变化:

修复_demo.py_print末尾的_唯一内容,_并使用pickle(用替换import cPickle as pickleimport pickle),并在加载时进行此调整以实现兼容性

pkl = pickle.load(open('Data/ellipsoid/info_ellipsoid.dat', 'rb'), encoding='latin1')

excuse me ,may I ask which version of CUDA you used? CUDA8.0?

lkf1996 avatar Jul 24 '20 11:07 lkf1996

我能够在Python 3.6和Tensorflow 1.15中运行该演示,而几乎没有什么变化: 修复_demo.py_print末尾的_唯一内容,_并使用pickle(用替换import cPickle as pickleimport pickle),并在加载时进行此调整以实现兼容性

pkl = pickle.load(open('Data/ellipsoid/info_ellipsoid.dat', 'rb'), encoding='latin1')

excuse me ,may I ask which version of CUDA you used? CUDA8.0?

Hi, @lkf1996 Yes, CUDA 8.0 is suitable for this algorithm.

walsvid avatar Jan 06 '21 11:01 walsvid