Skip to content
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

Size of input #4

Open
ryandeng1 opened this issue Jul 19, 2017 · 9 comments
Open

Size of input #4

ryandeng1 opened this issue Jul 19, 2017 · 9 comments

Comments

@ryandeng1
Copy link

ryandeng1 commented Jul 19, 2017

EDIT: Another question: I get this error: Fatal Python error: PyImport_GetModuleDict: no module dictionary when I run the demo inside Oracle VM VirtualBox. How can I fix this?

@JunshengFu
Copy link
Owner

@rdeng2614 I haven't tested it in the VirtualBox. It seems like you have not installed all dependencies correctly. If you could, it might be a good idea to use anaconda to all the dependencies.

@ryandeng1
Copy link
Author

ryandeng1 commented Jul 20, 2017

Is it necessary to install Cuda8 or do I not have to install it if I use the CPU only Tensorflow?
Also, this only occurs in demo 2. Demo 1 seems to work just fine. It seems to have something to do with multithreading?

Thread 0x00000cdc (most recent call first):
File "C:\Program Files\Python35\lib\site-packages\tqdm_tqdm.py", line 97 in run
File "C:\Program Files\Python35\lib\threading.py", line 914 in _bootstrap_inner
File "C:\Program Files\Python35\lib\threading.py", line 882 in _bootstrap

Current thread 0x000026e4 (most recent call first):
File "C:\Program Files\Python35\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 116 in del

@JunshengFu
Copy link
Owner

@rdeng2614 if demo1 works, then the demo 2 is just applying it in a sequence of frames. You don't have to use GPU.

@ryandeng1
Copy link
Author

ryandeng1 commented Jul 20, 2017

Do you have any idea why the del method in VideoFileClip.py causes all these threading errors? I am really stuck right now. I ran the program on Windows as well and the exact same thing occurred. It seems to be a threading error?

@JunshengFu
Copy link
Owner

@rdeng2614 Currently, Ubuntu 16.04 is the only operating system I have here at the moment. If I can't reproduce the error, it is difficult for me to debug your platform issues.

@ryandeng1
Copy link
Author

ryandeng1 commented Jul 20, 2017

EDIT: I think the error is what a previous user said about using their own videos as input.

Could you point to where you hard coded values? Sorry, I am a beginner at this.

Thanks so much!

@JunshengFu
Copy link
Owner

JunshengFu commented Jul 20, 2017

@rdeng2614 The hard coded values are in the lane.py, which is doing the lane departure warning. For this version, I didn't have a simple flag to turn off this feature. If you don't need this feature, you could remove it by modifying my code.

If you want to use lane departure warning and want to apply with your own video, you can find the detail in this repo: https://github.com/JunshengFu/driving-lane-departure-warning

@ryandeng1
Copy link
Author

@JunshengFu Hi, I don't want the lane departure warning. I just want to be able to detect vehicles in a video.

Could you tell me what parts to modify/comment out? I am not very experienced with Python and am not sure which part the lane departure warning is in.

Thanks so much!

@JunshengFu
Copy link
Owner

@rdeng2614 You need to change the way I draw the result. Maybe next month (when I get a bit more free time), I could update a version with a simple flag to turn on/off the departure warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants