"vscode:/vscode.git/clone" did not exist on "48d4827697084930c13818f82868d2cf255fe9bf"
Unverified Commit 1c1aec2e authored by linlin's avatar linlin Committed by GitHub
Browse files

Update object_detection.md (#31488)

Define MAX_SIZE before it is used.
parent 83259e40
......@@ -204,6 +204,8 @@ Instantiate the image processor from the same checkpoint as the model you want t
```py
>>> from transformers import AutoImageProcessor
>>> MAX_SIZE = IMAGE_SIZE
>>> image_processor = AutoImageProcessor.from_pretrained(
... MODEL_NAME,
... do_resize=True,
......@@ -225,8 +227,6 @@ and it uses the exact same dataset as an example. Apply some geometric and color
```py
>>> import albumentations as A
>>> max_size = IMAGE_SIZE
>>> train_augment_and_transform = A.Compose(
... [
... A.Perspective(p=0.1),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment