Skip to content

Conversation

@ieee8023
Copy link
Member

No description provided.

@ieee8023 ieee8023 requested a review from Copilot April 27, 2025 04:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates model configuration to support dynamic input resolution changes based on the loaded weights. Key changes include:

  • Adding an "input_resolution" key to each model configuration dictionary.
  • Updating fix_resolution calls in DenseNet’s features2 and forward methods, as well as ResNet’s forward method, to use the provided input resolution when available.

@ieee8023 ieee8023 requested a review from Copilot April 27, 2025 04:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a conditional resolution update that only applies when model weights are loaded, allowing the input resolution to be dynamically set from the model configuration.

  • Added "input_resolution" entries in model_urls for various weight configurations.
  • Replaced hardcoded resolution values with conditional checks using the input_resolution attribute in multiple model functions.

@ieee8023 ieee8023 merged commit 4626a5d into master Apr 27, 2025
3 checks passed
@ieee8023 ieee8023 deleted the res-fix branch April 27, 2025 04:17
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

Successfully merging this pull request may close these issues.

1 participant