Git Product home page Git Product logo

Comments (3)

lidq92 avatar lidq92 commented on July 18, 2024

@ucas010 这个就是预训练图像分类模型里做的预处理操作。
我直接用的预训练好的模型,所以follow这个预训练好的模型需要的预处理操作。
当然在i/vqa问题中,不做预处理操作也许更合适,但是这样需要自己预训练一个不需要预处理操作的图像分类模型。

from vsfa.

ucas010 avatar ucas010 commented on July 18, 2024

@lidq92
多谢。
我对torch不太熟,但我发现tf训练的模型似乎都没有这个操作啊

from vsfa.

lidq92 avatar lidq92 commented on July 18, 2024

@ucas010
早期的Caffe有减均值图像的做法,PyTorch的torchvision里提供的图像分类模型是有我代码里那个预处理操作的,可以看torchvision/models.html#classification
至于TensorFlow,你可以自己再好好看看相关资料,以实际训练的时候的操作为准。比如我粗略搜了一下,你可以看看这两个文件preprocessing.pyimagenet_preprocessing.py

我不使用TensorFlow,所以关于TensorFlow的具体细节你可以自己再深入看看。

祝好。

from vsfa.

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.