Download 3_ControlNet/tutorial_dataset_test.py from Qiyp/DiffICM: direct link, hf CLI and curl.
- Browser
- Download file 206 Bytes
-
https://huggingface.co/Qiyp/DiffICM/resolve/main/3_ControlNet/tutorial_dataset_test.py
- Command line
-
hf download hf://Qiyp/DiffICM/3_ControlNet/tutorial_dataset_test.py
-
curl -L -o tutorial_dataset_test.py https://huggingface.co/Qiyp/DiffICM/resolve/main/3_ControlNet/tutorial_dataset_test.py
206 Bytes
| from tutorial_dataset import MyDataset | |
| dataset = MyDataset() | |
| print(len(dataset)) | |
| item = dataset[1234] | |
| jpg = item['jpg'] | |
| txt = item['txt'] | |
| hint = item['hint'] | |
| print(txt) | |
| print(jpg.shape) | |
| print(hint.shape) | |