Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit 045e01e

Browse files
committed
fmt
1 parent a4e9f9e commit 045e01e

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ repos:
1414
- id: end-of-file-fixer
1515
- id: trailing-whitespace
1616
- id: check-case-conflict
17+
- id: check-json
1718
- id: check-yaml
1819
- id: check-toml
19-
- id: pretty-format-json
2020
- id: check-added-large-files
2121
args: ['--maxkb=250', '--enforce-all']
2222
- id: check-docstring-first
@@ -26,7 +26,7 @@ repos:
2626
rev: v2.31.1
2727
hooks:
2828
- id: pyupgrade
29-
args: [--py36-plus]
29+
args: [--py37-plus]
3030
name: Upgrade code
3131

3232
- repo: https://github.com/myint/docformatter

templates/img-classify/classify.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
import os
33

44
import flash
5+
import matplotlib.pyplot as plt
56
import pandas as pd
6-
import torch
7+
import seaborn as sn
78
from flash.image import ImageClassificationData, ImageClassifier
89
from pytorch_lightning.loggers import CSVLogger
910

@@ -36,10 +37,6 @@
3637
trainer.finetune(model, datamodule=datamodule, strategy="freeze")
3738

3839
# %%
39-
40-
import matplotlib.pyplot as plt
41-
import seaborn as sn
42-
4340
metrics = pd.read_csv(f"{trainer.logger.log_dir}/metrics.csv")
4441
del metrics["step"]
4542
metrics.set_index("epoch", inplace=True)

0 commit comments

Comments
 (0)