Repository navigation
π [i18n-KO] Translated video_processors.md to Korean
#41021
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
2739901
docs: ko: video_processors.md
AhnJoonSung 1d4f640
feat: nmt draft
AhnJoonSung b20620c
fix: manual edits
AhnJoonSung cb71377
fix: spelling
AhnJoonSung 0852d10
fix: Use original terms and refine awkward expressions
AhnJoonSung ba6cf45
fix: Align with glossary terminology
AhnJoonSung e3bdb0e
fix: Make sentence more natural
AhnJoonSung 003ff71
fix: manual edits
AhnJoonSung File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| <!--Copyright 2025 The HuggingFace Team. All rights reserved. | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
| the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed 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. | ||
|
|
||
| β οΈ 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. | ||
|
|
||
| --> | ||
|
|
||
| # λΉλμ€ νλ‘μΈμ[[video-processor]] | ||
|
|
||
| **Video Processor**λ λΉλμ€ λͺ¨λΈμ μ λ ₯μΌλ‘ μ¬μ©λ νΉμ± κ°λ€μ μ€λΉνκ³ , λͺ¨λΈ μΆλ ₯μ νμ²λ¦¬λ₯Ό μ§μνλ μ νΈλ¦¬ν°μ λλ€. ν¬κΈ° μ‘°μ , μ κ·ν, PyTorch ν μ λ³ν λ±μ κΈ°λ₯μ μ 곡ν©λλ€. | ||
|
|
||
| λΉλμ€ νλ‘μΈμλ μ΄λ―Έμ§ νλ‘μΈμμ κΈ°λ₯μ νμ₯νμ¬, λͺ¨λΈμ΄ μμμ μ²λ¦¬ν λ μ΄λ―Έμ§μλ ꡬλ³λλ λ³λμ μΈμλ₯Ό μ¬μ©ν μ μλλ‘ ν©λλ€. λν μλ³Έ λΉλμ€ λ°μ΄ν°μ λͺ¨λΈ μ¬μ΄λ₯Ό μ°κ²°νλ μν μ νλ©°, μ λ ₯ νΉμ± κ°λ€μ΄ VLMμ μ΅μ νλλλ‘ λ³΄μ₯ν©λλ€. | ||
|
|
||
| [`~BaseVideoProcessor.from_pretrained`]λ₯Ό μ¬μ©νλ©΄ Hugging Face [Hub](https://hf.co) λλ λ‘컬 λλ ν°λ¦¬μ μλ λΉλμ€ λͺ¨λΈλ‘λΆν° λΉλμ€ νλ‘μΈμ μ€μ (μ΄λ―Έμ§ ν¬κΈ°, μ κ·ν λ° λ¦¬μ€μΌμΌ μ¬λΆ λ±)μ λΆλ¬μ¬ μ μμ΅λλ€. κ° μ¬μ νμ΅λ λͺ¨λΈμ μ€μ μ [video_preprocessor_config.json] νμΌμ μ μ₯λμ΄μΌ νμ§λ§, μΌλΆ μ€λλ λͺ¨λΈμ κ²½μ° [preprocessor_config.json](https://huggingface.co/llava-hf/llava-onevision-qwen2-0.5b-ov-hf/blob/main/preprocessor_config.json) νμΌμ μ μ₯λμ΄ μμ μλ μμ΅λλ€. νμμ κ²½μ°λ κΆμ₯λμ§ μμΌλ©° ν₯ν μ κ±°λ μμ μ λλ€. | ||
|
|
||
| ### μ¬μ© μμ[[usage-example]] | ||
|
|
||
| λ€μμ [`llava-hf/llava-onevision-qwen2-0.5b-ov-hf`](https://huggingface.co/llava-hf/llava-onevision-qwen2-0.5b-ov-hf) λͺ¨λΈκ³Ό ν¨κ» λΉλμ€ νλ‘μΈμλ₯Ό λ‘λνλ μμμ λλ€: | ||
|
AhnJoonSung marked this conversation as resolved.
Resolved
|
||
|
|
||
| ```python | ||
| from transformers import AutoVideoProcessor | ||
|
|
||
| processor = AutoVideoProcessor.from_pretrained("llava-hf/llava-onevision-qwen2-0.5b-ov-hf") | ||
| ``` | ||
|
|
||
| νμ¬ λΉλμ€μ κΈ°λ³Έ μ΄λ―Έμ§ νλ‘μΈμλ₯Ό μ¬μ©ν κ²½μ°, λΉλμ€ λ°μ΄ν°λ₯Ό κ° νλ μλ§λ€ κ°λ³ μ΄λ―Έμ§λ‘ μ²λ¦¬νμ¬ λ³νμ μ μ©ν©λλ€. μ΄ λ°©μλ μ λμνκΈ΄ νμ§λ§ ν¨μ¨μ΄ μ’μ§ μμ΅λλ€. μ΄ λμ `AutoVideoProcessor`λ₯Ό μ¬μ©νλ©΄ [torchvision](https://pytorch.org/vision/stable/index.html) λΌμ΄λΈλ¬λ¦¬λ₯Ό νμ©ν **fast video processors**μ μ΄μ μ λ릴 μ μμ΅λλ€. Fast processorsλ κ° λΉλμ€λ νλ μμ νλμ© μ²λ¦¬νμ§ μκ³ , μ 체 λΉλμ€ λ°°μΉλ₯Ό ν λ²μ μ²λ¦¬ν©λλ€. μ΄λ GPU κ°μμ λμ νλ©°, νΉν λμ μ²λ¦¬λμ΄ νμν μμ μμ μ²λ¦¬ μλλ₯Ό ν¬κ² ν₯μμν΅λλ€. | ||
|
AhnJoonSung marked this conversation as resolved.
Resolved
|
||
|
|
||
| Fast video processorsλ λͺ¨λ λͺ¨λΈμμ μ¬μ©ν μ μμΌλ©° `AutoVideoProcessor`κ° μ΄κΈ°νλ λ κ°μ΄ λ‘λλ©λλ€. Fast video processorsλ₯Ό μ¬μ©ν λλ `device` μΈμλ₯Ό μ€μ νμ¬ μ΄λ€ μ₯μΉμμ μ²λ¦¬λ₯Ό μνν μ§ μ§μ ν μ μμ΅λλ€. ν μλ₯Ό μ λ ₯μΌλ‘ νλ κ²½μ°, κΈ°λ³Έμ μΌλ‘ μ λ ₯κ³Ό λμΌν μ₯μΉμμ μ²λ¦¬λλ©°, κ·Έλ μ§ μμ κ²½μ° CPUμμ μ²λ¦¬λ©λλ€. μ₯μΉλ‘ 'cuda'λ₯Ό μ¬μ©νλ κ²½μ°, μΆκ°μ μΈ μλ ν₯μμ μν΄ νλ‘μΈμλ₯Ό μ»΄νμΌνμ¬ μ¬μ©ν μ μμ΅λλ€. | ||
|
|
||
| ```python | ||
| import torch | ||
| from transformers.video_utils import load_video | ||
| from transformers import AutoVideoProcessor | ||
|
|
||
| video = load_video("video.mp4") | ||
| processor = AutoVideoProcessor.from_pretrained("llava-hf/llava-onevision-qwen2-0.5b-ov-hf", device="cuda") | ||
| processor = torch.compile(processor) | ||
| processed_video = processor(video, return_tensors="pt") | ||
| ``` | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.