Spaces:
Running on Zero
Running on Zero
Download src/utils/transforms.py from ACOM7/Just_For_PLC_Test: direct link, hf CLI and curl.
- Browser
- Download file 691 Bytes
-
https://huggingface.co/spaces/ACOM7/Just_For_PLC_Test/resolve/main/src/utils/transforms.py
- Command line
-
hf download hf://spaces/ACOM7/Just_For_PLC_Test/src/utils/transforms.py
-
curl -L -o transforms.py https://huggingface.co/spaces/ACOM7/Just_For_PLC_Test/resolve/main/src/utils/transforms.py
691 Bytes
| # Copyright (c) Meta Platforms, Inc. and affiliates. | |
| # All rights reserved. | |
| # This source code is licensed under the license found in the | |
| # LICENSE file in the root directory of this source tree. | |
| # Copyright (C) 2024-present Naver Corporation. All rights reserved. | |
| # Licensed under CC BY-NC-SA 4.0 (non-commercial use only). | |
| # | |
| # -------------------------------------------------------- | |
| # DUST3R default transforms | |
| # -------------------------------------------------------- | |
| import torchvision.transforms as tvf | |
| from model.dataset.utils.image import ImgNorm | |
| # define the standard image transforms | |
| ColorJitter = tvf.Compose([tvf.ColorJitter(0.5, 0.5, 0.5, 0.1), ImgNorm]) | |