Skip to content

Commit

Permalink
Fix checkpoint path
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqwang committed Nov 9, 2020
1 parent 960a64c commit e5424cf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,8 @@ jobs:
cmake .. -DTorch_DIR=$TORCH_PATH/share/cmake/Torch
make -j4
sudo make install
- name: Download pretrained checkpoints and generate torchscript
- name: Export torchscript model
run: |
cd test/tracing
wget https://github.com/zhiqwang/yolov5-rt-stack/releases/download/v0.2.0/yolov5s.pt
cd ../..
python -m test.tracing.trace_model
- name: Test libtorch tracing
run: |
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,8 @@ jobs:
cmake .. -DTorch_DIR=$TORCH_PATH/share/cmake/Torch
make -j4
sudo make install
- name: Download pretrained checkpoints and generate torchscript
- name: Export torchscript model
run: |
cd test/tracing
wget https://github.com/zhiqwang/yolov5-rt-stack/releases/download/v0.2.0/yolov5s.pt
cd ../..
python -m test.tracing.trace_model
- name: Test libtorch tracing
run: |
Expand Down
2 changes: 1 addition & 1 deletion models/yolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def forward(

model_urls = {
'yolov5s':
'https://github.com/zhiqwang/yolov5-rt-stack/releases/download/v0.2.0/yolov5s.pt',
'https://github.com/zhiqwang/yolov5-rt-stack/releases/download/v0.2.1/yolov5s.pt',
}


Expand Down
5 changes: 1 addition & 4 deletions test/tracing/trace_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@

if __name__ == "__main__":

model = yolov5(
cfg_path='./models/yolov5s.yaml',
checkpoint_path='./test/tracing/yolov5s.pt',
)
model = yolov5(pretrained=True)
model.eval()

traced_model = torch.jit.script(model)
Expand Down

0 comments on commit e5424cf

Please sign in to comment.