"vscode:/vscode.git/clone" did not exist on "c11a49573fc4ca8560e1c66ce3b4e0a8c5b54312"
Unverified Commit bc2adb01 authored by Sai-Suraj-27's avatar Sai-Suraj-27 Committed by GitHub
Browse files

fix: Fixed an if condition that is always evaluating to true (#32160)

Fixed an if condition always evaluating to true.
parent 23f6a43f
......@@ -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]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment