(self)
| 49 | @unittest.skipUnless(has_pil, "requires PIL") |
| 50 | class TestLRFinder(unittest.TestCase): |
| 51 | def setUp(self): |
| 52 | self.root_dir = MONAIEnvVars.data_dir() |
| 53 | if not self.root_dir: |
| 54 | self.root_dir = Path(__file__).parents[1] / "testing_data" |
| 55 | |
| 56 | self.transforms = Compose( |
| 57 | [ |
| 58 | LoadImaged(keys="image"), |
| 59 | EnsureChannelFirstd(keys="image", channel_dim="no_channel"), |
| 60 | ScaleIntensityd(keys="image"), |
| 61 | ToTensord(keys="image"), |
| 62 | ] |
| 63 | ) |
| 64 | |
| 65 | def test_lr_finder(self): |
| 66 | # 0.001 gives 54 examples |
nothing calls this directly
no test coverage detected