Spaces:
Running on Zero
Running on Zero
Download verify_engine.py from ibsocr1/IcecreamDetect: direct link, hf CLI and curl.
- Browser
- Download file 478 Bytes
-
https://huggingface.co/spaces/ibsocr1/IcecreamDetect/resolve/main/verify_engine.py
- Command line
-
hf download hf://spaces/ibsocr1/IcecreamDetect/verify_engine.py
-
curl -L -o verify_engine.py https://huggingface.co/spaces/ibsocr1/IcecreamDetect/resolve/main/verify_engine.py
478 Bytes
| import pathlib | |
| root=pathlib.Path(__file__).resolve().parent | |
| bad=[] | |
| for p in root.rglob('*.py'): | |
| if p.name == 'verify_engine.py' or '.paddledetection' in p.parts: | |
| continue | |
| s=p.read_text(errors='ignore') | |
| if 'transformers.models.rt_detr' in s or 'RTDetrForObjectDetection' in s: | |
| bad.append(str(p)) | |
| if bad: | |
| raise SystemExit('Hugging Face RT-DETR code found: ' + ', '.join(bad)) | |
| print('OK: application training path is PaddleDetection RT-DETR only.') | |