You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am trying to use it but it throws an error below
usage: Custom Swin Transformer [-h] [--cfg FILE] [--resume {0,1}]
[--weights_type {imagenet_22kto1k,imagenet_1k,imagenet_22k}]
Custom Swin Transformer: error: unrecognized arguments: -f /root/.local/share/jupyter/runtime/kernel-ee309a98-1f20-4bb7-aa12-c2980aea076c.json
An exception has occurred, use %tb to see the full traceback.
SystemExit: 2
The text was updated successfully, but these errors were encountered:
parser = argparse.ArgumentParser('Custom Swin Transformer')
parser.add_argument(
'--cfg',
type=str,
metavar="FILE",
help='/content/Swin-Transformer-Tensorflow/configs/swin_tiny_patch4_window7_224.yaml',
default="CUSTOM_YAML_FILE_PATH"
)
parser.add_argument(
'--resume',
type=int,
help=1,
choices={0, 1},
default=1,
)
parser.add_argument(
'--weights_type',
type=str,
help='imagenet_22k',
choices={"imagenet_1k", "imagenet_22k", "imagenet_22kto1k"},
default="imagenet_1k",
)
args = parser.parse_args()
custom_config = get_config(args, include_top=False)
i am trying to use it but it throws an error below
usage: Custom Swin Transformer [-h] [--cfg FILE] [--resume {0,1}]
[--weights_type {imagenet_22kto1k,imagenet_1k,imagenet_22k}]
Custom Swin Transformer: error: unrecognized arguments: -f /root/.local/share/jupyter/runtime/kernel-ee309a98-1f20-4bb7-aa12-c2980aea076c.json
An exception has occurred, use %tb to see the full traceback.
SystemExit: 2
The text was updated successfully, but these errors were encountered: