Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
Signed-off-by: slyne deng <[email protected]>
  • Loading branch information
slyne deng committed Jul 24, 2024
1 parent 39ceae3 commit a9e21e0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions nemo/collections/multimodal/parts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,18 +485,6 @@ def video_processor(maybe_video_path):
else:
frames = maybe_video_path

# if neva_cfg.mm_cfg.vision_encoder.get("from_hf", False):
# if (
# "siglip" in neva_cfg.mm_cfg.vision_encoder.from_pretrained
# or "siglip" in neva_cfg.mm_cfg.vision_encoder.get("model_type", "")
# ):
# processor = SiglipImageProcessor.from_pretrained(neva_cfg.mm_cfg.vision_encoder.from_pretrained)
# else:
# # for clip and vit model
# processor = CLIPImageProcessor.from_pretrained(neva_cfg.mm_cfg.vision_encoder.from_pretrained)
# else:
# processor = CLIPImageProcessor.from_pretrained("openai/clip-vit-large-patch14")

processor = (
model.model.module.image_processor if hasattr(model.model, "module") else model.model.image_processor
)
Expand Down

0 comments on commit a9e21e0

Please sign in to comment.