Open damnms opened 3 years ago
with podman i got a bit further
but at the end it also crashes
STEP 10: COMMIT fakecam
--> 6e7c5dc8bc0
6e7c5dc8bc0bcfc6d301fb3c93262044bab0b450074c1650932651be04b125b2
b1aa1314a503e08a137de91c187442cea24341ca1a32c60108fc189e5926e697
Traceback (most recent call last):
File "fake.py", line 7, in <module>
from videocaptureasync import VideoCaptureAsync
ModuleNotFoundError: No module named 'videocaptureasync'
07ea430c7baaea83ca1f3db425eafd86660a73154dd8ec9b4405f288af1866f6
somehow the podman build does not create the image with the name, so instead i copied the id's of the images into the run_docker.sh
i added:
COPY videocaptureasync.py /src/
to the Dockerfile and now i get:
oli @ ~/fakecam - [master] $ podman run fakecam
2020-10-05 21:52:34.886890: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory
2020-10-05 21:52:34.886983: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
File "fake.py", line 137, in <module>
interpreter = tf.lite.Interpreter(model_path=args.model)
File "/usr/local/lib/python3.8/site-packages/tensorflow/lite/python/interpreter.py", line 197, in __init__
_interpreter_wrapper.CreateWrapperFromFile(
ValueError: Could not open 'deeplabv3_257_mv_gpu.tflite'.
Hi @damnms, thanks for the report, and sorry about the late reply!
run_docker.sh
is admittedly a bit neglected, usually I only use run.sh
. It worked on the initial code, but it's likely that some of my latest modifications have broken it, sorry about that! I'll see if I can fix it one of these days.
Regarding the error you get with run.sh
, looks like fakecam/fake.py
is throwing a "ModuleNotFoundError: No module named 'cv2'". That's weird because fakecam/requirements.txt
installs opencv-python==4.2.0.32
, which should provide cv2
. Maybe the VirtualEnv in fakecam/.venv/
is corrupted? Can you try removing it, so it gets created again when running run.sh
?
i cloned your repo and modified some things, its working more or less on fedora 33 beta with podman, because docker is dead (at least for fedora/redhat). https://gitlab.com/olze/fakecam
just searching for a way to replace the background for my webcam on fedora 33 beta, i tried your solution. but got some errors.
the ./run.sh unfortunately also did not run