-
Notifications
You must be signed in to change notification settings - Fork 67
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
[SOLUTIONS] Insights for setting up #5
Comments
Hi! I followed your solution but I'm getting the following error: NameError: name 'videos_root' is not defined. Did you encounter this error and how did you resolve it if you did? Error details: File "", line 1, in File "C:\Users\sancy\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile File "C:\Users\sancy\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile File "D:/Clones/py-denseflow-master/denseflow1.py", line 184, in File "C:\Users\sancy\Anaconda3\lib\multiprocessing\pool.py", line 290, in map File "C:\Users\sancy\Anaconda3\lib\multiprocessing\pool.py", line 683, in get NameError: name 'videos_root' is not defined` |
@sanolans it seems that you somehow have deleted (?) videos_root variable. If you check the original code on this repository (denseflow.py) line 163 you will see that variable. I slightly modified it due to my set up, so it simply became: args=parse_args()
data_root=os.path.join(args.data_root)
videos_root=os.path.join(data_root) If you need further help, please provide your main code (denseflow.py -> if name=='main'. |
Thanks for replying, its working now. However it stop after processing a number of videos, so I have to restart it. |
I was setting this up in the end of August, 2019. Here are some findings that you need to do/change to make this work:
scipy.misc.imsave()
has been deprecated (in SciPy 1.0.0), instead, useimport imageio
andimageio.imwrite()
cv2.createOptFlow_DualTVL1()
did not work with opencv 4.X.X (pip install opencv-python). If installed this way, remove it (pip uninstall opencv-python) and install its different version (pip install opencv-contrib-python). Next, changecv2.createOptFlow_DualTVL1()
todtvl1=cv2.optflow.DualTVL1OpticalFlow_create()
os.path.join()
function found right after the main function and args = ... For example, the first line becamedata_root=os.path.join(args.data_root)
parser.add_argument('--data_root',default='../../Downloads/UCF-101',type=str)
Hope this helps. Thank you for the scripts.
The text was updated successfully, but these errors were encountered: