Open v479038280 opened 3 months ago
I fixed this by creating a content folder and placing the video inside the folder. The dot before {HOME} is necessary for Colab to look at the root directory and search for the folder named content. I included a small code sample below that fixes this issue:
import os
HOME = os.getcwd()
# HOME = './content'
SUBWAY_VIDEO_PATH = f".{HOME}/subway.mp4"
If you use the line that is commented out, then the dot before {HOME} is not necessary; it's only necessary with os.getcwd(). The folder would also be unnecessary and you can avoid creating one if you use the line that is commented out. You can use either HOME variable for your project.
Search before asking
Notebook name
how-to-detect-and-count-objects-in-polygon-zone.ipynb
Bug
Environment
Minimal Reproducible Example
Additional
the file subway.mp4 is a Invalidation file .
Are you willing to submit a PR?