Code Monkey home page Code Monkey logo

Comments (10)

arimousa avatar arimousa commented on July 21, 2024

Hello, as you correctly mentioned 10 is the number of the denoising steps. In the code it can be calculated based on "test_trajectoy_steps" and "skip" in the config file. Where "test_trajectoy_steps: 250" means the starting point (T' = 250) and "skip" means the denoising step size we take at each denoising iteration. Mathematically n= test_trajectoy_steps / skip.

from ddad.

xgzng avatar xgzng commented on July 21, 2024

Thank you for your answer.I'll take a closer look at the code.

from ddad.

arimousa avatar arimousa commented on July 21, 2024

We utilize the DDIM sampler which allows for the generation of samples without the need to take all 1000 steps. In our model, during inference, the initial noisy step is 250 (referred as test_trajectoy_steps in the config file) which is a more suitable noise-to-signal ratio.

Note that during training, all 1000 steps (referred as trajectory_steps) are executed.

from ddad.

xgzng avatar xgzng commented on July 21, 2024

Hello, I visualized the reconstructed image in the reconstruction part of your code, but I found that the reconstructed image did not have much repair, and there was still a big anomaly. I did the above operation in the bottle dataset. Could you give me a solution?

from ddad.

arimousa avatar arimousa commented on July 21, 2024

Decreasing the Value of w would result in better reconstruction of the anomalous part.

from ddad.

xgzng avatar xgzng commented on July 21, 2024

OK, thank you for your answer, it does have a very good effect, but it does not seem to achieve the most perfect repair effect. It still feels flawed to the naked eye, but it is enough for anomaly detection, perhaps because the abnormal part is too serious to achieve an almost perfect repair effect. I only made observations on the bottle dataset.

from ddad.

arimousa avatar arimousa commented on July 21, 2024

Great. If your are using DDAD-S just scaling the model to higher number of parameters will help. However, though we aimed for a cohesive visual reconstruction, it is worth to note that at the end the anomaly score is calculated based on the deviation of the reconstruction from the input image. It means that only keeping then normal pattern of the input image, while having deviation in anomalous part will result in anomaly detection. The conditioning mechanism essentially aims for keeping the normal behavior of the image.
Hope this explanation helps to map out the correlation between reconstruction and anomaly detection.

from ddad.

xgzng avatar xgzng commented on July 21, 2024

Hello, I would like to ask, will DDAD have a significant improvement over DDAD-S in the effect of reconstruction?

from ddad.

arimousa avatar arimousa commented on July 21, 2024

Hi, DDAD can reconstruct details with greater precision, resulting in a better anomaly score.

from ddad.

xgzng avatar xgzng commented on July 21, 2024

OK, thank you very much.

from ddad.

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.