Download tests/sampler_test.py from DesonDai/CAVI: direct link, hf CLI and curl.
- Browser
- Download file 365 Bytes
-
https://huggingface.co/datasets/DesonDai/CAVI/resolve/main/tests/sampler_test.py
- Command line
-
hf download hf://datasets/DesonDai/CAVI/tests/sampler_test.py
-
curl -L -o sampler_test.py https://huggingface.co/datasets/DesonDai/CAVI/resolve/main/tests/sampler_test.py
365 Bytes
| import unittest | |
| import sys | |
| sys.path.append('.') | |
| from fastreid.data.samplers import TrainingSampler | |
| class SamplerTestCase(unittest.TestCase): | |
| def test_training_sampler(self): | |
| sampler = TrainingSampler(5) | |
| for i in sampler: | |
| from ipdb import set_trace; set_trace() | |
| print(i) | |
| if __name__ == '__main__': | |
| unittest.main() | |