Spaces:
Runtime error
Runtime error
Download python/train.py from mediaparty2023/spoof-detect: direct link, hf CLI and curl.
- Browser
- Download file 461 Bytes
-
https://huggingface.co/spaces/mediaparty2023/spoof-detect/resolve/main/python/train.py
- Command line
-
hf download hf://spaces/mediaparty2023/spoof-detect/python/train.py
-
curl -L -o train.py https://huggingface.co/spaces/mediaparty2023/spoof-detect/resolve/main/python/train.py
461 Bytes
| import yaml | |
| from entities import read_entities | |
| entities = read_entities() | |
| with open(r'/content/yolov5/data.yaml') as file: | |
| # The FullLoader parameter handles the conversion from YAML | |
| # scalar values to Python the dictionary format | |
| labels_list = yaml.load(file, Loader=yaml.FullLoader) | |
| label_names = labels_list['names'] | |
| print("Number of Classes are {}, whose labels are {} for this Object Detection project".format(num_classes,label_names)) | |