Download data/string_gen.py from adfa5456/FastRobustICP: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/datasets/adfa5456/FastRobustICP/resolve/main/data/string_gen.py
- Command line
-
hf download hf://datasets/adfa5456/FastRobustICP/data/string_gen.py
-
curl -L -o string_gen.py https://huggingface.co/datasets/adfa5456/FastRobustICP/resolve/main/data/string_gen.py
428 Bytes
| import json | |
| def gen(type, fill_rate, start, end, status, plus): | |
| fill_rate = fill_rate | |
| plus = plus | |
| type = type | |
| start = start | |
| end = end | |
| status = status | |
| data =[] | |
| for i in range(start, end+1): | |
| x = f'{fill_rate}_{i}' | |
| data.append(x) | |
| print(f"'{type}_{fill_rate}_{status}'", end=' : ') | |
| data.extend(plus) | |
| print(data) | |
| return data | |
| gen('spray', 0,11,19,'lying',[]) | |