Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from other_impls import SD3Tokenizer, SDClipModel, SDXLClipG, T5XXLModel
|
| 2 |
from safetensors import safe_open
|
| 3 |
from huggingface_hub import hf_hub_download
|
| 4 |
-
|
| 5 |
|
| 6 |
def load_into(ckpt, model, prefix, device, dtype=None, remap=None):
|
| 7 |
"""Just a debugging-friendly hack to apply the weights in a safetensors file to the pytorch module."""
|
|
|
|
| 1 |
from other_impls import SD3Tokenizer, SDClipModel, SDXLClipG, T5XXLModel
|
| 2 |
from safetensors import safe_open
|
| 3 |
from huggingface_hub import hf_hub_download
|
| 4 |
+
import torch
|
| 5 |
|
| 6 |
def load_into(ckpt, model, prefix, device, dtype=None, remap=None):
|
| 7 |
"""Just a debugging-friendly hack to apply the weights in a safetensors file to the pytorch module."""
|