mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-04 21:30:07 +06:00
parent
83259e406d
commit
1c1aec2ef1
@ -204,6 +204,8 @@ Instantiate the image processor from the same checkpoint as the model you want t
|
|||||||
```py
|
```py
|
||||||
>>> from transformers import AutoImageProcessor
|
>>> from transformers import AutoImageProcessor
|
||||||
|
|
||||||
|
>>> MAX_SIZE = IMAGE_SIZE
|
||||||
|
|
||||||
>>> image_processor = AutoImageProcessor.from_pretrained(
|
>>> image_processor = AutoImageProcessor.from_pretrained(
|
||||||
... MODEL_NAME,
|
... MODEL_NAME,
|
||||||
... do_resize=True,
|
... do_resize=True,
|
||||||
@ -225,8 +227,6 @@ and it uses the exact same dataset as an example. Apply some geometric and color
|
|||||||
```py
|
```py
|
||||||
>>> import albumentations as A
|
>>> import albumentations as A
|
||||||
|
|
||||||
>>> max_size = IMAGE_SIZE
|
|
||||||
|
|
||||||
>>> train_augment_and_transform = A.Compose(
|
>>> train_augment_and_transform = A.Compose(
|
||||||
... [
|
... [
|
||||||
... A.Perspective(p=0.1),
|
... A.Perspective(p=0.1),
|
||||||
|
Loading…
Reference in New Issue
Block a user