Skip to content

Commit

Permalink
fix wrong apex help message
Browse files Browse the repository at this point in the history
apex cannot be installed by pip
  • Loading branch information
truebit authored Jan 4, 2024
1 parent 390b7c6 commit 6c7594d
Showing 1 changed file with 2 additions and 2 deletions.
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)

0 comments on commit 6c7594d

Please sign in to comment.