File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -504,11 +504,11 @@ jobs:
504504 accuracy_${{ matrix.model }}.txt
505505 accuracy_value_${{ matrix.model }}.txt
506506
507- - name : Update README for model (main only)
507+ - name : Update README for model
508508 if : github.ref == 'refs/heads/main'
509509 run : |
510- TOP1_ACC=$(grep -oE 'Top-1 Accuracy: [0-9]+\.?[0-9]*%' accuracy_${{ matrix.model }}.txt | grep -oE '[0-9]+\.?[0-9]*')
511- TOP5_ACC=$(grep -oE 'Top-5 Accuracy: [0-9]+\.?[0-9]*%' accuracy_${{ matrix.model }}.txt | grep -oE '[0-9]+\.?[0-9]*')
510+ TOP1_ACC=$(grep -oE 'Top-1 Accuracy: [0-9]+\.?[0-9]*%' accuracy_${{ matrix.model }}.txt | grep -oE '[0-9]+\.?[0-9]*' | head -n1 )
511+ TOP5_ACC=$(grep -oE 'Top-5 Accuracy: [0-9]+\.?[0-9]*%' accuracy_${{ matrix.model }}.txt | grep -oE '[0-9]+\.?[0-9]*' | head -n1 )
512512 DATE=$(date '+%Y-%m-%d')
513513
514514 if [ -z "$TOP1_ACC" ] || [ -z "$TOP5_ACC" ]; then
You can’t perform that action at this time.
0 commit comments