Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appreciation for the Hardwork #9

Open
WaOnEmperoR opened this issue Aug 9, 2024 · 1 comment
Open

Appreciation for the Hardwork #9

WaOnEmperoR opened this issue Aug 9, 2024 · 1 comment

Comments

@WaOnEmperoR
Copy link

I really appreciate this work. But in order to run this program successfully, I had to modify the following:

  1. in utils/metrics.py, add .cuda() after every torch.eye(num_classes) -> torch.eye(num_classes).cuda()
  2. change opt = parser.parse_args() to opt = parser.parse_known_args() in every files
  3. to get the configuration parameters, call opt[0] instead of opt, e.g. get_loaders(opt[0])
  4. Convert the contents of OUT folder in cddchangedetectiondataset to 8-bit binary image (0 and 255 only), and put it in the new folder OUT_binary
@qaz670756
Copy link
Owner

Thank you for your contribution. Since the code was released two years ago, it’s likely that differences in library versions are causing these issues. I really appreciate your modifications, as they are helpful for other users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants