Skip to content

A bug found in code #1

@Yu-fei-Han

Description

@Yu-fei-Han

Thank you for your work!

However, when testing your method on other datasets, I consistently encounter an "index out of bounds" error. To troubleshoot this, I have repeatedly checked for the source of the problem.

Ultimately, I discovered that the issue lies in the function preprocess_data in PISR/systems/pol_neus.py at line 118. The line of code should be:

y = y.view(-1,).clamp(0, self.dataset.h*2-1).long()

instead of:

y = y.view(-1,).clamp(0, 2047).long()

This adjustment restricts the index range correctly based on the dataset dimensions.

I look forward to your update.

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