Skip to content
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

translate preprocessing.md to Chinese #26955

Merged
merged 5 commits into from
Oct 23, 2023

Conversation

jiaqiw09
Copy link
Contributor

@jiaqiw09 jiaqiw09 commented Oct 20, 2023

What does this PR do?

Part of #26803

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests? not necessary

Who can review?

@stevhliu

@jiaqiw09
Copy link
Contributor Author

@stevhliu

Here is the translation of preprocessing.md

Best

@jiaqiw09 jiaqiw09 changed the title translate preprocessing.md to Chinese translate preprocessing.md to Chinese Oct 20, 2023
Copy link
Member

@stevhliu stevhliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your translation! Remember to add this file to the toctree so it gets built


# 预处理

[[在Colab中打开]]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to translate this because it's our special doc-builder syntax :)

Suggested change
[[在Colab中打开]]
[[open-in-colab]]

<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/vision-preprocess-tutorial.png"/>
</div>

使用 [`AutoImageProcessor.from_pretrained`] 加载`image processo`:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
使用 [`AutoImageProcessor.from_pretrained`] 加载`image processo`
使用 [`AutoImageProcessor.from_pretrained`] 加载`image processor`

Comment on lines 457 to 461
<Tip>

在某些情况下,例如,在微调[DETR](./model_doc/detr)时,模型在训练时应用了尺度增强。这可能导致批处理中的图像大小不同。您可以使用[`DetrImageProcessor.pad`]来指定自定义的`collate_fn`将图像批处理在一起。

</Tip>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<Tip>
在某些情况下,例如,在微调[DETR](./model_doc/detr)时,模型在训练时应用了尺度增强。这可能导致批处理中的图像大小不同。您可以使用[`DetrImageProcessor.pad`]来指定自定义的`collate_fn`将图像批处理在一起。
</Tip>
</Tip>
在某些情况下,例如,在微调[DETR](./model_doc/detr)时,模型在训练时应用了尺度增强。这可能导致批处理中的图像大小不同。您可以使用[`DetrImageProcessor.pad`]来指定自定义的`collate_fn`将图像批处理在一起。

@jiaqiw09
Copy link
Contributor Author

@stevhliu

Hi, Thansk for your review. I just notice that you have merge the PR(pipeline_tutorial.md). So I just solve the merge conflicts problem.

Would you mind having a check again?

Best

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Copy link
Member

@stevhliu stevhliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, just one more minor change and we can merge!

docs/source/zh/preprocessing.md Show resolved Hide resolved
@jiaqiw09
Copy link
Contributor Author

Thanks, just one more minor change and we can merge!

Hi, thanks for your review and suggestion. Sorry that I missed some mirror problem.

Best

Copy link
Member

@stevhliu stevhliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 🤗

@stevhliu stevhliu merged commit b0d1d7f into huggingface:main Oct 23, 2023
8 checks passed
@jiaqiw09 jiaqiw09 deleted the translate_preprocessing branch October 24, 2023 15:16
staghado pushed a commit to staghado/transformers that referenced this pull request Oct 24, 2023
* translate preprocessing.md to Chinese

* update files fixing problems mentioned in review

* update files fixing problems mentioned in review

---------

Co-authored-by: jiaqiw <wangjiaqi50@huawei.com>
EduardoPach pushed a commit to EduardoPach/transformers that referenced this pull request Nov 19, 2023
* translate preprocessing.md to Chinese

* update files fixing problems mentioned in review

* update files fixing problems mentioned in review

---------

Co-authored-by: jiaqiw <wangjiaqi50@huawei.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants