orpatashnik / StyleCLIP

Official Implementation for "StyleCLIP: Text-Driven Manipulation of StyleGAN Imagery" (ICCV 2021 Oral)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in model on Replicate

ravirathore opened this issue · comments

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,