keras-gcnn icon indicating copy to clipboard operation
keras-gcnn copied to clipboard

ModuleNotFoundError for GrouPy

Open naveenagorre opened this issue 2 years ago • 1 comments

Hi,

I'm able to install GrouPy using pip install git+https://github.com/nom/GrouPy#egg=GrouPy and while "importing from keras_gcnn.applications.densenetnew import GDenseNet" I'm receiving an error as below:

ModuleNotFoundError Traceback (most recent call last) in 11 from keras.preprocessing.image import ImageDataGenerator 12 from keras.utils import np_utils ---> 13 from keras_gcnn.applications.densenetnew import GDenseNet

2 frames /usr/local/lib/python3.8/dist-packages/keras_gcnn/layers/convolutional.py in 1 import keras.backend as K ----> 2 from groupy.gconv.tensorflow_gconv.splitgconv2d import gconv2d_util 3 from keras.engine import InputSpec 4 from keras.layers.convolutional import Conv2D, Conv2DTranspose 5 from keras.utils import get_custom_objects

ModuleNotFoundError: No module named 'groupy.gconv'

Please let me know how I can resolve this.

naveenagorre avatar Jan 04 '23 14:01 naveenagorre

I had the same issue and what worked for me is coping the three folders 'garray', 'gconv' and 'gfunc' that you can get from cloning, and copy them directly in the 'groupy' folder in your site-packages folder from python.

For some reason when you install groupy using pip it doesn't add these three folders in the groupy folder, but when you manually add them this is fixed.

timoovz avatar Jun 21 '23 09:06 timoovz