SyntaxError: invalid syntax
File "/shared_disk/users/liuzhichao/codes/torch-serve-handlers/depth_anything_video/test.py", line 39
print(f"Processing with GPU {gpuid}: video={video_path}") ^
SyntaxError: invalid syntax
报错原因:没有激活python 3版本的环境,系统默认是python2,所有不识别f("")
解决方法:激活python3环境即可。