Pixel2Mesh icon indicating copy to clipboard operation
Pixel2Mesh copied to clipboard

On the issues of Pixel2Mesh dependencies

Open WisarutBholsithi opened this issue 4 years ago • 2 comments

Hi everybody, I would like to ask you about dependencies of Pixel2Mesh so that I can apply the code to be used in python 3.6.9 since the example in github is for python 2.7 though.

Furthermore, my system also use tensorflow 1.14, and tflearn 0.3.2 as shown in the attached image.

When I tried to run Pixel2Mesh example in demo.py, I still got error "No module named layers" at api.py in p2m directory. How can I deal with this kind of problem?

Hope there will be solution for this problem ErrorNoLayersinAPIofPixel2Mesh

MySystemDependency

WisarutBholsithi avatar Dec 09 '19 08:12 WisarutBholsithi

Just use "from .layers import *" (add a dot) and also in layers.py do from .inits import * But after that i am getting this error:

Traceback (most recent call last): File "demo.py", line 73, in pkl = pickle.load(open('Data/ellipsoid/info_ellipsoid.dat', 'rb')) UnicodeDecodeError: 'ascii' codec can't decode byte 0xbe in position 3: ordinal not in range(128)

adesgautam avatar Jun 14 '20 18:06 adesgautam

@WisarutBholsithi your issue is because they import without specifying the python module. Adding the p2m repo to the python path fixes all such issues.

For the unicode error can be an incompatibility with pickle between python 2.7 and 3.x I fixed using the following line

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

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