import{s as Fr,o as Er,n as wr}from"../chunks/scheduler.9991993c.js";import{S as zr,i as Jr,g as o,s as r,r as p,A as Lr,h as n,f as s,c as a,j as v,u,x as d,k as b,y as t,a as l,v as f,d as g,t as h,w as _}from"../chunks/index.7fc9a5e7.js";import{T as jr}from"../chunks/Tip.9de92fc6.js";import{D as $}from"../chunks/Docstring.0d7e3ebb.js";import{C as Cr}from"../chunks/CodeBlock.e11cba92.js";import{E as Pr}from"../chunks/ExampleCodeBlock.46b9776a.js";import{H as Ir,E as Zr}from"../chunks/EditOnGithub.84ab7f0e.js";function kr($e){let m,j="Examples:",T,I,F;return I=new Cr({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>}`,wrap:!1}}),{c(){m=o("p"),m.textContent=j,T=r(),p(I.$$.fragment)},l(y){m=n(y,"P",{"data-svelte-h":!0}),d(m)!=="svelte-kvfsh7"&&(m.textContent=j),T=a(y),u(I.$$.fragment,y)},m(y,z){l(y,m,z),l(y,T,z),f(I,y,z),F=!0},p:wr,i(y){F||(g(I.$$.fragment,y),F=!0)},o(y){h(I.$$.fragment,y),F=!1},d(y){y&&(s(m),s(T)),_(I,y)}}}function Vr($e){let m,j=`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(){m=o("p"),m.innerHTML=j},l(T){m=n(T,"P",{"data-svelte-h":!0}),d(m)!=="svelte-yvqf1m"&&(m.innerHTML=j)},m(T,I){l(T,m,I)},p:wr,d(T){T&&s(m)}}}function Hr($e){let m,j,T,I,F,y,z,er="Feature Extractor负责为音频或视觉模型准备输入特征。这包括从序列中提取特征，例如，对音频文件进行预处理以生成Log-Mel频谱特征，以及从图像中提取特征，例如，裁剪图像文件，同时还包括填充、归一化和转换为NumPy、PyTorch和TensorFlow张量。",Xe,O,Ye,w,K,ht,Te,tr=`This is a feature extraction mixin used to provide saving/loading functionality for sequential and image feature
extractors.`,_t,C,ee,xt,Me,rr=`Instantiate a type of <a href="/docs/transformers/pr_31208/zh/main_classes/feature_extractor#transformers.FeatureExtractionMixin">FeatureExtractionMixin</a> from a feature extractor, <em>e.g.</em> a
derived class of <a href="/docs/transformers/pr_31208/zh/main_classes/feature_extractor#transformers.SequenceFeatureExtractor">SequenceFeatureExtractor</a>.`,vt,k,bt,V,te,yt,Ie,ar=`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/pr_31208/zh/main_classes/feature_extractor#transformers.FeatureExtractionMixin.from_pretrained">from_pretrained()</a> class method.`,Ge,re,or="## SequenceFeatureExtractor[[transformers.SequenceFeatureExtractor]]",Se,J,ae,$t,we,nr="This is a general feature extraction class for speech recognition.",Tt,E,oe,Mt,Fe,sr=`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.`,It,Ee,ir=`Padding side (left/right) padding values are defined at the feature extractor level (with <code>self.padding_side</code>,
<code>self.padding_value</code>)`,wt,H,Ae,ne,cr="## BatchFeature[[transformers.BatchFeature]]",Qe,M,se,Ft,ze,dr='Holds the output of the <a href="/docs/transformers/pr_31208/zh/main_classes/feature_extractor#transformers.SequenceFeatureExtractor.pad">pad()</a> and feature extractor specific <code>__call__</code> methods.',Et,Je,lr="This class is derived from a python dictionary and can be used as a dictionary.",zt,q,ie,Jt,Le,mr="Convert the inner content to tensors.",Lt,R,ce,jt,je,pr=`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>.`,Oe,de,ur="## ImageFeatureExtractionMixin[[transformers.ImageFeatureExtractionMixin]]",Ke,c,le,Ct,Ce,fr="Mixin that contain utilities for preparing image features.",Pt,W,me,Zt,Pe,gr=`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).`,kt,N,pe,Vt,Ze,hr="Converts <code>PIL.Image.Image</code> to RGB format.",Ht,U,ue,qt,ke,_r="Expands 2-dimensional <code>image</code> to 3 dimensions.",Rt,D,fe,Wt,Ve,xr=`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.`,Nt,B,ge,Ut,He,vr=`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.`,Dt,X,he,Bt,qe,br="Rescale a numpy image by scale amount",Xt,Y,_e,Yt,Re,yr="Resizes <code>image</code>. Enforces conversion of input to PIL.Image.",Gt,G,xe,St,We,$r=`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.`,At,S,ve,Qt,Ne,Tr=`Converts <code>image</code> to a numpy array. Optionally rescales it and puts the channel dimension as the first
dimension.`,Ot,A,be,Kt,Ue,Mr=`Converts <code>image</code> to a PIL Image. Optionally rescales it and puts the channel dimension back as the last axis if
needed.`,et,ye,tt,Be,rt;return F=new Ir({props:{title:"Feature Extractor",local:"feature-extractor",headingTag:"h1"}}),O=new Ir({props:{title:"FeatureExtractionMixin",local:"transformers.FeatureExtractionMixin",headingTag:"h2"}}),K=new $({props:{name:"class transformers.FeatureExtractionMixin",anchor:"transformers.FeatureExtractionMixin",parameters:[{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_31208/src/transformers/feature_extraction_utils.py#L241"}}),ee=new $({props:{name:"from_pretrained",anchor:"transformers.FeatureExtractionMixin.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": Union"},{name:"cache_dir",val:": Union = None"},{name:"force_download",val:": bool = False"},{name:"local_files_only",val:": bool = False"},{name:"token",val:": Union = 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.</li>
<li>a path to a <em>directory</em> containing a feature extractor file saved using the
<a href="/docs/transformers/pr_31208/zh/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.
resume_download &#x2014;
Deprecated and ignored. All downloads are now resumed by default when possible.
Will be removed in v5 of Transformers.`,name:"force_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/vr_31208/src/transformers/feature_extraction_utils.py#L265",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A feature extractor of type <a
  href="/docs/transformers/pr_31208/zh/main_classes/feature_extractor#transformers.FeatureExtractionMixin"
>FeatureExtractionMixin</a>.</p>
`}}),k=new Pr({props:{anchor:"transformers.FeatureExtractionMixin.from_pretrained.example",$$slots:{default:[kr]},$$scope:{ctx:$e}}}),te=new $({props:{name:"save_pretrained",anchor:"transformers.FeatureExtractionMixin.save_pretrained",parameters:[{name:"save_directory",val:": Union"},{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/pr_31208/zh/main_classes/model#transformers.utils.PushToHubMixin.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_31208/src/transformers/feature_extraction_utils.py#L377"}}),ae=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/vr_31208/src/transformers/feature_extraction_sequence_utils.py#L30"}}),oe=new $({props:{name:"pad",anchor:"transformers.SequenceFeatureExtractor.pad",parameters:[{name:"processed_features",val:": Union"},{name:"padding",val:": Union = True"},{name:"max_length",val:": Optional = None"},{name:"truncation",val:": bool = False"},{name:"pad_to_multiple_of",val:": Optional = None"},{name:"return_attention_mask",val:": Optional = None"},{name:"return_tensors",val:": Union = None"}],parametersDescription:[{anchor:"transformers.SequenceFeatureExtractor.pad.processed_features",description:`<strong>processed_features</strong> (<a href="/docs/transformers/pr_31208/zh/main_classes/image_processor#transformers.BatchFeature">BatchFeature</a>, list of <a href="/docs/transformers/pr_31208/zh/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/pr_31208/zh/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/pr_31208/zh/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/pr_31208/zh/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/pr_31208/zh/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/vr_31208/src/transformers/feature_extraction_sequence_utils.py#L53"}}),H=new jr({props:{$$slots:{default:[Vr]},$$scope:{ctx:$e}}}),se=new $({props:{name:"class transformers.BatchFeature",anchor:"transformers.BatchFeature",parameters:[{name:"data",val:": Optional = None"},{name:"tensor_type",val:": Union = None"}],parametersDescription:[{anchor:"transformers.BatchFeature.data",description:`<strong>data</strong> (<code>dict</code>, <em>optional</em>) &#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/vr_31208/src/transformers/feature_extraction_utils.py#L62"}}),ie=new $({props:{name:"convert_to_tensors",anchor:"transformers.BatchFeature.convert_to_tensors",parameters:[{name:"tensor_type",val:": Union = None"}],parametersDescription:[{anchor:"transformers.BatchFeature.convert_to_tensors.tensor_type",description:`<strong>tensor_type</strong> (<code>str</code> or <a href="/docs/transformers/pr_31208/zh/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/pr_31208/zh/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/vr_31208/src/transformers/feature_extraction_utils.py#L165"}}),ce=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/vr_31208/src/transformers/feature_extraction_utils.py#L196",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The same instance after modification.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/pr_31208/zh/main_classes/image_processor#transformers.BatchFeature"
>BatchFeature</a></p>
`}}),le=new $({props:{name:"class transformers.ImageFeatureExtractionMixin",anchor:"transformers.ImageFeatureExtractionMixin",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_31208/src/transformers/image_utils.py#L431"}}),me=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/vr_31208/src/transformers/image_utils.py#L659",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<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:`<script context="module">export const metadata = 'undefined';<\/script>


<p>new_image</p>
`}}),pe=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/vr_31208/src/transformers/image_utils.py#L473"}}),ue=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/vr_31208/src/transformers/image_utils.py#L526"}}),fe=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/vr_31208/src/transformers/image_utils.py#L734"}}),ge=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/vr_31208/src/transformers/image_utils.py#L546"}}),he=new $({props:{name:"rescale",anchor:"transformers.ImageFeatureExtractionMixin.rescale",parameters:[{name:"image",val:": ndarray"},{name:"scale",val:": Union"}],source:"https://github.com/huggingface/transformers/blob/vr_31208/src/transformers/image_utils.py#L487"}}),_e=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/vr_31208/src/transformers/image_utils.py#L592",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A resized <code>PIL.Image.Image</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>image</p>
`}}),xe=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/vr_31208/src/transformers/image_utils.py#L751",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A rotated <code>PIL.Image.Image</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>image</p>
`}}),ve=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/vr_31208/src/transformers/image_utils.py#L494"}}),be=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/vr_31208/src/transformers/image_utils.py#L443"}}),ye=new Zr({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/zh/main_classes/feature_extractor.md"}}),{c(){m=o("meta"),j=r(),T=o("p"),I=r(),p(F.$$.fragment),y=r(),z=o("p"),z.textContent=er,Xe=r(),p(O.$$.fragment),Ye=r(),w=o("div"),p(K.$$.fragment),ht=r(),Te=o("p"),Te.textContent=tr,_t=r(),C=o("div"),p(ee.$$.fragment),xt=r(),Me=o("p"),Me.innerHTML=rr,vt=r(),p(k.$$.fragment),bt=r(),V=o("div"),p(te.$$.fragment),yt=r(),Ie=o("p"),Ie.innerHTML=ar,Ge=r(),re=o("p"),re.textContent=or,Se=r(),J=o("div"),p(ae.$$.fragment),$t=r(),we=o("p"),we.textContent=nr,Tt=r(),E=o("div"),p(oe.$$.fragment),Mt=r(),Fe=o("p"),Fe.textContent=sr,It=r(),Ee=o("p"),Ee.innerHTML=ir,wt=r(),p(H.$$.fragment),Ae=r(),ne=o("p"),ne.textContent=cr,Qe=r(),M=o("div"),p(se.$$.fragment),Ft=r(),ze=o("p"),ze.innerHTML=dr,Et=r(),Je=o("p"),Je.textContent=lr,zt=r(),q=o("div"),p(ie.$$.fragment),Jt=r(),Le=o("p"),Le.textContent=mr,Lt=r(),R=o("div"),p(ce.$$.fragment),jt=r(),je=o("p"),je.innerHTML=pr,Oe=r(),de=o("p"),de.textContent=ur,Ke=r(),c=o("div"),p(le.$$.fragment),Ct=r(),Ce=o("p"),Ce.textContent=fr,Pt=r(),W=o("div"),p(me.$$.fragment),Zt=r(),Pe=o("p"),Pe.innerHTML=gr,kt=r(),N=o("div"),p(pe.$$.fragment),Vt=r(),Ze=o("p"),Ze.innerHTML=hr,Ht=r(),U=o("div"),p(ue.$$.fragment),qt=r(),ke=o("p"),ke.innerHTML=_r,Rt=r(),D=o("div"),p(fe.$$.fragment),Wt=r(),Ve=o("p"),Ve.innerHTML=xr,Nt=r(),B=o("div"),p(ge.$$.fragment),Ut=r(),He=o("p"),He.innerHTML=vr,Dt=r(),X=o("div"),p(he.$$.fragment),Bt=r(),qe=o("p"),qe.textContent=br,Xt=r(),Y=o("div"),p(_e.$$.fragment),Yt=r(),Re=o("p"),Re.innerHTML=yr,Gt=r(),G=o("div"),p(xe.$$.fragment),St=r(),We=o("p"),We.innerHTML=$r,At=r(),S=o("div"),p(ve.$$.fragment),Qt=r(),Ne=o("p"),Ne.innerHTML=Tr,Ot=r(),A=o("div"),p(be.$$.fragment),Kt=r(),Ue=o("p"),Ue.innerHTML=Mr,et=r(),p(ye.$$.fragment),tt=r(),Be=o("p"),this.h()},l(e){const i=Lr("svelte-u9bgzb",document.head);m=n(i,"META",{name:!0,content:!0}),i.forEach(s),j=a(e),T=n(e,"P",{}),v(T).forEach(s),I=a(e),u(F.$$.fragment,e),y=a(e),z=n(e,"P",{"data-svelte-h":!0}),d(z)!=="svelte-tqffqy"&&(z.textContent=er),Xe=a(e),u(O.$$.fragment,e),Ye=a(e),w=n(e,"DIV",{class:!0});var L=v(w);u(K.$$.fragment,L),ht=a(L),Te=n(L,"P",{"data-svelte-h":!0}),d(Te)!=="svelte-1u6z21f"&&(Te.textContent=tr),_t=a(L),C=n(L,"DIV",{class:!0});var Z=v(C);u(ee.$$.fragment,Z),xt=a(Z),Me=n(Z,"P",{"data-svelte-h":!0}),d(Me)!=="svelte-1hr9q61"&&(Me.innerHTML=rr),vt=a(Z),u(k.$$.fragment,Z),Z.forEach(s),bt=a(L),V=n(L,"DIV",{class:!0});var at=v(V);u(te.$$.fragment,at),yt=a(at),Ie=n(at,"P",{"data-svelte-h":!0}),d(Ie)!=="svelte-1803ljp"&&(Ie.innerHTML=ar),at.forEach(s),L.forEach(s),Ge=a(e),re=n(e,"P",{"data-svelte-h":!0}),d(re)!=="svelte-280q2y"&&(re.textContent=or),Se=a(e),J=n(e,"DIV",{class:!0});var De=v(J);u(ae.$$.fragment,De),$t=a(De),we=n(De,"P",{"data-svelte-h":!0}),d(we)!=="svelte-fkistw"&&(we.textContent=nr),Tt=a(De),E=n(De,"DIV",{class:!0});var Q=v(E);u(oe.$$.fragment,Q),Mt=a(Q),Fe=n(Q,"P",{"data-svelte-h":!0}),d(Fe)!=="svelte-1ocd2wm"&&(Fe.textContent=sr),It=a(Q),Ee=n(Q,"P",{"data-svelte-h":!0}),d(Ee)!=="svelte-oeftzc"&&(Ee.innerHTML=ir),wt=a(Q),u(H.$$.fragment,Q),Q.forEach(s),De.forEach(s),Ae=a(e),ne=n(e,"P",{"data-svelte-h":!0}),d(ne)!=="svelte-1kaqlr0"&&(ne.textContent=cr),Qe=a(e),M=n(e,"DIV",{class:!0});var P=v(M);u(se.$$.fragment,P),Ft=a(P),ze=n(P,"P",{"data-svelte-h":!0}),d(ze)!=="svelte-1t8ru7f"&&(ze.innerHTML=dr),Et=a(P),Je=n(P,"P",{"data-svelte-h":!0}),d(Je)!=="svelte-saqdtk"&&(Je.textContent=lr),zt=a(P),q=n(P,"DIV",{class:!0});var ot=v(q);u(ie.$$.fragment,ot),Jt=a(ot),Le=n(ot,"P",{"data-svelte-h":!0}),d(Le)!=="svelte-pxfh9u"&&(Le.textContent=mr),ot.forEach(s),Lt=a(P),R=n(P,"DIV",{class:!0});var nt=v(R);u(ce.$$.fragment,nt),jt=a(nt),je=n(nt,"P",{"data-svelte-h":!0}),d(je)!=="svelte-d0cfhs"&&(je.innerHTML=pr),nt.forEach(s),P.forEach(s),Oe=a(e),de=n(e,"P",{"data-svelte-h":!0}),d(de)!=="svelte-1d59eoo"&&(de.textContent=ur),Ke=a(e),c=n(e,"DIV",{class:!0});var x=v(c);u(le.$$.fragment,x),Ct=a(x),Ce=n(x,"P",{"data-svelte-h":!0}),d(Ce)!=="svelte-393l39"&&(Ce.textContent=fr),Pt=a(x),W=n(x,"DIV",{class:!0});var st=v(W);u(me.$$.fragment,st),Zt=a(st),Pe=n(st,"P",{"data-svelte-h":!0}),d(Pe)!=="svelte-klynef"&&(Pe.innerHTML=gr),st.forEach(s),kt=a(x),N=n(x,"DIV",{class:!0});var it=v(N);u(pe.$$.fragment,it),Vt=a(it),Ze=n(it,"P",{"data-svelte-h":!0}),d(Ze)!=="svelte-133v6j"&&(Ze.innerHTML=hr),it.forEach(s),Ht=a(x),U=n(x,"DIV",{class:!0});var ct=v(U);u(ue.$$.fragment,ct),qt=a(ct),ke=n(ct,"P",{"data-svelte-h":!0}),d(ke)!=="svelte-1041ew6"&&(ke.innerHTML=_r),ct.forEach(s),Rt=a(x),D=n(x,"DIV",{class:!0});var dt=v(D);u(fe.$$.fragment,dt),Wt=a(dt),Ve=n(dt,"P",{"data-svelte-h":!0}),d(Ve)!=="svelte-w2v4kz"&&(Ve.innerHTML=xr),dt.forEach(s),Nt=a(x),B=n(x,"DIV",{class:!0});var lt=v(B);u(ge.$$.fragment,lt),Ut=a(lt),He=n(lt,"P",{"data-svelte-h":!0}),d(He)!=="svelte-1omk197"&&(He.innerHTML=vr),lt.forEach(s),Dt=a(x),X=n(x,"DIV",{class:!0});var mt=v(X);u(he.$$.fragment,mt),Bt=a(mt),qe=n(mt,"P",{"data-svelte-h":!0}),d(qe)!=="svelte-92qzed"&&(qe.textContent=br),mt.forEach(s),Xt=a(x),Y=n(x,"DIV",{class:!0});var pt=v(Y);u(_e.$$.fragment,pt),Yt=a(pt),Re=n(pt,"P",{"data-svelte-h":!0}),d(Re)!=="svelte-dheqn4"&&(Re.innerHTML=yr),pt.forEach(s),Gt=a(x),G=n(x,"DIV",{class:!0});var ut=v(G);u(xe.$$.fragment,ut),St=a(ut),We=n(ut,"P",{"data-svelte-h":!0}),d(We)!=="svelte-sbsh56"&&(We.innerHTML=$r),ut.forEach(s),At=a(x),S=n(x,"DIV",{class:!0});var ft=v(S);u(ve.$$.fragment,ft),Qt=a(ft),Ne=n(ft,"P",{"data-svelte-h":!0}),d(Ne)!=="svelte-pgs2u0"&&(Ne.innerHTML=Tr),ft.forEach(s),Ot=a(x),A=n(x,"DIV",{class:!0});var gt=v(A);u(be.$$.fragment,gt),Kt=a(gt),Ue=n(gt,"P",{"data-svelte-h":!0}),d(Ue)!=="svelte-e557ju"&&(Ue.innerHTML=Mr),gt.forEach(s),x.forEach(s),et=a(e),u(ye.$$.fragment,e),tt=a(e),Be=n(e,"P",{}),v(Be).forEach(s),this.h()},h(){b(m,"name","hf:doc:metadata"),b(m,"content",qr),b(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(c,"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,i){t(document.head,m),l(e,j,i),l(e,T,i),l(e,I,i),f(F,e,i),l(e,y,i),l(e,z,i),l(e,Xe,i),f(O,e,i),l(e,Ye,i),l(e,w,i),f(K,w,null),t(w,ht),t(w,Te),t(w,_t),t(w,C),f(ee,C,null),t(C,xt),t(C,Me),t(C,vt),f(k,C,null),t(w,bt),t(w,V),f(te,V,null),t(V,yt),t(V,Ie),l(e,Ge,i),l(e,re,i),l(e,Se,i),l(e,J,i),f(ae,J,null),t(J,$t),t(J,we),t(J,Tt),t(J,E),f(oe,E,null),t(E,Mt),t(E,Fe),t(E,It),t(E,Ee),t(E,wt),f(H,E,null),l(e,Ae,i),l(e,ne,i),l(e,Qe,i),l(e,M,i),f(se,M,null),t(M,Ft),t(M,ze),t(M,Et),t(M,Je),t(M,zt),t(M,q),f(ie,q,null),t(q,Jt),t(q,Le),t(M,Lt),t(M,R),f(ce,R,null),t(R,jt),t(R,je),l(e,Oe,i),l(e,de,i),l(e,Ke,i),l(e,c,i),f(le,c,null),t(c,Ct),t(c,Ce),t(c,Pt),t(c,W),f(me,W,null),t(W,Zt),t(W,Pe),t(c,kt),t(c,N),f(pe,N,null),t(N,Vt),t(N,Ze),t(c,Ht),t(c,U),f(ue,U,null),t(U,qt),t(U,ke),t(c,Rt),t(c,D),f(fe,D,null),t(D,Wt),t(D,Ve),t(c,Nt),t(c,B),f(ge,B,null),t(B,Ut),t(B,He),t(c,Dt),t(c,X),f(he,X,null),t(X,Bt),t(X,qe),t(c,Xt),t(c,Y),f(_e,Y,null),t(Y,Yt),t(Y,Re),t(c,Gt),t(c,G),f(xe,G,null),t(G,St),t(G,We),t(c,At),t(c,S),f(ve,S,null),t(S,Qt),t(S,Ne),t(c,Ot),t(c,A),f(be,A,null),t(A,Kt),t(A,Ue),l(e,et,i),f(ye,e,i),l(e,tt,i),l(e,Be,i),rt=!0},p(e,[i]){const L={};i&2&&(L.$$scope={dirty:i,ctx:e}),k.$set(L);const Z={};i&2&&(Z.$$scope={dirty:i,ctx:e}),H.$set(Z)},i(e){rt||(g(F.$$.fragment,e),g(O.$$.fragment,e),g(K.$$.fragment,e),g(ee.$$.fragment,e),g(k.$$.fragment,e),g(te.$$.fragment,e),g(ae.$$.fragment,e),g(oe.$$.fragment,e),g(H.$$.fragment,e),g(se.$$.fragment,e),g(ie.$$.fragment,e),g(ce.$$.fragment,e),g(le.$$.fragment,e),g(me.$$.fragment,e),g(pe.$$.fragment,e),g(ue.$$.fragment,e),g(fe.$$.fragment,e),g(ge.$$.fragment,e),g(he.$$.fragment,e),g(_e.$$.fragment,e),g(xe.$$.fragment,e),g(ve.$$.fragment,e),g(be.$$.fragment,e),g(ye.$$.fragment,e),rt=!0)},o(e){h(F.$$.fragment,e),h(O.$$.fragment,e),h(K.$$.fragment,e),h(ee.$$.fragment,e),h(k.$$.fragment,e),h(te.$$.fragment,e),h(ae.$$.fragment,e),h(oe.$$.fragment,e),h(H.$$.fragment,e),h(se.$$.fragment,e),h(ie.$$.fragment,e),h(ce.$$.fragment,e),h(le.$$.fragment,e),h(me.$$.fragment,e),h(pe.$$.fragment,e),h(ue.$$.fragment,e),h(fe.$$.fragment,e),h(ge.$$.fragment,e),h(he.$$.fragment,e),h(_e.$$.fragment,e),h(xe.$$.fragment,e),h(ve.$$.fragment,e),h(be.$$.fragment,e),h(ye.$$.fragment,e),rt=!1},d(e){e&&(s(j),s(T),s(I),s(y),s(z),s(Xe),s(Ye),s(w),s(Ge),s(re),s(Se),s(J),s(Ae),s(ne),s(Qe),s(M),s(Oe),s(de),s(Ke),s(c),s(et),s(tt),s(Be)),s(m),_(F,e),_(O,e),_(K),_(ee),_(k),_(te),_(ae),_(oe),_(H),_(se),_(ie),_(ce),_(le),_(me),_(pe),_(ue),_(fe),_(ge),_(he),_(_e),_(xe),_(ve),_(be),_(ye,e)}}}const qr='{"title":"Feature Extractor","local":"feature-extractor","sections":[{"title":"FeatureExtractionMixin","local":"transformers.FeatureExtractionMixin","sections":[],"depth":2}],"depth":1}';function Rr($e){return Er(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Gr extends zr{constructor(m){super(),Jr(this,m,Rr,Hr,Fr,{})}}export{Gr as component};
