Skip to content
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

train on own dataset encounter some error #16

Open
He-zl8 opened this issue Jul 20, 2020 · 1 comment
Open

train on own dataset encounter some error #16

He-zl8 opened this issue Jul 20, 2020 · 1 comment

Comments

@He-zl8
Copy link

He-zl8 commented Jul 20, 2020

File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/script_ops.py", line 243, in __call__
ret = func(*args)

File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/autograph/impl/api.py", line 309, in wrapper
return func(*args, **kwargs)

File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/data/ops/dataset_ops.py", line 785, in generator_py_func
values = next(generator_state.get_iterator(iterator_id))

File "/content/mydrive/My Drive/ssd-tf2/voc_data.py", line 132, in generate
boxes, labels = self._get_annotation(index, (h, w))

File "/content/mydrive/My Drive/ssd-tf2/voc_data.py", line 105, in _get_annotation
labels.append(self.name_to_idx[name] + 1)

KeyError: 'k'


[[{{node PyFunc}}]]
2020-07-20 13:15:03.262179: W tensorflow/core/kernels/data/generator_dataset_op.cc:103] Error occurred when finalizing GeneratorDataset iterator: Failed precondition: Python interpreter state is not initialized. The process may be terminated.
[[{{node PyFunc}}]]

how to solve this problem.

this is my configuration:
tensorboard 2.2.2
tensorboard-plugin-wit 1.7.0
tensorboardcolab 0.0.22
tensorflow 2.2.0

@LuckyLhy
Copy link

Hi,friend. I meet to the same error, have you solved it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants