AliaksandrSiarohin / first-order-model

This repository contains the source code for the paper First Order Motion Model for Image Animation
https://aliaksandrsiarohin.github.io/first-order-model-website/
MIT License
14.56k stars 3.22k forks source link

JSONDecodeError #530

Open MoBro23 opened 1 year ago

MoBro23 commented 1 year ago

Coulnt find a solution grafik

Here is the text version

JSONDecodeError Traceback (most recent call last)

in generate(button) 410 filename = model.value + ('' if model.value == 'fashion' else '-cpk') + '.pth.tar' 411 if not os.path.isfile(filename): --> 412 download = requests.get(requests.get('https://drive.google.com/drive/folders/1PyQJmkdCsAkOYwUyaj_l-l0as-iLDgeH' + filename).json().get('href')) 413 with open(filename, 'wb') as checkpoint: 414 checkpoint.write(download.content)

3 frames

/usr/local/lib/python3.8/dist-packages/requests/models.py in json(self, kwargs) 896 # used. 897 pass --> 898 return complexjson.loads(self.text, kwargs) 899 900 @property

/usr/lib/python3.8/json/init.py in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw) 355 parse_int is None and parse_float is None and 356 parse_constant is None and object_pairs_hook is None and not kw): --> 357 return _default_decoder.decode(s) 358 if cls is None: 359 cls = JSONDecoder

/usr/lib/python3.8/json/decoder.py in decode(self, s, _w) 335 336 """ --> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) 338 end = _w(s, end).end() 339 if end != len(s):

/usr/lib/python3.8/json/decoder.py in raw_decode(self, s, idx) 353 obj, end = self.scan_once(s, idx) 354 except StopIteration as err: --> 355 raise JSONDecodeError("Expecting value", s, err.value) from None 356 return obj, end

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

graphemecluster commented 1 year ago

@AliaksandrSiarohin Fixed by #531.