Comments (9)
Download speed is slow from civitai.
Hello @faisalhr1997👋 The update is now live! It upgrades the method used to download from civitai. Now you can use aria2 and enjoy the maximum downlad speed! (it also now support gdrive links!✨)
Release note (every new feature): https://github.com/etherealxx/batchlinks-webui#release-v301
from batchlinks-webui.
https://colab.research.google.com/drive/1wEa-tS10h4LlDykd87TF5zzpXIIQoCmq#scrollTo=8Uvqba0yKW7U This colabs download mechanism got the code you could reuse
mine is better coz it supports MEGA👀 (though for gdrive, i'll add it on the next update, it's complicated to implement that without bugs)
anyway, he's using direct download method, nothing special with it. It's literally the download method i use to download huggingface etc.
His code also can't differentiate .safetensors
embedding/LoRA, his system is flawed
from batchlinks-webui.
taking forever to download from civitai
from batchlinks-webui.
taking forever to download from civitai
if you use the direct link method for civitai, (civitai.com/api/download/models
), it will use request
module (to retrieve the filename) instead of the normal download method (gdown
/wget
/etc). That's why it uses temporary name first (20491.bdgh). You can use the cancel button and re download the thing.
However, i think i'll update the extension so that when you input the name manually, it will use the normal download method. Thank you for the report✨
from batchlinks-webui.
Naming is not the issue here . Download speed is slow from civitai.
from batchlinks-webui.
Naming is not the issue here . Download speed is slow from civitai.
no no, you don't get it. hear me out
links with civitai.com/api/download/models
doesn't have a filename in it.
request module is needed to get the filename correctly from content-disposition
downloading the entire file is a must to get that
it's a waste of time when downloading an entire file just to get the filename, then redownloading it again
so i just used the downloaded file from request
from batchlinks-webui.
HOWEVER, after some experimenting, i found out that this
import subprocess
link = 'https://civitai.com/api/download/models/20491'
contentdis = [line for line in subprocess.getoutput(f"curl -sI {link} | grep -i content-disposition").splitlines() if line.startswith('location')][0]
cuttedcontent = contentdis.find('response-content-disposition=attachment%3B%20filename%3D%22') + 59
filename = str(contentdis[cuttedcontent:]).replace('%22&x-id=GetObject', '')
print(filename)
able to get the filename of that civit link WITHOUT downloading it. So i need to check if this piece of code works all the time. If yes, then i'll use this, and abandon the requests
method, so that i am able to use other downloader (gdown/wget/etc.) to download the file faster.
from batchlinks-webui.
I made this branch to (hopefully) fix that problem
!rm -rf /content/stable-diffusion-webui/extensions/batchlinks-webui
!git clone -b civitupgrade https://github.com/etherealxx/batchlinks-webui /content/stable-diffusion-webui/extensions/batchlinks-webui
this should use the default downloader instead of requests
for downloading civit stuff.
i need to make sure this works first before merging with main.
from batchlinks-webui.
https://colab.research.google.com/drive/1wEa-tS10h4LlDykd87TF5zzpXIIQoCmq#scrollTo=8Uvqba0yKW7U
This colabs download mechanism got the code you could reuse
from batchlinks-webui.
Related Issues (20)
- Downloads using civitai always download in the default directories HOT 3
- Got a codec error in download process HOT 4
- IndentationError: expected an indented block on line 1497 HOT 9
- additional network not working HOT 3
- ⚠️If you get KeyError: 'content-disposition' click here.
- Control the volume of the sound effect? HOT 5
- Creating a tag without downloading anything into the folder causes error HOT 1
- some model in civitai cannot download HOT 4
- [HELP NEEDED]: FileNotFoundError raised when more than one download process is cancelled
- [MEGA link]: Failed to create socket for registering for state changes. (Using Google Colab)
- Rename failed - webui running with --share HOT 2
- Vae fails to be downloaded on civitai model page link
- error in path with @new
- How to change default Directory for saving files ?
- Cannot install MEGA files. HOT 1
- Please, add a possibilite to download controlnet models HOT 1
- completely stopped working for me after AUTO1111 webui 1.6 HOT 1
- When downloading a model it instead downloads a batchlink solid or a yaml
- Traceback (most recent call last):
- Huggingface links : it's downloading nothing at all
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from batchlinks-webui.