Commit 68b78d2
authored
Support RandTorchVisiond as RandomizableTransform (#5567)
Signed-off-by: Sachidanand Alle <sachidanand.alle@gmail.com>
Fixes # .
Instead of simple Randomizable transform, extend RandTorchVisiond into
RandomizableTransform
### Description
This will help users to choose to apply the transform with some
probability. For example, we want to mix training samples both with and
without ColorJitter (as during validation we don't use ColorJitter)
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [x] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.
Signed-off-by: Sachidanand Alle <sachidanand.alle@gmail.com>1 parent 9adfb4b commit 68b78d2
1 file changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1405 | 1405 | | |
1406 | 1406 | | |
1407 | 1407 | | |
1408 | | - | |
| 1408 | + | |
1409 | 1409 | | |
1410 | 1410 | | |
1411 | 1411 | | |
| |||
1414 | 1414 | | |
1415 | 1415 | | |
1416 | 1416 | | |
1417 | | - | |
| 1417 | + | |
1418 | 1418 | | |
1419 | | - | |
1420 | | - | |
| 1419 | + | |
| 1420 | + | |
1421 | 1421 | | |
1422 | 1422 | | |
1423 | 1423 | | |
1424 | 1424 | | |
1425 | 1425 | | |
1426 | | - | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
1427 | 1429 | | |
1428 | 1430 | | |
1429 | 1431 | | |
1430 | 1432 | | |
1431 | 1433 | | |
| 1434 | + | |
1432 | 1435 | | |
1433 | 1436 | | |
1434 | 1437 | | |
1435 | 1438 | | |
1436 | 1439 | | |
| 1440 | + | |
1437 | 1441 | | |
| 1442 | + | |
1438 | 1443 | | |
1439 | 1444 | | |
1440 | 1445 | | |
1441 | 1446 | | |
1442 | 1447 | | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
1443 | 1453 | | |
1444 | 1454 | | |
1445 | 1455 | | |
| |||
0 commit comments