"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "eb79b55bf34359b8d815256576abdc3fc01aa51f"
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): ...@@ -43,7 +43,7 @@ def get_dpt_config(checkpoint_url):
config.neck_hidden_sizes = [256, 512, 1024, 1024] config.neck_hidden_sizes = [256, 512, 1024, 1024]
expected_shape = (1, 384, 384) 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.hidden_size = 768
config.reassemble_factors = [1, 1, 1, 0.5] config.reassemble_factors = [1, 1, 1, 0.5]
config.neck_hidden_sizes = [256, 512, 768, 768] 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