-
Notifications
You must be signed in to change notification settings - Fork 52
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
morph.py give just errors #3
Comments
Hi! You have to install CV module with this command: in my case that solve the errors. |
Hi ftalamo |
Hi |
Say, inside the directory DiffMorph there is the file morph.py. Alternative PS. I am on linux |
Hi
Executing just morph.py -s images/xxx.jpg -t images/xxx.jpg [-e 1000 -a 0.8 -m 0.8 -w 0.3] gives me just "command not found. "Executing : ./morph.py -s images/trump.jpg -t images/pence.jpg [-e 1000 -a 0.8 -m 0.8 -w 0.3] gives me this:
./morph.py: line 1: import: command not found
./morph.py: line 2: import: command not found
./morph.py: line 3: import: command not found
./morph.py: line 4: import: command not found
./morph.py: line 5: import: command not found
./morph.py: line 8: TRAIN_EPOCHS: command not found
./morph.py: line 10: im_sz: command not found
./morph.py: line 11: mp_sz: command not found
./morph.py: line 13: warp_scale: command not found
./morph.py: line 14: mult_scale: command not found
./morph.py: line 15: add_scale: command not found
./morph.py: line 16: add_first: command not found
./morph.py: line 19: @tf.function: command not found
./morph.py: line 20: syntax error near unexpected token
(' ./morph.py: line 20:
def warp(origins, targets, preds_org, preds_trg):'So it doesent work for me in Ubuntu 20.04 with tensorflow 2.4.0
One step further i tried :
DiffMorph$ python3 morph.py -s images/xxx.jpg -t images/xxx.jpg [-e 1000 -a 0.8 -m 0.8 -w 0.3]
2021-01-09 16:47:46.888345: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2021-01-09 16:47:46.888361: 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 "morph.py", line 4, in
import cv2
ModuleNotFoundError: No module named 'cv2'
Have no idea whats wrong here !
The text was updated successfully, but these errors were encountered: