mirror of
https://github.com/SikongJueluo/Mini-Nav.git
synced 2026-03-12 12:25:32 +08:00
feat(utils): add feature extraction utilities and tests
This commit is contained in:
@@ -38,7 +38,7 @@ if __name__ == "__main__":
|
||||
model_cfg = config.model
|
||||
processor = cast(
|
||||
BitImageProcessorFast,
|
||||
AutoImageProcessor.from_pretrained(model_cfg.name, device_map=device),
|
||||
AutoImageProcessor.from_pretrained(model_cfg.dino_model, device_map=device),
|
||||
)
|
||||
|
||||
# Load compressor weights if specified in model config
|
||||
@@ -84,4 +84,6 @@ if __name__ == "__main__":
|
||||
)
|
||||
|
||||
generated_files = synthesizer.generate()
|
||||
print(f"Generated {len(generated_files)} synthesized images in {dataset_cfg.output_dir}")
|
||||
print(
|
||||
f"Generated {len(generated_files)} synthesized images in {dataset_cfg.output_dir}"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user