New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Expected binary or unicode string, got None` #5276
Comments
Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks. |
Thanks. I solved this problem |
I am also facing the same issue. Could you help me out to resolve this. |
Please check your command carefully. In my case, i wrote "pipelie" where alphabet "n" was missing. After correcting this, my problem was solved. |
Thanks for the quick reply.
However with model_main.py it has become really difficult to train a model
on custom dataset. I am not getting any detection after evaluation. My
model is not getting trained at all. I don't know where I m making
mistakes. Just curious whether you got success..? If yes then plz guide me
too.
…On Thursday, September 13, 2018, Hammad Ullah ***@***.***> wrote:
Please check your command carefully. In my case, i wrote "pipelie" where
alphabet "n" was missing. After correcting this, my problem was solved.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5276 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANCgkwqCtVUokE_AcPMdPyBwYXXxTsOCks5uahlagaJpZM4WhHvR>
.
--
With Best Wishes
Sumeet Saurav
|
My model is still on training. I’m using CPU training. |
Okay...how about your losses...? How you set the value of num_train_steps
and num_eval_steps?
My evaluation is showing average precision and recall as -1.00 which is
wrong. Don't know where I am making mistakes. How you passed the
arguments..?
…On Friday, September 14, 2018, Hammad Ullah ***@***.***> wrote:
My model is still on training. I’m using CPU training.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5276 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANCgk9GZV8Ue800PXkC6k93mvwW4DJVCks5uaseXgaJpZM4WhHvR>
.
--
With Best Wishes
Sumeet Saurav
|
I had the same problem with the the following command I changed it to the following I just removed the '' between the arguments and on the same line not multiline. The first command gave that error "TypeError: Expected binary or unicode string, got None" |
The same error |
@hammadullah125 HI! I want to know how did you deploy the model_main.py? I've set the model_dir,pipeline_config_path and the num_train_steps. and still get the error TypeError: Expected binary or unicode string, got None. here is my set of the code(in object_detection/model_main.py): and here is my error: |
Hey, I am getting the same error. Did you give path to any directory in that command ? |
Hey! im getting the same error. Any solution??? |
@stevelb's solution worked for me. I noticed that model_main.py loads up parameters on line 64 and following for an estimator. On changing the order of the parameters, the gripe "TypeError: Expected binary or unicode string, got None" is always on the last parameter. Look for "sys.exit(main(argv))" in the traceback. |
Hi, Any solution for this error? |
@SteveIb please can you explain more of your solution, am also facing the same problem Traceback (most recent call last): any solution |
@ALL I train the ssd_inception_v2_coco_2018_01_28, faster_rcnn_inception_v2_coco_2018_01_28, ssd_mobilenet_v2_coco_2018_03_29. However when I try to train on both the faster_rcnn_nas_coco_2018_01_28 and faster_rcnn_resnet50_coco_2018_01_28 I get the following error python model_main.py -- logtostderr -- train_dir=training/ --pipeline_config_path=training/faster_rcnn_nas_coco.config aceback (most recent call last): please any solution |
I fixed the error by giving the absolute directory path where ever it required. python model_main.py -- logtostderr -- train_dir=give the full path/training/ --pipeline_config_path=give the full path/training/faster_rcnn_nas_coco.config |
@drecryptos thanks for your response. I restarted my computed and it works. |
you can try something like this |
Got same issue with tf.lite.TocoConverter |
I have just encountered this error myself. This is likely nothing more than a syntax issue - check, check and doublecheck your commands and paths |
It's absolutely just a typo or syntax issue in your command. My mistake was that I wrote |
I:BERT_VEC:[graph:opt: 46]:model config: C:/Users/11360/PycharmProjects/test_albert/albert_base/albert_config.json
|
What to do? |
hello so here I try to train a model of mask r cnn on my own give with the command but i get the following error
could someone guided me please |
Got this error when converting a model to tf lite, this is the first result when googling the error.
I was passing in the model instead of the directory in which the model is saved. Hope this helps someone else |
Whenever I want to train the model with "model_main.py"
python3 model_main.py --logtostderr --train_dir=training/ --pipelie_config_path=training/ssd_mobilenet_v1_pets.config
it's throwing this error.
`/Users/screamer/models/research/object_detection/utils/visualization_utils.py:25: UserWarning:
This call to matplotlib.use() has no effect because the backend has already
been chosen; matplotlib.use() must be called before pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.
The backend was originally set to 'MacOSX' by the following code:
File "model_main.py", line 26, in
from object_detection import model_lib
File "/Users/screamer/models/research/object_detection/model_lib.py", line 26, in
from object_detection import eval_util
File "/Users/screamer/models/research/object_detection/eval_util.py", line 28, in
from object_detection.metrics import coco_evaluation
File "/Users/screamer/models/research/object_detection/metrics/coco_evaluation.py", line 20, in
from object_detection.metrics import coco_tools
File "/Users/screamer/models/research/object_detection/metrics/coco_tools.py", line 47, in
from pycocotools import coco
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pycocotools/coco.py", line 49, in
import matplotlib.pyplot as plt
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/pyplot.py", line 71, in
from matplotlib.backends import pylab_setup
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/backends/init.py", line 16, in
line for line in traceback.format_stack()
import matplotlib; matplotlib.use('Agg') # pylint: disable=multiple-statements
Traceback (most recent call last):
File "model_main.py", line 101, in
tf.app.run()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 125, in run
_sys.exit(main(argv))
File "model_main.py", line 62, in main
eval_steps=FLAGS.num_eval_steps)
File "/Users/screamer/models/research/object_detection/model_lib.py", line 497, in create_estimator_and_inputs
configs = get_configs_from_pipeline_file(pipeline_config_path)
File "/Users/screamer/models/research/object_detection/utils/config_util.py", line 93, in get_configs_from_pipeline_file
proto_str = f.read()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 125, in read
self._preread_check()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 85, in _preread_check
compat.as_bytes(self.__name), 1024 * 512, status)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/util/compat.py", line 61, in as_bytes
(bytes_or_text,))
TypeError: Expected binary or unicode string, got None`
Any guesses what is wrong?
PS: I have also tried with the absolute paths but error remains the same.
The text was updated successfully, but these errors were encountered: