Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix wrong apex help message #277

Merged
merged 1 commit into from
Jan 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix wrong apex help message
apex cannot be installed by pip
  • Loading branch information
truebit authored Jan 4, 2024
commit 6c7594dd97d428ffa8b28d42c28d4c22e70548b4
4 changes: 2 additions & 2 deletions utils/models/eva_clip_L_hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ def forward(self, x: torch.Tensor):
from apex.normalization import FusedLayerNorm
except:
FusedLayerNorm = LayerNorm
print("Please 'pip install apex'")
print("Please build and install Nvidia apex package with option '--cuda_ext' according to https://github.com/NVIDIA/apex#from-source .")


@dataclass
Expand Down Expand Up @@ -787,4 +787,4 @@ def __init__(self, config):

def forward(self, images):
enc = self.vit(images)
return enc + self.pos_embed.unsqueeze(0)
return enc + self.pos_embed.unsqueeze(0)