深度学习代码以分类图像是否为苹果(2分类)。 (Python)
我是一个初学者,开始学习深度学习。
我想编写可以分类图像是否为苹果的深度学习代码。
- 我有苹果,西红柿,西瓜,橘子等水果的图像。
- 我只想区分它是否是苹果。 (2分类)
- 我想得出结论,西红柿,西瓜,橙子和其他图像是“不是苹果”。
有类似的例子吗? 谢谢。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有很多这样的例子,您正在做的事情通常称为二进制分类(因为是否是班级)。
在这里,您可以阅读非常广泛的KERAS实现。
https:///blog.keras。 io/building-power-full-image-classification-models-using-iusife-every-little-little-data.html
如果您希望有一个最小的工作示例,则可以检查一下,这似乎很简单:
There are many examples of such, what you are doing is most often called binary classification (as it either is of the class or not).
Here you can read of a Keras implementation which is quite extensive.
https://blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html
If you rather have a minimal working example you could check this out, which seems quite straight forward:
https://medium.com/techiepedia/binary-image-classifier-cnn-using-tensorflow-a3f5d6746697