Git Product home page Git Product logo

Comments (11)

AI-NERC-NUPT avatar AI-NERC-NUPT commented on July 24, 2024 7

@yuzehui1996 When you download the office-31 dataset, the images are at the root webcam/images/. (for webcam dataset).
For running of the above codes, you'd better place the images at the root webcam/. Otherwise, you'd make the following changes in DDC.py:
source_name = "amazon"
target_name = "webcam"
--> source_name = "amazon/images"
target_name = "webcam/images"

from transferlearning.

easezyc avatar easezyc commented on July 24, 2024

Yeah, the max acc is always 100% in task webcam to dslr, and the max acc in the task with most methods such as DDC is also 100%. Hence, here I record the acc of the last epoch.

from transferlearning.

yuzehui1996 avatar yuzehui1996 commented on July 24, 2024

but when I change the src and target, the max acc is always 100%. And during the training , all the epochs show the acc is 100%.Why?

from transferlearning.

easezyc avatar easezyc commented on July 24, 2024

I don't know the reason... Might be the environment? I have run the code in several machines, and all of them are ok.

from transferlearning.

yuzehui1996 avatar yuzehui1996 commented on July 24, 2024

And during the training epochs, the soft loss (classification loss) is always 0. Is there any questions about the calculating the soft loss? I mean the log_softloss function in the DDC.py train(). Thanks a lot!

from transferlearning.

easezyc avatar easezyc commented on July 24, 2024

I have run the code again, and I still don't find any mistakes with it.

from transferlearning.

yuzehui1996 avatar yuzehui1996 commented on July 24, 2024

Thanks!I have run the codes successfully.But I have tried to remove the mmd loss from the final loss, and it get the higher acc than the loss contain mmd loss. I was confused with for quite a long time. Do you have any explanation?

from transferlearning.

easezyc avatar easezyc commented on July 24, 2024

First, you tried to remove the mmd loss from the final loss. This is not same as the ResNet setting in DAN paper, and the detail you could ask Mingsheng Long. Second, I have run as you say. The acc is higher than ResNet in DAN paper, however it is not higher than DAN. I don't konw the reason for your result, too.

from transferlearning.

yuzehui1996 avatar yuzehui1996 commented on July 24, 2024

Thanks a lot! And I am trying to remove 10 classes from the target domain and the num of classes are reduce to 21 classes. The num of the source domain class is 31. And I didn't change any more.With the mmd , I got the acc result is nearly to 0%. I feel quite confused about the result.

from transferlearning.

easezyc avatar easezyc commented on July 24, 2024

I don't know. This is a partial transfer proble, and you could ask the author of Partial Transfer Learning with Selective Adversarial for the detail.

from transferlearning.

yuzehui1996 avatar yuzehui1996 commented on July 24, 2024

Thanks any way!

from transferlearning.

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.