Open AllanZuo opened 6 years ago
Use Ubuntu and Python3.5-3.6
@engineer1109 Thanks. May be that will work. Is there still any chance to fix this issue in win10?
I don't know. The code is made for Linux so-compiler not windows dll-compiler.
I run into the error before and I solved it by setting NAME='coco' instead of NAME='' in config.py.
@ 123liluky
If you don't mind, can you elaborate your answer?
I`m still not getting through it.
@AllanZuo
Did you resolve this issue?
facing same issue somebody please help!
Hello, I am facing the same issue when training on my own dataset, Could someone address this problem please ?
You get this error if you dont use the correct config class when inheriting your config. Using the training Config class from mrcnn.config for example class InferenceConfig(Config):
instead of a coco config class InferenceConfig(coco.CocoConfig):
for example
@jmwill86 is there any solution for it ? Please help!!!
@jmwill86 as @123liluky have mentioned above you have to set NAME='coco' instead of NAME= None in config.py. You may also write a subclass and override the Name variable from there.
I have the same problem. Have you solved this problem?
I had the same problem I solved eliminating the Null and None of my data.
Hi, I guess, I am a bit late but update this code:
from mrcnn.config import Config
class InferenceConfig(Config):
GPU_COUNT = 1
IMAGES_PER_GPU = 1
NAME = 'coco'
config = InferenceConfig()
config.display()
The variable NAME is updated to 'coco'
In my case, I changed " NAME = None " into " NAME = '' " in "Config" class of "config.py", and it worked! The environment is window 10, with tensorflow 2.4.0(same version with tensorflow-gpu) and torch 1.7.1+cu110.
hey did ever have the a keras.engine problem?it is about "layer" or something and can u tell me ur envs
In my case, I changed " NAME = None " into " NAME = '' " in "Config" class of "config.py", and it worked! The environment is window 10, with tensorflow 2.4.0(same version with tensorflow-gpu) and torch 1.7.1+cu110.
I just try the demo;but there is an error when compiling it.I don't know how to fix it.
Below is the detailed informaiton: Traceback (most recent call last): File "D:/Program/mask_rcnn/my_test1.py", line 43, in
File "D:\Program\mask_rcnn\build\lib\mrcnn\model.py", line 1831, in init self.set_log_dir()
File "D:\Program\mask_rcnn\build\lib\mrcnn\model.py", line 2256, in set_log_dir self.config.NAME.lower(), now)) AttributeError: 'NoneType' object has no attribute 'lower'