Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
ab36898
1
Parent(s):
3e7c01e
update
Browse files
app.py
CHANGED
@@ -177,6 +177,8 @@ def gesturenet_inference(ref_image, prompt, selected_points):
|
|
177 |
log_with = config["report_to"],
|
178 |
project_config = ProjectConfiguration(project_dir=config["output_dir"], logging_dir=Path(config["output_dir"], config["logging_name"])),
|
179 |
)
|
|
|
|
|
180 |
feature_extractor = CLIPImageProcessor.from_pretrained(
|
181 |
config["pretrained_model_name_or_path"], subfolder="feature_extractor", revision=None
|
182 |
) # This instance has now weight, they are just seeting file
|
@@ -193,7 +195,6 @@ def gesturenet_inference(ref_image, prompt, selected_points):
|
|
193 |
# variant = "fp16",
|
194 |
)
|
195 |
|
196 |
-
print("device is ", accelerator.device)
|
197 |
|
198 |
# For text ..............................................
|
199 |
tokenizer = AutoTokenizer.from_pretrained(
|
|
|
177 |
log_with = config["report_to"],
|
178 |
project_config = ProjectConfiguration(project_dir=config["output_dir"], logging_dir=Path(config["output_dir"], config["logging_name"])),
|
179 |
)
|
180 |
+
print("device is ", accelerator.device)
|
181 |
+
|
182 |
feature_extractor = CLIPImageProcessor.from_pretrained(
|
183 |
config["pretrained_model_name_or_path"], subfolder="feature_extractor", revision=None
|
184 |
) # This instance has now weight, they are just seeting file
|
|
|
195 |
# variant = "fp16",
|
196 |
)
|
197 |
|
|
|
198 |
|
199 |
# For text ..............................................
|
200 |
tokenizer = AutoTokenizer.from_pretrained(
|