You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INFO:absl:Setting up model...
INFO:absl:Loading parameters...
INFO:absl:Model is ready
INFO:absl:Creating image to description mapping...
INFO:absl:Captioning images from /input/data...
Traceback (most recent call last):
File "/root/./caption_vg.py", line 131, in <module>
main()
File "/root/./caption_vg.py", line 107, in main
primary_output = model.vqa(image, CAPTIONING_PROMPT)
File "/root/uio/runner.py", line 313, in vqa
out = self.run([image], [question.lower()], output_text_len=32,
File "/root/uio/runner.py", line 176, in run
image, image_mask = utils.preprocess_image(
File "/root/uio/utils.py", line 291, in preprocess_image
input_image = normalize_image(input_image)
File "/root/uio/utils.py", line 324, in normalize_image
image -= BIAS.reshape((1, 1, 3))
numpy.core._exceptions._UFuncOutputCastingError: Cannot cast ufunc 'subtract' output from dtype('float64') to dtype('uint8') with casting rule 'same_kind'
The text was updated successfully, but these errors were encountered:
elizlee
changed the title
VG captioning on saga:
VG captioning on saga: UFuncOutputCastingError
Mar 23, 2023
Steps to reproduce:
srun --partition=gaia-lg --account=gaia-lg --qos=normal --gpus=4 --mem=30g --pty bash
docker run -it --rm --gpus=4 -e VG_DATA_DIR=/input/data -v /nas/gaia02/data/paper2023/vg/visual_genome_python_driver:/input -v $OUTPUT_DIR:/output -e OUTPUT_FILE=/output/vg_all_output.tsv unified-io-inference:vg_caption_all_only
For me, this results in the following:
The text was updated successfully, but these errors were encountered: