Browse Source

add no-response workflow, vscode format setting, update requirements

Xintao 3 years ago
parent
commit
571b89257a
5 changed files with 55 additions and 3 deletions
  1. 34 0
      .github/workflows/no-response.yml
  2. 0 1
      .gitignore
  3. 19 0
      .vscode/settings.json
  4. 1 1
      Training.md
  5. 1 1
      requirements.txt

+ 34 - 0
.github/workflows/no-response.yml

@@ -0,0 +1,34 @@
+name: No Response
+
+# Modified from: https://raw.githubusercontent.com/github/docs/main/.github/workflows/no-response.yaml
+
+# **What it does**: Closes issues that don't have enough information to be
+#                   actionable.
+# **Why we have it**: To remove the need for maintainers to remember to check
+#                     back on issues periodically to see if contributors have
+#                     responded.
+# **Who does it impact**: Everyone that works on docs or docs-internal.
+
+on:
+  issue_comment:
+    types: [created]
+
+  schedule:
+    # Schedule for five minutes after the hour every hour
+    - cron: '5 * * * *'
+
+jobs:
+  noResponse:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: lee-dohm/no-response@v0.5.0
+        with:
+          token: ${{ github.token }}
+          closeComment: >
+            This issue has been automatically closed because there has been no response
+            to our request for more information from the original author. With only the
+            information that is currently in the issue, we don't have enough information
+            to take action. Please reach out if you have or find the answers we need so
+            that we can investigate further.
+            If you still have questions, please improve your description and re-open it.
+            Thanks :-)

+ 0 - 1
.gitignore

@@ -8,7 +8,6 @@ tmp/*
 realesrgan/weights/*
 
 version.py
-.vscode
 
 # Byte-compiled / optimized / DLL files
 __pycache__/

+ 19 - 0
.vscode/settings.json

@@ -0,0 +1,19 @@
+{
+    "files.trimTrailingWhitespace": true,
+    "editor.wordWrap": "on",
+    "editor.rulers": [
+        80,
+        120
+    ],
+    "editor.renderWhitespace": "all",
+    "editor.renderControlCharacters": true,
+    "python.formatting.provider": "yapf",
+    "python.formatting.yapfArgs": [
+        "--style",
+        "{BASED_ON_STYLE = pep8, BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF = true, SPLIT_BEFORE_EXPRESSION_AFTER_OPENING_PAREN = true, COLUMN_LIMIT = 120}"
+    ],
+    "python.linting.flake8Enabled": true,
+    "python.linting.flake8Args": [
+        "max-line-length=120"
+    ],
+}

+ 1 - 1
Training.md

@@ -1,7 +1,7 @@
 # :computer: How to Train Real-ESRGAN
 
 The training codes have been released. <br>
-Note that the codes have a lot of refactoring. So there may be some bugs/performance drops. Welcome to report issues and I will also retrain the models.
+Note that the codes have a lot of refactoring. So there may be some bugs/performance drops. Welcome to report bugs/issues.
 
 ## Overview
 

+ 1 - 1
requirements.txt

@@ -1,4 +1,4 @@
-basicsr
+basicsr>=1.3.3.10
 numpy
 opencv-python
 torch>=1.7