Skip to content

Commit

Permalink
Update xception.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Smartappli authored May 25, 2024
1 parent f4ae7bb commit b3a2c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fl_common/models/xception.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ def get_xception_model(xception_type, num_classes):

try:
return create_model(
xception_type, pretrained=True, num_classes=num_classes
xception_type, pretrained=True, num_classes=num_classes,
)
except RuntimeError as e:
print(f"{xception_type} - Error loading pretrained model: {e}")
return create_model(
xception_type, pretrained=False, num_classes=num_classes
xception_type, pretrained=False, num_classes=num_classes,
)

0 comments on commit b3a2c08

Please sign in to comment.