repo_name
stringclasses
6 values
pr_number
int64
99
20.3k
pr_title
stringlengths
8
158
pr_description
stringlengths
0
6.54k
author
stringlengths
4
18
date_created
timestamp[ns, tz=UTC]
date_merged
timestamp[ns, tz=UTC]
previous_commit
stringlengths
40
40
pr_commit
stringlengths
40
40
query
stringlengths
37
6.57k
filepath
stringlengths
8
153
before_content
stringlengths
0
876M
after_content
stringlengths
0
876M
label
int64
-1
1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/marian/modeling_marian.py
# coding=utf-8 # Copyright 2021 The Marian Team Authors and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licen...
# coding=utf-8 # Copyright 2021 The Marian Team Authors and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licen...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/models/rag/test_modeling_tf_rag.py
import json import os import shutil import tempfile import unittest from unittest.mock import patch import numpy as np from transformers import BartTokenizer from transformers.models.bert.tokenization_bert import VOCAB_FILES_NAMES as DPR_VOCAB_FILES_NAMES from transformers.models.dpr.tokenization_dpr import DPRQuesti...
import json import os import shutil import tempfile import unittest from unittest.mock import patch import numpy as np from transformers import BartTokenizer from transformers.models.bert.tokenization_bert import VOCAB_FILES_NAMES as DPR_VOCAB_FILES_NAMES from transformers.models.dpr.tokenization_dpr import DPRQuesti...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/models/marian/__init__.py
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/unispeech/__init__.py
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2021 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2021 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/utils/versions.py
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/models/blenderbot_small/__init__.py
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/bart/modeling_bart.py
# coding=utf-8 # Copyright 2021 The Fairseq Authors and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
# coding=utf-8 # Copyright 2021 The Fairseq Authors and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./examples/flax/language-modeling/run_mlm_flax.py
#!/usr/bin/env python # coding=utf-8 # Copyright 2021 The HuggingFace Team All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
#!/usr/bin/env python # coding=utf-8 # Copyright 2021 The HuggingFace Team All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./examples/research_projects/performer/modeling_flax_performer.py
# coding=utf-8 # Copyright 2018 The Google Flax Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
# coding=utf-8 # Copyright 2018 The Google Flax Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/dpr/__init__.py
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/repo_utils/test_check_copies.py
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/pegasus_x/modeling_pegasus_x.py
# coding=utf-8 # Copyright 2022, Google and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
# coding=utf-8 # Copyright 2022, Google and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/clip/tokenization_clip.py
# coding=utf-8 # Copyright 2021 The Open AI Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
# coding=utf-8 # Copyright 2021 The Open AI Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/benchmark/benchmark.py
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.a...
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.a...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/bigbird_pegasus/modeling_bigbird_pegasus.py
# coding=utf-8 # Copyright 2021 Google Research The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
# coding=utf-8 # Copyright 2021 Google Research The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/megatron_bert/convert_megatron_bert_checkpoint.py
#################################################################################################### # Copyright (c) 2021-, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a...
#################################################################################################### # Copyright (c) 2021-, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/models/opt/__init__.py
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./examples/pytorch/language-modeling/run_mlm_no_trainer.py
#!/usr/bin/env python # coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
#!/usr/bin/env python # coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/distilbert/tokenization_distilbert_fast.py
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/models/roc_bert/test_tokenization_roc_bert.py
# coding=utf-8 # Copyright 2022 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
# coding=utf-8 # Copyright 2022 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/models/longformer/test_tokenization_longformer.py
# coding=utf-8 # Copyright 2022 Tsimur Hadeliya. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
# coding=utf-8 # Copyright 2022 Tsimur Hadeliya. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/rag/modeling_tf_rag.py
# coding=utf-8 # Copyright 2020, The RAG Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
# coding=utf-8 # Copyright 2020, The RAG Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/pipelines/test_pipelines_image_classification.py
# Copyright 2021 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
# Copyright 2021 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/marian/modeling_flax_marian.py
# coding=utf-8 # Copyright 2021 The Marian Team Authors and The Google Flax Team Authors And The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # ...
# coding=utf-8 # Copyright 2021 The Marian Team Authors and The Google Flax Team Authors And The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # ...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/vision_encoder_decoder/__init__.py
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2021 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2021 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./examples/research_projects/performer/modeling_flax_performer_utils.py
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/utils/test_modeling_tf_core.py
# coding=utf-8 # Copyright 2019 HuggingFace Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
# coding=utf-8 # Copyright 2019 HuggingFace Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/retribert/modeling_retribert.py
# coding=utf-8 # Copyright 2019-present, the HuggingFace Inc. team, The Google AI Language Team and Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.or...
# coding=utf-8 # Copyright 2019-present, the HuggingFace Inc. team, The Google AI Language Team and Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.or...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/vit_msn/__init__.py
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/data2vec/configuration_data2vec_vision.py
# coding=utf-8 # Copyright Meta Platforms and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2....
# coding=utf-8 # Copyright Meta Platforms and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2....
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/tokenization_{{cookiecutter.lowercase_modelname}}.py
# coding=utf-8 # Copyright 2022 {{cookiecutter.authors}} and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lice...
# coding=utf-8 # Copyright 2022 {{cookiecutter.authors}} and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lice...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/m2m_100/tokenization_m2m_100.py
# Copyright 2021 The Fairseq Authors and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
# Copyright 2021 The Fairseq Authors and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/models/roberta/test_tokenization_roberta.py
# coding=utf-8 # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
# coding=utf-8 # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/models/barthez/test_tokenization_barthez.py
# coding=utf-8 # Copyright 2020 Ecole Polytechnique and HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
# coding=utf-8 # Copyright 2020 Ecole Polytechnique and HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/utils/dummy_timm_and_vision_objects.py
# This file is autogenerated by the command `make fix-copies`, do not edit. # flake8: noqa from ..utils import DummyObject, requires_backends CONDITIONAL_DETR_PRETRAINED_MODEL_ARCHIVE_LIST = None class ConditionalDetrForObjectDetection(metaclass=DummyObject): _backends = ["timm", "vision"] def __init__(sel...
# This file is autogenerated by the command `make fix-copies`, do not edit. # flake8: noqa from ..utils import DummyObject, requires_backends CONDITIONAL_DETR_PRETRAINED_MODEL_ARCHIVE_LIST = None class ConditionalDetrForObjectDetection(metaclass=DummyObject): _backends = ["timm", "vision"] def __init__(sel...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/benchmark/__init__.py
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/unispeech_sat/convert_unispeech_original_s3prl_checkpoint_to_pytorch.py
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/models/xlm_prophetnet/test_tokenization_xlm_prophetnet.py
# coding=utf-8 # Copyright 2020 The HuggingFace Inc. team, The Microsoft Research team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
# coding=utf-8 # Copyright 2020 The HuggingFace Inc. team, The Microsoft Research team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/roformer/tokenization_roformer_fast.py
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/unispeech/convert_unispeech_original_pytorch_checkpoint_to_pytorch.py
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/models/bert_generation/test_tokenization_bert_generation.py
# coding=utf-8 # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
# coding=utf-8 # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/test_image_transforms.py
# coding=utf-8 # Copyright 2022 HuggingFace Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
# coding=utf-8 # Copyright 2022 HuggingFace Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/plbart/modeling_plbart.py
# coding=utf-8 # Copyright 2022, UCLA NLP, The Facebook AI Research Team and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www...
# coding=utf-8 # Copyright 2022, UCLA NLP, The Facebook AI Research Team and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/deformable_detr/convert_deformable_detr_to_pytorch.py
# coding=utf-8 # Copyright 2022 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
# coding=utf-8 # Copyright 2022 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/mvp/modeling_mvp.py
# coding=utf-8 # Copyright 2022 The Fairseq Authors and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
# coding=utf-8 # Copyright 2022 The Fairseq Authors and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/fnet/convert_fnet_original_flax_checkpoint_to_pytorch.py
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/mvp/configuration_mvp.py
# coding=utf-8 # Copyright 2022 The Fairseq Authors and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
# coding=utf-8 # Copyright 2022 The Fairseq Authors and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/prophetnet/tokenization_prophetnet.py
# coding=utf-8 # Copyright 2020 The Microsoft Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
# coding=utf-8 # Copyright 2020 The Microsoft Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/blenderbot_small/__init__.py
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/clipseg/modeling_clipseg.py
# coding=utf-8 # Copyright 2022 The OpenAI Team Authors and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/L...
# coding=utf-8 # Copyright 2022 The OpenAI Team Authors and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/L...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/models/xlm/__init__.py
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/models/vit_mae/test_modeling_vit_mae.py
# coding=utf-8 # Copyright 2022 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
# coding=utf-8 # Copyright 2022 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/models/barthez/__init__.py
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/marian/configuration_marian.py
# coding=utf-8 # Copyright 2021 The Marian Team Authors and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licen...
# coding=utf-8 # Copyright 2021 The Marian Team Authors and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licen...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./examples/research_projects/distillation/grouped_batch_sampler.py
# coding=utf-8 # Copyright 2019-present, the HuggingFace Inc. team and Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
# coding=utf-8 # Copyright 2019-present, the HuggingFace Inc. team and Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./examples/pytorch/token-classification/run_ner_no_trainer.py
#!/usr/bin/env python # coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
#!/usr/bin/env python # coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/donut/processing_donut.py
# coding=utf-8 # Copyright 2022 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
# coding=utf-8 # Copyright 2022 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/models/ctrl/test_modeling_tf_ctrl.py
# coding=utf-8 # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
# coding=utf-8 # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./examples/research_projects/distillation/distiller.py
# coding=utf-8 # Copyright 2019-present, the HuggingFace Inc. team and Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
# coding=utf-8 # Copyright 2019-present, the HuggingFace Inc. team and Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./examples/legacy/seq2seq/old_test_calculate_rouge.py
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/opt/modeling_opt.py
# coding=utf-8 # Copyright 2022 The Fairseq Authors and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
# coding=utf-8 # Copyright 2022 The Fairseq Authors and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./.git/refs/heads/main
976189a6df796a2ff442dd81b022626c840d8c27
976189a6df796a2ff442dd81b022626c840d8c27
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/models/xlm_prophetnet/test_modeling_xlm_prophetnet.py
# coding=utf-8 # Copyright 2020 The HuggingFace Inc. team, The Microsoft Research team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
# coding=utf-8 # Copyright 2020 The HuggingFace Inc. team, The Microsoft Research team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/mobilebert/modeling_mobilebert.py
# MIT License # # Copyright (c) 2020 The Google AI Language Team Authors, The HuggingFace Inc. team and github/lonePatient # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restricti...
# MIT License # # Copyright (c) 2020 The Google AI Language Team Authors, The HuggingFace Inc. team and github/lonePatient # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restricti...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/pegasus/convert_pegasus_tf_to_pytorch.py
# coding=utf-8 # Copyright 2020 Google and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
# coding=utf-8 # Copyright 2020 Google and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./examples/pytorch/speech-recognition/run_speech_recognition_ctc.py
#!/usr/bin/env python # coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
#!/usr/bin/env python # coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/xglm/modeling_flax_xglm.py
# coding=utf-8 # Copyright 2021 The Fairseq Authors and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
# coding=utf-8 # Copyright 2021 The Fairseq Authors and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/reformer/__init__.py
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./examples/research_projects/bertabs/convert_bertabs_original_pytorch_checkpoint.py
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./docker/transformers-tensorflow-gpu/Dockerfile
FROM nvidia/cuda:11.2.2-cudnn8-devel-ubuntu20.04 LABEL maintainer="Hugging Face" ARG DEBIAN_FRONTEND=noninteractive RUN apt update RUN apt install -y git libsndfile1-dev tesseract-ocr espeak-ng python3 python3-pip ffmpeg RUN python3 -m pip install --no-cache-dir --upgrade pip ARG REF=main RUN git clone https://githu...
FROM nvidia/cuda:11.2.2-cudnn8-devel-ubuntu20.04 LABEL maintainer="Hugging Face" ARG DEBIAN_FRONTEND=noninteractive RUN apt update RUN apt install -y git libsndfile1-dev tesseract-ocr espeak-ng python3 python3-pip ffmpeg RUN python3 -m pip install --no-cache-dir --upgrade pip ARG REF=main RUN git clone https://githu...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./docs/source/en/main_classes/deepspeed.mdx
<!--Copyright 2020 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
<!--Copyright 2020 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/nystromformer/convert_nystromformer_original_pytorch_checkpoint_to_pytorch.py
# coding=utf-8 # Copyright 2022 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
# coding=utf-8 # Copyright 2022 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./examples/research_projects/tapex/wikisql_utils.py
# coding=utf-8 # Copyright 2022 The Microsoft, The Google and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lic...
# coding=utf-8 # Copyright 2022 The Microsoft, The Google and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lic...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./examples/legacy/pytorch-lightning/run_pos.sh
#!/usr/bin/env bash if ! [ -f ./dev.txt ]; then echo "Download dev dataset...." curl -L -o ./dev.txt 'https://github.com/UniversalDependencies/UD_English-EWT/raw/master/en_ewt-ud-dev.conllu' fi if ! [ -f ./test.txt ]; then echo "Download test dataset...." curl -L -o ./test.txt 'https://github.com/UniversalDepe...
#!/usr/bin/env bash if ! [ -f ./dev.txt ]; then echo "Download dev dataset...." curl -L -o ./dev.txt 'https://github.com/UniversalDependencies/UD_English-EWT/raw/master/en_ewt-ud-dev.conllu' fi if ! [ -f ./test.txt ]; then echo "Download test dataset...." curl -L -o ./test.txt 'https://github.com/UniversalDepe...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./docs/source/en/model_doc/ibert.mdx
<!--Copyright 2020 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
<!--Copyright 2020 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/models/transfo_xl/test_tokenization_transfo_xl.py
# coding=utf-8 # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
# coding=utf-8 # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./examples/research_projects/jax-projects/wav2vec2/README.md
# Wav2Vec2 Contrastive Loss PreTraining examples The following example showcases how to pretrain a wav2vec2 model using the JAX/Flax backend. Pretraining Wav2Vec2 is rather complex, so it is highly recommended to read the [official paper](https://arxiv.org/abs/2006.11477). JAX/Flax allows you to trace pure functions...
# Wav2Vec2 Contrastive Loss PreTraining examples The following example showcases how to pretrain a wav2vec2 model using the JAX/Flax backend. Pretraining Wav2Vec2 is rather complex, so it is highly recommended to read the [official paper](https://arxiv.org/abs/2006.11477). JAX/Flax allows you to trace pure functions...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./examples/research_projects/layoutlmv3/run_funsd_cord.py
#!/usr/bin/env python # coding=utf-8 # Copyright 2022 The HuggingFace Team All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
#!/usr/bin/env python # coding=utf-8 # Copyright 2022 The HuggingFace Team All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/segformer/convert_segformer_original_to_pytorch.py
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/utils/test_activations.py
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/esm/modeling_esm.py
# coding=utf-8 # Copyright 2022 Meta and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
# coding=utf-8 # Copyright 2022 Meta and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/xglm/configuration_xglm.py
# coding=utf-8 # Copyright The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
# coding=utf-8 # Copyright The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./docs/source/it/accelerate.mdx
<!--Copyright 2022 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
<!--Copyright 2022 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/models/owlvit/test_feature_extraction_owlvit.py
# coding=utf-8 # Copyright 2022 HuggingFace Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
# coding=utf-8 # Copyright 2022 HuggingFace Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/models/dpr/test_tokenization_dpr.py
# coding=utf-8 # Copyright 2020 Huggingface # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
# coding=utf-8 # Copyright 2020 Huggingface # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./docs/source/en/model_doc/lilt.mdx
<!--Copyright 2022 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
<!--Copyright 2022 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/clip/modeling_flax_clip.py
# coding=utf-8 # Copyright 2021 The OpenAI Team Authors, The Google Flax Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache....
# coding=utf-8 # Copyright 2021 The OpenAI Team Authors, The Google Flax Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache....
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/gpt2/tokenization_gpt2.py
# coding=utf-8 # Copyright 2018 The Open AI Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
# coding=utf-8 # Copyright 2018 The Open AI Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/blenderbot/modeling_flax_blenderbot.py
# coding=utf-8 # Copyright 2021 The Fairseq Authors and The Google Flax Team Authors And The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
# coding=utf-8 # Copyright 2021 The Fairseq Authors and The Google Flax Team Authors And The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/ernie/modeling_ernie.py
# coding=utf-8 # Copyright 2022 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
# coding=utf-8 # Copyright 2022 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/prophetnet/configuration_prophetnet.py
# coding=utf-8 # Copyright 2020 The Microsoft Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
# coding=utf-8 # Copyright 2020 The Microsoft Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./examples/research_projects/rag-end2end-retriever/utils_rag.py
import itertools import json import linecache import os import pickle import re import socket import string from collections import Counter from logging import getLogger from pathlib import Path from typing import Callable, Dict, Iterable, List import git import torch from torch.utils.data import Dataset from transfo...
import itertools import json import linecache import os import pickle import re import socket import string from collections import Counter from logging import getLogger from pathlib import Path from typing import Callable, Dict, Iterable, List import git import torch from torch.utils.data import Dataset from transfo...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./examples/research_projects/bertabs/__init__.py
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./.git/hooks/pre-applypatch.sample
#!/bin/sh # # An example hook script to verify what is about to be committed # by applypatch from an e-mail message. # # The hook should exit with non-zero status after issuing an # appropriate message if it wants to stop the commit. # # To enable this hook, rename this file to "pre-applypatch". . git-sh-setup precomm...
#!/bin/sh # # An example hook script to verify what is about to be committed # by applypatch from an e-mail message. # # The hook should exit with non-zero status after issuing an # appropriate message if it wants to stop the commit. # # To enable this hook, rename this file to "pre-applypatch". . git-sh-setup precomm...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./examples/research_projects/seq2seq-distillation/finetune.sh
# the proper usage is documented in the README, you need to specify data_dir, output_dir and model_name_or_path # run ./finetune.sh --help to see all the possible options python finetune.py \ --learning_rate=3e-5 \ --fp16 \ --gpus 1 \ --do_train \ --do_predict \ --n_val 1000 \ --val_check_in...
# the proper usage is documented in the README, you need to specify data_dir, output_dir and model_name_or_path # run ./finetune.sh --help to see all the possible options python finetune.py \ --learning_rate=3e-5 \ --fp16 \ --gpus 1 \ --do_train \ --do_predict \ --n_val 1000 \ --val_check_in...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./examples/research_projects/deebert/eval_deebert.sh
#!/bin/bash export CUDA_VISIBLE_DEVICES=0 PATH_TO_DATA=/h/xinji/projects/GLUE MODEL_TYPE=bert # bert or roberta MODEL_SIZE=base # base or large DATASET=MRPC # SST-2, MRPC, RTE, QNLI, QQP, or MNLI MODEL_NAME=${MODEL_TYPE}-${MODEL_SIZE} if [ $MODEL_TYPE = 'bert' ] then MODEL_NAME=${MODEL_NAME}-uncased fi python...
#!/bin/bash export CUDA_VISIBLE_DEVICES=0 PATH_TO_DATA=/h/xinji/projects/GLUE MODEL_TYPE=bert # bert or roberta MODEL_SIZE=base # base or large DATASET=MRPC # SST-2, MRPC, RTE, QNLI, QQP, or MNLI MODEL_NAME=${MODEL_TYPE}-${MODEL_SIZE} if [ $MODEL_TYPE = 'bert' ] then MODEL_NAME=${MODEL_NAME}-uncased fi python...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./docs/source/en/perf_infer_special.mdx
<!--Copyright 2022 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
<!--Copyright 2022 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/encoder_decoder/modeling_tf_encoder_decoder.py
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./src/transformers/models/xlm_prophetnet/configuration_xlm_prophetnet.py
# coding=utf-8 # Copyright 2020 The Microsoft Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
# coding=utf-8 # Copyright 2020 The Microsoft Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
-1
huggingface/transformers
20,205
Make size_dict conversion logs clearer
# What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to make the logs clearer. ## Before submit...
amyeroberts
2022-11-14T12:52:07Z
2022-11-15T10:52:58Z
f1e8c48c5eebf899a5c79b2c48c0ef8456e6bddc
55ba31908a1216c1767463e3333aa94a6414e6d6
Make size_dict conversion logs clearer. # What does this PR do? * Tidies up logic for converting `size` parameter to the expected dictionary format for image processors. * Adds `param_name` as a flag so logs reflect the variable being updated e.g. `crop_size` versus `size` Address part of #20185 - trying to mak...
./tests/models/longformer/test_modeling_tf_longformer.py
# coding=utf-8 # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
# coding=utf-8 # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
-1