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'
Steps to reproduce:
srun --partition=gaia-lg --account=gaia-lg --qos=normal --gpus=4 --mem=30g --pty bash
For me, this results in the following: