TheLastBen / PPS

48 stars 20 forks source link

Got this error trying to run the notebook. #14

Open Nojarosann opened 1 year ago

Nojarosann commented 1 year ago

Downloading the custom model |███████▉ | 40%

ConnectionResetError Traceback (most recent call last) Cell In [3], line 22 16 Temporary_Storage = True 18 # Download the model to a temporary storage, bigger capacity but will be removed at session shutdown. 19 20 21 #-------------------- ---> 22 model=mdls(Original_Model_Version, Path_to_MODEL, MODEL_LINK, Temporary_Storage)

File /notebooks/mainpaperspaceA1111.py:185, in mdls(Original_Model_Version, Path_to_MODEL, MODEL_LINK, Temporary_Storage) 183 model=f'/notebooks/sd/stable-diffusion-webui/models/Stable-diffusion/{modelname}' 184 if not os.path.exists(model): --> 185 dwn(MODEL_LINK, model, 'Downloading the custom model') 186 clear_output() 187 else:

File /notebooks/mainpaperspaceA1111.py:106, in dwn(url, dst, msg) 104 with open(dst, "wb") as f: 105 while True: --> 106 buffer = u.read(8192) 107 if len(buffer) == 0: 108 break

File /usr/lib/python3.9/http/client.py:463, in HTTPResponse.read(self, amt) 460 if amt is not None: 461 # Amount is given, implement using readinto 462 b = bytearray(amt) --> 463 n = self.readinto(b) 464 return memoryview(b)[:n].tobytes() 465 else: 466 # Amount is not given (unbounded read) so we must check self.length 467 # and self.chunked

File /usr/lib/python3.9/http/client.py:507, in HTTPResponse.readinto(self, b) 502 b = memoryview(b)[0:self.length] 504 # we do not use _safe_read() here because this may be a .will_close 505 # connection, and the user is reading more bytes than will be provided 506 # (for example, reading in 1k chunks) --> 507 n = self.fp.readinto(b) 508 if not n and b: 509 # Ideally, we would raise IncompleteRead if the content-length 510 # wasn't satisfied, but it might break compatibility. 511 self._close_conn()

File /usr/lib/python3.9/socket.py:704, in SocketIO.readinto(self, b) 702 while True: 703 try: --> 704 return self._sock.recv_into(b) 705 except timeout: 706 self._timeout_occurred = True

File /usr/lib/python3.9/ssl.py:1242, in SSLSocket.recv_into(self, buffer, nbytes, flags) 1238 if flags != 0: 1239 raise ValueError( 1240 "non-zero flags not allowed in calls to recv_into() on %s" % 1241 self.class) -> 1242 return self.read(nbytes, buffer) 1243 else: 1244 return super().recv_into(buffer, nbytes, flags)

File /usr/lib/python3.9/ssl.py:1100, in SSLSocket.read(self, len, buffer) 1098 try: 1099 if buffer is not None: -> 1100 return self._sslobj.read(len, buffer) 1101 else: 1102 return self._sslobj.read(len)

ConnectionResetError: [Errno 104] Connection reset by peer

it appeared on the "downloadn model" cell.

TheLastBen commented 1 year ago

check that your model link is working