SillyTavern / SillyTavern-Extras

Extensions API for SillyTavern.
GNU Affero General Public License v3.0
549 stars 124 forks source link

Error: [Errno 2] No such file or directory: '/home/rexommendation/Programs/SillyTavern-Extras/talkinghead\\tha3\\images\\inital.png' #154

Closed wereretot closed 1 year ago

wereretot commented 1 year ago

File does exist at directory but why the double backslash?

Cohee1207 commented 1 year ago

I suppose the file path is not normalized for Linux. Let me see..

Cohee1207 commented 1 year ago

Pull and check again, please.

wereretot commented 1 year ago

@Cohee1207 Nope, still same issue, the pipeline is loading fine but it stops putting out that error when I remove the double backslashes and replace then with forward slashes in talkinghead/tha3/app/app.py, lines 115 and 143.

I've noticed when trying to test the result feed using the example.png, I get an infinite load with no talkinghead output. I tried removing and adding the example to a character to test. No picture is shown.

Log: Using torch device: cpu Initializing talkinghead pipeline in cuda mode.... Initializing a text summarization model... Using the separable_float model. Initializing ChromaDB Loading the eyebrow decomposer ... ChromaDB is running in-memory with persistence. Persistence is stored in .chroma_db. Can be cleared by deleting the folder or purging db. DONE!!! Loading the eyebrow morphing conbiner ... DONE!!! Loading the face morpher ... DONE!!! Loading the face-body rotator ... DONE!!! Successfully pinged ChromaDB! Your client is successfully connected.

Initializing text classification pipeline with model joeddav/distilbert-base-uncased-go-emotions-student Loading the combiner ... DONE!!! Initializing RVC voice conversion (from ST request file) Increasing server upload limit 2023-09-10 18:19:26 | INFO | fairseq.tasks.text_to_speech | Please install tensorboardX: pip install tensorboardX 2023-09-10 18:19:26 | INFO | faiss.loader | Loading faiss with AVX2 support. 2023-09-10 18:19:26 | INFO | faiss.loader | Successfully loaded faiss with AVX2 support. Forcing full precision for 16/10 series cards. exception in config_file_change_fp32: [Errno 2] No such file or directory: 'configs/32k.json' Checking RVC models folder: data/models/rvc/ > Searching for pth files > Searching for index files RVC model folder checked. Initializing Coqui TTS client in GPU mode No API key given because you are running locally. * Serving Flask app 'server' * Debug mode: off 2023-09-10 18:19:27 | INFO | werkzeug | WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Running on http://localhost:5100 2023-09-10 18:19:27 | INFO | werkzeug | Press CTRL+C to quit 2023-09-10 18:19:40 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:19:40] "OPTIONS /api/modules HTTP/1.1" 200 - 2023-09-10 18:19:40 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:19:40] "GET /api/modules HTTP/1.1" 200 - 2023-09-10 18:19:44 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:19:44] "OPTIONS /api/voice-conversion/rvc/get-models-list HTTP/1.1" 200 - Received request for list of RVC models Searching model in data/models/rvc/ > Found model folder senkoRvc_v1 > index: senkoRvc_v1.index > pth: senkoRvc_v1.pth > Valid folder added to list > Found model folder GuraTalkV2 > index: added_IVF2887_Flat_nprobe_1_GuraTalkV2_v2.index > pth: GuraTalkV2.pth > Valid folder added to list > Found model folder Sayori > pth: SayoriDDLCForever2333333.pth > index: added_IVF37_Flat_nprobe_1.index > Valid folder added to list > Found model folder rainbowdash > pth: rainbowdash.pth > index: added_IVF55_Flat_nprobe_1.index > Valid folder added to list > Found model folder NagatoroModel > pth: NagatoroModel.pth > Valid folder added to list > Found model folder FutabaSakuraEN > index: added_IVF2226_Flat_nprobe_1_v2.index > pth: FutabaSakuraEN.pth > Valid folder added to list > Found model folder NatsukiDDLCForever2333333 > pth: NatsukiDDLCForever2333333.pth > index: added_IVF55_Flat_nprobe_1.index > Valid folder added to list > Found model folder Senkosan > pth: Senkosan.pth > Valid folder added to list > Found model folder CeresFauna > index: added_IVF173_Flat_nprobe_1_CeresFauna_v2.index > pth: CeresFauna.pth > Valid folder added to list > Found model folder Senko > pth: Senko.pth > Valid folder added to list > Found model folder Aqua > pth: Aqua.pth > Valid folder added to list 2023-09-10 18:19:44 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:19:44] "POST /api/voice-conversion/rvc/get-models-list HTTP/1.1" 200 - 2023-09-10 18:19:45 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:19:45] "OPTIONS /api/text-to-speech/coqui/local/get-models HTTP/1.1" 200 - Received request for list of RVC models Searching model in data/models/coqui/ > WARNING: best_model.pth is not a folder, it should not be there, ignored > WARNING: config.json is not a folder, it should not be there, ignored > WARNING: speakers.pth is not a folder, it should not be there, ignored 2023-09-10 18:19:45 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:19:45] "POST /api/text-to-speech/coqui/local/get-models HTTP/1.1" 200 - 2023-09-10 18:19:58 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:19:58] "OPTIONS /api/classify/labels HTTP/1.1" 200 - 2023-09-10 18:19:58 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:19:58] "GET /api/classify/labels HTTP/1.1" 200 - 2023-09-10 18:19:58 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:19:58] "GET /api/classify/labels HTTP/1.1" 200 - 2023-09-10 18:19:58 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:19:58] "OPTIONS /api/talkinghead/unload HTTP/1.1" 200 - 2023-09-10 18:19:58 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:19:58] "GET /api/talkinghead/unload HTTP/1.1" 200 - 2023-09-10 18:19:58 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:19:58] "OPTIONS /api/classify HTTP/1.1" 200 - Classification input: [REDACTED] Classification output: [{'label': 'caring', 'score': 0.1449955403804779}, {'label': 'curiosity', 'score': 0.08516297489404678}, {'label': 'excitement', 'score': 0.07000572979450226}, {'label': 'desire', 'score': 0.06748872250318527}, {'label': 'approval', 'score': 0.06635099649429321}, {'label': 'realization', 'score': 0.06454092264175415}, {'label': 'remorse', 'score': 0.05060869827866554}, {'label': 'surprise', 'score': 0.046862564980983734}, {'label': 'admiration', 'score': 0.03537774085998535}, {'label': 'confusion', 'score': 0.030802087858319283}, {'label': 'amusement', 'score': 0.030695069581270218}, {'label': 'pride', 'score': 0.03040001541376114}, {'label': 'nervousness', 'score': 0.028140973299741745}, {'label': 'relief', 'score': 0.024491898715496063}, {'label': 'joy', 'score': 0.02421066164970398}, {'label': 'gratitude', 'score': 0.024008074775338173}, {'label': 'neutral', 'score': 0.021826377138495445}, {'label': 'disapproval', 'score': 0.020728619769215584}, {'label': 'love', 'score': 0.020097579807043076}, {'label': 'optimism', 'score': 0.01863831840455532}, {'label': 'embarrassment', 'score': 0.016787685453891754}, {'label': 'grief', 'score': 0.01605306752026081}, {'label': 'annoyance', 'score': 0.013963942416012287}, {'label': 'fear', 'score': 0.013752695173025131}, {'label': 'sadness', 'score': 0.011589284054934978}, {'label': 'anger', 'score': 0.009149276651442051}, {'label': 'disgust', 'score': 0.008879664354026318}, {'label': 'disappointment', 'score': 0.004390794318169355}] 2023-09-10 18:19:58 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:19:58] "POST /api/classify HTTP/1.1" 200 - 2023-09-10 18:19:58 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:19:58] "GET /api/talkinghead/unload HTTP/1.1" 200 - 2023-09-10 18:20:39 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:20:39] "OPTIONS /api/talkinghead/unload HTTP/1.1" 200 - 2023-09-10 18:20:39 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:20:39] "GET /api/talkinghead/unload HTTP/1.1" 200 - 2023-09-10 18:20:39 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:20:39] "OPTIONS /api/classify HTTP/1.1" 200 - Classification input: [REDACTED] Classification output: [{'label': 'amusement', 'score': 0.2909124493598938}, {'label': 'surprise', 'score': 0.06222209334373474}, {'label': 'annoyance', 'score': 0.04920327663421631}, {'label': 'confusion', 'score': 0.045497190207242966}, {'label': 'relief', 'score': 0.03968679532408714}, {'label': 'excitement', 'score': 0.03917575255036354}, {'label': 'nervousness', 'score': 0.03891554847359657}, {'label': 'curiosity', 'score': 0.03619430586695671}, {'label': 'disapproval', 'score': 0.03528070077300072}, {'label': 'desire', 'score': 0.03376404941082001}, {'label': 'remorse', 'score': 0.03107721172273159}, {'label': 'caring', 'score': 0.029279395937919617}, {'label': 'realization', 'score': 0.028162097558379173}, {'label': 'joy', 'score': 0.027533257380127907}, {'label': 'approval', 'score': 0.02704191766679287}, {'label': 'neutral', 'score': 0.026871642097830772}, {'label': 'optimism', 'score': 0.022367285564541817}, {'label': 'pride', 'score': 0.021510722115635872}, {'label': 'embarrassment', 'score': 0.02123960107564926}, {'label': 'anger', 'score': 0.018766749650239944}, {'label': 'disappointment', 'score': 0.016944164410233498}, {'label': 'admiration', 'score': 0.013619563542306423}, {'label': 'fear', 'score': 0.010408086702227592}, {'label': 'disgust', 'score': 0.010243152268230915}, {'label': 'grief', 'score': 0.009097154252231121}, {'label': 'sadness', 'score': 0.006111735478043556}, {'label': 'love', 'score': 0.00471956841647625}, {'label': 'gratitude', 'score': 0.004154463764280081}] 2023-09-10 18:20:39 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:20:39] "POST /api/classify HTTP/1.1" 200 - 2023-09-10 18:20:39 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:20:39] "GET /api/talkinghead/unload HTTP/1.1" 200 - 2023-09-10 18:26:11 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:26:11] "GET /api/api/talkinghead/result_feed HTTP/1.1" 404 - 2023-09-10 18:26:37 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:26:37] "OPTIONS /api/talkinghead/unload HTTP/1.1" 200 - 2023-09-10 18:26:37 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:26:37] "GET /api/talkinghead/unload HTTP/1.1" 200 - 2023-09-10 18:26:38 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:26:38] "OPTIONS /api/talkinghead/load HTTP/1.1" 200 - 2023-09-10 18:26:38 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:26:38] "POST /api/talkinghead/load HTTP/1.1" 200 - 2023-09-10 18:26:42 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:26:42] "GET /api/api/talkinghead/result_feed HTTP/1.1" 404 - 2023-09-10 18:26:43 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:26:43] "GET /api/api/talkinghead/result_feed HTTP/1.1" 404 - 2023-09-10 18:26:43 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:26:43] "GET /api/api/talkinghead/result_feed HTTP/1.1" 404 - 2023-09-10 18:26:44 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:26:44] "GET /api/api/talkinghead/result_feed HTTP/1.1" 404 - 2023-09-10 18:27:07 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:27:07] "GET /api/talkinghead/result_feed%20HTTP/1.1 HTTP/1.1" 404 - 2023-09-10 18:27:12 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:27:12] "GET /api/talkinghead/result_feed HTTP/1.1" 200 - 2023-09-10 18:27:16 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:27:16] "GET /api/api/talkinghead/result_feed HTTP/1.1" 404 - 2023-09-10 18:27:17 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:27:17] "GET /api/api/talkinghead/result_feed HTTP/1.1" 404 - 2023-09-10 18:27:22 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:27:22] "GET /api/api/talkinghead/result_feed HTTP/1.1" 404 - 2023-09-10 18:27:27 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:27:27] "GET /api/api/talkinghead/result_feed HTTP/1.1" 404 - 2023-09-10 18:27:30 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:27:30] "OPTIONS /api/talkinghead/unload HTTP/1.1" 200 - 2023-09-10 18:27:30 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:27:30] "GET /api/talkinghead/unload HTTP/1.1" 200 - 2023-09-10 18:27:34 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:27:34] "OPTIONS /api/talkinghead/load HTTP/1.1" 200 - 2023-09-10 18:27:34 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:27:34] "POST /api/talkinghead/load HTTP/1.1" 200 - 2023-09-10 18:27:34 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:27:34] "GET /api/talkinghead/unload HTTP/1.1" 200 - 2023-09-10 18:27:35 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:27:35] "POST /api/talkinghead/load HTTP/1.1" 200 - 2023-09-10 18:27:37 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:27:37] "OPTIONS /api/talkinghead/unload HTTP/1.1" 200 - 2023-09-10 18:27:38 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:27:38] "GET /api/talkinghead/unload HTTP/1.1" 200 - 2023-09-10 18:27:40 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:27:40] "OPTIONS /api/talkinghead/load HTTP/1.1" 200 - 2023-09-10 18:27:40 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:27:40] "POST /api/talkinghead/load HTTP/1.1" 200 - 2023-09-10 18:27:42 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:27:42] "GET /api/api/talkinghead/result_feed
wereretot commented 1 year ago

I managed to stop "2023-09-10 18:27:27 | INFO | werkzeug | 127.0.0.1 - - [10/Sep/2023 18:27:27] "GET /api/api/talkinghead/result_feed HTTP/1.1" 404 -" from occuring by removing the api part at the end of http://localhost:5100/ but still no image show but the GPU is being used.

wereretot commented 1 year ago

Reloaded the image in the extra menu and now I have a moving character.