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

Error in model on Replicate #108

Open
ravirathore opened this issue Jan 18, 2023 · 0 comments
Open

Error in model on Replicate #108

ravirathore opened this issue Jan 18, 2023 · 0 comments

Comments

@ravirathore
Copy link

Hi,

Received following error, while running the model on replicate on this url.

https://replicate.com/orpatashnik/styleclip?prediction=fymrb2nnibfsdilmvqp6sz276a

Image used was this:-
istockphoto-1157655660-612x612

Neutral image description:- car

Target image description:- blue car

Error was:-
Running predict()...
Traceback (most recent call last):
File "/root/.pyenv/versions/3.7.14/lib/python3.7/site-packages/cog/server/worker.py", line 209, in _predict
result = self._predictor.predict(**payload)
File "cog_predict.py", line 112, in predict
input_image = self.run_alignment(str(input))
File "cog_predict.py", line 170, in run_alignment
aligned_image = align_face(filepath=image_path, predictor=self.shape_predictor)
File "/content/encoder4editing/utils/alignment.py", line 35, in align_face
lm = get_landmark(filepath, predictor)
File "/content/encoder4editing/utils/alignment.py", line 21, in get_landmark
t = list(shape.parts())
UnboundLocalError: local variable 'shape' referenced before assignment

Request your help please.

regards,

@ravirathore ravirathore changed the title Error in replicate Error in model on Replicate Jan 18, 2023
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

1 participant