Datasets:

Modalities:
Tabular
Text
Formats:
json
Size:
< 1K
ArXiv:
DOI:
Libraries:
Datasets
Dask
galtimur's picture
Upload 78 files
8f0a8fd verified
{"language": "Python", "id": 29, "repo_owner": "lightly-ai", "repo_name": "lightly", "head_branch": "ersi-lig-3910-update-mae-benchmark-code", "workflow_name": "Code Format Check", "workflow_filename": "test_code_format.yml", "workflow_path": ".github/workflows/test_code_format.yml", "contributor": "lightly-ai", "sha_fail": "af9b76a790e0c06f0da674c3fdcd2e4404af1c99", "sha_success": "a0639a7caa3d617fe076547ccd2c3fdfd507aabc", "workflow": "name: Code Format Check\n\non:\n push:\n pull_request:\n workflow_dispatch:\n\njobs:\n test:\n name: Check\n runs-on: ubuntu-latest\n steps:\n - name: Checkout Code\n uses: actions/checkout@v3\n - name: Hack to get setup-python to work on nektos/act\n run: |\n if [ ! -f \"/etc/lsb-release\" ] ; then\n echo \"DISTRIB_RELEASE=18.04\" > /etc/lsb-release\n fi\n - name: Set up Python\n uses: actions/setup-python@v4\n with:\n python-version: \"3.7\"\n - uses: actions/cache@v2\n with:\n path: ${{ env.pythonLocation }}\n key: cache_v2_${{ env.pythonLocation }}-${{ hashFiles('requirements/**') }}\n - name: Install Dependencies and lightly\n run: pip install -e '.[all]'\n - name: Run Format Check\n run: |\n make format-check\n - name: Run Type Check\n run: |\n make type-check\n", "logs": [{"step_name": "Check/7_Run Format Check.txt", "log": "##[group]Run make format-check\n\u001b[36;1mmake format-check\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.7.17/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.7.17/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.7.17/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.7.17/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.7.17/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.7.17/x64/lib\n##[endgroup]\n\u26ab Checking code format...\nisort --check-only --diff .\nERROR: /home/runner/work/lightly/lightly/docs/source/getting_started/benchmarks/imagenette_benchmark.py Imports are incorrectly sorted and/or formatted.\n--- /home/runner/work/lightly/lightly/docs/source/getting_started/benchmarks/imagenette_benchmark.py:before\t2024-01-08 18:14:31.536514\n+++ /home/runner/work/lightly/lightly/docs/source/getting_started/benchmarks/imagenette_benchmark.py:after\t2024-01-08 18:16:08.310119\n@@ -61,8 +61,8 @@\n \"\"\"\n import copy\n import os\n+import sys\n import time\n-import sys\n \n import numpy as np\n import pytorch_lightning as pl\n@@ -94,7 +94,12 @@\n VICRegLoss,\n )\n from lightly.models import modules, utils\n-from lightly.models.modules import heads, masked_autoencoder, masked_autoencoder_timm, memory_bank\n+from lightly.models.modules import (\n+ heads,\n+ masked_autoencoder,\n+ masked_autoencoder_timm,\n+ memory_bank,\n+)\n from lightly.transforms import (\n BYOLTransform,\n BYOLView1Transform,\nSkipped 2 files\nmake: *** [Makefile:45: format-check] Error 1\n##[error]Process completed with exit code 2.\n"}], "diff": "diff --git a/docs/source/getting_started/benchmarks/imagenette_benchmark.py b/docs/source/getting_started/benchmarks/imagenette_benchmark.py\nindex 6dfecb1f..4858e8cf 100644\n--- a/docs/source/getting_started/benchmarks/imagenette_benchmark.py\n+++ b/docs/source/getting_started/benchmarks/imagenette_benchmark.py\n@@ -61,8 +61,8 @@ Results (4.5.2023):\n \"\"\"\n import copy\n import os\n-import time\n import sys\n+import time\n \n import numpy as np\n import pytorch_lightning as pl\n@@ -75,7 +75,9 @@ from pytorch_lightning.loggers import TensorBoardLogger\n try:\n from timm.models import vision_transformer\n except ImportError:\n- print(\"TIMM is not available. Please install in order to run this benchmark for MAE.\")\n+ print(\n+ \"TIMM is not available. Please install in order to run this benchmark for MAE.\"\n+ )\n sys.exit(1)\n \n from lightly.data import LightlyDataset\n@@ -94,7 +96,12 @@ from lightly.loss import (\n VICRegLoss,\n )\n from lightly.models import modules, utils\n-from lightly.models.modules import heads, masked_autoencoder, masked_autoencoder_timm, memory_bank\n+from lightly.models.modules import (\n+ heads,\n+ masked_autoencoder,\n+ masked_autoencoder_timm,\n+ memory_bank,\n+)\n from lightly.transforms import (\n BYOLTransform,\n BYOLView1Transform,\n", "difficulty": 1, "changed_files": ["docs/source/getting_started/benchmarks/imagenette_benchmark.py"], "commit_link": "https://github.com/lightly-ai/lightly/tree/af9b76a790e0c06f0da674c3fdcd2e4404af1c99"}