Coder Social home page Coder Social logo

作者大大您好!在看完您的 resnet 训练代码后有几个地方不太明白,可能我的问题很小白,还请别介意,感谢指教 about deep-learning-for-image-processing HOT 3 CLOSED

wzmiaomiao avatar wzmiaomiao commented on July 20, 2024
作者大大您好!在看完您的 resnet 训练代码后有几个地方不太明白,可能我的问题很小白,还请别介意,感谢指教

from deep-learning-for-image-processing.

Comments (3)

pacyu avatar pacyu commented on July 20, 2024

然后我自己在使用中就把这段代码改为了:
model = feature
但跑出来结果异常值,明显不对。。。

from deep-learning-for-image-processing.

WZMIAOMIAO avatar WZMIAOMIAO commented on July 20, 2024

1)我实例化模型时使用的是feature = resnet50(num_classes=5, include_top=False),这里的include_top=False说明实例化模型时去掉了后面的全连接层,建议好好看下model文件的代码。
2)使用灰度图像时需要改个参数,在flow_from_directory函数中有color_model参数,默认是RGB所以无论你读入的什么类型图片都给你转成RGB三通道,如果你想使用灰度图片将color_mode='grayscale'就可以了。
3)你的图像尺寸太小了,正向传播过程中长宽会缩小到原来的32倍,所以最小输入图像尺寸为32x32

from deep-learning-for-image-processing.

pacyu avatar pacyu commented on July 20, 2024

好的 我再试一下 感谢您的回复!

from deep-learning-for-image-processing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.