Skip to content

Commit

Permalink
fixing formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Feb 20, 2023
1 parent 695693f commit 9266f75
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion src/torchmetrics/functional/multimodal/clip_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
from typing import List, Tuple, Union

import torch
Expand Down
1 change: 0 additions & 1 deletion src/torchmetrics/functional/text/bert.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import csv
import os
import urllib
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
from warnings import warn
Expand Down
2 changes: 0 additions & 2 deletions src/torchmetrics/functional/text/rouge.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import re
import urllib.request
from collections import Counter
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
from urllib.request import HTTPError

import torch
from torch import Tensor, tensor
Expand Down
3 changes: 1 addition & 2 deletions src/torchmetrics/image/inception.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@


class InceptionScore(Metric):
r"""Calculate the Inception Score (IS) which is used to access how realistic generated images are. It is
defined as.
r"""Calculate the Inception Score (IS) which is used to access how realistic generated images are.
.. math::
IS = exp(\mathbb{E}_x KL(p(y | x ) || p(y)))
Expand Down
1 change: 0 additions & 1 deletion src/torchmetrics/image/lpip.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
from typing import Any, List

import torch
Expand Down
1 change: 0 additions & 1 deletion src/torchmetrics/multimodal/clip_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
from typing import Any, List, Union

import torch
Expand Down
1 change: 0 additions & 1 deletion src/torchmetrics/text/bert.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
from typing import Any, Callable, Dict, List, Optional, Union
from warnings import warn

Expand Down

0 comments on commit 9266f75

Please sign in to comment.