Closed sebastianlutter closed 2 years ago
While building a minimal example I found that 0.5.0-SNAPSHOT works well with vit_b32_fe model in my minimal example, see
The reason for the issue was a classpath issue in my gradle multiproject. A subproject (lets call it foo) used the 0.5.0-SNAPSHOT jar from snapshot repository, and another subproject used the foo project as dependency, but missed the 0.5.0-SNAPSHOT maven repository declaration. Since I also had a Tensorflow 1.15 (old java project included in tensorflow repo) in another subproject I ended up with the exception above.
Long story short, 0.5.0-SNAPSHOT works well, my project setup was messed up. Closing this issue now.
System information
java -version
):Describe the current behavior Downloaded model from https://tfhub.dev/sayakpaul/vit_b32_fe/1, unpack, try to load it with SavedModelBundle. This worked well in version 0.4.1 (TF 2.7.1) but fails with 0.5.0-SNAPSHOT with the following error:
Describe the expected behavior
Model should be loaded like it does with 0.4.1:
Code to reproduce the issue Provide a reproducible test case that is the bare minimum necessary to generate the problem.
Other info / logs Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.