-
由 Glenn Jocher 提交于
Returns `True` if file is part of pip package. Useful for contextual behavior modification. ```python def is_pip(): # Is file in a pip package? return 'site-packages' in Path(__file__).absolute().parts ```
Returns `True` if file is part of pip package. Useful for contextual behavior modification. ```python def is_pip(): # Is file in a pip package? return 'site-packages' in Path(__file__).absolute().parts ```
名称 |
最后提交
|
最后更新 |
---|---|---|
.github | 正在载入提交数据... | |
data | 正在载入提交数据... | |
models | 正在载入提交数据... | |
utils | 正在载入提交数据... | |
weights | 正在载入提交数据... | |
.dockerignore | 正在载入提交数据... | |
.gitattributes | 正在载入提交数据... | |
.gitignore | 正在载入提交数据... | |
Dockerfile | 正在载入提交数据... | |
LICENSE | 正在载入提交数据... | |
README.md | 正在载入提交数据... | |
__init__.py | 正在载入提交数据... | |
detect.py | 正在载入提交数据... | |
hubconf.py | 正在载入提交数据... | |
requirements.txt | 正在载入提交数据... | |
test.py | 正在载入提交数据... | |
train.py | 正在载入提交数据... | |
tutorial.ipynb | 正在载入提交数据... |