Git Product home page Git Product logo

mixup_for_uda's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mixup_for_uda's Issues

Can not find the code about eq.(21)

Hi, thanks for sharing the code.
I have gone through the code in Mixup_for_UDA/DM-ADA/trainer_mixed.py, but I can not find the related code about the loss described in the eq. (21).
Can you explain which line of code is related to eq. (21)?

mixup ratio clipping?

Nice work! Could you please explain the mixup ratio clipping operation used in the code? Why do you clip it to [0.,0.2] and [0.8,1.0]? Is there any heuristics in choosing the alpha or mixup ratio?

Usable for own Dataset?

Hello and thank you ver much for sharing this code with us. I am working on a wear detection of parts of different geometries and materials ( I have made 22000 labeled photos). For this I have already written a net which has a high accuracy when all different types (geometry and material) are known, but as soon as I test on a dataset which has a minimal changed geometry or material, the performance jumps from 90+ to 20%. Do you think your code could close the gap?
Furthermore, I have read that the code is only partially available (pseudo) and therefore a simple implementation cannot be done. I am also relatively new to programming, so I am looking for an example to follow. If applicable, do you have a reference that could make this easy for me?

Thanks for your Help

Reproduce experimental results

Hi,

Thank you for sharing the code. Interesting work!

I tried to reproduce the results for svhn -> mnist but the result obtained is lowered than source only. Could you please provide the data processing part for these two datasets? Currently I replaced the dataloaders by reading in the .mat files in original datasets. Not sure if this contributes to the performance issue.

error

Hi, thanks for sharing the code.
However, I'm getting an error

Traceback (most recent call last):
  File "main.py", line 139, in <module>
    main()
  File "main.py", line 131, in main
    DM_ADA_trainer.train()
  File "/home/usr/code/Test/Mixup/trainer_mixed.py", line 290, in train
    errF.backward()
  File "/home/usr/.conda/envs/emad/lib/python3.7/site-packages/torch/tensor.py", line 185, in backward
    torch.autograd.backward(self, gradient, retain_graph, create_graph)
  File "/home/usr/.conda/envs/emad/lib/python3.7/site-packages/torch/autograd/__init__.py", line 127, in backward
    allow_unreachable=True)  # allow_unreachable flag
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [16, 1, 1, 4]], which is output 0 of UnsqueezeBackward0, is at version 2; expected version 1 instead. Hint: the backtrace further above shows the operation that failed to compute its gradient. The variable in question was changed in there or anywhere later. Good luck!

can you suggest the reason of this error?

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.