Skip to content

Commit

Permalink
remove call to upsample
Browse files Browse the repository at this point in the history
  • Loading branch information
ieee8023 committed Jan 3, 2025
1 parent 09bafae commit f21df39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion torchxrayvision/baseline_models/chexpert/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ def __init__(self, weights_zip="", num_models=30):

def forward(self, x):
x = x.repeat(1, 3, 1, 1)
x = self.upsample(x)

x = utils.fix_resolution(x, 320, self)
utils.warn_normalization(x)

# expecting values between [-1024,1024]
x = x / 512
Expand All @@ -79,6 +81,7 @@ def forward(self, x):

def features(self, x):
x = x.repeat(1, 3, 1, 1)

x = utils.fix_resolution(x, 320, self)
utils.warn_normalization(x)

Expand Down

0 comments on commit f21df39

Please sign in to comment.