I am having an issue with AWS Sagamaker YOLOv7 inference code. inside the inference.py's model_fn line
detector = torch.hub.load(local_repo, 'custom', *args, source='local', trust_repo=True, force_reload=True,verbose=True).to(device)
returns exception
Command 'pip install 'scipy<1.9.2,>=1.8; python_version <= "3.9"'' returned non-zero exit status 1
I tried to install requirements.txt manually inside my PC it and it worked without any error.
Sagemaker
framework version is 1.12.1
python version is py38