Skip to content

The dimensions of the reconstrcted image of MNIST should be permuted before caculating losses.  #4

Description

@Xinyi-1022

DIVA/paper_experiments/rotated_mnist/supervised/model_diva.py
The output of px is x_recon with the shape of [100, 256, 28, 28] (Line 39). It should be permuted to [100, 28, 28, 256], because x_recon = x_recon.view(-1, 256) was applied before caculating the reconstruction loss. (Line 371)
After the correction, the noise of the reconstructions is less.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions