Skip to content

Commit

Permalink
Merge branch 'master' of github.com:alibaba/EasyCV
Browse files Browse the repository at this point in the history
  • Loading branch information
Cathy0908 committed Jun 14, 2023
2 parents b474236 + 269aa6d commit b185db3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/citest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ concurrency:
jobs:
ut-torch180:
# The type of runner that the job will run on
runs-on: [unittest-t4]
runs-on: [self-hosted]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -64,7 +64,7 @@ jobs:
# pip install -r requirements.txt
#run test
export CUDA_VISIBLE_DEVICES=7
source ~/workspace/anaconda2/etc/profile.d/conda.sh
source ~/anaconda3/etc/profile.d/conda.sh
conda activate easycv_torch1.8.0
# pip install pai-easycv
Expand All @@ -84,7 +84,7 @@ jobs:
# blade test env will be updated! we do not support test with trt_efficient_nms
ut-torch181-blade:
# The type of runner that the job will run on
runs-on: [unittest-t4]
runs-on: [self-hosted]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -110,7 +110,7 @@ jobs:
# pip install -r requirements.txt
#run test
export CUDA_VISIBLE_DEVICES=6
source ~/workspace/anaconda2/etc/profile.d/conda.sh
source ~/anaconda3/etc/profile.d/conda.sh
conda activate torch1.8.1_blade
PYTHONPATH=. python tests/test_predictors/test_detector_blade.py
PYTHONPATH=. python tests/test_apis/test_export_blade.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def _train(self, tmp_dir):
train_dataset=train_dataset,
eval_dataset=eval_dataset,
work_dir=tmp_dir,
use_fp16=True,
cfg_options=cfg_options)

trainer = build_trainer(trainer_name, kwargs)
Expand Down
4 changes: 3 additions & 1 deletion tests/test_tools/test_classification_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ def _base_train(self, train_cfgs, adapt_pai=False):
(tmp_cfg_file, work_dir, args_str)

logging.info('run command: %s' % cmd)
run_in_subprocess(cmd)
# run_in_subprocess(cmd) # 管道缓冲区被写满,后面的写入请求都hang住了
import subprocess
subprocess.call(cmd, shell=True)

output_files = io.listdir(work_dir)
self.assertIn('epoch_1.pth', output_files)
Expand Down

0 comments on commit b185db3

Please sign in to comment.