Stable diffusion discussion

I want to change
text_encoder = CLIPTextModel.from_pretrained(args.pretrained_model_name_or_path, subfolder=“text_encoder”, revision=args.revision) in 464 line to torch.nn.Embedding(77, 768)

I don’t want to use CLIP embedding because this dataset is very special.

When i change this code, it ran this error.

what can i do?Thx

hey @barry556652 can you post a reproducible code snippet?