Skip to content

morph.py give just errors #3

Description

@Colliwomple

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 !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions