Skip to content

Issues with the published code (and fixes) #9

Description

@neosr-project

Hi, thanks for your research.
I took the liberty to fix some issues I've found in the code. I published it here.
In particular, on Block the mlp_ratio is being passed as float. Usually the MLP uses hidden_dim = int(dim * mlp_ratio) but in the official CFSR released code it uses those variables directly, causing the dtype issue. Another issue I've found was using FloatTensor for sobel and laplacian tensors. Instead, the correct solution would be to use .clone() instead (no need, just pass it directly). I've also added a bool for mean normalization, as the default uses values from ImageNet, which tends to cause issues on other datasets.
Again, thank you for releasing the code for this research, the paper is very interesting 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions