深度学习代码以分类图像是否为苹果(2分类)。 (Python)

发布于 2025-02-05 11:30:54 字数 184 浏览 3 评论 0 原文

我是一个初学者,开始学习深度学习。

我想编写可以分类图像是否为苹果的深度学习代码。

  1. 我有苹果,西红柿,西瓜,橘子等水果的图像。
  2. 我只想区分它是否是苹果。 (2分类)
  3. 我想得出结论,西红柿,西瓜,橙子和其他图像是“不是苹果”。

有类似的例子吗? 谢谢。

I am a beginner who started studying deep learning.

I want to write deep learning code that can classify whether an image is an apple or not.

  1. I have images of fruits such as apples, tomatoes, watermelons, oranges, etc.
  2. I want to distinguish only whether it is an apple or not. (2 classification)
  3. I want to conclude that tomatoes, watermelons, oranges and other images are 'not apples'.

Is there a similar example?
thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼眸 2025-02-12 11:30:54

有很多这样的例子,您正在做的事情通常称为二进制分类(因为是否是班级)。

在这里,您可以阅读非常广泛的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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文