Skip to content

Commit

Permalink
Fixed scripts using installed versions of spandrel (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment authored Jul 8, 2024
1 parent 64d3c2b commit ebf11ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/dump_state_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,17 @@

import argparse
import collections
import sys
import textwrap
from dataclasses import dataclass
from typing import Any, Dict, Generic, Iterable, Mapping, TypeVar

from torch import Tensor

try:
sys.path.insert(0, __file__ + "/../../libs/spandrel")
sys.path.insert(0, __file__ + "/../../libs/spandrel_extra_arches")

from spandrel import MAIN_REGISTRY, ModelLoader # noqa: E402
from spandrel_extra_arches import EXTRA_REGISTRY # noqa: E402
except ImportError:
Expand Down

0 comments on commit ebf11ba

Please sign in to comment.