Code Monkey home page Code Monkey logo

Comments (13)

hw2hwei avatar hw2hwei commented on August 23, 2024

您好,怎么训练两个呀?s1和s2

Usage里面有介绍怎么训练。
以AID,resnet18为例,先运行python main.py --dataset AID --arch resnet18 --mode s1,再运行python main.py --dataset AID --arch resnet18 --mode s2

from skal.

201811510210hjx avatar 201811510210hjx commented on August 23, 2024

连续执行两次main文件吗?

from skal.

hw2hwei avatar hw2hwei commented on August 23, 2024

连续执行两次main文件吗?

是的,等s1训练完后再运行s2

from skal.

201811510210hjx avatar 201811510210hjx commented on August 23, 2024

您好,我执行了s1之后,为什么s1的train准确率达到了100%呀?

from skal.

201811510210hjx avatar 201811510210hjx commented on August 23, 2024

您好,为什么test文件当执行s1时就会报错呀?
显示:
heat_map = heat_map[0].cpu().detach().numpy()
TypeError: 'NoneType' object is not subscriptable

from skal.

hw2hwei avatar hw2hwei commented on August 23, 2024

您好,为什么test文件当执行s1时就会报错呀? 显示: heat_map = heat_map[0].cpu().detach().numpy() TypeError: 'NoneType' object is not subscriptable

你需要一步步地debug一下,看看是哪一步的数据生成错了、或者没有生成/读取到

from skal.

201811510210hjx avatar 201811510210hjx commented on August 23, 2024

它生成完第一个之后就显示为空了。
1 : ./datasets/UCM/images/agricultural/agricultural48.tif
下一个就为空报错了

from skal.

201811510210hjx avatar 201811510210hjx commented on August 23, 2024

设置为s2时正常运行,设置s1时就报错了

from skal.

201811510210hjx avatar 201811510210hjx commented on August 23, 2024

打扰您了,我还有一个疑问。训练完s1和s2后分别得到了s1和s2的准确度,要自己手动计算两个准确度的平均值么?要怎么发现最终的准确度呢?

from skal.

hw2hwei avatar hw2hwei commented on August 23, 2024

设置为s2时正常运行,设置s1时就报错了

当前代码在设置s2训练时,会把s1的参数覆盖掉,如果你想保留s1的参数并进行测试的话需要修改一下代码

from skal.

201811510210hjx avatar 201811510210hjx commented on August 23, 2024

打扰您了,我还有一个疑问。训练完s1和s2后分别得到了s1和s2的准确度,要自己手动计算两个准确度的平均值么?要怎么发现最终的准确度呢?

from skal.

hw2hwei avatar hw2hwei commented on August 23, 2024

打扰您了,我还有一个疑问。训练完s1和s2后分别得到了s1和s2的准确度,要自己手动计算两个准确度的平均值么?要怎么发现最终的准确度呢?

源代码里面有,当mode==s2的时候进行求s1、s2的平均值。

from skal.

Hpu-wcx avatar Hpu-wcx commented on August 23, 2024

你好,请教一下,为什么先训练模型S1,在训练模型S2,模型S1对S2有什么影响吗?代码里看不出有S1对S2有什么影响,但是实际运行效果却是很好

from skal.

Related Issues (8)

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.