File tree Expand file tree Collapse file tree 2 files changed +23
-22
lines changed
Expand file tree Collapse file tree 2 files changed +23
-22
lines changed Original file line number Diff line number Diff line change @@ -6,23 +6,23 @@ concurrency:
66 group : ${{ github.workflow }}-${{ github.ref }}
77 cancel-in-progress : true
88
9- # jobs:
10- # build-n-publish:
11- # runs-on: ubuntu-latest
12- # if: startsWith(github.event.ref, 'refs/tags')
13- # steps:
14- # - uses: actions/checkout@v2
15- # - name: Set up Python 3.7
16- # uses: actions/setup-python@v2
17- # with:
18- # python-version: 3.7
19- # - name: Install torch
20- # run: pip install torch
21- # - name: Install wheel
22- # run: pip install wheel
23- # - name: Build MMGeneration
24- # run: python setup.py sdist bdist_wheel
25- # - name: Publish distribution to PyPI
26- # run: |
27- # pip install twine
28- # twine upload dist/* -u __token__ -p ${{ secrets.pypi_password }}
9+ jobs :
10+ build-n-publish :
11+ runs-on : ubuntu-latest
12+ if : startsWith(github.event.ref, 'refs/tags')
13+ steps :
14+ - uses : actions/checkout@v2
15+ - name : Set up Python 3.7
16+ uses : actions/setup-python@v2
17+ with :
18+ python-version : 3.7
19+ - name : Install torch
20+ run : pip install torch
21+ - name : Install wheel
22+ run : pip install wheel
23+ - name : Build MMGeneration
24+ run : python setup.py sdist bdist_wheel
25+ - name : Publish distribution to PyPI
26+ run : |
27+ pip install twine
28+ twine upload dist/* -u __token__ -p ${{ secrets.pypi_password }}
Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ RUN apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build
1313 && rm -rf /var/lib/apt/lists/*
1414
1515# Install MMCV
16- RUN pip install mmcv-full==1.3.16 -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.8.0/index.html
16+ RUN pip install openmim
17+ RUN mim install mmcv>=2.0.0rc1
1718
1819# Install MMGeneration
1920RUN conda clean --all
20- RUN git clone https://github.com/open-mmlab/mmgeneration.git /mmgen
21+ RUN git clone -b 1.x https://github.com/open-mmlab/mmgeneration.git /mmgen
2122WORKDIR /mmgen
2223ENV FORCE_CUDA="1"
2324RUN pip install -r requirements.txt
You can’t perform that action at this time.
0 commit comments