Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

png,gif文件不能检测,该怎修改代码? #9

Open
g37502 opened this issue Apr 9, 2021 · 1 comment
Open

png,gif文件不能检测,该怎修改代码? #9

g37502 opened this issue Apr 9, 2021 · 1 comment

Comments

@g37502
Copy link

g37502 commented Apr 9, 2021

File "nsfw_predict.py", line 42, in predict
feed_dict={inputs: [image_data] * _BATCH_SIZE})
File "\nsfw-master\venv\lib\site-packages\tensorflow\python\client\session.py", line 950, in run
run_metadata_ptr)
File "\nsfw-master\venv\lib\site-packages\tensorflow\python\client\session.py", line 1149, in _run
str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (128, 64, 64) for Tensor 'input_tensor:0', which has shape '(128, 64, 64, 3)'

@tkp30
Copy link

tkp30 commented Feb 19, 2023

在前头加个PIL转换格式或者改改读shape的地方舍弃alpha应该就好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants