You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue is on HEAD on the main branch, been around for a while
Transformers env not really relevant, but for completeness:
transformers version: 4.32.1
Platform: macOS-14.5-arm64-arm-64bit
Python version: 3.11.5
Huggingface_hub version: 0.15.1
Safetensors version: 0.3.2
Accelerate version: not installed
Accelerate config: not found
PyTorch version (GPU?): 2.1.2 (False)
Tensorflow version (GPU?): not installed (NA)
Flax version (CPU?/GPU?/TPU?): not installed (NA)
Jax version: not installed
JaxLib version: not installed
Using GPU in script?:
Using distributed or parallel set-up in script?:
Who can help?
@Narsil There's a typo in ImageClassificationPipeline, that I don't believe usually has any effect, but it's confusing when reading the code. I will provide a PR with a fix.
Information
The official example scripts
My own modified scripts
Tasks
An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
My own task or dataset (give details below)
Reproduction
This typo does not cause behavior change, because of the or self.model.config.num_labels == 1/> 1 condition.
Expected behavior
The problem_type condition should match the num_labels condition
The text was updated successfully, but these errors were encountered:
System Info
Issue is on HEAD on the main branch, been around for a while
Transformers env not really relevant, but for completeness:
transformers
version: 4.32.1Who can help?
@Narsil There's a typo in ImageClassificationPipeline, that I don't believe usually has any effect, but it's confusing when reading the code. I will provide a PR with a fix.
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
This typo does not cause behavior change, because of the
or self.model.config.num_labels == 1
/> 1
condition.Expected behavior
The
problem_type
condition should match thenum_labels
conditionThe text was updated successfully, but these errors were encountered: