Open jawatroxion opened 4 years ago
I'm having the same issue, I found the .egg file located here, /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mask_rcnn-2.1-py3.7.egg . I've been trying to modify what's inside the /mrcnnl/model.py which is inside the .egg file : using pkg_resources resource_stream, found in this stackoverflow answer, but this doesn't seem to work as mrcnn is not treated as an installed distribution, so it won't open the package file.
It looks like another user @pipun-gif here is having a similar issue and tried to unzip the file.
Any chance you figured it out @jawatroxion ?
@jawatroxion @pipun-gif I just got it to work by using Keras version 2.2.5 and Tensorflow v1.15.0rc2, hopefully that helps if you are still having the same issue still.
I'm having the same issue, I found the .egg file located here, /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mask_rcnn-2.1-py3.7.egg . I've been trying to modify what's inside the /mrcnnl/model.py which is inside the .egg file : using pkg_resources resource_stream, found in this stackoverflow answer, but this doesn't seem to work as mrcnn is not treated as an installed distribution, so it won't open the package file.
It looks like another user @pipun-gif here is having a similar issue and tried to unzip the file.
Any chance you figured it out @jawatroxion ?
Hi @cam-garrison ... Good to know that you've gotten it to work. Actually I was wanting to post an update here, but never got about doing it. Sorry, my bad.
I solved it by firstly uninstalling the Mask RCNN package. Then for the modification... I went to the downloaded installation files... and modified that particular line of code in the model.py file BEFORE installing mask-rcnn. That solved the problem :)
I'm having the same issue, I found the .egg file located here, /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mask_rcnn-2.1-py3.7.egg . I've been trying to modify what's inside the /mrcnnl/model.py which is inside the .egg file : using pkg_resources resource_stream, found in this stackoverflow answer, but this doesn't seem to work as mrcnn is not treated as an installed distribution, so it won't open the package file. It looks like another user @pipun-gif here is having a similar issue and tried to unzip the file. Any chance you figured it out @jawatroxion ?
Hi @cam-garrison ... Good to know that you've gotten it to work. Actually I was wanting to post an update here, but never got about doing it. Sorry, my bad.
I solved it by firstly uninstalling the Mask RCNN package. Then for the modification... I went to the downloaded installation files... and modified that particular line of code in the model.py file BEFORE installing mask-rcnn. That solved the problem :)
recommended way to temporarily fix this problem until the Matterport team ships a fix
I had similar problem (Windows10 & WSL (Ubuntu)). I unzipped the egg file with 'unzip' command. Then the mrcnn directory appeared and I could step into it to see the code. And my jupyter notebook started using this directory instead of .egg file. (I've no idea why but it is working)
I'm having the same issue, I found the .egg file located here, /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mask_rcnn-2.1-py3.7.egg . I've been trying to modify what's inside the /mrcnnl/model.py which is inside the .egg file : using pkg_resources resource_stream, found in this stackoverflow answer, but this doesn't seem to work as mrcnn is not treated as an installed distribution, so it won't open the package file. It looks like another user @pipun-gif here is having a similar issue and tried to unzip the file. Any chance you figured it out @jawatroxion ?
Hi @cam-garrison ... Good to know that you've gotten it to work. Actually I was wanting to post an update here, but never got about doing it. Sorry, my bad.
I solved it by firstly uninstalling the Mask RCNN package. Then for the modification... I went to the downloaded installation files... and modified that particular line of code in the model.py file BEFORE installing mask-rcnn. That solved the problem :)
what changes you have made in that particular line??
I had similar problem (Windows10 & WSL (Ubuntu)). I unzipped the egg file with 'unzip' command. Then the mrcnn directory appeared and I could step into it to see the code. And my jupyter notebook started using this directory instead of .egg file. (I've no idea why but it is working)
How did you manage to convert the zipped folder back to egg file
I got this problem as well and I found out that the main problem is that the runs do not use the local version of Mask R-CNN and uses the one in the .egg file.
My solution is to point the runs to the local library version.
For example, in balloon.py, the following line
sys.path.append(ROOT_DIR) # To find local version of the library
didn't work for me and it's still using the version from .egg. So any changes I made on my local parallel_model.py doesn't take effect.
you should change it to:
sys.path.insert(1, ROOT_DIR)
so it will use the local version instead of the one in .egg
I had similar problem (Windows10 & WSL (Ubuntu)). I unzipped the egg file with 'unzip' command. Then the mrcnn directory appeared and I could step into it to see the code. And my jupyter notebook started using this directory instead of .egg file. (I've no idea why but it is working)
This worked for me, thanks a lot.
Good day
I'm trying to train the MRCNN on my Anaconda environment. I'm using Python 3.6 and on a Windows 8.1. I believe I've managed to install TF (
version 1.15.0
) and KERAS (version 2.2.4-tf
) correctly (this is my first time playing around with deep learning btw).I've managed to get down to the line where the error is happening, and the code is:
model.train(train_set, test_set, learning_rate=config.LEARNING_RATE, epochs=5, layers='heads')
The error that comes out is
AttributeError: 'Model' object has no attribute 'metrics_tensors'
(details below):I've seen a solution being suggested here: #145 and tried implement it. The problem is, I can't seem to get into the
mask_rcnn-2.1-py3.6.egg
folder from Windows Explorer in order to access themodel.py
file.. When I go to the Anaconda prompt, I see thatmask_rcnn-2.1-py3.6.egg
is listed, however it does not seem to be a directory/folder (please refer to the screen shot below):I did try to do a search for a
model.py
file on my computer, and found the one located atC:\Users\student\Mask_RCNN\mrcnn\model.py
. Modified it as per #145 suggestion, but the error still persists. I was wondering if anyone can help? Any assistance is much appreciated.