Pixel2Mesh icon indicating copy to clipboard operation
Pixel2Mesh copied to clipboard

No module named 'layers'

Open luoyangwei opened this issue 1 year ago • 6 comments

刚接触tensorflow 请别嫌弃问题简单嫌我烦😭

image

报错: ModuleNotFoundError: No module named 'layers'

环境: python 3.9 tflearn 0.5.0 tensorflow-macos 2.10.0 macOS Ventura 13.0 (Apple M1)

luoyangwei avatar Nov 03 '22 11:11 luoyangwei

Hi, I got the same error. I simply add package name as prefix, i.e. change line 19 to 'from p2m.layers import *', and it worked for me.

pengzhao-life avatar Nov 03 '22 14:11 pengzhao-life

Hi, I got the same error. I simply add package name as prefix, i.e. change line 19 to 'from p2m.layers import *', and it worked for me.

thanks!

luoyangwei avatar Nov 04 '22 07:11 luoyangwei

Traceback (most recent call last): File "C:\Users\mohmm\OneDrive\Desktop\28_omari\arafat\Pixel2Mesh\demo.py", line 20, in from p2m.api import GCN File "C:\Users\mohmm\OneDrive\Desktop\28_omari\arafat\Pixel2Mesh\p2m\api.py", line 19, in from p2m.layers import * File "C:\Users\mohmm\OneDrive\Desktop\28_omari\arafat\Pixel2Mesh\p2m\layers.py", line 21, in from inits import * ModuleNotFoundError: No module named 'inits'

OmariNewAeon avatar Jun 04 '24 19:06 OmariNewAeon

Traceback (most recent call last): File "C:\Users\mohmm\OneDrive\Desktop\28_omari\arafat\Pixel2Mesh\demo.py", line 20, in from p2m.api import GCN File "C:\Users\mohmm\OneDrive\Desktop\28_omari\arafat\Pixel2Mesh\p2m\api.py", line 19, in from p2m.layers import * File "C:\Users\mohmm\OneDrive\Desktop\28_omari\arafat\Pixel2Mesh\p2m\layers.py", line 21, in from inits import * ModuleNotFoundError: No module named 'inits'

i got the same quesion how to solve it ?

lechogt avatar Jun 07 '24 02:06 lechogt

import it as from .layers import * not just layers(put a dot behind layers)

shayansep avatar Aug 15 '24 03:08 shayansep

Traceback (most recent call last): File "C:\Users\mohmm\OneDrive\Desktop\28_omari\arafat\Pixel2Mesh\demo.py", line 20, in from p2m.api import GCN File "C:\Users\mohmm\OneDrive\Desktop\28_omari\arafat\Pixel2Mesh\p2m\api.py", line 19, in from p2m.layers import * File "C:\Users\mohmm\OneDrive\Desktop\28_omari\arafat\Pixel2Mesh\p2m\layers.py", line 21, in from inits import * ModuleNotFoundError: No module named 'inits'

i got the same quesion how to solve it ?


you also put a dot behind .inits like: from .inits import *

open layers.py and edit it

shayansep avatar Aug 15 '24 03:08 shayansep