import{s as ua,o as ha,n as pa}from"../chunks/scheduler.9bc65507.js";import{S as fa,i as ga,g as r,s as n,u as p,A as va,h as a,f as o,c as s,j as c,v as u,y as m,k as i,o as t,a as x,w as h,d as f,t as g,x as v}from"../chunks/index.78c82d43.js";import{T as xa}from"../chunks/Tip.87d55b76.js";import{D as $}from"../chunks/Docstring.f3d04bd2.js";import{C as _a}from"../chunks/CodeBlock.48618ec2.js";import{I as pt}from"../chunks/IconCopyLink.bedaa44d.js";import{E as ya}from"../chunks/ExampleCodeBlock.872b014d.js";function ba(Je){let _,z="Examples:",w,F,M;return F=new _a({props:{code:"JTIzJTIwV2UlMjBjYW4ndCUyMGluc3RhbnRpYXRlJTIwZGlyZWN0bHklMjB0aGUlMjBiYXNlJTIwY2xhc3MlMjAqRmVhdHVyZUV4dHJhY3Rpb25NaXhpbiolMjBub3IlMjAqU2VxdWVuY2VGZWF0dXJlRXh0cmFjdG9yKiUyMHNvJTIwbGV0J3MlMjBzaG93JTIwdGhlJTIwZXhhbXBsZXMlMjBvbiUyMGElMEElMjMlMjBkZXJpdmVkJTIwY2xhc3MlM0ElMjAqV2F2MlZlYzJGZWF0dXJlRXh0cmFjdG9yKiUwQWZlYXR1cmVfZXh0cmFjdG9yJTIwJTNEJTIwV2F2MlZlYzJGZWF0dXJlRXh0cmFjdG9yLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJmYWNlYm9vayUyRndhdjJ2ZWMyLWJhc2UtOTYwaCUyMiUwQSklMjAlMjAlMjMlMjBEb3dubG9hZCUyMGZlYXR1cmVfZXh0cmFjdGlvbl9jb25maWclMjBmcm9tJTIwaHVnZ2luZ2ZhY2UuY28lMjBhbmQlMjBjYWNoZS4lMEFmZWF0dXJlX2V4dHJhY3RvciUyMCUzRCUyMFdhdjJWZWMyRmVhdHVyZUV4dHJhY3Rvci5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyLiUyRnRlc3QlMkZzYXZlZF9tb2RlbCUyRiUyMiUwQSklMjAlMjAlMjMlMjBFLmcuJTIwZmVhdHVyZV9leHRyYWN0b3IlMjAob3IlMjBtb2RlbCklMjB3YXMlMjBzYXZlZCUyMHVzaW5nJTIwKnNhdmVfcHJldHJhaW5lZCgnLiUyRnRlc3QlMkZzYXZlZF9tb2RlbCUyRicpKiUwQWZlYXR1cmVfZXh0cmFjdG9yJTIwJTNEJTIwV2F2MlZlYzJGZWF0dXJlRXh0cmFjdG9yLmZyb21fcHJldHJhaW5lZCglMjIuJTJGdGVzdCUyRnNhdmVkX21vZGVsJTJGcHJlcHJvY2Vzc29yX2NvbmZpZy5qc29uJTIyKSUwQWZlYXR1cmVfZXh0cmFjdG9yJTIwJTNEJTIwV2F2MlZlYzJGZWF0dXJlRXh0cmFjdG9yLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJmYWNlYm9vayUyRndhdjJ2ZWMyLWJhc2UtOTYwaCUyMiUyQyUyMHJldHVybl9hdHRlbnRpb25fbWFzayUzREZhbHNlJTJDJTIwZm9vJTNERmFsc2UlMEEpJTBBYXNzZXJ0JTIwZmVhdHVyZV9leHRyYWN0b3IucmV0dXJuX2F0dGVudGlvbl9tYXNrJTIwaXMlMjBGYWxzZSUwQWZlYXR1cmVfZXh0cmFjdG9yJTJDJTIwdW51c2VkX2t3YXJncyUyMCUzRCUyMFdhdjJWZWMyRmVhdHVyZUV4dHJhY3Rvci5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyZmFjZWJvb2slMkZ3YXYydmVjMi1iYXNlLTk2MGglMjIlMkMlMjByZXR1cm5fYXR0ZW50aW9uX21hc2slM0RGYWxzZSUyQyUyMGZvbyUzREZhbHNlJTJDJTIwcmV0dXJuX3VudXNlZF9rd2FyZ3MlM0RUcnVlJTBBKSUwQWFzc2VydCUyMGZlYXR1cmVfZXh0cmFjdG9yLnJldHVybl9hdHRlbnRpb25fbWFzayUyMGlzJTIwRmFsc2UlMEFhc3NlcnQlMjB1bnVzZWRfa3dhcmdzJTIwJTNEJTNEJTIwJTdCJTIyZm9vJTIyJTNBJTIwRmFsc2UlN0Q=",highlighted:`<span class="hljs-comment"># We can&#x27;t instantiate directly the base class *FeatureExtractionMixin* nor *SequenceFeatureExtractor* so let&#x27;s show the examples on a</span>
<span class="hljs-comment"># derived class: *Wav2Vec2FeatureExtractor*</span>
feature_extractor = Wav2Vec2FeatureExtractor.from_pretrained(
    <span class="hljs-string">&quot;facebook/wav2vec2-base-960h&quot;</span>
)  <span class="hljs-comment"># Download feature_extraction_config from huggingface.co and cache.</span>
feature_extractor = Wav2Vec2FeatureExtractor.from_pretrained(
    <span class="hljs-string">&quot;./test/saved_model/&quot;</span>
)  <span class="hljs-comment"># E.g. feature_extractor (or model) was saved using *save_pretrained(&#x27;./test/saved_model/&#x27;)*</span>
feature_extractor = Wav2Vec2FeatureExtractor.from_pretrained(<span class="hljs-string">&quot;./test/saved_model/preprocessor_config.json&quot;</span>)
feature_extractor = Wav2Vec2FeatureExtractor.from_pretrained(
    <span class="hljs-string">&quot;facebook/wav2vec2-base-960h&quot;</span>, return_attention_mask=<span class="hljs-literal">False</span>, foo=<span class="hljs-literal">False</span>
)
<span class="hljs-keyword">assert</span> feature_extractor.return_attention_mask <span class="hljs-keyword">is</span> <span class="hljs-literal">False</span>
feature_extractor, unused_kwargs = Wav2Vec2FeatureExtractor.from_pretrained(
    <span class="hljs-string">&quot;facebook/wav2vec2-base-960h&quot;</span>, return_attention_mask=<span class="hljs-literal">False</span>, foo=<span class="hljs-literal">False</span>, return_unused_kwargs=<span class="hljs-literal">True</span>
)
<span class="hljs-keyword">assert</span> feature_extractor.return_attention_mask <span class="hljs-keyword">is</span> <span class="hljs-literal">False</span>
<span class="hljs-keyword">assert</span> unused_kwargs == {<span class="hljs-string">&quot;foo&quot;</span>: <span class="hljs-literal">False</span>}`}}),{c(){_=r("p"),_.textContent=z,w=n(),p(F.$$.fragment)},l(b){_=a(b,"P",{"data-svelte-h":!0}),m(_)!=="svelte-kvfsh7"&&(_.textContent=z),w=s(b),u(F.$$.fragment,b)},m(b,j){x(b,_,j),x(b,w,j),h(F,b,j),M=!0},p:pa,i(b){M||(f(F.$$.fragment,b),M=!0)},o(b){g(F.$$.fragment,b),M=!1},d(b){b&&(o(_),o(w)),v(F,b)}}}function $a(Je){let _,z=`If the <code>processed_features</code> passed are dictionary of numpy arrays, PyTorch tensors or TensorFlow tensors, the
result will use the same type unless you provide a different tensor type with <code>return_tensors</code>. In the case of
PyTorch tensors, you will lose the specific device of your tensors however.`;return{c(){_=r("p"),_.innerHTML=z},l(w){_=a(w,"P",{"data-svelte-h":!0}),m(_)!=="svelte-yvqf1m"&&(_.innerHTML=z)},m(w,F){x(w,_,F)},p:pa,d(w){w&&o(_)}}}function wa(Je){let _,z,w,F,M,b,j,ne,Rt,ke,zr="Feature Extractor",ut,se,Jr=`A feature extractor is in charge of preparing input features for audio or vision models. This includes feature extraction
from sequences, <em>e.g.</em>, pre-processing audio files to Log-Mel Spectrogram features, feature extraction from images
<em>e.g.</em> cropping image image files, but also padding, normalization, and conversion to Numpy, PyTorch, and TensorFlow
tensors.`,ht,P,V,st,ie,Bt,je,kr="FeatureExtractionMixin",ft,I,ce,Wt,Pe,jr=`This is a feature extraction mixin used to provide saving/loading functionality for sequential and image feature
extractors.`,Dt,J,le,Ut,Ce,Pr=`Instantiate a type of <a href="/docs/transformers/v4.33.3/en/main_classes/feature_extractor#transformers.FeatureExtractionMixin">FeatureExtractionMixin</a> from a feature extractor, <em>e.g.</em> a
derived class of <a href="/docs/transformers/v4.33.3/en/main_classes/feature_extractor#transformers.SequenceFeatureExtractor">SequenceFeatureExtractor</a>.`,Xt,H,St,q,de,Yt,Ze,Cr=`Save a feature_extractor object to the directory <code>save_directory</code>, so that it can be re-loaded using the
<a href="/docs/transformers/v4.33.3/en/main_classes/feature_extractor#transformers.FeatureExtractionMixin.from_pretrained">from_pretrained()</a> class method.`,gt,C,R,it,me,At,Ne,Zr="SequenceFeatureExtractor",vt,L,pe,Gt,Ve,Nr="This is a general feature extraction class for speech recognition.",Qt,E,ue,Ot,He,Vr=`Pad input values / input vectors or a batch of input values / input vectors up to predefined length or to the
max sequence length in the batch.`,Kt,qe,Hr=`Padding side (left/right) padding values are defined at the feature extractor level (with <code>self.padding_side</code>,
<code>self.padding_value</code>)`,er,B,xt,Z,W,ct,he,tr,Re,qr="BatchFeature",_t,T,fe,rr,Be,Rr='Holds the output of the <a href="/docs/transformers/v4.33.3/en/main_classes/feature_extractor#transformers.SequenceFeatureExtractor.pad">pad()</a> and feature extractor specific <code>__call__</code> methods.',ar,We,Br="This class is derived from a python dictionary and can be used as a dictionary.",or,D,ge,nr,De,Wr="Convert the inner content to tensors.",sr,U,ve,ir,Ue,Dr=`Send all values to device by calling <code>v.to(*args, **kwargs)</code> (PyTorch only). This should support casting in
different <code>dtypes</code> and sending the <code>BatchFeature</code> to a different <code>device</code>.`,yt,N,X,lt,xe,cr,Xe,Ur="ImageFeatureExtractionMixin",bt,d,_e,lr,Se,Xr="Mixin that contain utilities for preparing image features.",dr,S,ye,mr,Ye,Sr=`Crops <code>image</code> to the given size using a center crop. Note that if the image is too small to be cropped to the
size given, it will be padded (so the returned result has the size asked).`,pr,Y,be,ur,Ae,Yr="Converts <code>PIL.Image.Image</code> to RGB format.",hr,A,$e,fr,Ge,Ar="Expands 2-dimensional <code>image</code> to 3 dimensions.",gr,G,we,vr,Qe,Gr=`Flips the channel order of <code>image</code> from RGB to BGR, or vice versa. Note that this will trigger a conversion of
<code>image</code> to a NumPy array if it’s a PIL Image.`,xr,Q,Te,_r,Oe,Qr=`Normalizes <code>image</code> with <code>mean</code> and <code>std</code>. Note that this will trigger a conversion of <code>image</code> to a NumPy array
if it’s a PIL Image.`,yr,O,Fe,br,Ke,Or="Rescale a numpy image by scale amount",$r,K,Me,wr,et,Kr="Resizes <code>image</code>. Enforces conversion of input to PIL.Image.",Tr,ee,Ie,Fr,tt,ea=`Returns a rotated copy of <code>image</code>. This method returns a copy of <code>image</code>, rotated the given number of degrees
counter clockwise around its centre.`,Mr,te,Ee,Ir,rt,ta=`Converts <code>image</code> to a numpy array. Optionally rescales it and puts the channel dimension as the first
dimension.`,Er,re,Le,Lr,at,ra=`Converts <code>image</code> to a PIL Image. Optionally rescales it and puts the channel dimension back as the last axis if
needed.`,$t,dt,wt;return ne=new pt({}),ie=new pt({}),ce=new $({props:{name:"class transformers.FeatureExtractionMixin",anchor:"transformers.FeatureExtractionMixin",parameters:[{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/feature_extraction_utils.py#L233"}}),le=new $({props:{name:"from_pretrained",anchor:"transformers.FeatureExtractionMixin.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike]"},{name:"cache_dir",val:": typing.Union[str, os.PathLike, NoneType] = None"},{name:"force_download",val:": bool = False"},{name:"local_files_only",val:": bool = False"},{name:"token",val:": typing.Union[str, bool, NoneType] = None"},{name:"revision",val:": str = 'main'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FeatureExtractionMixin.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
This can be either:</p>
<ul>
<li>a string, the <em>model id</em> of a pretrained feature_extractor hosted inside a model repo on
huggingface.co. Valid model ids can be located at the root-level, like <code>bert-base-uncased</code>, or
namespaced under a user or organization name, like <code>dbmdz/bert-base-german-cased</code>.</li>
<li>a path to a <em>directory</em> containing a feature extractor file saved using the
<a href="/docs/transformers/v4.33.3/en/main_classes/feature_extractor#transformers.FeatureExtractionMixin.save_pretrained">save_pretrained()</a> method, e.g.,
<code>./my_model_directory/</code>.</li>
<li>a path or url to a saved feature extractor JSON <em>file</em>, e.g.,
<code>./my_model_directory/preprocessor_config.json</code>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"transformers.FeatureExtractionMixin.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Path to a directory in which a downloaded pretrained model feature extractor should be cached if the
standard cache should not be used.`,name:"cache_dir"},{anchor:"transformers.FeatureExtractionMixin.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force to (re-)download the feature extractor files and override the cached versions
if they exist.`,name:"force_download"},{anchor:"transformers.FeatureExtractionMixin.from_pretrained.resume_download",description:`<strong>resume_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to delete incompletely received file. Attempts to resume the download if such a file
exists.`,name:"resume_download"},{anchor:"transformers.FeatureExtractionMixin.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, e.g., <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}.</code> The proxies are used on each request.`,name:"proxies"},{anchor:"transformers.FeatureExtractionMixin.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, or not specified, will use
the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.FeatureExtractionMixin.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so <code>revision</code> can be any
identifier allowed by git.`,name:"revision"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/feature_extraction_utils.py#L257",returnDescription:`
<p>A feature extractor of type <a
  href="/docs/transformers/v4.33.3/en/main_classes/feature_extractor#transformers.FeatureExtractionMixin"
>FeatureExtractionMixin</a>.</p>
`}}),H=new ya({props:{anchor:"transformers.FeatureExtractionMixin.from_pretrained.example",$$slots:{default:[ba]},$$scope:{ctx:Je}}}),de=new $({props:{name:"save_pretrained",anchor:"transformers.FeatureExtractionMixin.save_pretrained",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"push_to_hub",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.FeatureExtractionMixin.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory where the feature extractor JSON file will be saved (will be created if it does not exist).`,name:"save_directory"},{anchor:"transformers.FeatureExtractionMixin.save_pretrained.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to push your model to the Hugging Face model hub after saving it. You can specify the
repository you want to push to with <code>repo_id</code> (will default to the name of <code>save_directory</code> in your
namespace).`,name:"push_to_hub"},{anchor:"transformers.FeatureExtractionMixin.save_pretrained.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional key word arguments passed along to the <a href="/docs/transformers/v4.33.3/en/main_classes/tokenizer#transformers.PreTrainedTokenizerFast.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/feature_extraction_utils.py#L369"}}),me=new pt({}),pe=new $({props:{name:"class transformers.SequenceFeatureExtractor",anchor:"transformers.SequenceFeatureExtractor",parameters:[{name:"feature_size",val:": int"},{name:"sampling_rate",val:": int"},{name:"padding_value",val:": float"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.SequenceFeatureExtractor.feature_size",description:`<strong>feature_size</strong> (<code>int</code>) &#x2014;
The feature dimension of the extracted features.`,name:"feature_size"},{anchor:"transformers.SequenceFeatureExtractor.sampling_rate",description:`<strong>sampling_rate</strong> (<code>int</code>) &#x2014;
The sampling rate at which the audio files should be digitalized expressed in hertz (Hz).`,name:"sampling_rate"},{anchor:"transformers.SequenceFeatureExtractor.padding_value",description:`<strong>padding_value</strong> (<code>float</code>) &#x2014;
The value that is used to fill the padding values / vectors.`,name:"padding_value"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/feature_extraction_sequence_utils.py#L29"}}),ue=new $({props:{name:"pad",anchor:"transformers.SequenceFeatureExtractor.pad",parameters:[{name:"processed_features",val:": typing.Union[transformers.feature_extraction_utils.BatchFeature, typing.List[transformers.feature_extraction_utils.BatchFeature], typing.Dict[str, transformers.feature_extraction_utils.BatchFeature], typing.Dict[str, typing.List[transformers.feature_extraction_utils.BatchFeature]], typing.List[typing.Dict[str, transformers.feature_extraction_utils.BatchFeature]]]"},{name:"padding",val:": typing.Union[bool, str, transformers.utils.generic.PaddingStrategy] = True"},{name:"max_length",val:": typing.Optional[int] = None"},{name:"truncation",val:": bool = False"},{name:"pad_to_multiple_of",val:": typing.Optional[int] = None"},{name:"return_attention_mask",val:": typing.Optional[bool] = None"},{name:"return_tensors",val:": typing.Union[str, transformers.utils.generic.TensorType, NoneType] = None"}],parametersDescription:[{anchor:"transformers.SequenceFeatureExtractor.pad.processed_features",description:`<strong>processed_features</strong> (<a href="/docs/transformers/v4.33.3/en/main_classes/image_processor#transformers.BatchFeature">BatchFeature</a>, list of <a href="/docs/transformers/v4.33.3/en/main_classes/image_processor#transformers.BatchFeature">BatchFeature</a>, <code>Dict[str, List[float]]</code>, <code>Dict[str, List[List[float]]</code> or <code>List[Dict[str, List[float]]]</code>) &#x2014;
Processed inputs. Can represent one input (<a href="/docs/transformers/v4.33.3/en/main_classes/image_processor#transformers.BatchFeature">BatchFeature</a> or <code>Dict[str, List[float]]</code>) or a batch of
input values / vectors (list of <a href="/docs/transformers/v4.33.3/en/main_classes/image_processor#transformers.BatchFeature">BatchFeature</a>, <em>Dict[str, List[List[float]]]</em> or <em>List[Dict[str,
List[float]]]</em>) so you can use this method during preprocessing as well as in a PyTorch Dataloader
collate function.</p>
<p>Instead of <code>List[float]</code> you can have tensors (numpy arrays, PyTorch tensors or TensorFlow tensors),
see the note above for the return type.`,name:"processed_features"},{anchor:"transformers.SequenceFeatureExtractor.pad.padding",description:`<strong>padding</strong> (<code>bool</code>, <code>str</code> or <a href="/docs/transformers/v4.33.3/en/internal/file_utils#transformers.utils.PaddingStrategy">PaddingStrategy</a>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Select a strategy to pad the returned sequences (according to the model&#x2019;s padding side and padding
index) among:</p>
<ul>
<li><code>True</code> or <code>&apos;longest&apos;</code>: Pad to the longest sequence in the batch (or no padding if only a single
sequence if provided).</li>
<li><code>&apos;max_length&apos;</code>: Pad to a maximum length specified with the argument <code>max_length</code> or to the maximum
acceptable input length for the model if that argument is not provided.</li>
<li><code>False</code> or <code>&apos;do_not_pad&apos;</code> (default): No padding (i.e., can output a batch with sequences of different
lengths).</li>
</ul>`,name:"padding"},{anchor:"transformers.SequenceFeatureExtractor.pad.max_length",description:`<strong>max_length</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Maximum length of the returned list and optionally padding length (see above).`,name:"max_length"},{anchor:"transformers.SequenceFeatureExtractor.pad.truncation",description:`<strong>truncation</strong> (<code>bool</code>) &#x2014;
Activates truncation to cut input sequences longer than <code>max_length</code> to <code>max_length</code>.`,name:"truncation"},{anchor:"transformers.SequenceFeatureExtractor.pad.pad_to_multiple_of",description:`<strong>pad_to_multiple_of</strong> (<code>int</code>, <em>optional</em>) &#x2014;
If set will pad the sequence to a multiple of the provided value.</p>
<p>This is especially useful to enable the use of Tensor Cores on NVIDIA hardware with compute capability
<code>&gt;= 7.5</code> (Volta), or on TPUs which benefit from having sequence lengths be a multiple of 128.`,name:"pad_to_multiple_of"},{anchor:"transformers.SequenceFeatureExtractor.pad.return_attention_mask",description:`<strong>return_attention_mask</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to return the attention mask. If left to the default, will return the attention mask according
to the specific feature_extractor&#x2019;s default.</p>
<p><a href="../glossary#attention-mask">What are attention masks?</a>`,name:"return_attention_mask"},{anchor:"transformers.SequenceFeatureExtractor.pad.return_tensors",description:`<strong>return_tensors</strong> (<code>str</code> or <a href="/docs/transformers/v4.33.3/en/internal/file_utils#transformers.TensorType">TensorType</a>, <em>optional</em>) &#x2014;
If set, will return tensors instead of list of python integers. Acceptable values are:</p>
<ul>
<li><code>&apos;tf&apos;</code>: Return TensorFlow <code>tf.constant</code> objects.</li>
<li><code>&apos;pt&apos;</code>: Return PyTorch <code>torch.Tensor</code> objects.</li>
<li><code>&apos;np&apos;</code>: Return Numpy <code>np.ndarray</code> objects.</li>
</ul>`,name:"return_tensors"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/feature_extraction_sequence_utils.py#L52"}}),B=new xa({props:{$$slots:{default:[$a]},$$scope:{ctx:Je}}}),he=new pt({}),fe=new $({props:{name:"class transformers.BatchFeature",anchor:"transformers.BatchFeature",parameters:[{name:"data",val:": typing.Union[typing.Dict[str, typing.Any], NoneType] = None"},{name:"tensor_type",val:": typing.Union[NoneType, str, transformers.utils.generic.TensorType] = None"}],parametersDescription:[{anchor:"transformers.BatchFeature.data",description:`<strong>data</strong> (<code>dict</code>) &#x2014;
Dictionary of lists/arrays/tensors returned by the <strong>call</strong>/pad methods (&#x2018;input_values&#x2019;, &#x2018;attention_mask&#x2019;,
etc.).`,name:"data"},{anchor:"transformers.BatchFeature.tensor_type",description:`<strong>tensor_type</strong> (<code>Union[None, str, TensorType]</code>, <em>optional</em>) &#x2014;
You can give a tensor_type here to convert the lists of integers in PyTorch/TensorFlow/Numpy Tensors at
initialization.`,name:"tensor_type"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/feature_extraction_utils.py#L61"}}),ge=new $({props:{name:"convert_to_tensors",anchor:"transformers.BatchFeature.convert_to_tensors",parameters:[{name:"tensor_type",val:": typing.Union[str, transformers.utils.generic.TensorType, NoneType] = None"}],parametersDescription:[{anchor:"transformers.BatchFeature.convert_to_tensors.tensor_type",description:`<strong>tensor_type</strong> (<code>str</code> or <a href="/docs/transformers/v4.33.3/en/internal/file_utils#transformers.TensorType">TensorType</a>, <em>optional</em>) &#x2014;
The type of tensors to use. If <code>str</code>, should be one of the values of the enum <a href="/docs/transformers/v4.33.3/en/internal/file_utils#transformers.TensorType">TensorType</a>. If
<code>None</code>, no modification is done.`,name:"tensor_type"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/feature_extraction_utils.py#L115"}}),ve=new $({props:{name:"to",anchor:"transformers.BatchFeature.to",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.BatchFeature.to.args",description:`<strong>args</strong> (<code>Tuple</code>) &#x2014;
Will be passed to the <code>to(...)</code> function of the tensors.`,name:"args"},{anchor:"transformers.BatchFeature.to.kwargs",description:`<strong>kwargs</strong> (<code>Dict</code>, <em>optional</em>) &#x2014;
Will be passed to the <code>to(...)</code> function of the tensors.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/feature_extraction_utils.py#L188",returnDescription:`
<p>The same instance after modification.</p>
`,returnType:`
<p><a
  href="/docs/transformers/v4.33.3/en/main_classes/image_processor#transformers.BatchFeature"
>BatchFeature</a></p>
`}}),xe=new pt({}),_e=new $({props:{name:"class transformers.ImageFeatureExtractionMixin",anchor:"transformers.ImageFeatureExtractionMixin",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/image_utils.py#L326"}}),ye=new $({props:{name:"center_crop",anchor:"transformers.ImageFeatureExtractionMixin.center_crop",parameters:[{name:"image",val:""},{name:"size",val:""}],parametersDescription:[{anchor:"transformers.ImageFeatureExtractionMixin.center_crop.image",description:`<strong>image</strong> (<code>PIL.Image.Image</code> or <code>np.ndarray</code> or <code>torch.Tensor</code> of shape (n_channels, height, width) or (height, width, n_channels)) &#x2014;
The image to resize.`,name:"image"},{anchor:"transformers.ImageFeatureExtractionMixin.center_crop.size",description:`<strong>size</strong> (<code>int</code> or <code>Tuple[int, int]</code>) &#x2014;
The size to which crop the image.`,name:"size"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/image_utils.py#L554",returnDescription:`
<p>A center cropped <code>PIL.Image.Image</code> or <code>np.ndarray</code> or <code>torch.Tensor</code> of shape: (n_channels,
height, width).</p>
`,returnType:`
<p>new_image</p>
`}}),be=new $({props:{name:"convert_rgb",anchor:"transformers.ImageFeatureExtractionMixin.convert_rgb",parameters:[{name:"image",val:""}],parametersDescription:[{anchor:"transformers.ImageFeatureExtractionMixin.convert_rgb.image",description:`<strong>image</strong> (<code>PIL.Image.Image</code>) &#x2014;
The image to convert.`,name:"image"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/image_utils.py#L368"}}),$e=new $({props:{name:"expand_dims",anchor:"transformers.ImageFeatureExtractionMixin.expand_dims",parameters:[{name:"image",val:""}],parametersDescription:[{anchor:"transformers.ImageFeatureExtractionMixin.expand_dims.image",description:`<strong>image</strong> (<code>PIL.Image.Image</code> or <code>np.ndarray</code> or <code>torch.Tensor</code>) &#x2014;
The image to expand.`,name:"image"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/image_utils.py#L421"}}),we=new $({props:{name:"flip_channel_order",anchor:"transformers.ImageFeatureExtractionMixin.flip_channel_order",parameters:[{name:"image",val:""}],parametersDescription:[{anchor:"transformers.ImageFeatureExtractionMixin.flip_channel_order.image",description:`<strong>image</strong> (<code>PIL.Image.Image</code> or <code>np.ndarray</code> or <code>torch.Tensor</code>) &#x2014;
The image whose color channels to flip. If <code>np.ndarray</code> or <code>torch.Tensor</code>, the channel dimension should
be first.`,name:"image"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/image_utils.py#L629"}}),Te=new $({props:{name:"normalize",anchor:"transformers.ImageFeatureExtractionMixin.normalize",parameters:[{name:"image",val:""},{name:"mean",val:""},{name:"std",val:""},{name:"rescale",val:" = False"}],parametersDescription:[{anchor:"transformers.ImageFeatureExtractionMixin.normalize.image",description:`<strong>image</strong> (<code>PIL.Image.Image</code> or <code>np.ndarray</code> or <code>torch.Tensor</code>) &#x2014;
The image to normalize.`,name:"image"},{anchor:"transformers.ImageFeatureExtractionMixin.normalize.mean",description:`<strong>mean</strong> (<code>List[float]</code> or <code>np.ndarray</code> or <code>torch.Tensor</code>) &#x2014;
The mean (per channel) to use for normalization.`,name:"mean"},{anchor:"transformers.ImageFeatureExtractionMixin.normalize.std",description:`<strong>std</strong> (<code>List[float]</code> or <code>np.ndarray</code> or <code>torch.Tensor</code>) &#x2014;
The standard deviation (per channel) to use for normalization.`,name:"std"},{anchor:"transformers.ImageFeatureExtractionMixin.normalize.rescale",description:`<strong>rescale</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to rescale the image to be between 0 and 1. If a PIL image is provided, scaling will
happen automatically.`,name:"rescale"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/image_utils.py#L441"}}),Fe=new $({props:{name:"rescale",anchor:"transformers.ImageFeatureExtractionMixin.rescale",parameters:[{name:"image",val:": ndarray"},{name:"scale",val:": typing.Union[float, int]"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/image_utils.py#L382"}}),Me=new $({props:{name:"resize",anchor:"transformers.ImageFeatureExtractionMixin.resize",parameters:[{name:"image",val:""},{name:"size",val:""},{name:"resample",val:" = None"},{name:"default_to_square",val:" = True"},{name:"max_size",val:" = None"}],parametersDescription:[{anchor:"transformers.ImageFeatureExtractionMixin.resize.image",description:`<strong>image</strong> (<code>PIL.Image.Image</code> or <code>np.ndarray</code> or <code>torch.Tensor</code>) &#x2014;
The image to resize.`,name:"image"},{anchor:"transformers.ImageFeatureExtractionMixin.resize.size",description:`<strong>size</strong> (<code>int</code> or <code>Tuple[int, int]</code>) &#x2014;
The size to use for resizing the image. If <code>size</code> is a sequence like (h, w), output size will be
matched to this.</p>
<p>If <code>size</code> is an int and <code>default_to_square</code> is <code>True</code>, then image will be resized to (size, size). If
<code>size</code> is an int and <code>default_to_square</code> is <code>False</code>, then smaller edge of the image will be matched to
this number. i.e, if height &gt; width, then image will be rescaled to (size * height / width, size).`,name:"size"},{anchor:"transformers.ImageFeatureExtractionMixin.resize.resample",description:`<strong>resample</strong> (<code>int</code>, <em>optional</em>, defaults to <code>PILImageResampling.BILINEAR</code>) &#x2014;
The filter to user for resampling.`,name:"resample"},{anchor:"transformers.ImageFeatureExtractionMixin.resize.default_to_square",description:`<strong>default_to_square</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
How to convert <code>size</code> when it is a single int. If set to <code>True</code>, the <code>size</code> will be converted to a
square (<code>size</code>,<code>size</code>). If set to <code>False</code>, will replicate
<a href="https://pytorch.org/vision/stable/transforms.html#torchvision.transforms.Resize" rel="nofollow"><code>torchvision.transforms.Resize</code></a>
with support for resizing only the smallest edge and providing an optional <code>max_size</code>.`,name:"default_to_square"},{anchor:"transformers.ImageFeatureExtractionMixin.resize.max_size",description:`<strong>max_size</strong> (<code>int</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
The maximum allowed for the longer edge of the resized image: if the longer edge of the image is
greater than <code>max_size</code> after being resized according to <code>size</code>, then the image is resized again so
that the longer edge is equal to <code>max_size</code>. As a result, <code>size</code> might be overruled, i.e the smaller
edge may be shorter than <code>size</code>. Only used if <code>default_to_square</code> is <code>False</code>.`,name:"max_size"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/image_utils.py#L487",returnDescription:`
<p>A resized <code>PIL.Image.Image</code>.</p>
`,returnType:`
<p>image</p>
`}}),Ie=new $({props:{name:"rotate",anchor:"transformers.ImageFeatureExtractionMixin.rotate",parameters:[{name:"image",val:""},{name:"angle",val:""},{name:"resample",val:" = None"},{name:"expand",val:" = 0"},{name:"center",val:" = None"},{name:"translate",val:" = None"},{name:"fillcolor",val:" = None"}],parametersDescription:[{anchor:"transformers.ImageFeatureExtractionMixin.rotate.image",description:`<strong>image</strong> (<code>PIL.Image.Image</code> or <code>np.ndarray</code> or <code>torch.Tensor</code>) &#x2014;
The image to rotate. If <code>np.ndarray</code> or <code>torch.Tensor</code>, will be converted to <code>PIL.Image.Image</code> before
rotating.`,name:"image"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/image_utils.py#L646",returnDescription:`
<p>A rotated <code>PIL.Image.Image</code>.</p>
`,returnType:`
<p>image</p>
`}}),Ee=new $({props:{name:"to_numpy_array",anchor:"transformers.ImageFeatureExtractionMixin.to_numpy_array",parameters:[{name:"image",val:""},{name:"rescale",val:" = None"},{name:"channel_first",val:" = True"}],parametersDescription:[{anchor:"transformers.ImageFeatureExtractionMixin.to_numpy_array.image",description:`<strong>image</strong> (<code>PIL.Image.Image</code> or <code>np.ndarray</code> or <code>torch.Tensor</code>) &#x2014;
The image to convert to a NumPy array.`,name:"image"},{anchor:"transformers.ImageFeatureExtractionMixin.to_numpy_array.rescale",description:`<strong>rescale</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to apply the scaling factor (to make pixel values floats between 0. and 1.). Will
default to <code>True</code> if the image is a PIL Image or an array/tensor of integers, <code>False</code> otherwise.`,name:"rescale"},{anchor:"transformers.ImageFeatureExtractionMixin.to_numpy_array.channel_first",description:`<strong>channel_first</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to permute the dimensions of the image to put the channel dimension first.`,name:"channel_first"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/image_utils.py#L389"}}),Le=new $({props:{name:"to_pil_image",anchor:"transformers.ImageFeatureExtractionMixin.to_pil_image",parameters:[{name:"image",val:""},{name:"rescale",val:" = None"}],parametersDescription:[{anchor:"transformers.ImageFeatureExtractionMixin.to_pil_image.image",description:`<strong>image</strong> (<code>PIL.Image.Image</code> or <code>numpy.ndarray</code> or <code>torch.Tensor</code>) &#x2014;
The image to convert to the PIL Image format.`,name:"image"},{anchor:"transformers.ImageFeatureExtractionMixin.to_pil_image.rescale",description:`<strong>rescale</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to apply the scaling factor (to make pixel values integers between 0 and 255). Will
default to <code>True</code> if the image type is a floating type, <code>False</code> otherwise.`,name:"rescale"}],source:"https://github.com/huggingface/transformers/blob/v4.33.3/src/transformers/image_utils.py#L338"}}),{c(){_=r("meta"),z=n(),w=r("p"),F=n(),M=r("h1"),b=r("a"),j=r("span"),p(ne.$$.fragment),Rt=n(),ke=r("span"),ke.textContent=zr,ut=n(),se=r("p"),se.innerHTML=Jr,ht=n(),P=r("h2"),V=r("a"),st=r("span"),p(ie.$$.fragment),Bt=n(),je=r("span"),je.textContent=kr,ft=n(),I=r("div"),p(ce.$$.fragment),Wt=n(),Pe=r("p"),Pe.textContent=jr,Dt=n(),J=r("div"),p(le.$$.fragment),Ut=n(),Ce=r("p"),Ce.innerHTML=Pr,Xt=n(),p(H.$$.fragment),St=n(),q=r("div"),p(de.$$.fragment),Yt=n(),Ze=r("p"),Ze.innerHTML=Cr,gt=n(),C=r("h2"),R=r("a"),it=r("span"),p(me.$$.fragment),At=n(),Ne=r("span"),Ne.textContent=Zr,vt=n(),L=r("div"),p(pe.$$.fragment),Gt=n(),Ve=r("p"),Ve.textContent=Nr,Qt=n(),E=r("div"),p(ue.$$.fragment),Ot=n(),He=r("p"),He.textContent=Vr,Kt=n(),qe=r("p"),qe.innerHTML=Hr,er=n(),p(B.$$.fragment),xt=n(),Z=r("h2"),W=r("a"),ct=r("span"),p(he.$$.fragment),tr=n(),Re=r("span"),Re.textContent=qr,_t=n(),T=r("div"),p(fe.$$.fragment),rr=n(),Be=r("p"),Be.innerHTML=Rr,ar=n(),We=r("p"),We.textContent=Br,or=n(),D=r("div"),p(ge.$$.fragment),nr=n(),De=r("p"),De.textContent=Wr,sr=n(),U=r("div"),p(ve.$$.fragment),ir=n(),Ue=r("p"),Ue.innerHTML=Dr,yt=n(),N=r("h2"),X=r("a"),lt=r("span"),p(xe.$$.fragment),cr=n(),Xe=r("span"),Xe.textContent=Ur,bt=n(),d=r("div"),p(_e.$$.fragment),lr=n(),Se=r("p"),Se.textContent=Xr,dr=n(),S=r("div"),p(ye.$$.fragment),mr=n(),Ye=r("p"),Ye.innerHTML=Sr,pr=n(),Y=r("div"),p(be.$$.fragment),ur=n(),Ae=r("p"),Ae.innerHTML=Yr,hr=n(),A=r("div"),p($e.$$.fragment),fr=n(),Ge=r("p"),Ge.innerHTML=Ar,gr=n(),G=r("div"),p(we.$$.fragment),vr=n(),Qe=r("p"),Qe.innerHTML=Gr,xr=n(),Q=r("div"),p(Te.$$.fragment),_r=n(),Oe=r("p"),Oe.innerHTML=Qr,yr=n(),O=r("div"),p(Fe.$$.fragment),br=n(),Ke=r("p"),Ke.textContent=Or,$r=n(),K=r("div"),p(Me.$$.fragment),wr=n(),et=r("p"),et.innerHTML=Kr,Tr=n(),ee=r("div"),p(Ie.$$.fragment),Fr=n(),tt=r("p"),tt.innerHTML=ea,Mr=n(),te=r("div"),p(Ee.$$.fragment),Ir=n(),rt=r("p"),rt.innerHTML=ta,Er=n(),re=r("div"),p(Le.$$.fragment),Lr=n(),at=r("p"),at.innerHTML=ra,$t=n(),dt=r("p"),this.h()},l(e){const l=va("svelte-1phssyn",document.head);_=a(l,"META",{name:!0,content:!0}),l.forEach(o),z=s(e),w=a(e,"P",{}),c(w).forEach(o),F=s(e),M=a(e,"H1",{class:!0});var ze=c(M);b=a(ze,"A",{id:!0,class:!0,href:!0});var mt=c(b);j=a(mt,"SPAN",{});var aa=c(j);u(ne.$$.fragment,aa),aa.forEach(o),mt.forEach(o),Rt=s(ze),ke=a(ze,"SPAN",{"data-svelte-h":!0}),m(ke)!=="svelte-vi0yzx"&&(ke.textContent=zr),ze.forEach(o),ut=s(e),se=a(e,"P",{"data-svelte-h":!0}),m(se)!=="svelte-1wuf1ro"&&(se.innerHTML=Jr),ht=s(e),P=a(e,"H2",{class:!0});var Tt=c(P);V=a(Tt,"A",{id:!0,class:!0,href:!0});var oa=c(V);st=a(oa,"SPAN",{});var na=c(st);u(ie.$$.fragment,na),na.forEach(o),oa.forEach(o),Bt=s(Tt),je=a(Tt,"SPAN",{"data-svelte-h":!0}),m(je)!=="svelte-11i2lo9"&&(je.textContent=kr),Tt.forEach(o),ft=s(e),I=a(e,"DIV",{class:!0});var ae=c(I);u(ce.$$.fragment,ae),Wt=s(ae),Pe=a(ae,"P",{"data-svelte-h":!0}),m(Pe)!=="svelte-1u6z21f"&&(Pe.textContent=jr),Dt=s(ae),J=a(ae,"DIV",{class:!0});var ot=c(J);u(le.$$.fragment,ot),Ut=s(ot),Ce=a(ot,"P",{"data-svelte-h":!0}),m(Ce)!=="svelte-1dj1fkh"&&(Ce.innerHTML=Pr),Xt=s(ot),u(H.$$.fragment,ot),ot.forEach(o),St=s(ae),q=a(ae,"DIV",{class:!0});var Ft=c(q);u(de.$$.fragment,Ft),Yt=s(Ft),Ze=a(Ft,"P",{"data-svelte-h":!0}),m(Ze)!=="svelte-1f0fegq"&&(Ze.innerHTML=Cr),Ft.forEach(o),ae.forEach(o),gt=s(e),C=a(e,"H2",{class:!0});var Mt=c(C);R=a(Mt,"A",{id:!0,class:!0,href:!0});var sa=c(R);it=a(sa,"SPAN",{});var ia=c(it);u(me.$$.fragment,ia),ia.forEach(o),sa.forEach(o),At=s(Mt),Ne=a(Mt,"SPAN",{"data-svelte-h":!0}),m(Ne)!=="svelte-1u2l8p8"&&(Ne.textContent=Zr),Mt.forEach(o),vt=s(e),L=a(e,"DIV",{class:!0});var nt=c(L);u(pe.$$.fragment,nt),Gt=s(nt),Ve=a(nt,"P",{"data-svelte-h":!0}),m(Ve)!=="svelte-fkistw"&&(Ve.textContent=Nr),Qt=s(nt),E=a(nt,"DIV",{class:!0});var oe=c(E);u(ue.$$.fragment,oe),Ot=s(oe),He=a(oe,"P",{"data-svelte-h":!0}),m(He)!=="svelte-1ocd2wm"&&(He.textContent=Vr),Kt=s(oe),qe=a(oe,"P",{"data-svelte-h":!0}),m(qe)!=="svelte-oeftzc"&&(qe.innerHTML=Hr),er=s(oe),u(B.$$.fragment,oe),oe.forEach(o),nt.forEach(o),xt=s(e),Z=a(e,"H2",{class:!0});var It=c(Z);W=a(It,"A",{id:!0,class:!0,href:!0});var ca=c(W);ct=a(ca,"SPAN",{});var la=c(ct);u(he.$$.fragment,la),la.forEach(o),ca.forEach(o),tr=s(It),Re=a(It,"SPAN",{"data-svelte-h":!0}),m(Re)!=="svelte-1ntv8h3"&&(Re.textContent=qr),It.forEach(o),_t=s(e),T=a(e,"DIV",{class:!0});var k=c(T);u(fe.$$.fragment,k),rr=s(k),Be=a(k,"P",{"data-svelte-h":!0}),m(Be)!=="svelte-uw0t00"&&(Be.innerHTML=Rr),ar=s(k),We=a(k,"P",{"data-svelte-h":!0}),m(We)!=="svelte-saqdtk"&&(We.textContent=Br),or=s(k),D=a(k,"DIV",{class:!0});var Et=c(D);u(ge.$$.fragment,Et),nr=s(Et),De=a(Et,"P",{"data-svelte-h":!0}),m(De)!=="svelte-pxfh9u"&&(De.textContent=Wr),Et.forEach(o),sr=s(k),U=a(k,"DIV",{class:!0});var Lt=c(U);u(ve.$$.fragment,Lt),ir=s(Lt),Ue=a(Lt,"P",{"data-svelte-h":!0}),m(Ue)!=="svelte-d0cfhs"&&(Ue.innerHTML=Dr),Lt.forEach(o),k.forEach(o),yt=s(e),N=a(e,"H2",{class:!0});var zt=c(N);X=a(zt,"A",{id:!0,class:!0,href:!0});var da=c(X);lt=a(da,"SPAN",{});var ma=c(lt);u(xe.$$.fragment,ma),ma.forEach(o),da.forEach(o),cr=s(zt),Xe=a(zt,"SPAN",{"data-svelte-h":!0}),m(Xe)!=="svelte-129bue"&&(Xe.textContent=Ur),zt.forEach(o),bt=s(e),d=a(e,"DIV",{class:!0});var y=c(d);u(_e.$$.fragment,y),lr=s(y),Se=a(y,"P",{"data-svelte-h":!0}),m(Se)!=="svelte-393l39"&&(Se.textContent=Xr),dr=s(y),S=a(y,"DIV",{class:!0});var Jt=c(S);u(ye.$$.fragment,Jt),mr=s(Jt),Ye=a(Jt,"P",{"data-svelte-h":!0}),m(Ye)!=="svelte-klynef"&&(Ye.innerHTML=Sr),Jt.forEach(o),pr=s(y),Y=a(y,"DIV",{class:!0});var kt=c(Y);u(be.$$.fragment,kt),ur=s(kt),Ae=a(kt,"P",{"data-svelte-h":!0}),m(Ae)!=="svelte-133v6j"&&(Ae.innerHTML=Yr),kt.forEach(o),hr=s(y),A=a(y,"DIV",{class:!0});var jt=c(A);u($e.$$.fragment,jt),fr=s(jt),Ge=a(jt,"P",{"data-svelte-h":!0}),m(Ge)!=="svelte-1041ew6"&&(Ge.innerHTML=Ar),jt.forEach(o),gr=s(y),G=a(y,"DIV",{class:!0});var Pt=c(G);u(we.$$.fragment,Pt),vr=s(Pt),Qe=a(Pt,"P",{"data-svelte-h":!0}),m(Qe)!=="svelte-w2v4kz"&&(Qe.innerHTML=Gr),Pt.forEach(o),xr=s(y),Q=a(y,"DIV",{class:!0});var Ct=c(Q);u(Te.$$.fragment,Ct),_r=s(Ct),Oe=a(Ct,"P",{"data-svelte-h":!0}),m(Oe)!=="svelte-1omk197"&&(Oe.innerHTML=Qr),Ct.forEach(o),yr=s(y),O=a(y,"DIV",{class:!0});var Zt=c(O);u(Fe.$$.fragment,Zt),br=s(Zt),Ke=a(Zt,"P",{"data-svelte-h":!0}),m(Ke)!=="svelte-92qzed"&&(Ke.textContent=Or),Zt.forEach(o),$r=s(y),K=a(y,"DIV",{class:!0});var Nt=c(K);u(Me.$$.fragment,Nt),wr=s(Nt),et=a(Nt,"P",{"data-svelte-h":!0}),m(et)!=="svelte-dheqn4"&&(et.innerHTML=Kr),Nt.forEach(o),Tr=s(y),ee=a(y,"DIV",{class:!0});var Vt=c(ee);u(Ie.$$.fragment,Vt),Fr=s(Vt),tt=a(Vt,"P",{"data-svelte-h":!0}),m(tt)!=="svelte-sbsh56"&&(tt.innerHTML=ea),Vt.forEach(o),Mr=s(y),te=a(y,"DIV",{class:!0});var Ht=c(te);u(Ee.$$.fragment,Ht),Ir=s(Ht),rt=a(Ht,"P",{"data-svelte-h":!0}),m(rt)!=="svelte-pgs2u0"&&(rt.innerHTML=ta),Ht.forEach(o),Er=s(y),re=a(y,"DIV",{class:!0});var qt=c(re);u(Le.$$.fragment,qt),Lr=s(qt),at=a(qt,"P",{"data-svelte-h":!0}),m(at)!=="svelte-e557ju"&&(at.innerHTML=ra),qt.forEach(o),y.forEach(o),$t=s(e),dt=a(e,"P",{}),c(dt).forEach(o),this.h()},h(){i(_,"name","hf:doc:metadata"),i(_,"content",JSON.stringify(Ta)),i(b,"id","feature-extractor"),i(b,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(b,"href","#feature-extractor"),i(M,"class","relative group"),i(V,"id","transformers.FeatureExtractionMixin"),i(V,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(V,"href","#transformers.FeatureExtractionMixin"),i(P,"class","relative group"),i(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(R,"id","transformers.SequenceFeatureExtractor"),i(R,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(R,"href","#transformers.SequenceFeatureExtractor"),i(C,"class","relative group"),i(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(W,"id","transformers.BatchFeature"),i(W,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(W,"href","#transformers.BatchFeature"),i(Z,"class","relative group"),i(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(X,"id","transformers.ImageFeatureExtractionMixin"),i(X,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(X,"href","#transformers.ImageFeatureExtractionMixin"),i(N,"class","relative group"),i(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),i(d,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,l){t(document.head,_),x(e,z,l),x(e,w,l),x(e,F,l),x(e,M,l),t(M,b),t(b,j),h(ne,j,null),t(M,Rt),t(M,ke),x(e,ut,l),x(e,se,l),x(e,ht,l),x(e,P,l),t(P,V),t(V,st),h(ie,st,null),t(P,Bt),t(P,je),x(e,ft,l),x(e,I,l),h(ce,I,null),t(I,Wt),t(I,Pe),t(I,Dt),t(I,J),h(le,J,null),t(J,Ut),t(J,Ce),t(J,Xt),h(H,J,null),t(I,St),t(I,q),h(de,q,null),t(q,Yt),t(q,Ze),x(e,gt,l),x(e,C,l),t(C,R),t(R,it),h(me,it,null),t(C,At),t(C,Ne),x(e,vt,l),x(e,L,l),h(pe,L,null),t(L,Gt),t(L,Ve),t(L,Qt),t(L,E),h(ue,E,null),t(E,Ot),t(E,He),t(E,Kt),t(E,qe),t(E,er),h(B,E,null),x(e,xt,l),x(e,Z,l),t(Z,W),t(W,ct),h(he,ct,null),t(Z,tr),t(Z,Re),x(e,_t,l),x(e,T,l),h(fe,T,null),t(T,rr),t(T,Be),t(T,ar),t(T,We),t(T,or),t(T,D),h(ge,D,null),t(D,nr),t(D,De),t(T,sr),t(T,U),h(ve,U,null),t(U,ir),t(U,Ue),x(e,yt,l),x(e,N,l),t(N,X),t(X,lt),h(xe,lt,null),t(N,cr),t(N,Xe),x(e,bt,l),x(e,d,l),h(_e,d,null),t(d,lr),t(d,Se),t(d,dr),t(d,S),h(ye,S,null),t(S,mr),t(S,Ye),t(d,pr),t(d,Y),h(be,Y,null),t(Y,ur),t(Y,Ae),t(d,hr),t(d,A),h($e,A,null),t(A,fr),t(A,Ge),t(d,gr),t(d,G),h(we,G,null),t(G,vr),t(G,Qe),t(d,xr),t(d,Q),h(Te,Q,null),t(Q,_r),t(Q,Oe),t(d,yr),t(d,O),h(Fe,O,null),t(O,br),t(O,Ke),t(d,$r),t(d,K),h(Me,K,null),t(K,wr),t(K,et),t(d,Tr),t(d,ee),h(Ie,ee,null),t(ee,Fr),t(ee,tt),t(d,Mr),t(d,te),h(Ee,te,null),t(te,Ir),t(te,rt),t(d,Er),t(d,re),h(Le,re,null),t(re,Lr),t(re,at),x(e,$t,l),x(e,dt,l),wt=!0},p(e,[l]){const ze={};l&2&&(ze.$$scope={dirty:l,ctx:e}),H.$set(ze);const mt={};l&2&&(mt.$$scope={dirty:l,ctx:e}),B.$set(mt)},i(e){wt||(f(ne.$$.fragment,e),f(ie.$$.fragment,e),f(ce.$$.fragment,e),f(le.$$.fragment,e),f(H.$$.fragment,e),f(de.$$.fragment,e),f(me.$$.fragment,e),f(pe.$$.fragment,e),f(ue.$$.fragment,e),f(B.$$.fragment,e),f(he.$$.fragment,e),f(fe.$$.fragment,e),f(ge.$$.fragment,e),f(ve.$$.fragment,e),f(xe.$$.fragment,e),f(_e.$$.fragment,e),f(ye.$$.fragment,e),f(be.$$.fragment,e),f($e.$$.fragment,e),f(we.$$.fragment,e),f(Te.$$.fragment,e),f(Fe.$$.fragment,e),f(Me.$$.fragment,e),f(Ie.$$.fragment,e),f(Ee.$$.fragment,e),f(Le.$$.fragment,e),wt=!0)},o(e){g(ne.$$.fragment,e),g(ie.$$.fragment,e),g(ce.$$.fragment,e),g(le.$$.fragment,e),g(H.$$.fragment,e),g(de.$$.fragment,e),g(me.$$.fragment,e),g(pe.$$.fragment,e),g(ue.$$.fragment,e),g(B.$$.fragment,e),g(he.$$.fragment,e),g(fe.$$.fragment,e),g(ge.$$.fragment,e),g(ve.$$.fragment,e),g(xe.$$.fragment,e),g(_e.$$.fragment,e),g(ye.$$.fragment,e),g(be.$$.fragment,e),g($e.$$.fragment,e),g(we.$$.fragment,e),g(Te.$$.fragment,e),g(Fe.$$.fragment,e),g(Me.$$.fragment,e),g(Ie.$$.fragment,e),g(Ee.$$.fragment,e),g(Le.$$.fragment,e),wt=!1},d(e){e&&(o(z),o(w),o(F),o(M),o(ut),o(se),o(ht),o(P),o(ft),o(I),o(gt),o(C),o(vt),o(L),o(xt),o(Z),o(_t),o(T),o(yt),o(N),o(bt),o(d),o($t),o(dt)),o(_),v(ne),v(ie),v(ce),v(le),v(H),v(de),v(me),v(pe),v(ue),v(B),v(he),v(fe),v(ge),v(ve),v(xe),v(_e),v(ye),v(be),v($e),v(we),v(Te),v(Fe),v(Me),v(Ie),v(Ee),v(Le)}}}const Ta={local:"feature-extractor",sections:[{local:"transformers.FeatureExtractionMixin",title:"FeatureExtractionMixin"},{local:"transformers.SequenceFeatureExtractor",title:"SequenceFeatureExtractor"},{local:"transformers.BatchFeature",title:"BatchFeature"},{local:"transformers.ImageFeatureExtractionMixin",title:"ImageFeatureExtractionMixin"}],title:"Feature Extractor"};function Fa(Je){return ha(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ja extends fa{constructor(_){super(),ga(this,_,Fa,wa,ua,{})}}export{ja as component};
