GithubHelp home page GithubHelp logo

Comments (3)

changwxx avatar changwxx commented on June 25, 2024

Can you give a more detailed description about the problem you encountered? (e.g. which part of the code would output like that? Which transfer task did you set?)

from uniot-for-unida.

JunkunPeng17 avatar JunkunPeng17 commented on June 25, 2024

I met the same situation as xzm2002 when I did the transfer task on Product2Art. I also did the other transfer tasks, and they worked well.
cc4ac167ea1169571027d79dcfb685c

from uniot-for-unida.

changwxx avatar changwxx commented on June 25, 2024

I would like to thank @JunkunPeng17 for providing details for this bug!
I found sometimes the loss_CCD would be NaN for OfficeHome transfer tasks, since CCD did not find any top-confident common target samples and high_conf_label_id is a 0-size tensor.
I have fixed this bug in main.py

UniOT-for-UniDA/main.py

Lines 170 to 176 in 9ba3bad

# fix the bug raised in https://github.com/changwxx/UniOT-for-UniDA/issues/1
# Due to mini-batch sampling, current mini-batch samples might be all target-private.
# (especially when target-private samples dominate target domain, e.g. OfficeHome)
if high_conf_label_id.size(0) > 0:
loss_CCD = criterion(after_lincls_t[high_conf_label_id,:], high_conf_label[high_conf_label_id])
else:
loss_CCD = 0

However, this bug would not lead to performance deterioration, and hence the results reported in the paper are still reliable.

from uniot-for-unida.

Related Issues (3)

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.