ValueError: Argument must be a dense tensor - Python and TensorFlow

前端 未结 1 1716
野性不改
野性不改 2021-01-18 13:36

I\'m extracting some portions of my code that might be relevant to the issue I\'m having:

from PIL import Image
import tensorflow as tf

data = Image.open(\'         


        
相关标签:
1条回答
  • 2021-01-18 14:07

    Just posting the comment since it seems to have resolved the issue:

    Try converting it to a numpy array:

    numpy.asarray(Image.open('1-enhanced.png').convert('L'))
    
    0 讨论(0)
提交回复
热议问题