|
楼主 |
发表于 2023-8-13 16:51:27
|
显示全部楼层
您好,按照您的教程已经把相关文件放进文件夹里头了,但是目前出现了新的问题,希望得到您的解答,以下是报错内容:
Pre-trained weights will be downloaded.
An error has occurred using proxy: {}
HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /bhky/opennsfw2/releases/download/v0.1.0/open_nsfw_weights.h5 (Caused by ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response')))
Traceback (most recent call last):
File "E:\ROOP\roop1.3.2ui\run.py", line 6, in <module>
core.run()
File "E:\ROOP\roop1.3.2ui\roop\core.py", line 219, in run
start()
File "E:\ROOP\roop1.3.2ui\roop\core.py", line 153, in start
if predict_video(roop.globals.target_path):
File "E:\ROOP\roop1.3.2ui\roop\predictor.py", line 42, in predict_video
_, probabilities = opennsfw2.predict_video_frames(video_path=target_path, frame_interval=100)
File "E:\ROOP\roop1.3.2ui\python3\lib\site-packages\opennsfw2\_inference.py", line 114, in predict_video_frames
model = make_open_nsfw_model(weights_path=weights_path)
File "E:\ROOP\roop1.3.2ui\python3\lib\site-packages\opennsfw2\_model.py", line 200, in make_open_nsfw_model
model.load_weights(weights_path)
File "E:\ROOP\roop1.3.2ui\python3\lib\site-packages\keras\src\utils\traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "E:\ROOP\roop1.3.2ui\python3\lib\site-packages\h5py\_hl\files.py", line 567, in __init__
fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)
File "E:\ROOP\roop1.3.2ui\python3\lib\site-packages\h5py\_hl\files.py", line 231, in make_fid
fid = h5f.open(name, flags, fapl=fapl)
File "h5py\_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py\h5f.pyx", line 106, in h5py.h5f.open
FileNotFoundError: [Errno 2] Unable to open file (unable to open file: name = 'C:\Users\FB\.opennsfw2/weights/open_nsfw_weights.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
请按任意键继续. . . |
|