Coder Social home page Coder Social logo

关于模型保存的问题 about mi-aod HOT 3 CLOSED

yuantn avatar yuantn commented on August 18, 2024
关于模型保存的问题

from mi-aod.

Comments (3)

mengyuan97 avatar mengyuan97 commented on August 18, 2024

作者您好!
在复现您的代码时,我发现之后最后3个epoch的model被保存,想请教您一下,如何能保存每个cycle的训练模型呢?

此外还想请教一下,您config中test其实使用的是trainval的数据,用于计算不确定度。那么在使用tools/test.py进行测试的时候,是否就需要更改test为真正的测试集才行?

from mi-aod.

yuantn avatar yuantn commented on August 18, 2024

作者您好!
在复现您的代码时,我发现之后最后3个epoch的model被保存,想请教您一下,如何能保存每个cycle的训练模型呢?

你好!

目前这套代码是可以保存每个 cycle 的训练模型的,其中 这里 提供了一个示例输出文件夹的网盘链接,你可以看一下。

如果你是想保存每个 epoch 的模型,你可以在 tools/train.py 中每个 epoch 训练结束时使用 torch.save() 函数进行保存。


Hello there!

At present, this repository can save the trained model for each cycle. Here is a link to the cloud drive of an example output folder, you can have a look .

If you want to save the model for each epoch, you can use the torch.save() function to save it at the end of each training epoch in tools/train.py.

from mi-aod.

yuantn avatar yuantn commented on August 18, 2024

作者您好!
在复现您的代码时,我发现之后最后3个epoch的model被保存,想请教您一下,如何能保存每个cycle的训练模型呢?

此外还想请教一下,您config中test其实使用的是trainval的数据,用于计算不确定度。那么在使用tools/test.py进行测试的时候,是否就需要更改test为真正的测试集才行?

不是的,在这个代码中,我们测试时使用的是 test 集,但在 config 中使用的是 data.val 的部分。你可以看一下 这里


No, in this repository, we use the test set for test, but we use data.val in config. You can have a look here.

from mi-aod.

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.