Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Commit

Permalink
Possible fix: Mac OS.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Bravo Bravo committed Jul 30, 2020
1 parent e2afef5 commit ce6ce60
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ jobs:
submodules: true

- name: Use Python 3.7
uses: actions/setup-python@v1
if: runner.os != 'macOS'
uses: actions/setup-python@v2
with:
python-version: 3.7
architecture: x64
Expand All @@ -75,7 +74,7 @@ jobs:

- name: Setup
if: matrix.platform == 'macos'
run: brew install p7zip
run: brew install p7zip libomp

- name: Setup (NodeJS)
working-directory: src/scripts
Expand Down
2 changes: 1 addition & 1 deletion src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def closest_number(n, m = 16) -> int:
class Config:
"""Variables Configuration Class."""

version = "v1.2.10"
version = "v1.2.11"
checkpoints_version = "v0.0.1"
checkpoints_cdn = "https://downloads.dreamnet.tech/checkpoints/{}?direct=1"

Expand Down
5 changes: 3 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
"""main logic."""
from multiprocessing import freeze_support
freeze_support()

import os
import sys
import time
from multiprocessing import freeze_support

import argv
from config import Config as Conf
Expand Down Expand Up @@ -80,5 +82,4 @@ def processing_image_folder():


if __name__ == "__main__":
freeze_support()
argv.run()
2 changes: 1 addition & 1 deletion src/requirements-cpu.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Usage:
# pip install -r requirements-cpu.txt -f https://download.pytorch.org/whl/torch_stable.html

torch==1.5.1+cpu
torch==1.2.0+cpu
torchvision==0.2.2
2 changes: 1 addition & 1 deletion src/requirements-gpu.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Usage:
# pip install -r requirements-gpu.txt -f https://download.pytorch.org/whl/torch_stable.html

torch==1.5.1
torch==1.2.0
torchvision==0.2.2

0 comments on commit ce6ce60

Please sign in to comment.