kohya-ss / kohya-ss/sd-scripts
Error while downloading pytorch_model.bin
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 1.2k
- Avg merge
- 11m
- Merged PRs (30d)
- 2
Description
_Hello,
The installation was fine, however when I begin to train lora, I get an error.
Setup is fine everything matching and looking like this:_
[Dataset 0]
loading image sizes.
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 265/265 [00:00<00:00, 9129.44it/s]
make buckets
min_bucket_reso and max_bucket_reso are ignored if bucket_no_upscale is set, because bucket reso is defined by image size automatically / bucket_no_upscaleが指定された場合は、bucketの解像度は画像サイズから自動計算されるため、min_bucket_resoとmax_bucket_resoは無視されます
number of images (including repeats) / 各bucketの画像枚数(繰り返し回数を含む)
bucket 0: resolution (512, 512), count: 26500
mean ar error (without repeats): 0.0
prepare accelerator
Using accelerator 0.15.0 or above.
load StableDiffusion checkpoint
loading u-net:
loading vae:
_But then a big 1.71GB file begins downloading and always crashing_
Downloading pytorch_model.bin: 7%|███▍ | 126M/1.71G [01:02<10:37, 2.49MB/s]Traceback (most recent call last):
File "C:\path\Kohya\kohya_ss\venv\lib\site-packages\urllib3\response.py", line 444, in _error_catcher
yield
File "C:\ path1\Kohya\kohya_ss\venv\lib\site-packages\urllib3\response.py", line 567, in read
data = self._fp_read(amt) if not fp_closed else b""
File "C:\ path1\Kohya\kohya_ss\venv\lib\site-packages\urllib3\response.py", line 533, in _fp_read
return self._fp.read(amt) if amt is not None else self._fp.read()
File "C:\ path2\Python\Python310\lib\http\client.py", line 465, in read
s = self.fp.read(amt)
File "C:\ path2\Python\Python310\lib\socket.py", line 705, in readinto
return self._sock.recv_into(b)
File "C:\ path2\Python\Python310\lib\ssl.py", line 1274, in recv_into
return self.read(nbytes, buffer)
File "C:\ path2\Python310\lib\ssl.py", line 1130, in read
return self._sslobj.read(len, buffer)
TimeoutError: The read operation timed out
_I tried to play with some settings, ensured I have pip and torch up to date and set up kohya_ss once more but cannot resolve the issue._
Contributor guide
No contributing guide indexed for this repository
Research direction
No repository file, test, or code entry point is identified in the report. Start by reproducing the Windows training run and tracing the checkpoint download; the issue is ready only once the timeout's cause and a verifiable repository-level resolution are identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100