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

Invalid URL 'None': No schema supplied. Perhaps you meant http://None? #520

Closed
AbdullahRamadan07 opened this issue Oct 8, 2022 · 8 comments · Fixed by #531
Closed

Invalid URL 'None': No schema supplied. Perhaps you meant http://None? #520

AbdullahRamadan07 opened this issue Oct 8, 2022 · 8 comments · Fixed by #531

Comments

@AbdullahRamadan07
Copy link

I have a problem after i run the code and upload the image and the video there was an error and it was "MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://none/?"
what should I do?

@convurt
Copy link

convurt commented Oct 8, 2022

Same error here
/usr/local/lib/python3.7/dist-packages/requests/models.py in prepare_url(self, url, params)
386 error = error.format(to_native_string(url, 'utf8'))
387
--> 388 raise MissingSchema(error)
389
390 if not host:

MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://none/?

@SaraConcasUnica
Copy link

I have the same problem

@hannibalbarx
Copy link

hannibalbarx commented Nov 22, 2022

same error in colab. same code was working before. i guess the model file moved?

MissingSchema 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://cloud-api.yandex.net/v1/disk/public/resources/download?public_key=https://yadi.sk/d/lEw8uRm140L_eQ&path=/' + filename).json().get('href'))
413 with open(filename, 'wb') as checkpoint:
414 checkpoint.write(download.content)

5 frames

/usr/local/lib/python3.7/dist-packages/requests/models.py in prepare_url(self, url, params)
386 error = error.format(to_native_string(url, 'utf8'))
387
--> 388 raise MissingSchema(error)
389
390 if not host:

MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://none/?`

@hannibalbarx
Copy link

looks like too many downloads of the model so yandex has blocked further downloads.

@nonlin
Copy link

nonlin commented Dec 2, 2022

can anyone create a new upload with download link for us to use? I just hopped into this and can't get the model to use this.

@hannibalbarx
Copy link

can anyone create a new upload with download link for us to use? I just hopped into this and can't get the model to use this.

the model is already available on google drive

https://drive.google.com/drive/folders/1PyQJmkdCsAkOYwUyaj_l-l0as-iLDgeH

@graphemecluster
Copy link
Contributor

The issue has now been fixed.

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

Successfully merging a pull request may close this issue.

7 participants