import{s as _r,o as br,n as Dn}from"../chunks/scheduler.56730f09.js";import{S as yr,i as vr,g as a,s as r,r as g,A as xr,h as s,f as n,c as o,j as v,x as c,u as f,k as x,y as t,a as m,v as h,d as u,t as _,w as b}from"../chunks/index.61415d3e.js";import{T as $r}from"../chunks/Tip.81680c40.js";import{D as w}from"../chunks/Docstring.2232c66d.js";import{C as ur}from"../chunks/CodeBlock.e6fa6bff.js";import{E as hr}from"../chunks/ExampleCodeBlock.bffa83b4.js";import{H as Jn}from"../chunks/Heading.9036b585.js";function wr(S){let l,T="Examples:",I,$,M;return $=new ur({props:{code:"JTIzJTIwV2UlMjBjYW4ndCUyMGluc3RhbnRpYXRlJTIwZGlyZWN0bHklMjB0aGUlMjBiYXNlJTIwY2xhc3MlMjAqSW1hZ2VQcm9jZXNzaW5nTWl4aW4qJTIwc28lMjBsZXQncyUyMHNob3clMjB0aGUlMjBleGFtcGxlcyUyMG9uJTIwYSUwQSUyMyUyMGRlcml2ZWQlMjBjbGFzcyUzQSUyMCpDTElQSW1hZ2VQcm9jZXNzb3IqJTBBaW1hZ2VfcHJvY2Vzc29yJTIwJTNEJTIwQ0xJUEltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJvcGVuYWklMkZjbGlwLXZpdC1iYXNlLXBhdGNoMzIlMjIlMEEpJTIwJTIwJTIzJTIwRG93bmxvYWQlMjBpbWFnZV9wcm9jZXNzaW5nX2NvbmZpZyUyMGZyb20lMjBodWdnaW5nZmFjZS5jbyUyMGFuZCUyMGNhY2hlLiUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMENMSVBJbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyLiUyRnRlc3QlMkZzYXZlZF9tb2RlbCUyRiUyMiUwQSklMjAlMjAlMjMlMjBFLmcuJTIwaW1hZ2UlMjBwcm9jZXNzb3IlMjAob3IlMjBtb2RlbCklMjB3YXMlMjBzYXZlZCUyMHVzaW5nJTIwKnNhdmVfcHJldHJhaW5lZCgnLiUyRnRlc3QlMkZzYXZlZF9tb2RlbCUyRicpKiUwQWltYWdlX3Byb2Nlc3NvciUyMCUzRCUyMENMSVBJbWFnZVByb2Nlc3Nvci5mcm9tX3ByZXRyYWluZWQoJTIyLiUyRnRlc3QlMkZzYXZlZF9tb2RlbCUyRnByZXByb2Nlc3Nvcl9jb25maWcuanNvbiUyMiklMEFpbWFnZV9wcm9jZXNzb3IlMjAlM0QlMjBDTElQSW1hZ2VQcm9jZXNzb3IuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMm9wZW5haSUyRmNsaXAtdml0LWJhc2UtcGF0Y2gzMiUyMiUyQyUyMGRvX25vcm1hbGl6ZSUzREZhbHNlJTJDJTIwZm9vJTNERmFsc2UlMEEpJTBBYXNzZXJ0JTIwaW1hZ2VfcHJvY2Vzc29yLmRvX25vcm1hbGl6ZSUyMGlzJTIwRmFsc2UlMEFpbWFnZV9wcm9jZXNzb3IlMkMlMjB1bnVzZWRfa3dhcmdzJTIwJTNEJTIwQ0xJUEltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJvcGVuYWklMkZjbGlwLXZpdC1iYXNlLXBhdGNoMzIlMjIlMkMlMjBkb19ub3JtYWxpemUlM0RGYWxzZSUyQyUyMGZvbyUzREZhbHNlJTJDJTIwcmV0dXJuX3VudXNlZF9rd2FyZ3MlM0RUcnVlJTBBKSUwQWFzc2VydCUyMGltYWdlX3Byb2Nlc3Nvci5kb19ub3JtYWxpemUlMjBpcyUyMEZhbHNlJTBBYXNzZXJ0JTIwdW51c2VkX2t3YXJncyUyMCUzRCUzRCUyMCU3QiUyMmZvbyUyMiUzQSUyMEZhbHNlJTdE",highlighted:`<span class="hljs-comment"># We can&#x27;t instantiate directly the base class *ImageProcessingMixin* so let&#x27;s show the examples on a</span>
<span class="hljs-comment"># derived class: *CLIPImageProcessor*</span>
image_processor = CLIPImageProcessor.from_pretrained(
    <span class="hljs-string">&quot;openai/clip-vit-base-patch32&quot;</span>
)  <span class="hljs-comment"># Download image_processing_config from huggingface.co and cache.</span>
image_processor = CLIPImageProcessor.from_pretrained(
    <span class="hljs-string">&quot;./test/saved_model/&quot;</span>
)  <span class="hljs-comment"># E.g. image processor (or model) was saved using *save_pretrained(&#x27;./test/saved_model/&#x27;)*</span>
image_processor = CLIPImageProcessor.from_pretrained(<span class="hljs-string">&quot;./test/saved_model/preprocessor_config.json&quot;</span>)
image_processor = CLIPImageProcessor.from_pretrained(
    <span class="hljs-string">&quot;openai/clip-vit-base-patch32&quot;</span>, do_normalize=<span class="hljs-literal">False</span>, foo=<span class="hljs-literal">False</span>
)
<span class="hljs-keyword">assert</span> image_processor.do_normalize <span class="hljs-keyword">is</span> <span class="hljs-literal">False</span>
image_processor, unused_kwargs = CLIPImageProcessor.from_pretrained(
    <span class="hljs-string">&quot;openai/clip-vit-base-patch32&quot;</span>, do_normalize=<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> image_processor.do_normalize <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(){l=a("p"),l.textContent=T,I=r(),g($.$$.fragment)},l(d){l=s(d,"P",{"data-svelte-h":!0}),c(l)!=="svelte-kvfsh7"&&(l.textContent=T),I=o(d),f($.$$.fragment,d)},m(d,C){m(d,l,C),m(d,I,C),h($,d,C),M=!0},p:Dn,i(d){M||(u($.$$.fragment,d),M=!0)},o(d){_($.$$.fragment,d),M=!1},d(d){d&&(n(l),n(I)),b($,d)}}}function Ir(S){let l,T="Examples:",I,$,M;return $=new ur({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9JbWFnZVByb2Nlc3NvciUwQSUwQWltYWdlJTIwcHJvY2Vzc29yJTIwJTNEJTIwQXV0b0ltYWdlUHJvY2Vzc29yLmZyb21fcHJldHJhaW5lZCglMjJiZXJ0LWJhc2UtY2FzZWQlMjIpJTBBJTBBJTIzJTIwUHVzaCUyMHRoZSUyMGltYWdlJTIwcHJvY2Vzc29yJTIwdG8lMjB5b3VyJTIwbmFtZXNwYWNlJTIwd2l0aCUyMHRoZSUyMG5hbWUlMjAlMjJteS1maW5ldHVuZWQtYmVydCUyMi4lMEFpbWFnZSUyMHByb2Nlc3Nvci5wdXNoX3RvX2h1YiglMjJteS1maW5ldHVuZWQtYmVydCUyMiklMEElMEElMjMlMjBQdXNoJTIwdGhlJTIwaW1hZ2UlMjBwcm9jZXNzb3IlMjB0byUyMGFuJTIwb3JnYW5pemF0aW9uJTIwd2l0aCUyMHRoZSUyMG5hbWUlMjAlMjJteS1maW5ldHVuZWQtYmVydCUyMi4lMEFpbWFnZSUyMHByb2Nlc3Nvci5wdXNoX3RvX2h1YiglMjJodWdnaW5nZmFjZSUyRm15LWZpbmV0dW5lZC1iZXJ0JTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoImageProcessor

image processor = AutoImageProcessor.from_pretrained(<span class="hljs-string">&quot;bert-base-cased&quot;</span>)

<span class="hljs-comment"># Push the image processor to your namespace with the name &quot;my-finetuned-bert&quot;.</span>
image processor.push_to_hub(<span class="hljs-string">&quot;my-finetuned-bert&quot;</span>)

<span class="hljs-comment"># Push the image processor to an organization with the name &quot;my-finetuned-bert&quot;.</span>
image processor.push_to_hub(<span class="hljs-string">&quot;huggingface/my-finetuned-bert&quot;</span>)`,wrap:!1}}),{c(){l=a("p"),l.textContent=T,I=r(),g($.$$.fragment)},l(d){l=s(d,"P",{"data-svelte-h":!0}),c(l)!=="svelte-kvfsh7"&&(l.textContent=T),I=o(d),f($.$$.fragment,d)},m(d,C){m(d,l,C),m(d,I,C),h($,d,C),M=!0},p:Dn,i(d){M||(u($.$$.fragment,d),M=!0)},o(d){_($.$$.fragment,d),M=!1},d(d){d&&(n(l),n(I)),b($,d)}}}function Mr(S){let l,T="This API is experimental and may have some slight breaking changes in the next releases.";return{c(){l=a("p"),l.textContent=T},l(I){l=s(I,"P",{"data-svelte-h":!0}),c(l)!=="svelte-15rpg4"&&(l.textContent=T)},m(I,$){m(I,l,$)},p:Dn,d(I){I&&n(l)}}}function Tr(S){let l,T,I,$,M,d="!—Copyright 2022 The HuggingFace Team. All rights reserved.",C,te,kn=`Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with
the License. You may obtain a copy of the License at`,pt,ne,Wn='<a href="http://www.apache.org/licenses/LICENSE-2.0" rel="nofollow">http://www.apache.org/licenses/LICENSE-2.0</a>',gt,re,Zn=`Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.`,ft,oe,qn=`⚠️ Note that this file is in Markdown but contain specific syntax for our doc-builder (similar to MDX) that may not be
rendered properly in your Markdown viewer.`,ht,ae,En="—>",ut,se,_t,ie,Hn=`このページには、画像プロセッサーで使用されるすべてのユーティリティー関数がリストされています。主に機能的なものです。
画像を処理するために使用される変換。`,bt,me,Vn="これらのほとんどは、ライブラリ内の画像プロセッサのコードを学習する場合にのみ役に立ちます。",yt,ce,vt,D,le,Xt,Je,Fn=`Crops the <code>image</code> to the specified <code>size</code> 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 will always be of size <code>size</code>).`,xt,P,de,Yt,De,Sn="Converts bounding boxes from center format to corners format.",At,ke,Bn=`center format: contains the coordinate for the center of the box and its width, height dimensions
(center_x, center_y, width, height)
corners format: contains the coodinates for the top-left and bottom-right corners of the box
(top_left_x, top_left_y, bottom_right_x, bottom_right_y)`,$t,j,pe,Gt,We,Rn="Converts bounding boxes from corners format to center format.",Qt,Ze,Xn=`corners format: contains the coordinates for the top-left and bottom-right corners of the box
(top_left_x, top_left_y, bottom_right_x, bottom_right_y)
center format: contains the coordinate for the center of the box and its the width, height dimensions
(center_x, center_y, width, height)`,wt,k,ge,Ot,qe,Yn="Converts unique ID to RGB color.",It,U,fe,Kt,Ee,An="Normalizes <code>image</code> using the mean and standard deviation specified by <code>mean</code> and <code>std</code>.",en,He,Gn="image = (image - mean) / std",Mt,W,he,tn,Ve,Qn="Pads the <code>image</code> with the specified (height, width) <code>padding</code> and <code>mode</code>.",Tt,Z,ue,nn,Fe,On="Converts RGB color to unique ID.",Ct,q,_e,rn,Se,Kn="Rescales <code>image</code> by <code>scale</code>.",Pt,E,be,on,Be,er="Resizes <code>image</code> to <code>(height, width)</code> specified by <code>size</code> using the PIL library.",jt,H,ye,an,Re,tr=`Converts <code>image</code> to a PIL Image. Optionally rescales it and puts the channel dimension back as the last axis if
needed.`,Ut,ve,zt,p,xe,sn,Xe,nr=`This is an image processor mixin used to provide saving/loading functionality for sequential and image feature
extractors.`,mn,z,$e,cn,Ye,rr="Convert a single or a list of urls into the corresponding <code>PIL.Image</code> objects.",ln,Ae,or=`If a single url is passed, the return value will be a single object. If a list is passed a list of objects is
returned.`,dn,B,we,pn,Ge,ar='Instantiates a type of <a href="/docs/transformers/main/ja/internal/image_processing_utils#transformers.ImageProcessingMixin">ImageProcessingMixin</a> from a Python dictionary of parameters.',gn,R,Ie,fn,Qe,sr=`Instantiates a image processor of type <a href="/docs/transformers/main/ja/internal/image_processing_utils#transformers.ImageProcessingMixin">ImageProcessingMixin</a> from the path to a JSON
file of parameters.`,hn,L,Me,un,Oe,ir='Instantiate a type of <a href="/docs/transformers/main/ja/internal/image_processing_utils#transformers.ImageProcessingMixin">ImageProcessingMixin</a> from an image processor.',_n,X,bn,Y,Te,yn,Ke,mr=`From a <code>pretrained_model_name_or_path</code>, resolve to a dictionary of parameters, to be used for instantiating a
image processor of type <code>~image_processor_utils.ImageProcessingMixin</code> using <code>from_dict</code>.`,vn,N,Ce,xn,et,cr="Upload the image processor file to the 🤗 Model Hub.",$n,A,wn,J,Pe,In,tt,lr=`Register this class with a given auto class. This should only be used for custom image processors as the ones
in the library are already mapped with <code>AutoImageProcessor </code>.`,Mn,G,Tn,Q,je,Cn,nt,dr=`Save an image processor object to the directory <code>save_directory</code>, so that it can be re-loaded using the
<a href="/docs/transformers/main/ja/internal/image_processing_utils#transformers.ImageProcessingMixin.from_pretrained">from_pretrained()</a> class method.`,Pn,O,Ue,jn,rt,pr="Serializes this instance to a Python dictionary.",Un,K,ze,zn,ot,gr="Save this instance to a JSON file.",Ln,ee,Le,Nn,at,fr="Serializes this instance to a JSON string.",Lt,dt,Nt;return se=new Jn({props:{title:"画像プロセッサ用ユーティリティ",local:"画像プロセッサ用ユーティリティ",headingTag:"h1"}}),ce=new Jn({props:{title:"Image Transformations",local:"transformers.image_transforms.center_crop",headingTag:"h2"}}),le=new w({props:{name:"transformers.image_transforms.center_crop",anchor:"transformers.image_transforms.center_crop",parameters:[{name:"image",val:": ndarray"},{name:"size",val:": typing.Tuple[int, int]"},{name:"data_format",val:": typing.Union[transformers.image_utils.ChannelDimension, str, NoneType] = None"},{name:"input_data_format",val:": typing.Union[transformers.image_utils.ChannelDimension, str, NoneType] = None"},{name:"return_numpy",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.image_transforms.center_crop.image",description:`<strong>image</strong> (<code>np.ndarray</code>) &#x2014;
The image to crop.`,name:"image"},{anchor:"transformers.image_transforms.center_crop.size",description:`<strong>size</strong> (<code>Tuple[int, int]</code>) &#x2014;
The target size for the cropped image.`,name:"size"},{anchor:"transformers.image_transforms.center_crop.data_format",description:`<strong>data_format</strong> (<code>str</code> or <code>ChannelDimension</code>, <em>optional</em>) &#x2014;
The channel dimension format for the output image. Can be one of:<ul>
<li><code>&quot;channels_first&quot;</code> or <code>ChannelDimension.FIRST</code>: image in (num_channels, height, width) format.</li>
<li><code>&quot;channels_last&quot;</code> or <code>ChannelDimension.LAST</code>: image in (height, width, num_channels) format.
If unset, will use the inferred format of the input image.</li>
</ul>`,name:"data_format"},{anchor:"transformers.image_transforms.center_crop.input_data_format",description:`<strong>input_data_format</strong> (<code>str</code> or <code>ChannelDimension</code>, <em>optional</em>) &#x2014;
The channel dimension format for the input image. Can be one of:<ul>
<li><code>&quot;channels_first&quot;</code> or <code>ChannelDimension.FIRST</code>: image in (num_channels, height, width) format.</li>
<li><code>&quot;channels_last&quot;</code> or <code>ChannelDimension.LAST</code>: image in (height, width, num_channels) format.
If unset, will use the inferred format of the input image.</li>
</ul>`,name:"input_data_format"},{anchor:"transformers.image_transforms.center_crop.return_numpy",description:`<strong>return_numpy</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the cropped image as a numpy array. Used for backwards compatibility with the
previous ImageFeatureExtractionMixin method.<ul>
<li>Unset: will return the same type as the input image.</li>
<li><code>True</code>: will return a numpy array.</li>
<li><code>False</code>: will return a <code>PIL.Image.Image</code> object.</li>
</ul>`,name:"return_numpy"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_transforms.py#L402",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The cropped image.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>np.ndarray</code></p>
`}}),de=new w({props:{name:"transformers.image_transforms.center_to_corners_format",anchor:"transformers.image_transforms.center_to_corners_format",parameters:[{name:"bboxes_center",val:": TensorType"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_transforms.py#L532"}}),pe=new w({props:{name:"transformers.image_transforms.corners_to_center_format",anchor:"transformers.image_transforms.corners_to_center_format",parameters:[{name:"bboxes_corners",val:": TensorType"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_transforms.py#L592"}}),ge=new w({props:{name:"transformers.image_transforms.id_to_rgb",anchor:"transformers.image_transforms.id_to_rgb",parameters:[{name:"id_map",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_transforms.py#L626"}}),fe=new w({props:{name:"transformers.image_transforms.normalize",anchor:"transformers.image_transforms.normalize",parameters:[{name:"image",val:": ndarray"},{name:"mean",val:": typing.Union[float, typing.Iterable[float]]"},{name:"std",val:": typing.Union[float, typing.Iterable[float]]"},{name:"data_format",val:": typing.Optional[transformers.image_utils.ChannelDimension] = None"},{name:"input_data_format",val:": typing.Union[transformers.image_utils.ChannelDimension, str, NoneType] = None"}],parametersDescription:[{anchor:"transformers.image_transforms.normalize.image",description:`<strong>image</strong> (<code>np.ndarray</code>) &#x2014;
The image to normalize.`,name:"image"},{anchor:"transformers.image_transforms.normalize.mean",description:`<strong>mean</strong> (<code>float</code> or <code>Iterable[float]</code>) &#x2014;
The mean to use for normalization.`,name:"mean"},{anchor:"transformers.image_transforms.normalize.std",description:`<strong>std</strong> (<code>float</code> or <code>Iterable[float]</code>) &#x2014;
The standard deviation to use for normalization.`,name:"std"},{anchor:"transformers.image_transforms.normalize.data_format",description:`<strong>data_format</strong> (<code>ChannelDimension</code>, <em>optional</em>) &#x2014;
The channel dimension format of the output image. If unset, will use the inferred format from the input.`,name:"data_format"},{anchor:"transformers.image_transforms.normalize.input_data_format",description:`<strong>input_data_format</strong> (<code>ChannelDimension</code>, <em>optional</em>) &#x2014;
The channel dimension format of the input image. If unset, will use the inferred format from the input.`,name:"input_data_format"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_transforms.py#L347"}}),he=new w({props:{name:"transformers.image_transforms.pad",anchor:"transformers.image_transforms.pad",parameters:[{name:"image",val:": ndarray"},{name:"padding",val:": typing.Union[int, typing.Tuple[int, int], typing.Iterable[typing.Tuple[int, int]]]"},{name:"mode",val:": PaddingMode = <PaddingMode.CONSTANT: 'constant'>"},{name:"constant_values",val:": typing.Union[float, typing.Iterable[float]] = 0.0"},{name:"data_format",val:": typing.Union[transformers.image_utils.ChannelDimension, str, NoneType] = None"},{name:"input_data_format",val:": typing.Union[transformers.image_utils.ChannelDimension, str, NoneType] = None"}],parametersDescription:[{anchor:"transformers.image_transforms.pad.image",description:`<strong>image</strong> (<code>np.ndarray</code>) &#x2014;
The image to pad.`,name:"image"},{anchor:"transformers.image_transforms.pad.padding",description:`<strong>padding</strong> (<code>int</code> or <code>Tuple[int, int]</code> or <code>Iterable[Tuple[int, int]]</code>) &#x2014;
Padding to apply to the edges of the height, width axes. Can be one of three formats:<ul>
<li><code>((before_height, after_height), (before_width, after_width))</code> unique pad widths for each axis.</li>
<li><code>((before, after),)</code> yields same before and after pad for height and width.</li>
<li><code>(pad,)</code> or int is a shortcut for before = after = pad width for all axes.</li>
</ul>`,name:"padding"},{anchor:"transformers.image_transforms.pad.mode",description:`<strong>mode</strong> (<code>PaddingMode</code>) &#x2014;
The padding mode to use. Can be one of:<ul>
<li><code>&quot;constant&quot;</code>: pads with a constant value.</li>
<li><code>&quot;reflect&quot;</code>: pads with the reflection of the vector mirrored on the first and last values of the
vector along each axis.</li>
<li><code>&quot;replicate&quot;</code>: pads with the replication of the last value on the edge of the array along each axis.</li>
<li><code>&quot;symmetric&quot;</code>: pads with the reflection of the vector mirrored along the edge of the array.</li>
</ul>`,name:"mode"},{anchor:"transformers.image_transforms.pad.constant_values",description:`<strong>constant_values</strong> (<code>float</code> or <code>Iterable[float]</code>, <em>optional</em>) &#x2014;
The value to use for the padding if <code>mode</code> is <code>&quot;constant&quot;</code>.`,name:"constant_values"},{anchor:"transformers.image_transforms.pad.data_format",description:`<strong>data_format</strong> (<code>str</code> or <code>ChannelDimension</code>, <em>optional</em>) &#x2014;
The channel dimension format for the output image. Can be one of:<ul>
<li><code>&quot;channels_first&quot;</code> or <code>ChannelDimension.FIRST</code>: image in (num_channels, height, width) format.</li>
<li><code>&quot;channels_last&quot;</code> or <code>ChannelDimension.LAST</code>: image in (height, width, num_channels) format.
If unset, will use same as the input image.</li>
</ul>`,name:"data_format"},{anchor:"transformers.image_transforms.pad.input_data_format",description:`<strong>input_data_format</strong> (<code>str</code> or <code>ChannelDimension</code>, <em>optional</em>) &#x2014;
The channel dimension format for the input image. Can be one of:<ul>
<li><code>&quot;channels_first&quot;</code> or <code>ChannelDimension.FIRST</code>: image in (num_channels, height, width) format.</li>
<li><code>&quot;channels_last&quot;</code> or <code>ChannelDimension.LAST</code>: image in (height, width, num_channels) format.
If unset, will use the inferred format of the input image.</li>
</ul>`,name:"input_data_format"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_transforms.py#L656",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The padded image.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>np.ndarray</code></p>
`}}),ue=new w({props:{name:"transformers.image_transforms.rgb_to_id",anchor:"transformers.image_transforms.rgb_to_id",parameters:[{name:"color",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_transforms.py#L615"}}),_e=new w({props:{name:"transformers.image_transforms.rescale",anchor:"transformers.image_transforms.rescale",parameters:[{name:"image",val:": ndarray"},{name:"scale",val:": float"},{name:"data_format",val:": typing.Optional[transformers.image_utils.ChannelDimension] = None"},{name:"dtype",val:": dtype = <class 'numpy.float32'>"},{name:"input_data_format",val:": typing.Union[transformers.image_utils.ChannelDimension, str, NoneType] = None"}],parametersDescription:[{anchor:"transformers.image_transforms.rescale.image",description:`<strong>image</strong> (<code>np.ndarray</code>) &#x2014;
The image to rescale.`,name:"image"},{anchor:"transformers.image_transforms.rescale.scale",description:`<strong>scale</strong> (<code>float</code>) &#x2014;
The scale to use for rescaling the image.`,name:"scale"},{anchor:"transformers.image_transforms.rescale.data_format",description:`<strong>data_format</strong> (<code>ChannelDimension</code>, <em>optional</em>) &#x2014;
The channel dimension format of the image. If not provided, it will be the same as the input image.`,name:"data_format"},{anchor:"transformers.image_transforms.rescale.dtype",description:`<strong>dtype</strong> (<code>np.dtype</code>, <em>optional</em>, defaults to <code>np.float32</code>) &#x2014;
The dtype of the output image. Defaults to <code>np.float32</code>. Used for backwards compatibility with feature
extractors.`,name:"dtype"},{anchor:"transformers.image_transforms.rescale.input_data_format",description:`<strong>input_data_format</strong> (<code>ChannelDimension</code>, <em>optional</em>) &#x2014;
The channel dimension format of the input image. If not provided, it will be inferred from the input image.`,name:"input_data_format"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_transforms.py#L92",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The rescaled image.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>np.ndarray</code></p>
`}}),be=new w({props:{name:"transformers.image_transforms.resize",anchor:"transformers.image_transforms.resize",parameters:[{name:"image",val:""},{name:"size",val:": typing.Tuple[int, int]"},{name:"resample",val:": PILImageResampling = None"},{name:"reducing_gap",val:": typing.Optional[int] = None"},{name:"data_format",val:": typing.Optional[transformers.image_utils.ChannelDimension] = None"},{name:"return_numpy",val:": bool = True"},{name:"input_data_format",val:": typing.Union[transformers.image_utils.ChannelDimension, str, NoneType] = None"}],parametersDescription:[{anchor:"transformers.image_transforms.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.image_transforms.resize.size",description:`<strong>size</strong> (<code>Tuple[int, int]</code>) &#x2014;
The size to use for resizing the image.`,name:"size"},{anchor:"transformers.image_transforms.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.image_transforms.resize.reducing_gap",description:`<strong>reducing_gap</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Apply optimization by resizing the image in two steps. The bigger <code>reducing_gap</code>, the closer the result to
the fair resampling. See corresponding Pillow documentation for more details.`,name:"reducing_gap"},{anchor:"transformers.image_transforms.resize.data_format",description:`<strong>data_format</strong> (<code>ChannelDimension</code>, <em>optional</em>) &#x2014;
The channel dimension format of the output image. If unset, will use the inferred format from the input.`,name:"data_format"},{anchor:"transformers.image_transforms.resize.return_numpy",description:`<strong>return_numpy</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to return the resized image as a numpy array. If False a <code>PIL.Image.Image</code> object is
returned.`,name:"return_numpy"},{anchor:"transformers.image_transforms.resize.input_data_format",description:`<strong>input_data_format</strong> (<code>ChannelDimension</code>, <em>optional</em>) &#x2014;
The channel dimension format of the input image. If unset, will use the inferred format from the input.`,name:"input_data_format"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_transforms.py#L276",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The resized image.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>np.ndarray</code></p>
`}}),ye=new w({props:{name:"transformers.image_transforms.to_pil_image",anchor:"transformers.image_transforms.to_pil_image",parameters:[{name:"image",val:": typing.Union[numpy.ndarray, ForwardRef('PIL.Image.Image'), ForwardRef('torch.Tensor'), ForwardRef('tf.Tensor'), ForwardRef('jnp.ndarray')]"},{name:"do_rescale",val:": typing.Optional[bool] = None"},{name:"input_data_format",val:": typing.Union[transformers.image_utils.ChannelDimension, str, NoneType] = None"}],parametersDescription:[{anchor:"transformers.image_transforms.to_pil_image.image",description:`<strong>image</strong> (<code>PIL.Image.Image</code> or <code>numpy.ndarray</code> or <code>torch.Tensor</code> or <code>tf.Tensor</code>) &#x2014;
The image to convert to the <code>PIL.Image</code> format.`,name:"image"},{anchor:"transformers.image_transforms.to_pil_image.do_rescale",description:`<strong>do_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 and casting to <code>int</code> would result in a loss of precision,
and <code>False</code> otherwise.`,name:"do_rescale"},{anchor:"transformers.image_transforms.to_pil_image.input_data_format",description:`<strong>input_data_format</strong> (<code>ChannelDimension</code>, <em>optional</em>) &#x2014;
The channel dimension format of the input image. If unset, will use the inferred format from the input.`,name:"input_data_format"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_transforms.py#L157",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The converted image.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>PIL.Image.Image</code></p>
`}}),ve=new Jn({props:{title:"ImageProcessingMixin",local:"transformers.ImageProcessingMixin",headingTag:"h2"}}),xe=new w({props:{name:"class transformers.ImageProcessingMixin",anchor:"transformers.ImageProcessingMixin",parameters:[{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_processing_utils.py#L68"}}),$e=new w({props:{name:"fetch_images",anchor:"transformers.ImageProcessingMixin.fetch_images",parameters:[{name:"image_url_or_urls",val:": typing.Union[str, typing.List[str]]"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_processing_utils.py#L517"}}),we=new w({props:{name:"from_dict",anchor:"transformers.ImageProcessingMixin.from_dict",parameters:[{name:"image_processor_dict",val:": typing.Dict[str, typing.Any]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageProcessingMixin.from_dict.image_processor_dict",description:`<strong>image_processor_dict</strong> (<code>Dict[str, Any]</code>) &#x2014;
Dictionary that will be used to instantiate the image processor object. Such a dictionary can be
retrieved from a pretrained checkpoint by leveraging the
<a href="/docs/transformers/main/ja/internal/image_processing_utils#transformers.ImageProcessingMixin.to_dict">to_dict()</a> method.`,name:"image_processor_dict"},{anchor:"transformers.ImageProcessingMixin.from_dict.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>) &#x2014;
Additional parameters from which to initialize the image processor object.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_processing_utils.py#L380",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The image processor object instantiated from those
parameters.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/transformers/main/ja/internal/image_processing_utils#transformers.ImageProcessingMixin"
>ImageProcessingMixin</a></p>
`}}),Ie=new w({props:{name:"from_json_file",anchor:"transformers.ImageProcessingMixin.from_json_file",parameters:[{name:"json_file",val:": typing.Union[str, os.PathLike]"}],parametersDescription:[{anchor:"transformers.ImageProcessingMixin.from_json_file.json_file",description:`<strong>json_file</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Path to the JSON file containing the parameters.`,name:"json_file"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_processing_utils.py#L437",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The image_processor object
instantiated from that JSON file.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A image processor of type <a
  href="/docs/transformers/main/ja/internal/image_processing_utils#transformers.ImageProcessingMixin"
>ImageProcessingMixin</a></p>
`}}),Me=new w({props:{name:"from_pretrained",anchor:"transformers.ImageProcessingMixin.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[bool, str, NoneType] = None"},{name:"revision",val:": str = 'main'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageProcessingMixin.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 image_processor 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 image processor file saved using the
<a href="/docs/transformers/main/ja/internal/image_processing_utils#transformers.ImageProcessingMixin.save_pretrained">save_pretrained()</a> method, e.g.,
<code>./my_model_directory/</code>.</li>
<li>a path or url to a saved image processor JSON <em>file</em>, e.g.,
<code>./my_model_directory/preprocessor_config.json</code>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"transformers.ImageProcessingMixin.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 image processor should be cached if the
standard cache should not be used.`,name:"cache_dir"},{anchor:"transformers.ImageProcessingMixin.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 image processor files and override the cached versions if
they exist.`,name:"force_download"},{anchor:"transformers.ImageProcessingMixin.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.ImageProcessingMixin.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.ImageProcessingMixin.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.ImageProcessingMixin.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/main/src/transformers/image_processing_utils.py#L92",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A image processor of type <a
  href="/docs/transformers/main/ja/internal/image_processing_utils#transformers.ImageProcessingMixin"
>ImageProcessingMixin</a>.</p>
`}}),X=new hr({props:{anchor:"transformers.ImageProcessingMixin.from_pretrained.example",$$slots:{default:[wr]},$$scope:{ctx:S}}}),Te=new w({props:{name:"get_image_processor_dict",anchor:"transformers.ImageProcessingMixin.get_image_processor_dict",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageProcessingMixin.get_image_processor_dict.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
The identifier of the pre-trained checkpoint from which we want the dictionary of parameters.`,name:"pretrained_model_name_or_path"},{anchor:"transformers.ImageProcessingMixin.get_image_processor_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
In case the relevant files are located inside a subfolder of the model repo on huggingface.co, you can
specify the folder name here.`,name:"subfolder"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_processing_utils.py#L266",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The dictionary(ies) that will be used to instantiate the image processor object.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Tuple[Dict, Dict]</code></p>
`}}),Ce=new w({props:{name:"push_to_hub",anchor:"transformers.ImageProcessingMixin.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"use_temp_dir",val:": typing.Optional[bool] = None"},{name:"commit_message",val:": typing.Optional[str] = None"},{name:"private",val:": typing.Optional[bool] = None"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"max_shard_size",val:": typing.Union[int, str, NoneType] = '5GB'"},{name:"create_pr",val:": bool = False"},{name:"safe_serialization",val:": bool = False"},{name:"revision",val:": str = None"},{name:"**deprecated_kwargs",val:""}],parametersDescription:[{anchor:"transformers.ImageProcessingMixin.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your image processor to. It should contain your organization name
when pushing to a given organization.`,name:"repo_id"},{anchor:"transformers.ImageProcessingMixin.push_to_hub.use_temp_dir",description:`<strong>use_temp_dir</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to use a temporary directory to store the files saved before they are pushed to the Hub.
Will default to <code>True</code> if there is no directory named like <code>repo_id</code>, <code>False</code> otherwise.`,name:"use_temp_dir"},{anchor:"transformers.ImageProcessingMixin.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Will default to <code>&quot;Upload image processor&quot;</code>.`,name:"commit_message"},{anchor:"transformers.ImageProcessingMixin.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not the repository created should be private.`,name:"private"},{anchor:"transformers.ImageProcessingMixin.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>). Will default to <code>True</code> if <code>repo_url</code>
is not specified.`,name:"token"},{anchor:"transformers.ImageProcessingMixin.push_to_hub.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, <em>optional</em>, defaults to <code>&quot;5GB&quot;</code>) &#x2014;
Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard
will then be each of size lower than this size. If expressed as a string, needs to be digits followed
by a unit (like <code>&quot;5MB&quot;</code>). We default it to <code>&quot;5GB&quot;</code> so that users can easily load models on free-tier
Google Colab instances without any CPU OOM issues.`,name:"max_shard_size"},{anchor:"transformers.ImageProcessingMixin.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"},{anchor:"transformers.ImageProcessingMixin.push_to_hub.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to convert the model weights in safetensors format for safer serialization.`,name:"safe_serialization"},{anchor:"transformers.ImageProcessingMixin.push_to_hub.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Branch to push the uploaded files to.`,name:"revision"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/utils/hub.py#L786"}}),A=new hr({props:{anchor:"transformers.ImageProcessingMixin.push_to_hub.example",$$slots:{default:[Ir]},$$scope:{ctx:S}}}),Pe=new w({props:{name:"register_for_auto_class",anchor:"transformers.ImageProcessingMixin.register_for_auto_class",parameters:[{name:"auto_class",val:" = 'AutoImageProcessor'"}],parametersDescription:[{anchor:"transformers.ImageProcessingMixin.register_for_auto_class.auto_class",description:`<strong>auto_class</strong> (<code>str</code> or <code>type</code>, <em>optional</em>, defaults to <code>&quot;AutoImageProcessor &quot;</code>) &#x2014;
The auto class to register this new image processor with.`,name:"auto_class"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_processing_utils.py#L491"}}),G=new $r({props:{warning:!0,$$slots:{default:[Mr]},$$scope:{ctx:S}}}),je=new w({props:{name:"save_pretrained",anchor:"transformers.ImageProcessingMixin.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.ImageProcessingMixin.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory where the image processor JSON file will be saved (will be created if it does not exist).`,name:"save_directory"},{anchor:"transformers.ImageProcessingMixin.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.ImageProcessingMixin.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/main/ja/internal/tokenization_utils#transformers.PreTrainedTokenizerBase.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_processing_utils.py#L206"}}),Ue=new w({props:{name:"to_dict",anchor:"transformers.ImageProcessingMixin.to_dict",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_processing_utils.py#L425",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Dictionary of all the attributes that make up this image processor instance.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Dict[str, Any]</code></p>
`}}),ze=new w({props:{name:"to_json_file",anchor:"transformers.ImageProcessingMixin.to_json_file",parameters:[{name:"json_file_path",val:": typing.Union[str, os.PathLike]"}],parametersDescription:[{anchor:"transformers.ImageProcessingMixin.to_json_file.json_file_path",description:`<strong>json_file_path</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Path to the JSON file in which this image_processor instance&#x2019;s parameters will be saved.`,name:"json_file_path"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_processing_utils.py#L477"}}),Le=new w({props:{name:"to_json_string",anchor:"transformers.ImageProcessingMixin.to_json_string",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/image_processing_utils.py#L456",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>String containing all the attributes that make up this feature_extractor instance in JSON format.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>str</code></p>
`}}),{c(){l=a("meta"),T=r(),I=a("p"),$=r(),M=a("p"),M.textContent=d,C=r(),te=a("p"),te.textContent=kn,pt=r(),ne=a("p"),ne.innerHTML=Wn,gt=r(),re=a("p"),re.textContent=Zn,ft=r(),oe=a("p"),oe.textContent=qn,ht=r(),ae=a("p"),ae.textContent=En,ut=r(),g(se.$$.fragment),_t=r(),ie=a("p"),ie.textContent=Hn,bt=r(),me=a("p"),me.textContent=Vn,yt=r(),g(ce.$$.fragment),vt=r(),D=a("div"),g(le.$$.fragment),Xt=r(),Je=a("p"),Je.innerHTML=Fn,xt=r(),P=a("div"),g(de.$$.fragment),Yt=r(),De=a("p"),De.textContent=Sn,At=r(),ke=a("p"),ke.textContent=Bn,$t=r(),j=a("div"),g(pe.$$.fragment),Gt=r(),We=a("p"),We.textContent=Rn,Qt=r(),Ze=a("p"),Ze.textContent=Xn,wt=r(),k=a("div"),g(ge.$$.fragment),Ot=r(),qe=a("p"),qe.textContent=Yn,It=r(),U=a("div"),g(fe.$$.fragment),Kt=r(),Ee=a("p"),Ee.innerHTML=An,en=r(),He=a("p"),He.textContent=Gn,Mt=r(),W=a("div"),g(he.$$.fragment),tn=r(),Ve=a("p"),Ve.innerHTML=Qn,Tt=r(),Z=a("div"),g(ue.$$.fragment),nn=r(),Fe=a("p"),Fe.textContent=On,Ct=r(),q=a("div"),g(_e.$$.fragment),rn=r(),Se=a("p"),Se.innerHTML=Kn,Pt=r(),E=a("div"),g(be.$$.fragment),on=r(),Be=a("p"),Be.innerHTML=er,jt=r(),H=a("div"),g(ye.$$.fragment),an=r(),Re=a("p"),Re.innerHTML=tr,Ut=r(),g(ve.$$.fragment),zt=r(),p=a("div"),g(xe.$$.fragment),sn=r(),Xe=a("p"),Xe.textContent=nr,mn=r(),z=a("div"),g($e.$$.fragment),cn=r(),Ye=a("p"),Ye.innerHTML=rr,ln=r(),Ae=a("p"),Ae.textContent=or,dn=r(),B=a("div"),g(we.$$.fragment),pn=r(),Ge=a("p"),Ge.innerHTML=ar,gn=r(),R=a("div"),g(Ie.$$.fragment),fn=r(),Qe=a("p"),Qe.innerHTML=sr,hn=r(),L=a("div"),g(Me.$$.fragment),un=r(),Oe=a("p"),Oe.innerHTML=ir,_n=r(),g(X.$$.fragment),bn=r(),Y=a("div"),g(Te.$$.fragment),yn=r(),Ke=a("p"),Ke.innerHTML=mr,vn=r(),N=a("div"),g(Ce.$$.fragment),xn=r(),et=a("p"),et.textContent=cr,$n=r(),g(A.$$.fragment),wn=r(),J=a("div"),g(Pe.$$.fragment),In=r(),tt=a("p"),tt.innerHTML=lr,Mn=r(),g(G.$$.fragment),Tn=r(),Q=a("div"),g(je.$$.fragment),Cn=r(),nt=a("p"),nt.innerHTML=dr,Pn=r(),O=a("div"),g(Ue.$$.fragment),jn=r(),rt=a("p"),rt.textContent=pr,Un=r(),K=a("div"),g(ze.$$.fragment),zn=r(),ot=a("p"),ot.textContent=gr,Ln=r(),ee=a("div"),g(Le.$$.fragment),Nn=r(),at=a("p"),at.textContent=fr,Lt=r(),dt=a("p"),this.h()},l(e){const i=xr("svelte-u9bgzb",document.head);l=s(i,"META",{name:!0,content:!0}),i.forEach(n),T=o(e),I=s(e,"P",{}),v(I).forEach(n),$=o(e),M=s(e,"P",{"data-svelte-h":!0}),c(M)!=="svelte-rhuab4"&&(M.textContent=d),C=o(e),te=s(e,"P",{"data-svelte-h":!0}),c(te)!=="svelte-1a2vv9i"&&(te.textContent=kn),pt=o(e),ne=s(e,"P",{"data-svelte-h":!0}),c(ne)!=="svelte-cplh2z"&&(ne.innerHTML=Wn),gt=o(e),re=s(e,"P",{"data-svelte-h":!0}),c(re)!=="svelte-15zvdwu"&&(re.textContent=Zn),ft=o(e),oe=s(e,"P",{"data-svelte-h":!0}),c(oe)!=="svelte-1yjkyey"&&(oe.textContent=qn),ht=o(e),ae=s(e,"P",{"data-svelte-h":!0}),c(ae)!=="svelte-e7l3py"&&(ae.textContent=En),ut=o(e),f(se.$$.fragment,e),_t=o(e),ie=s(e,"P",{"data-svelte-h":!0}),c(ie)!=="svelte-pduxms"&&(ie.textContent=Hn),bt=o(e),me=s(e,"P",{"data-svelte-h":!0}),c(me)!=="svelte-he934w"&&(me.textContent=Vn),yt=o(e),f(ce.$$.fragment,e),vt=o(e),D=s(e,"DIV",{class:!0});var Ne=v(D);f(le.$$.fragment,Ne),Xt=o(Ne),Je=s(Ne,"P",{"data-svelte-h":!0}),c(Je)!=="svelte-2qw57k"&&(Je.innerHTML=Fn),Ne.forEach(n),xt=o(e),P=s(e,"DIV",{class:!0});var V=v(P);f(de.$$.fragment,V),Yt=o(V),De=s(V,"P",{"data-svelte-h":!0}),c(De)!=="svelte-kjzox5"&&(De.textContent=Sn),At=o(V),ke=s(V,"P",{"data-svelte-h":!0}),c(ke)!=="svelte-fnusyy"&&(ke.textContent=Bn),V.forEach(n),$t=o(e),j=s(e,"DIV",{class:!0});var F=v(j);f(pe.$$.fragment,F),Gt=o(F),We=s(F,"P",{"data-svelte-h":!0}),c(We)!=="svelte-m5ejz9"&&(We.textContent=Rn),Qt=o(F),Ze=s(F,"P",{"data-svelte-h":!0}),c(Ze)!=="svelte-1isflmb"&&(Ze.textContent=Xn),F.forEach(n),wt=o(e),k=s(e,"DIV",{class:!0});var Jt=v(k);f(ge.$$.fragment,Jt),Ot=o(Jt),qe=s(Jt,"P",{"data-svelte-h":!0}),c(qe)!=="svelte-19ts50v"&&(qe.textContent=Yn),Jt.forEach(n),It=o(e),U=s(e,"DIV",{class:!0});var st=v(U);f(fe.$$.fragment,st),Kt=o(st),Ee=s(st,"P",{"data-svelte-h":!0}),c(Ee)!=="svelte-cgeryj"&&(Ee.innerHTML=An),en=o(st),He=s(st,"P",{"data-svelte-h":!0}),c(He)!=="svelte-1vabayc"&&(He.textContent=Gn),st.forEach(n),Mt=o(e),W=s(e,"DIV",{class:!0});var Dt=v(W);f(he.$$.fragment,Dt),tn=o(Dt),Ve=s(Dt,"P",{"data-svelte-h":!0}),c(Ve)!=="svelte-1v3jx5j"&&(Ve.innerHTML=Qn),Dt.forEach(n),Tt=o(e),Z=s(e,"DIV",{class:!0});var kt=v(Z);f(ue.$$.fragment,kt),nn=o(kt),Fe=s(kt,"P",{"data-svelte-h":!0}),c(Fe)!=="svelte-78trhr"&&(Fe.textContent=On),kt.forEach(n),Ct=o(e),q=s(e,"DIV",{class:!0});var Wt=v(q);f(_e.$$.fragment,Wt),rn=o(Wt),Se=s(Wt,"P",{"data-svelte-h":!0}),c(Se)!=="svelte-skn2h6"&&(Se.innerHTML=Kn),Wt.forEach(n),Pt=o(e),E=s(e,"DIV",{class:!0});var Zt=v(E);f(be.$$.fragment,Zt),on=o(Zt),Be=s(Zt,"P",{"data-svelte-h":!0}),c(Be)!=="svelte-avham3"&&(Be.innerHTML=er),Zt.forEach(n),jt=o(e),H=s(e,"DIV",{class:!0});var qt=v(H);f(ye.$$.fragment,qt),an=o(qt),Re=s(qt,"P",{"data-svelte-h":!0}),c(Re)!=="svelte-e557ju"&&(Re.innerHTML=tr),qt.forEach(n),Ut=o(e),f(ve.$$.fragment,e),zt=o(e),p=s(e,"DIV",{class:!0});var y=v(p);f(xe.$$.fragment,y),sn=o(y),Xe=s(y,"P",{"data-svelte-h":!0}),c(Xe)!=="svelte-16ht4m3"&&(Xe.textContent=nr),mn=o(y),z=s(y,"DIV",{class:!0});var it=v(z);f($e.$$.fragment,it),cn=o(it),Ye=s(it,"P",{"data-svelte-h":!0}),c(Ye)!=="svelte-2773v6"&&(Ye.innerHTML=rr),ln=o(it),Ae=s(it,"P",{"data-svelte-h":!0}),c(Ae)!=="svelte-1q8uymn"&&(Ae.textContent=or),it.forEach(n),dn=o(y),B=s(y,"DIV",{class:!0});var Et=v(B);f(we.$$.fragment,Et),pn=o(Et),Ge=s(Et,"P",{"data-svelte-h":!0}),c(Ge)!=="svelte-8sf3mw"&&(Ge.innerHTML=ar),Et.forEach(n),gn=o(y),R=s(y,"DIV",{class:!0});var Ht=v(R);f(Ie.$$.fragment,Ht),fn=o(Ht),Qe=s(Ht,"P",{"data-svelte-h":!0}),c(Qe)!=="svelte-2t06m8"&&(Qe.innerHTML=sr),Ht.forEach(n),hn=o(y),L=s(y,"DIV",{class:!0});var mt=v(L);f(Me.$$.fragment,mt),un=o(mt),Oe=s(mt,"P",{"data-svelte-h":!0}),c(Oe)!=="svelte-ggkept"&&(Oe.innerHTML=ir),_n=o(mt),f(X.$$.fragment,mt),mt.forEach(n),bn=o(y),Y=s(y,"DIV",{class:!0});var Vt=v(Y);f(Te.$$.fragment,Vt),yn=o(Vt),Ke=s(Vt,"P",{"data-svelte-h":!0}),c(Ke)!=="svelte-d2g2ab"&&(Ke.innerHTML=mr),Vt.forEach(n),vn=o(y),N=s(y,"DIV",{class:!0});var ct=v(N);f(Ce.$$.fragment,ct),xn=o(ct),et=s(ct,"P",{"data-svelte-h":!0}),c(et)!=="svelte-1qlyz3u"&&(et.textContent=cr),$n=o(ct),f(A.$$.fragment,ct),ct.forEach(n),wn=o(y),J=s(y,"DIV",{class:!0});var lt=v(J);f(Pe.$$.fragment,lt),In=o(lt),tt=s(lt,"P",{"data-svelte-h":!0}),c(tt)!=="svelte-ofyqve"&&(tt.innerHTML=lr),Mn=o(lt),f(G.$$.fragment,lt),lt.forEach(n),Tn=o(y),Q=s(y,"DIV",{class:!0});var Ft=v(Q);f(je.$$.fragment,Ft),Cn=o(Ft),nt=s(Ft,"P",{"data-svelte-h":!0}),c(nt)!=="svelte-hnjy34"&&(nt.innerHTML=dr),Ft.forEach(n),Pn=o(y),O=s(y,"DIV",{class:!0});var St=v(O);f(Ue.$$.fragment,St),jn=o(St),rt=s(St,"P",{"data-svelte-h":!0}),c(rt)!=="svelte-1ww3wqq"&&(rt.textContent=pr),St.forEach(n),Un=o(y),K=s(y,"DIV",{class:!0});var Bt=v(K);f(ze.$$.fragment,Bt),zn=o(Bt),ot=s(Bt,"P",{"data-svelte-h":!0}),c(ot)!=="svelte-1g70y32"&&(ot.textContent=gr),Bt.forEach(n),Ln=o(y),ee=s(y,"DIV",{class:!0});var Rt=v(ee);f(Le.$$.fragment,Rt),Nn=o(Rt),at=s(Rt,"P",{"data-svelte-h":!0}),c(at)!=="svelte-5ayq1f"&&(at.textContent=fr),Rt.forEach(n),y.forEach(n),Lt=o(e),dt=s(e,"P",{}),v(dt).forEach(n),this.h()},h(){x(l,"name","hf:doc:metadata"),x(l,"content",Cr),x(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(p,"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,l),m(e,T,i),m(e,I,i),m(e,$,i),m(e,M,i),m(e,C,i),m(e,te,i),m(e,pt,i),m(e,ne,i),m(e,gt,i),m(e,re,i),m(e,ft,i),m(e,oe,i),m(e,ht,i),m(e,ae,i),m(e,ut,i),h(se,e,i),m(e,_t,i),m(e,ie,i),m(e,bt,i),m(e,me,i),m(e,yt,i),h(ce,e,i),m(e,vt,i),m(e,D,i),h(le,D,null),t(D,Xt),t(D,Je),m(e,xt,i),m(e,P,i),h(de,P,null),t(P,Yt),t(P,De),t(P,At),t(P,ke),m(e,$t,i),m(e,j,i),h(pe,j,null),t(j,Gt),t(j,We),t(j,Qt),t(j,Ze),m(e,wt,i),m(e,k,i),h(ge,k,null),t(k,Ot),t(k,qe),m(e,It,i),m(e,U,i),h(fe,U,null),t(U,Kt),t(U,Ee),t(U,en),t(U,He),m(e,Mt,i),m(e,W,i),h(he,W,null),t(W,tn),t(W,Ve),m(e,Tt,i),m(e,Z,i),h(ue,Z,null),t(Z,nn),t(Z,Fe),m(e,Ct,i),m(e,q,i),h(_e,q,null),t(q,rn),t(q,Se),m(e,Pt,i),m(e,E,i),h(be,E,null),t(E,on),t(E,Be),m(e,jt,i),m(e,H,i),h(ye,H,null),t(H,an),t(H,Re),m(e,Ut,i),h(ve,e,i),m(e,zt,i),m(e,p,i),h(xe,p,null),t(p,sn),t(p,Xe),t(p,mn),t(p,z),h($e,z,null),t(z,cn),t(z,Ye),t(z,ln),t(z,Ae),t(p,dn),t(p,B),h(we,B,null),t(B,pn),t(B,Ge),t(p,gn),t(p,R),h(Ie,R,null),t(R,fn),t(R,Qe),t(p,hn),t(p,L),h(Me,L,null),t(L,un),t(L,Oe),t(L,_n),h(X,L,null),t(p,bn),t(p,Y),h(Te,Y,null),t(Y,yn),t(Y,Ke),t(p,vn),t(p,N),h(Ce,N,null),t(N,xn),t(N,et),t(N,$n),h(A,N,null),t(p,wn),t(p,J),h(Pe,J,null),t(J,In),t(J,tt),t(J,Mn),h(G,J,null),t(p,Tn),t(p,Q),h(je,Q,null),t(Q,Cn),t(Q,nt),t(p,Pn),t(p,O),h(Ue,O,null),t(O,jn),t(O,rt),t(p,Un),t(p,K),h(ze,K,null),t(K,zn),t(K,ot),t(p,Ln),t(p,ee),h(Le,ee,null),t(ee,Nn),t(ee,at),m(e,Lt,i),m(e,dt,i),Nt=!0},p(e,[i]){const Ne={};i&2&&(Ne.$$scope={dirty:i,ctx:e}),X.$set(Ne);const V={};i&2&&(V.$$scope={dirty:i,ctx:e}),A.$set(V);const F={};i&2&&(F.$$scope={dirty:i,ctx:e}),G.$set(F)},i(e){Nt||(u(se.$$.fragment,e),u(ce.$$.fragment,e),u(le.$$.fragment,e),u(de.$$.fragment,e),u(pe.$$.fragment,e),u(ge.$$.fragment,e),u(fe.$$.fragment,e),u(he.$$.fragment,e),u(ue.$$.fragment,e),u(_e.$$.fragment,e),u(be.$$.fragment,e),u(ye.$$.fragment,e),u(ve.$$.fragment,e),u(xe.$$.fragment,e),u($e.$$.fragment,e),u(we.$$.fragment,e),u(Ie.$$.fragment,e),u(Me.$$.fragment,e),u(X.$$.fragment,e),u(Te.$$.fragment,e),u(Ce.$$.fragment,e),u(A.$$.fragment,e),u(Pe.$$.fragment,e),u(G.$$.fragment,e),u(je.$$.fragment,e),u(Ue.$$.fragment,e),u(ze.$$.fragment,e),u(Le.$$.fragment,e),Nt=!0)},o(e){_(se.$$.fragment,e),_(ce.$$.fragment,e),_(le.$$.fragment,e),_(de.$$.fragment,e),_(pe.$$.fragment,e),_(ge.$$.fragment,e),_(fe.$$.fragment,e),_(he.$$.fragment,e),_(ue.$$.fragment,e),_(_e.$$.fragment,e),_(be.$$.fragment,e),_(ye.$$.fragment,e),_(ve.$$.fragment,e),_(xe.$$.fragment,e),_($e.$$.fragment,e),_(we.$$.fragment,e),_(Ie.$$.fragment,e),_(Me.$$.fragment,e),_(X.$$.fragment,e),_(Te.$$.fragment,e),_(Ce.$$.fragment,e),_(A.$$.fragment,e),_(Pe.$$.fragment,e),_(G.$$.fragment,e),_(je.$$.fragment,e),_(Ue.$$.fragment,e),_(ze.$$.fragment,e),_(Le.$$.fragment,e),Nt=!1},d(e){e&&(n(T),n(I),n($),n(M),n(C),n(te),n(pt),n(ne),n(gt),n(re),n(ft),n(oe),n(ht),n(ae),n(ut),n(_t),n(ie),n(bt),n(me),n(yt),n(vt),n(D),n(xt),n(P),n($t),n(j),n(wt),n(k),n(It),n(U),n(Mt),n(W),n(Tt),n(Z),n(Ct),n(q),n(Pt),n(E),n(jt),n(H),n(Ut),n(zt),n(p),n(Lt),n(dt)),n(l),b(se,e),b(ce,e),b(le),b(de),b(pe),b(ge),b(fe),b(he),b(ue),b(_e),b(be),b(ye),b(ve,e),b(xe),b($e),b(we),b(Ie),b(Me),b(X),b(Te),b(Ce),b(A),b(Pe),b(G),b(je),b(Ue),b(ze),b(Le)}}}const Cr='{"title":"画像プロセッサ用ユーティリティ","local":"画像プロセッサ用ユーティリティ","sections":[{"title":"Image Transformations","local":"transformers.image_transforms.center_crop","sections":[],"depth":2},{"title":"ImageProcessingMixin","local":"transformers.ImageProcessingMixin","sections":[],"depth":2}],"depth":1}';function Pr(S){return br(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class kr extends yr{constructor(l){super(),vr(this,l,Pr,Tr,_r,{})}}export{kr as component};
