From 0aef4ff4abc9f8e5e2c91200e9d7279ceeefd99b Mon Sep 17 00:00:00 2001 From: Kiteretsu77 <73270324+Kiteretsu77@users.noreply.github.com> Date: Wed, 1 Nov 2023 16:25:34 -0400 Subject: [PATCH 1/5] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 01a4f98..8c89d49 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ My ultimate goal is to directly utilize decode information in Video Codec as in # Model supported now: 1. **Real-CUGAN**: The original model weight provided by BiliBili (from https://github.com/bilibili/ailab/tree/main) 2. **Real-ESRGAN**: Using Anime version RRDB with 6 Blocks (full model has 23 blocks) (from https://github.com/xinntao/Real-ESRGAN/blob/master/docs/model_zoo.md#for-anime-images--illustrations) -3. **VCISR**: A model I trained with my upcoming paper methods using Anime training datasets (More details will be released soon!) +3. **VCISR**: A model I trained with my upcoming paper methods using Anime training datasets (https://github.com/Kiteretsu77/VCISR-official) # Supported Devices and Python Version: @@ -118,7 +118,7 @@ Skip step 3 and 4 if you don't want tensorrt, but they can increase the speed a ```bash pip install -r requirements.txt ``` - * For pytorch, please go to https://pytorch.org/get-started/locally/ to install seperately for your need + * For Pytorch, please go to https://pytorch.org/get-started/locally/ to install seperately for your need    From 993f9a50458ac05c5c25541475b0f4aa6ace9c05 Mon Sep 17 00:00:00 2001 From: My12123 <49092250+My12123@users.noreply.github.com> Date: Tue, 14 Nov 2023 03:06:45 +0300 Subject: [PATCH 2/5] Create codeql.yml --- .github/workflows/codeql.yml | 82 ++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..b00ae4c --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,82 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: "CodeQL" + +on: + push: + branches: [ "main" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "main" ] + schedule: + - cron: '33 5 * * 6' + +jobs: + analyze: + name: Analyze + # Runner size impacts CodeQL analysis time. To learn more, please see: + # - https://gh.io/recommended-hardware-resources-for-running-codeql + # - https://gh.io/supported-runners-and-hardware-resources + # - https://gh.io/using-larger-runners + # Consider using larger runners for possible analysis time improvements. + runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} + timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'python' ] + # CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ] + # Use only 'java-kotlin' to analyze code written in Java, Kotlin or both + # Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both + # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + + # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # queries: security-extended,security-and-quality + + + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + # ℹī¸ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + + # If the Autobuild fails above, remove it and uncomment the following three lines. + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. + + # - run: | + # echo "Run, Build Application using script" + # ./location_of_script_within_repo/buildscript.sh + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{matrix.language}}" From cee743d6cb588fda58512914ff7a1a4170226b48 Mon Sep 17 00:00:00 2001 From: My12123 <49092250+My12123@users.noreply.github.com> Date: Tue, 14 Nov 2023 03:07:35 +0300 Subject: [PATCH 3/5] Create bandit.yml --- .github/workflows/bandit.yml | 52 ++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/bandit.yml diff --git a/.github/workflows/bandit.yml b/.github/workflows/bandit.yml new file mode 100644 index 0000000..0db6e56 --- /dev/null +++ b/.github/workflows/bandit.yml @@ -0,0 +1,52 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# Bandit is a security linter designed to find common security issues in Python code. +# This action will run Bandit on your codebase. +# The results of the scan will be found under the Security tab of your repository. + +# https://github.com/marketplace/actions/bandit-scan is ISC licensed, by abirismyname +# https://pypi.org/project/bandit/ is Apache v2.0 licensed, by PyCQA + +name: Bandit +on: + push: + branches: [ "main" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "main" ] + schedule: + - cron: '23 23 * * 0' + +jobs: + bandit: + permissions: + contents: read # for actions/checkout to fetch code + security-events: write # for github/codeql-action/upload-sarif to upload SARIF results + actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Bandit Scan + uses: shundor/python-bandit-scan@9cc5aa4a006482b8a7f91134412df6772dbda22c + with: # optional arguments + # exit with 0, even with results found + exit_zero: true # optional, default is DEFAULT + # Github token of the repository (automatically created by Github) + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information. + # File or directory to run bandit on + # path: # optional, default is . + # Report only issues of a given severity level or higher. Can be LOW, MEDIUM or HIGH. Default is UNDEFINED (everything) + # level: # optional, default is UNDEFINED + # Report only issues of a given confidence level or higher. Can be LOW, MEDIUM or HIGH. Default is UNDEFINED (everything) + # confidence: # optional, default is UNDEFINED + # comma-separated list of paths (glob patterns supported) to exclude from scan (note that these are in addition to the excluded paths provided in the config file) (default: .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg) + # excluded_paths: # optional, default is DEFAULT + # comma-separated list of test IDs to skip + # skips: # optional, default is DEFAULT + # path to a .bandit file that supplies command line arguments + # ini_path: # optional, default is DEFAULT + From 2892914166c77a6aaefe01e7a8493cec1aa98fb0 Mon Sep 17 00:00:00 2001 From: My12123 <49092250+My12123@users.noreply.github.com> Date: Fri, 17 Nov 2023 21:58:08 +0300 Subject: [PATCH 4/5] Update Installer for Windows. Open for reading in the editor.bat --- .../Installer for Windows. Open for reading in the editor.bat | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Windows_Installation_script/Installer for Windows. Open for reading in the editor.bat b/Windows_Installation_script/Installer for Windows. Open for reading in the editor.bat index 0781112..6d7a9c9 100644 --- a/Windows_Installation_script/Installer for Windows. Open for reading in the editor.bat +++ b/Windows_Installation_script/Installer for Windows. Open for reading in the editor.bat @@ -13,6 +13,4 @@ pip install onnx_graphsurgeon-0.3.12-py2.py3-none-any.whl pip install tensorrt_dispatch-8.6.0-cp310-none-win_amd64.whl pip install tensorrt_lean-8.6.0-cp310-none-win_amd64.whl pip install tensorrt-8.6.0-cp310-none-win_amd64.whl -git clone https://github.com/NVIDIA-AI-IOT/torch2trt -cd torch2trt -call python setup.py install +call pip install git+https://github.com/NVIDIA-AI-IOT/torch2trt.git From c4c69379e879ded2bae87911036c05a0b07fbe24 Mon Sep 17 00:00:00 2001 From: My12123 <49092250+My12123@users.noreply.github.com> Date: Sat, 18 Nov 2023 13:59:13 +0300 Subject: [PATCH 5/5] Update Installer for Windows. Open for reading in the editor.bat --- .../Installer for Windows. Open for reading in the editor.bat | 2 -- 1 file changed, 2 deletions(-) diff --git a/Windows_Installation_script/Installer for Windows. Open for reading in the editor.bat b/Windows_Installation_script/Installer for Windows. Open for reading in the editor.bat index 6d7a9c9..5231c36 100644 --- a/Windows_Installation_script/Installer for Windows. Open for reading in the editor.bat +++ b/Windows_Installation_script/Installer for Windows. Open for reading in the editor.bat @@ -10,7 +10,5 @@ call .\venv\Scripts\activate pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 pip install -r requirements.txt pip install onnx_graphsurgeon-0.3.12-py2.py3-none-any.whl -pip install tensorrt_dispatch-8.6.0-cp310-none-win_amd64.whl -pip install tensorrt_lean-8.6.0-cp310-none-win_amd64.whl pip install tensorrt-8.6.0-cp310-none-win_amd64.whl call pip install git+https://github.com/NVIDIA-AI-IOT/torch2trt.git