-
Notifications
You must be signed in to change notification settings - Fork 45.7k
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
InvalidArgumentError (see above for traceback): TypeError: can't pickle dict_values objects #4856
Comments
You could change the call to eval_metric_ops = eval_util.get_eval_metric_ops_for_evaluators(
eval_metrics,
category_index.values(),
eval_dict,
include_metrics_per_category=eval_config.include_metrics_per_category) to eval_metric_ops = eval_util.get_eval_metric_ops_for_evaluators(
eval_metrics,
list(category_index.values()),
eval_dict,
include_metrics_per_category=eval_config.include_metrics_per_category) duplicate: #4780 |
Thank you, it work. |
@programowalny |
I still had the this warning, but i read, You can ignore them |
@programowalny But this warning make my model can't get evaluate result? Do you have any idea to sovle? |
What do you mean by model can't get evaluate result? After learning proces you get some errors or your loss function is too high. I still have problem with loss function, after first 5 hundrets step is decreases, but after it grows. And my final model can't recognize any object. Do think this warnings can be a cause of it? Now i changing my enviroment, including OS. Tomorrow i let's you known abaut results |
I use model_main.py to train model fit my dataset, and I set every 5min save a ckpt and trigger a evaluation on the model, then I can choose a best model. But the screen keep printing this warning , |
Do you use legacy >train.py to train model. The evalution result like this: |
Ok i tried model_main and train. And i must say i always get the output . When i use model_main i get average precision, when a train.py a loss function. If you did't get a average precision it is not cause of warnings like this: |
I have the same problem. And it was solved by setting |
@Victorsoukhov |
Closing as this is resolved |
System information
What is the top-level directory of the model you are using: object_detection
Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Window 10
TensorFlow installed from (source or binary): conda installation
TensorFlow version (use command below): 1.8
Bazel version (if compiling from source): None
CUDA/cuDNN version: 9.0
GPU model and memory: GeForce GTX 1050TI (Laptop)
Exact command to reproduce: None
Describe the problem:
Fallow to instruction i want to train my images in 25 categories with e Faster-RCNN-Inception-V2-COCO after installation and configuration i typed
python model_main.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config
in my conda virtual enviroment, after a couple of minutes i get error presented above, i don't know, how to manage with this problem. In addition before a error i get warnning
But i don;t know if it is important.
The text was updated successfully, but these errors were encountered: