[Sw-l] Amit is asking for help with Facial Expressions
Jonathan Duncan
joyoduncan at GMAIL.COM
Mon Jun 7 02:27:25 UTC 2021
Hi Amit,
I tried running the scripts. In the second cell I got this error.
And couldn't get any further.
ConnectionResetErrorTraceback (most recent call last)
/usr/lib/python3.7/urllib/request.py <https://localhost:8080/#>in do_open(self, http_class, req,
**http_conn_args)1349h.request(req.get_method(), req.selector, req.data,
headers, -> 1350encode_chunked=req.has_header('Transfer-encoding'))
1351exceptOSErroraserr:# timeout error
/usr/lib/python3.7/http/client.py <https://localhost:8080/#>in request(self, method, url, body, headers, encode_chunked)1276"""Send
a complete request to the server."""->
1277self._send_request(method,url,body,headers,encode_chunked)1278
/usr/lib/python3.7/http/client.py <https://localhost:8080/#>in _send_request(self, method, url, body, headers,
encode_chunked)1322body=_encode(body,'body')->
1323self.endheaders(body,encode_chunked=encode_chunked)1324
/usr/lib/python3.7/http/client.py <https://localhost:8080/#>in endheaders(self, message_body,
encode_chunked)1271raiseCannotSendHeader()->
1272self._send_output(message_body,encode_chunked=encode_chunked)1273
/usr/lib/python3.7/http/client.py <https://localhost:8080/#>in _send_output(self, message_body,
encode_chunked)1031delself._buffer[:]-> 1032self.send(msg)1033
/usr/lib/python3.7/http/client.py <https://localhost:8080/#>in send(self, data)971ifself.auto_open:--> 972self.connect()973else:
/usr/lib/python3.7/http/client.py <https://localhost:8080/#>in connect(self)1446self.sock = self._context.wrap_socket(self.sock, ->
1447server_hostname=server_hostname) 1448
/usr/lib/python3.7/ssl.py <https://localhost:8080/#>in wrap_socket(self, sock, server_side, do_handshake_on_connect,
suppress_ragged_eofs, server_hostname, session)422context=self,-->
423session=session424)
/usr/lib/python3.7/ssl.py <https://localhost:8080/#>in _create(cls, sock, server_side, do_handshake_on_connect,
suppress_ragged_eofs, server_hostname, context,
session)869raiseValueError("do_handshake_on_connect should not be
specified for non-blocking sockets")-->
870self.do_handshake()871except(OSError,ValueError):
/usr/lib/python3.7/ssl.py <https://localhost:8080/#>in do_handshake(self, block)1138self.settimeout(None)->
1139self._sslobj.do_handshake()1140finally:
ConnectionResetError: [Errno 104] Connection reset by peer
During handling of the above exception, another exception occurred:
URLErrorTraceback (most recent call last)
<ipython-input-5-080d1d0b8ab2> <https://localhost:8080/#>in
<module>()22fromglobal_directions.manipulateimportManipulator23device="cuda"iftorch.cuda.is_available()else"cpu"--->
24model,preprocess=clip.load("ViT-B/32",device=device)2526M=Manipulator(dataset_name='ffhq')
/usr/local/lib/python3.7/dist-packages/clip/clip.py <https://localhost:8080/#>in load(name, device, jit)94""" 95ifnamein_MODELS:--->
96model_path=_download(_MODELS[name])97elifos.path.isfile(name):98model_path=name
/usr/local/lib/python3.7/dist-packages/clip/clip.py <https://localhost:8080/#>in _download(url, root)40warnings.warn(f"{download_target} exists, but
the SHA256 checksum does not match; re-downloading the file")41--->
42withurllib.request.urlopen(url)assource,open(download_target,"wb")asoutput:43withtqdm(total=int(source.info().get("Content-Length")),ncols=80,unit='iB',unit_scale=True)asloop:44whileTrue:
/usr/lib/python3.7/urllib/request.py <https://localhost:8080/#>in urlopen(url, data, timeout, cafile, capath, cadefault,
context)220else:221opener=_opener-->
222returnopener.open(url,data,timeout)223224definstall_opener(opener):
/usr/lib/python3.7/urllib/request.py <https://localhost:8080/#>in open(self, fullurl, data, timeout)523req=meth(req)524-->
525response=self._open(req,data)526527# post-process response
/usr/lib/python3.7/urllib/request.py <https://localhost:8080/#>in _open(self, req, data)541protocol=req.type542result =
self._call_chain(self.handle_open, protocol, protocol + --> 543'_open',
req) 544ifresult:545returnresult
/usr/lib/python3.7/urllib/request.py <https://localhost:8080/#>in _call_chain(self, chain, kind, meth_name,
*args)501forhandlerinhandlers:502func=getattr(handler,meth_name)-->
503result=func(*args)504ifresultisnotNone:505returnresult
/usr/lib/python3.7/urllib/request.py <https://localhost:8080/#>in https_open(self, req)1391defhttps_open(self,req):1392return
self.do_open(http.client.HTTPSConnection, req, ->
1393context=self._context, check_hostname=self._check_hostname)
13941395https_request=AbstractHTTPHandler.do_request_
/usr/lib/python3.7/urllib/request.py <https://localhost:8080/#>in do_open(self, http_class, req,
**http_conn_args)1350encode_chunked=req.has_header('Transfer-encoding'))
1351exceptOSErroraserr:# timeout error->
1352raiseURLError(err)1353r=h.getresponse()1354except:
URLError: <urlopen error [Errno 104] Connection reset by peer>On 6/6/2021 5:50 PM, Valerie Sutton wrote:
> SignWriting List
> June 6, 2021
>
> Dear SW List members -
>
> Amit Moryosseff is asking for your help on the Sutton SignWriting
> Discussion group on Facebook, regarding writing Facial Expressions -
>
> I could use your help, since I cannot answer his questions…
>
> Here is a screen capture of what Amit wrote on Facebook. It is
> attached, and here is the link he is referring to:
>
> Amit wrote:
>
> I need your help!
> To create more synthetic facial data, if you can put in some time and
> follow the instructions, it could be really useful 🙂
> Google colab link:
> https://colab.research.google.com/drive/19UAHeeKRz2A1zKzLO2y6jjawsBW79-3U?usp=sharing&fbclid=IwAR0o57U5397JUqL8OAX9A2bg9mc8WaQFH_bTSs_TLdPPmpE52zXh5Xkhuas
> <https://colab.research.google.com/drive/19UAHeeKRz2A1zKzLO2y6jjawsBW79-3U?usp=sharing&fbclid=IwAR0o57U5397JUqL8OAX9A2bg9mc8WaQFH_bTSs_TLdPPmpE52zXh5Xkhuas>
>
>
>
> ________________________________________________
>
> SIGNWRITING LIST INFORMATION
>
> Valerie Sutton SignWriting List moderator sutton at signwriting.org
> <mailto:sutton at signwriting.org>
>
> Post Messages to the SignWriting List:
> sw-l at listserv.valenciacollege.edu
> <mailto:sw-l at listserv.valenciacollege.edu>
>
> SignWriting List Archives & Home Page
> http://www.signwriting.org/forums/swlist
> <http://www.signwriting.org/forums/swlist>
>
> Join, Leave or Change How You Receive SW List Messages
> http://listserv.valenciacollege.edu/cgi-bin/wa?SUBED1=SW-L&A=1
> <http://listserv.valenciacollege.edu/cgi-bin/wa?SUBED1=SW-L&A=1>
>
________________________________________________
SIGNWRITING LIST INFORMATION
Valerie Sutton
SignWriting List moderator
sutton at signwriting.org
Post Messages to the SignWriting List:
sw-l at listserv.valenciacollege.edu
SignWriting List Archives & Home Page
http://www.signwriting.org/forums/swlist
Join, Leave or Change How You Receive SW List Messages
http://listserv.valenciacollege.edu/cgi-bin/wa?SUBED1=SW-L&A=1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/sw-l/attachments/20210606/bee5d9fa/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1f642.png
Type: image/png
Size: 480 bytes
Desc: not available
URL: <http://listserv.linguistlist.org/pipermail/sw-l/attachments/20210606/bee5d9fa/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Facial Expressions.png
Type: image/png
Size: 161550 bytes
Desc: not available
URL: <http://listserv.linguistlist.org/pipermail/sw-l/attachments/20210606/bee5d9fa/attachment-0001.png>
More information about the Sw-l
mailing list