mirror of
https://github.com/deepseek-ai/DreamCraft3D
synced 2024-12-04 18:15:11 +00:00
remove local_files_only
This commit is contained in:
parent
624aa2b8ce
commit
0ae1a4dc2b
@ -58,7 +58,6 @@ class DeepFloydPromptProcessor(PromptProcessor):
|
|||||||
tokenizer = T5Tokenizer.from_pretrained(
|
tokenizer = T5Tokenizer.from_pretrained(
|
||||||
pretrained_model_name_or_path,
|
pretrained_model_name_or_path,
|
||||||
subfolder="tokenizer",
|
subfolder="tokenizer",
|
||||||
local_files_only=True
|
|
||||||
)
|
)
|
||||||
text_encoder = T5EncoderModel.from_pretrained(
|
text_encoder = T5EncoderModel.from_pretrained(
|
||||||
pretrained_model_name_or_path,
|
pretrained_model_name_or_path,
|
||||||
@ -67,7 +66,6 @@ class DeepFloydPromptProcessor(PromptProcessor):
|
|||||||
load_in_8bit=True,
|
load_in_8bit=True,
|
||||||
variant="8bit",
|
variant="8bit",
|
||||||
device_map="auto",
|
device_map="auto",
|
||||||
local_files_only=True
|
|
||||||
)
|
)
|
||||||
with torch.no_grad():
|
with torch.no_grad():
|
||||||
text_inputs = tokenizer(
|
text_inputs = tokenizer(
|
||||||
|
@ -75,13 +75,11 @@ class StableDiffusionPromptProcessor(PromptProcessor):
|
|||||||
tokenizer = AutoTokenizer.from_pretrained(
|
tokenizer = AutoTokenizer.from_pretrained(
|
||||||
pretrained_model_name_or_path,
|
pretrained_model_name_or_path,
|
||||||
subfolder="tokenizer",
|
subfolder="tokenizer",
|
||||||
local_files_only=True,
|
|
||||||
)
|
)
|
||||||
text_encoder = CLIPTextModel.from_pretrained(
|
text_encoder = CLIPTextModel.from_pretrained(
|
||||||
pretrained_model_name_or_path,
|
pretrained_model_name_or_path,
|
||||||
subfolder="text_encoder",
|
subfolder="text_encoder",
|
||||||
device_map="auto",
|
device_map="auto",
|
||||||
local_files_only=True,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
with torch.no_grad():
|
with torch.no_grad():
|
||||||
|
Loading…
Reference in New Issue
Block a user