Open Doubledeny opened 5 years ago
I think you should got to the directory of F:\Mask_RCNN-master and then try again.
How to operate the second step of the installation step of the clone repository please
Do you mean "Clone this repository"? Just type git clone https://github.com/matterport/Mask_RCNN.git
in your command line. And I think the order of 1st and 2nd step should be swapped, i.e. you should first clone this repo and then install the dependencies.
Thank you very much! Can I not perform the third step if I don't perform the second step?
I wonder how do you get the folder of Mask_RCNN-master if you don't clone this repo. I guess you download the zip file of this repo and then unzip it in your computer. Anyway, you should still run the 3rd step to get rid of your error.
Yes, I downloaded this zip, the first step was successful, but the third step went wrong. The error is C:\Users\Administrator>python F:\Mask_RCNN-master\setup.py install WARNING:root:Fail load requirements file, so using default ones. running install running bdist_egg running egg_info writing mask_rcnn.egg-info\PKG-INFO writing dependency_links to mask_rcnn.egg-info\dependency_links.txt writing top-level names to mask_rcnn.egg-info\top_level.txt error: package directory 'mrcnn' does not exist
I use Windows system, do I have to use Linux system?
You should type cd F:\Mask_RCNN-master
in your command line to change your working directory and then try step 3 again.
Thank you very much, the problem has been solved.
Hello! When I try "python setup.py install", I get the message:
(base) C:\Users\dimit\Documents\GitHubs\Mask_RCNN>python setup.py install WARNING:root:Fail load requirements file, so using default ones. running install running bdist_egg running egg_info creating mask_rcnn.egg-info writing mask_rcnn.egg-info\PKG-INFO writing dependency_links to mask_rcnn.egg-info\dependency_links.txt writing top-level names to mask_rcnn.egg-info\top_level.txt writing manifest file 'mask_rcnn.egg-info\SOURCES.txt' reading manifest file 'mask_rcnn.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'mask_rcnn.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_py creating build creating build\lib creating build\lib\mrcnn copying mrcnn\config.py -> build\lib\mrcnn copying mrcnn\model.py -> build\lib\mrcnn copying mrcnn\parallel_model.py -> build\lib\mrcnn copying mrcnn\utils.py -> build\lib\mrcnn copying mrcnn\visualize.py -> build\lib\mrcnn copying mrcnn__init__.py -> build\lib\mrcnn creating build\bdist.win-amd64 creating build\bdist.win-amd64\egg creating build\bdist.win-amd64\egg\mrcnn copying build\lib\mrcnn\config.py -> build\bdist.win-amd64\egg\mrcnn copying build\lib\mrcnn\model.py -> build\bdist.win-amd64\egg\mrcnn copying build\lib\mrcnn\parallel_model.py -> build\bdist.win-amd64\egg\mrcnn copying build\lib\mrcnn\utils.py -> build\bdist.win-amd64\egg\mrcnn copying build\lib\mrcnn\visualize.py -> build\bdist.win-amd64\egg\mrcnn copying build\lib\mrcnn__init.py -> build\bdist.win-amd64\egg\mrcnn byte-compiling build\bdist.win-amd64\egg\mrcnn\config.py to config.cpython-37.pyc byte-compiling build\bdist.win-amd64\egg\mrcnn\model.py to model.cpython-37.pyc byte-compiling build\bdist.win-amd64\egg\mrcnn\parallel_model.py to parallel_model.cpython-37.pyc byte-compiling build\bdist.win-amd64\egg\mrcnn\utils.py to utils.cpython-37.pyc byte-compiling build\bdist.win-amd64\egg\mrcnn\visualize.py to visualize.cpython-37.pyc byte-compiling build\bdist.win-amd64\egg\mrcnn\init.py to init__.cpython-37.pyc creating build\bdist.win-amd64\egg\EGG-INFO copying mask_rcnn.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO copying mask_rcnn.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO copying mask_rcnn.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO copying mask_rcnn.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO zip_safe flag not set; analyzing archive contents... creating dist creating 'dist\mask_rcnn-2.1-py3.7.egg' and adding 'build\bdist.win-amd64\egg' to it removing 'build\bdist.win-amd64\egg' (and everything under it) Processing mask_rcnn-2.1-py3.7.egg Copying mask_rcnn-2.1-py3.7.egg to c:\users\dimit\anaconda3\lib\site-packages Adding mask-rcnn 2.1 to easy-install.pth file
Installed c:\users\dimit\anaconda3\lib\site-packages\mask_rcnn-2.1-py3.7.egg Processing dependencies for mask-rcnn==2.1 Finished processing dependencies for mask-rcnn==2.1
It doesn't return any error, but I cannot import the library in my code.
Any suggestions?
Thank you for your time,
Dimitris
Hello! When I try "python setup.py install", I get the message:
(base) C:\Users\dimit\Documents\GitHubs\Mask_RCNN>python setup.py install WARNING:root:Fail load requirements file, so using default ones. running install running bdist_egg running egg_info creating mask_rcnn.egg-info writing mask_rcnn.egg-info\PKG-INFO writing dependency_links to mask_rcnn.egg-info\dependency_links.txt writing top-level names to mask_rcnn.egg-info\top_level.txt writing manifest file 'mask_rcnn.egg-info\SOURCES.txt' reading manifest file 'mask_rcnn.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'mask_rcnn.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_py creating build creating build\lib creating build\lib\mrcnn copying mrcnn\config.py -> build\lib\mrcnn copying mrcnn\model.py -> build\lib\mrcnn copying mrcnn\parallel_model.py -> build\lib\mrcnn copying mrcnn\utils.py -> build\lib\mrcnn copying mrcnn\visualize.py -> build\lib\mrcnn copying mrcnninit.py -> build\lib\mrcnn creating build\bdist.win-amd64 creating build\bdist.win-amd64\egg creating build\bdist.win-amd64\egg\mrcnn copying build\lib\mrcnn\config.py -> build\bdist.win-amd64\egg\mrcnn copying build\lib\mrcnn\model.py -> build\bdist.win-amd64\egg\mrcnn copying build\lib\mrcnn\parallel_model.py -> build\bdist.win-amd64\egg\mrcnn copying build\lib\mrcnn\utils.py -> build\bdist.win-amd64\egg\mrcnn copying build\lib\mrcnn\visualize.py -> build\bdist.win-amd64\egg\mrcnn copying build\lib\mrcnninit.py -> build\bdist.win-amd64\egg\mrcnn byte-compiling build\bdist.win-amd64\egg\mrcnn\config.py to config.cpython-37.pyc byte-compiling build\bdist.win-amd64\egg\mrcnn\model.py to model.cpython-37.pyc byte-compiling build\bdist.win-amd64\egg\mrcnn\parallel_model.py to parallel_model.cpython-37.pyc byte-compiling build\bdist.win-amd64\egg\mrcnn\utils.py to utils.cpython-37.pyc byte-compiling build\bdist.win-amd64\egg\mrcnn\visualize.py to visualize.cpython-37.pyc byte-compiling build\bdist.win-amd64\egg\mrcnninit.py to init.cpython-37.pyc creating build\bdist.win-amd64\egg\EGG-INFO copying mask_rcnn.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO copying mask_rcnn.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO copying mask_rcnn.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO copying mask_rcnn.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO zip_safe flag not set; analyzing archive contents... creating dist creating 'dist\mask_rcnn-2.1-py3.7.egg' and adding 'build\bdist.win-amd64\egg' to it removing 'build\bdist.win-amd64\egg' (and everything under it) Processing mask_rcnn-2.1-py3.7.egg Copying mask_rcnn-2.1-py3.7.egg to c:\users\dimit\anaconda3\lib\site-packages Adding mask-rcnn 2.1 to easy-install.pth file
Installed c:\users\dimit\anaconda3\lib\site-packages\mask_rcnn-2.1-py3.7.egg Processing dependencies for mask-rcnn==2.1 Finished processing dependencies for mask-rcnn==2.1
It doesn't return any error, but I cannot import the library in my code.
Any suggestions?
Thank you for your time,
Dimitris
I also have the same problem.
Hi all i am facing the same issue. I am working in Ubuntu
`WARNING:root:Fail load requirements file, so using default ones.
running install
running bdist_egg
running egg_info
writing mask_rcnn.egg-info/PKG-INFO
writing dependency_links to mask_rcnn.egg-info/dependency_links.txt
writing top-level names to mask_rcnn.egg-info/top_level.txt
reading manifest file 'mask_rcnn.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'mask_rcnn.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/mrcnn
copying build/lib/mrcnn/parallel_model.py -> build/bdist.linux-x86_64/egg/mrcnn
copying build/lib/mrcnn/__init__.py -> build/bdist.linux-x86_64/egg/mrcnn
copying build/lib/mrcnn/model.py -> build/bdist.linux-x86_64/egg/mrcnn
copying build/lib/mrcnn/utils.py -> build/bdist.linux-x86_64/egg/mrcnn
copying build/lib/mrcnn/visualize.py -> build/bdist.linux-x86_64/egg/mrcnn
copying build/lib/mrcnn/config.py -> build/bdist.linux-x86_64/egg/mrcnn
byte-compiling build/bdist.linux-x86_64/egg/mrcnn/parallel_model.py to parallel_model.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/mrcnn/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/mrcnn/model.py to model.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/mrcnn/utils.py to utils.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/mrcnn/visualize.py to visualize.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/mrcnn/config.py to config.cpython-36.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying mask_rcnn.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying mask_rcnn.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying mask_rcnn.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying mask_rcnn.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/mask_rcnn-2.1-py3.6.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing mask_rcnn-2.1-py3.6.egg
Removing /usr/local/lib/python3.6/dist-packages/mask_rcnn-2.1-py3.6.egg
Copying mask_rcnn-2.1-py3.6.egg to /usr/local/lib/python3.6/dist-packages
mask-rcnn 2.1 is already the active version in easy-install.pth
Installed /usr/local/lib/python3.6/dist-packages/mask_rcnn-2.1-py3.6.egg
Processing dependencies for mask-rcnn==2.1
Finished processing dependencies for mask-rcnn==2.1
`
Exactly the same problem as @esteban-andrade and @dangmanhtruong1995
No error but I cannot import the library mrcnn_infer in my code.
Folks,
The "WARNING:root:Fail load requirements file, so using default ones" was not the problem on itself.
The problem was that the "sys.path.insert" before the "from .. import ..." wasn't working properly. So, using PyCharm you can do it manually, you can follow this tuto: https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000592884-How-do-I-add-path-to-custom-module
And now, you can properly import the libraries in your code.
I hope it will help you guys, it worked for me. Let me know if I can help !
Anis
Hi,
The problem is caused due to pip.req.parse_requirements
call within setup.py. It has been removed after pip 10 ( I guess all of you are using pip > 18 )
A dirty fix is by downgrading pip to 9.0.3 and running:
1 pip install pip==9.0.3
2 python setup.py install
I solved this problem in the following way. Note please.
packages=["mrcnn"]
after
from setuptools import setup, find_packages # add
packages=find_packages(exclude=['mrcnn'])
If you need a docker file, please leave a comment.
Hi @jeonga0303 could you please help me with the docker file it would be really helpful ty =D
Hi @jeonga0303 could you please help me with the docker file it would be really helpful ty =D
If you run it, you can check the jupyter notebook URL in the docker log.
folder
dockerfile [tensorflow1.3.0 - For tf2 , there are a lot of code changes, so I used tf1.]
FROM tensorflow/tensorflow:1.3.0-py3
USER root
RUN apt-get update && apt-get install -y && apt-get install python3 python3-pip -y && apt-get -y install libgl1
ADD ./Mask_RCNN /Mask_RCNN
WORKDIR /Mask_RCNN
RUN python3 -m pip install --upgrade pip
RUN pip install --upgrade setuptools
RUN pip3 install -r requirements.txt
RUN python3 setup.py install
RUN pip3 install jupyter
ENTRYPOINT jupyter notebook --allow-root --ip='0.0.0.0' --port=8887 --no-browser
docker container (Connect and install)
docker-compose
version: '3.7'
services:
mask_rcnn_tf1:
image: mask_rcnn_tf1
container_name: mask_rcnn_tf1
volumes:
- ./Mask_RCNN:/Mask_RCNN
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
environment:
- GRANT_SUDO=yes
ipc: host
tty: true
ports:
- "8887:8887"
requirements.txt
numpy==1.16.4
scipy<=0.19.0
Pillow
cython
matplotlib
scikit-image
keras==2.0.8
scikit-build
cmake
opencv-python==4.2.0.32
h5py
imgaug
pycocotools
imageio==2.6.1
IPython[all]
Now run the demo file!
Hi @jeonga0303 could you please help me with the docker file it would be really helpful ty =D
If you run it, you can check the jupyter notebook URL in the docker log.
folder
dockerfile [tensorflow1.3.0 - For tf2 , there are a lot of code changes, so I used tf1.]
FROM tensorflow/tensorflow:1.3.0-py3 USER root RUN apt-get update && apt-get install -y && apt-get install python3 python3-pip -y && apt-get -y install libgl1 ADD ./Mask_RCNN /Mask_RCNN WORKDIR /Mask_RCNN RUN python3 -m pip install --upgrade pip RUN pip install --upgrade setuptools RUN pip3 install -r requirements.txt RUN python3 setup.py install RUN pip3 install jupyter ENTRYPOINT jupyter notebook --allow-root --ip='0.0.0.0' --port=8887 --no-browser
docker container (Connect and install)
- pip uninstall numpy, keras
- pip install numpy==1.17.0
- pip install keras==2.0.8
- pip install pycocotools
docker-compose
version: '3.7' services: mask_rcnn_tf1: image: mask_rcnn_tf1 container_name: mask_rcnn_tf1 volumes: - ./Mask_RCNN:/Mask_RCNN deploy: resources: reservations: devices: - capabilities: [gpu] environment: - GRANT_SUDO=yes ipc: host tty: true ports: - "8887:8887"
requirements.txt
numpy==1.16.4 scipy<=0.19.0 Pillow cython matplotlib scikit-image keras==2.0.8 scikit-build cmake opencv-python==4.2.0.32 h5py imgaug pycocotools imageio==2.6.1 IPython[all]
Now run the demo file!
and if you want to GPU version. pip install tensorflow-gpu==1.15.0 pip install keras==2.2.5
Hello @jeonga0303, can you please share with me the docker file
Click “view it on github”
I added an additional comment last time, so check it out.
2023년 5월 19일 (금) 오후 8:57, parasmech @.***>님이 작성:
Hello @jeonga0303 https://github.com/jeonga0303, can you please share with me the docker file
— Reply to this email directly, view it on GitHub https://github.com/matterport/Mask_RCNN/issues/1100#issuecomment-1554463716, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMPW5SBJCWUQVLLZJKS5SFLXG5N3HANCNFSM4GBOFU6Q . You are receiving this because you were mentioned.Message ID: @.***>
Click url
https://github.com/matterport/Mask_RCNN/issues/1100#issuecomment-1554463716
2023년 5월 23일 (화) 오후 3:26, parasmech @.***>님이 작성:
Hello @jeonga0303 https://github.com/jeonga0303 , sorry I could not find the docker file. can you please help
— Reply to this email directly, view it on GitHub https://github.com/matterport/Mask_RCNN/issues/1100#issuecomment-1558610071, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMPW5SHWWNBPLGIQKMU2GYTXHRKB5ANCNFSM4GBOFU6Q . You are receiving this because you were mentioned.Message ID: @.***>
which url you are talking about? This one
Sorry i can not find any . please send again
This one
https://github.com/matterport/Mask_RCNN/issues/1100#issuecomment-1297797554
😰
2023년 5월 23일 (화) 오후 6:19, parasmech @.***>님이 작성:
Hello @jeonga0303 https://github.com/jeonga0303
which url you are talking about?
Sorry i can not find any . please send again
— Reply to this email directly, view it on GitHub https://github.com/matterport/Mask_RCNN/issues/1100#issuecomment-1558886860, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMPW5SFCHCEBSSHEDMPYYQ3XHR6KRANCNFSM4GBOFU6Q . You are receiving this because you were mentioned.Message ID: @.***>
Hello, I have encountered a problem installing your program, as follows: C:\Users\Administrator>python F:\Mask_RCNN-master\setup.py install WARNING:root:Fail load requirements file, so using default ones. running install running bdist_egg running egg_info writing mask_rcnn.egg-info\PKG-INFO writing dependency_links to mask_rcnn.egg-info\dependency_links.txt writing top-level names to mask_rcnn.egg-info\top_level.txt error: package directory 'mrcnn' does not exist