Spaces:
Runtime error
Runtime error
Download ControlNet/tutorial_dataset_test.py from DmitrMakeev/Rerender: direct link, hf CLI and curl.
- Browser
- Download file 206 Bytes
-
https://huggingface.co/spaces/DmitrMakeev/Rerender/resolve/main/ControlNet/tutorial_dataset_test.py
- Command line
-
hf download hf://spaces/DmitrMakeev/Rerender/ControlNet/tutorial_dataset_test.py
-
curl -L -o tutorial_dataset_test.py https://huggingface.co/spaces/DmitrMakeev/Rerender/resolve/main/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) | |