MLSAKIIT / MLSAKIIT/ddpm

Errors in the sampling function, boolean errors and etc.

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug good first issue
Dominant language
Jupyter Notebook
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

GitHub Issue: Errors in Sampling Function and Boolean Handling

Summary:
There are errors in the sampling function related to the boolean conditions and other issues, which need to be addressed to ensure proper functionality in the reverse diffusion process.


Problem Description:

The sample function is responsible for generating images by denoising a given noise tensor using the reverse diffusion process. The following issues have been identified:

  1. Boolean Errors:

    • There are potential boolean errors in the code, especially in the indexing and conditional logic during the reverse diffusion process. These may cause unexpected behavior or incorrect inferences.
  2. Sampling Function Logic:

    • The loop that iterates through timesteps in reverse may have some issues regarding its range and control flow. The current code starts from 0 and iterates until T, which may cause off-by-one errors. The loop should properly iterate from T-1 to 0.
  3. Stepsize Misuse:

    • The stepsize parameter is declared but never used. This could lead to confusion or a missed implementation if it’s intended to affect the sampling process.
  4. Possible Torch Error in sample_timestep Function:

    • The function sample_timestep(self, img, t) is called inside the loop, but its behavior and implementation should be reviewed to ensure it’s functioning as intended.

Priority: High
Expected Timeframe: 1 Week
Assigned to: NOT ASSIGNED YET

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the notebook cells that define sample and sample_timestep, then run the sampling path to reproduce the reported behavior. Review the reverse timestep loop, boolean indexing and conditionals, and the declared stepsize. Done means sampling completes without the reported boolean or torch errors and follows the intended T-1-to-0 process.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.