Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix non-renderable images on PyPI #210

Merged
merged 1 commit into from
Oct 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ______________________________________________________________________

`yolort` is very simple to implement and experiment with. You like the implementation of torchvision's faster-rcnn, retinanet or detr? You like yolov5? You love `yolort`!

<a href=".github/zidane.jpg"><img src=".github/zidane.jpg" alt="YOLO inference demo" width="500"/></a>
<a href="notebooks/assets/zidane.jpg"><img src="notebooks/assets/zidane.jpg" alt="YOLO inference demo" width="500"/></a>

## :new: What's New

Expand Down
File renamed without changes
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Adopted from TorchVision, see:
https://github.com/pytorch/vision/blob/master/setup.py
"""
import io
import subprocess
from pathlib import Path

Expand Down Expand Up @@ -37,8 +36,12 @@ def write_version_file():

def get_long_description():
# Get the long description from the README file
with io.open(str(PATH_ROOT / "README.md"), encoding="utf-8") as f:
return f.read()
description = (PATH_ROOT / "README.md").read_text(encoding="utf-8")
# replace relative repository path to absolute link to the release
static_url = f"https://raw.githubusercontent.com/zhiqwang/yolov5-rt-stack/release/v{VERSION}"
description = description.replace("docs/source/_static/", f"{static_url}/docs/source/_static/")
description = description.replace("notebooks/assets/", f"{static_url}/notebooks/assets/")
return description


def load_requirements(path_dir=PATH_ROOT, file_name="requirements.txt", comment_char="#"):
Expand Down