Reputation: 595
i am trying out capabilities of apache tika and got the following error after setting up and running tika and tensor flow recognition server.
I installed using docker and followed these instructions from the documentation
a. Using docker (Recommended)
and got following error
Traceback (most recent call last):
File "/usr/bin/inceptionapi", line 237, in <module>
app = Classifier(__name__)
File "/usr/bin/inceptionapi", line 194, in __init__
self.names = create_readable_names_for_imagenet_labels()
File "/usr/bin/inceptionapi", line 138, in create_readable_names_for_imagenet_labels
assert num_synsets_in_ilsvrc == 1000
AssertionError
It is breaking with the same error for tika vision video too but image captions API is working fine, can someone please help me in solving this issue
Upvotes: 0
Views: 220
Reputation: 266
The Assertion error is because it cannot download some of the imagenet data due to the Tensorflow project moving where they reside, and therefore the data isn't there to be loaded at runtime. Both InceptionVideoRestDockerfile and InceptionRestDockerfile are impacted.
I've created a Fork with the required changes and submitted a pull request here to the team at USC. Using the updated URLs allows these Docker images to load the model. This in turn allows them to be used in Apache Tika.
Upvotes: 1