Skip to content

Commit

Permalink
fix: Fixed an if condition that is always evaluating to true (#32160)
Browse files Browse the repository at this point in the history
Fixed an if condition always evaluating to true.
  • Loading branch information
Sai-Suraj-27 authored Jul 23, 2024
1 parent 23f6a43 commit bc2adb0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def get_dpt_config(checkpoint_url):
config.neck_hidden_sizes = [256, 512, 1024, 1024]
expected_shape = (1, 384, 384)

if "nyu" or "midas" in checkpoint_url:
if "nyu" in checkpoint_url or "midas" in checkpoint_url:
config.hidden_size = 768
config.reassemble_factors = [1, 1, 1, 0.5]
config.neck_hidden_sizes = [256, 512, 768, 768]
Expand Down

0 comments on commit bc2adb0

Please sign in to comment.