import encoder from elsewhere
Browse files
text_diffusion_pipeline.py
CHANGED
|
@@ -5,13 +5,13 @@ import os
|
|
| 5 |
from diffusers import DDPMPipeline, UNet2DConditionModel, DDPMScheduler
|
| 6 |
import json
|
| 7 |
# Running the main at the end of this requires messing with this import
|
| 8 |
-
from text_model import TransformerModel
|
| 9 |
import torch
|
| 10 |
import torch.nn.functional as F
|
| 11 |
from transformers import AutoTokenizer, AutoModel
|
| 12 |
import common_settings as common_settings
|
| 13 |
import sentence_transformers_helper as st_helper
|
| 14 |
-
import text_model as text_model
|
| 15 |
from general_training_helper import get_scene_from_embeddings
|
| 16 |
|
| 17 |
class PipelineOutput(NamedTuple):
|
|
|
|
| 5 |
from diffusers import DDPMPipeline, UNet2DConditionModel, DDPMScheduler
|
| 6 |
import json
|
| 7 |
# Running the main at the end of this requires messing with this import
|
| 8 |
+
from text_encoder.text_model import TransformerModel
|
| 9 |
import torch
|
| 10 |
import torch.nn.functional as F
|
| 11 |
from transformers import AutoTokenizer, AutoModel
|
| 12 |
import common_settings as common_settings
|
| 13 |
import sentence_transformers_helper as st_helper
|
| 14 |
+
import text_encoder.text_model as text_model
|
| 15 |
from general_training_helper import get_scene_from_embeddings
|
| 16 |
|
| 17 |
class PipelineOutput(NamedTuple):
|