Giter VIP home page Giter VIP logo

Comments (7)

wusaifei avatar wusaifei commented on July 18, 2024

@kai1991 那个函数我们也没有用过 只是在val_acc中看准确率。

from garbage_classify.

wusaifei avatar wusaifei commented on July 18, 2024

from garbage_classify.

wusaifei avatar wusaifei commented on July 18, 2024

@kai1991 建议把归一化都删去试试,train里面和val和eval的归一化都去掉试试。归一化的影响不是太大,因为网络每层卷积之后都会有一个BN层,会帮我把batch进行归一化呢。希望能帮助到你

from garbage_classify.

Kai2020-hello avatar Kai2020-hello commented on July 18, 2024

谢谢回答。。。

有个疑问:
你的数据集从标签是从0开始的,但是onehot时 0 会映射成第9个位置。

labels = [0]
labels = np_utils.to_categorical(labels, 9)
label : [[0. 0. 0. 0. 0. 0. 0. 0. 1.]]

好像我的问题出在了这里

from garbage_classify.

wusaifei avatar wusaifei commented on July 18, 2024

@kai1991 这个读取方式是由官方提供的,我对代码进行了平滑和数据集的划分,因为val是不参与数据增强的,就修改了这两部分 ,其余部分我并没有动,比如你所说的那一部分。

from garbage_classify.

Kai2020-hello avatar Kai2020-hello commented on July 18, 2024

读取方式没有问题,感觉数据集的标签应该从1开始。

from garbage_classify.

wusaifei avatar wusaifei commented on July 18, 2024

@kai1991 你可以按照你自己的来 官网的test预测方式可能和想用的方式不太一样

from garbage_classify.

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.