Pretrained-Show-and-Tell-model icon indicating copy to clipboard operation
Pretrained-Show-and-Tell-model copied to clipboard

Unable to run bazel-bin coz of errors

Open datha88 opened this issue 6 years ago • 4 comments

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 from im2txt import configuration ImportError: cannot import name 'configuration'

Could u please provide suggestion on how to solve this error? Thanks

datha88 avatar Dec 05 '18 11:12 datha88

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.

Akashtyagi avatar Mar 30 '20 11:03 Akashtyagi

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

tanjafranziskapfaffel avatar Apr 15 '20 12:04 tanjafranziskapfaffel

I have rebuild the code removing bazel dependency.

Try running the model using this repo: https://github.com/Akashtyagi08/Pretrained-im2txt-single_instance

Akashtyagi avatar Apr 15 '20 12:04 Akashtyagi

Thank you very much, it works now!

tanjafranziskapfaffel avatar Apr 16 '20 06:04 tanjafranziskapfaffel