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:
6
6
group : ${{ github.workflow }}-${{ github.ref }}
7
7
cancel-in-progress : true
8
8
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
13
13
&& rm -rf /var/lib/apt/lists/*
14
14
15
15
# 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
17
18
18
19
# Install MMGeneration
19
20
RUN 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
21
22
WORKDIR /mmgen
22
23
ENV FORCE_CUDA="1"
23
24
RUN pip install -r requirements.txt
You can’t perform that action at this time.
0 commit comments