Pretrained-Show-and-Tell-model
Pretrained-Show-and-Tell-model copied to clipboard
Unable to run bazel-bin coz of errors
Hi, I am getting some errors while running bazel-bin command: bazel-bin\im2txt\run_inference --checkpoint_path=%CHECKPOINT_PATH% --vocab_file=%VOCAB_FILE% --input_file=%IMAGE_FILE%
Error:
Traceback (most recent call last):
File "\?\C:\Users\VISHNU~1\AppData\Local\Temp\Bazel.runfiles_d8v5_2mn\runfiles\im2txt\im2txt\run_inference.py", line 27, in
Could u please provide suggestion on how to solve this error? Thanks
Your bazel build is not compiled successfully. "Configuration.py" is one of the dependency and I think the program is not able to locate it.
try building it again.
I have the same problem here, using bazel in the Anaconda Prompt on Windows:
bazel build -c opt im2txt/run_inference check
bazel-bin\im2txt\run_inference --checkpoint_path=%CHECKPOINT_PATH% --vocab_file=%VOCAB_FILE% --input_file=%IMAGE_FILE% gives an error: ImportError: cannot import name 'configuration' from 'im2txt'
Building again does not solve the problem
I have rebuild the code removing bazel dependency.
Try running the model using this repo: https://github.com/Akashtyagi08/Pretrained-im2txt-single_instance
Thank you very much, it works now!