Closed AndreyRGW closed 1 year ago
It's annoying. I'll have to do a bit more testing of my own. I didn't seem to have a problem with it.
I'd have to figure out whether the error is due to a face not being detected in a photo, or a problem opening the file.
It never works, whatever the file?
The strange thing about the log is that the file looks like it can be built. Do you have a file created in faces?
It never works, whatever the file?
I tried different images, jpeg, jpg, png, 16:9, 4:3, 3:2, 1:1, 512x512 and so on. Nothing worked.
Do you have a file created in faces?
No, there are no files in faces.
Ok my current version is in a bit of a mess now (v1.1.3). I'll try to finish this and see if I can improve the errors to see if it comes from there.
Sometimes the problem comes from the ui-config.json file at the root of sd, which is not properly updated. In this case, you need to rename it so that it can be rebuilt and see if it works better. But I'm not sure that's the case here.
Sometimes the problem comes from the ui-config.json file at the root of sd, which is not properly updated. In this case, you need to rename it so that it can be rebuilt and see if it works better. But I'm not sure that's the case here.
I renamed ui-config.json, it was re-created, but that didn't solve the problem, the error is still the same.
I get the same error in SD.Next (https://github.com/vladmandic/automatic.git) , but it works in the original stable-diffusion-webui
I tried building the model in the original webui and then using the model in SD.Next but I get another error, ERROR The model None cannot be found or loaded ERROR Failed to swap face in postprocess method : No faceswap model found. Please add it to the faceswaplab directory.
It's not recognizing when I select the model from the dropdown.
From what I understand, the original stable-diffusion-webui is not actively developed anymore and SD.Next has become the main fork.
I get the same error in SD.Next (https://github.com/vladmandic/automatic.git) , but it works in the original stable-diffusion-webui
It's not that simple because I use SD.Next too and I don't have any problems loading the model. Just tested v1.2.0 agaisnt last version of SD.NEXT and it seems to work.
From what I understand, the original stable-diffusion-webui is not actively developed anymore and SD.Next has become the main fork.
In fact a1111 is still well maintained, SD.Next is just a different version with more features. And still some very minor things in the extensions api are behind a1111. I consider a1111 to be the main target system because vlad integrates the changes afterwards.
When I say SD, I mean a1111 or SDNext.
Can you check that the model is in <sdwui>/models/faceswaplab
?
If not, you can download it here : https://huggingface.co/henryruhs/roop/resolve/main/inswapper_128.onnx
You can also look at the shasum to check that the file is the right one:
sha1sum inswapper_128.onnx
17a64851eaefd55ea597ee41e5c18409754244c5 inswapper_128.onnx
sha256sum inswapper_128.onnx
e4a3f08c753cb72d04e10aa0f7dbe3deebbf39567d4ead6dce08e98aa49e16af inswapper_128.onnx
sha512sum inswapper_128.onnx
4311f4ccd9da58ec544e912b32ac0cba95f5ab4b1a06ac367efd3e157396efbae1097f624f10e77dd811fbba0917fa7c96e73de44563aa6099e5f46830965069 inswapper_128.onnx
Can you check that the model is in
<sdwui>/models/faceswaplab
? being a1111 or sdnext.If not, you can download it here : https://huggingface.co/henryruhs/roop/resolve/main/inswapper_128.onnx
My model is in a slightly different path - <sdwui>/extensions/sd-webui-faceswaplab/models/faceswaplab
Solved: The model was not there when the extension first installed, and although I copied it to the correct place, Settings - FaceSwapLab still had 'None' selected for FaceSwapModel. Selecting the actual model fixed it.
Thanks!
There's a bug in the install script, especially for sdnext, which means that the model is not positioned in the right place. I'll try to fix it for the next version. In the meantime, it's best to place the model where I've indicated.
There's a bug in the install script, especially for sdnext, which means that the model is not positioned in the right place. I'll try to fix it for the next version. In the meantime, it's best to place the model where I've indicated.
Wow, I placed the model where you indicated and everything worked!
Describe the bug 03:38:12-387230 ERROR Failed to build checkpoint list index out of range
To Reproduce Steps to reproduce the behavior:
Expected behavior Successfully created checkpoint
Screenshots
Desktop (please complete the following information):
Additional context
Full error:
``` {'age': 33, 'embedding': array([-1.98095843e-01, 8.57419819e-02, 5.11084259e-01, -1.04482412e-01, 1.46759242e-01, -1.12602484e+00, 5.65003455e-02, 5.25855660e-01, 2.71218538e-01, -2.76865400e-02, -1.06601477e-01, 1.30306125e+00, 1.48285165e-01, 1.45907149e-01, 1.31163329e-01, -4.27121609e-01, 8.96135792e-02, 4.33682203e-01, -2.46634886e-01, 3.71705383e-01, 3.76718313e-01, -3.20548773e-01, 1.14868492e-01, 2.39762813e-01, -5.97749114e-01, -3.51954550e-01, 3.78686666e-01, -7.02905953e-02, -5.80739081e-01, 8.31370115e-01, 1.31022108e+00, -6.08228445e-01, -1.30046701e+00, -1.79233745e-01, -1.03804970e+00, 6.56417161e-02, 6.78947449e-01, -3.33971828e-01, 2.38950074e-01, -9.20263231e-02, -7.83191845e-02, 1.91710484e+00, 2.93380022e-01, -5.95407009e-01, 3.61057729e-01, -1.20585477e+00, -7.94019341e-01, 1.89984307e-01, 7.50316262e-01, -1.62362352e-01, -7.29720891e-01, 2.14329168e-01, 2.63072029e-02, -1.32853702e-01, 4.49805856e-01, 8.18586424e-02, -8.09526622e-01, -4.24041510e-01, -3.34787458e-01, -3.10510397e-01, -5.78550696e-01, -4.12792057e-01, -2.42356405e-01, -5.31892776e-01, -4.25981522e-01, 4.42634583e-01, 7.87668049e-01, 6.25603437e-01, 7.45414555e-01, -9.13057208e-01, 5.56308687e-01, 6.38233662e-01, 3.53708923e-01, -7.70793140e-01, 7.69021809e-01, -1.59396172e-01, -3.43858927e-01, 9.65723932e-01, -3.89188230e-01, 4.09514576e-01, -3.31487507e-01, -1.71912685e-01, 7.44856149e-02, 3.59337121e-01, -5.43792129e-01, -4.78190333e-01, -1.54813242e+00, -2.17523035e-02, -7.17357635e-01, 6.26982391e-01, 2.07812667e-01, 8.94111335e-01, -6.80955231e-01, 3.60444456e-01, -3.50414515e-01, -4.68807667e-01, 1.57277554e-01, 6.47533715e-01, 3.71628791e-01, 4.66852576e-01, 2.59801173e+00, -3.17930222e-01, 5.25439441e-01, -6.51129961e-01, -1.35577297e+00, 1.45542979e-01, -3.90664667e-01, -5.65808773e-01, 6.52999580e-01, 1.88484538e+00, 8.19815457e-01, -2.07825169e-01, 1.41002929e+00, -2.58818895e-01, 4.83071983e-01, -1.17679751e+00, 5.50224423e-01, 2.77771592e-01, 1.69476882e-01, 1.72046702e-02, 8.91880155e-01, 1.34944177e+00, 3.55900377e-01, 5.42203724e-01, 3.84140164e-01, 3.93937528e-01, 1.49957538e-01, 6.37551472e-02, -6.43686831e-01, -1.38701573e-02, 5.90985835e-01, -8.57911766e-01, 1.31762505e+00, 9.40620244e-01, -1.08752474e-01, 4.16389704e-01, 1.30097818e+00, 7.40811229e-01, 6.38283640e-02, 1.08044517e+00, 4.88240600e-01, -1.45539784e+00, 1.16197675e-01, -7.49037385e-01, 1.22194147e+00, -4.04944569e-01, -9.43418026e-01, -1.15350008e+00, 8.89921963e-01, -7.49506891e-01, 1.94906962e+00, 9.70449150e-01, -1.44246709e+00, -7.63473213e-01, 4.76886451e-01, -1.68565226e+00, 2.38962144e-01, -4.14389372e-01, -1.07838380e+00, -9.50035155e-02, 3.23131323e-01, 3.09829582e-02, -3.54273528e-01, 5.25098026e-01, 6.76840663e-01, -4.80793804e-01, -1.78584111e+00, 1.85085192e-01, -5.65778255e-01, 2.68699259e-01, -1.97828099e-01, 5.16587019e-01, -1.96685410e+00, -5.57920277e-01, -1.24273241e-01, 8.09673443e-02, 5.17660379e-01, 4.63572800e-01, -2.77064860e-01, 7.34318018e-01, -5.93745232e-01, -1.89287841e-01, -5.00726521e-01, -4.44019169e-01, 1.34223139e+00, -7.93004036e-01, -2.79056597e+00, 2.78951496e-01, 2.79402554e-01, 4.73076731e-01, 2.84397364e-01, 2.58352812e-02, -8.26023996e-01, 2.90921301e-01, 4.98885512e-01, -4.82910067e-01, 8.65817428e-01, -4.80928384e-02, -3.56852025e-01, 4.41974550e-01, 2.52185680e-04, 5.71554661e-01, -3.08114678e-01, 8.15543950e-01, -4.58165258e-01, 8.08404267e-01, 7.74363577e-01, -8.79077494e-01, -6.20397329e-01, 7.06088126e-01, 5.29134154e-01, 1.20438300e-01, -1.23457290e-01, 2.08530471e-01, 1.99606466e+00, -5.22882342e-01, -3.43405068e-01, -2.88744241e-01, -6.95623875e-01, -9.20819104e-01, 3.47390413e-01, 9.36604291e-02, 1.94906339e-01, 1.72356546e-01, -1.08848369e+00, -6.45346269e-02, -7.31357396e-01, 4.75855827e-01, 1.46123052e-01, -3.67924720e-01, 1.28538692e+00, -9.41856980e-01, -8.85583237e-02, 7.96136260e-02, -4.47643489e-01, 1.26129580e+00, -4.17390823e-01, -9.58796978e-01, -6.02452219e-01, 2.53524363e-01, -1.75174057e-01, -8.22754383e-01, -3.41782659e-01, -3.99128705e-01, 1.74402267e-01, 9.19964612e-01, -1.96303248e-01, 8.99717331e-01, -2.78171115e-02, 8.15492451e-01, 1.10119653e+00, 5.89331567e-01, -2.05206588e-01, 6.95804536e-01, -5.22458434e-01, -1.27437425e+00, -7.63668776e-01, 8.93525898e-01, -3.17586511e-01, 8.73156309e-01, -1.24181293e-01, 1.67453632e-01, -1.72812688e+00, -2.21082762e-01, -1.35465372e+00, -1.15213037e+00, 4.34072495e-01, -4.76166338e-01, -7.35176682e-01, 1.63013041e-01, -8.53289247e-01, -3.33258390e-01, 1.80498540e-01, 2.20089674e+00, 9.22801852e-01, 1.32396400e+00, -8.30184102e-01, 1.88267216e-01, -1.66415155e-01, 3.32440734e-01, 6.22780561e-01, 2.35340223e-01, -2.12411150e-01, -1.32452130e-01, -4.65169668e-01, -9.76161182e-01, 6.04598522e-01, 5.92035770e-01, -1.39878646e-01, 4.50434327e-01, 3.14672887e-01, -5.80712140e-01, -8.75466764e-02, 9.36419010e-01, 1.08462524e+00, -1.32347631e+00, -8.36683750e-01, 8.17096114e-01, -1.18694603e+00, 4.80279118e-01, -1.73243165e-01, 5.78095376e-01, -5.90843618e-01, -8.83057535e-01, 5.43224812e-01, -3.12741131e-01, -8.53154123e-01, 3.27666759e-01, 5.98344624e-01, -1.46306825e+00, -1.77034829e-02, 5.57493567e-01, -8.70936453e-01, 8.70006979e-01, -1.00870836e+00, 6.92985833e-01, -3.92617583e-02, -6.25964761e-01, 3.38024825e-01, 7.00047135e-01, -9.06218469e-01, -7.05851436e-01, -5.94763495e-02, -2.49292567e-01, -6.95182681e-01, 2.23615021e-02, 3.71578783e-01, 4.56831567e-02, 4.78772402e-01, 1.12045503e+00, 4.24251914e-01, 1.43821788e+00, -2.91753620e-01, -7.89857209e-01, 4.21857327e-01, -4.42033023e-01, 1.22084033e+00, 2.36857384e-01, 1.82472747e-02, 1.07308447e+00, 2.48365477e-01, -1.32199061e+00, -1.31877649e+00, 8.81731808e-01, 2.52610534e-01, 2.59365410e-01, -4.71343845e-01, 6.82543755e-01, -3.60667288e-01, -5.72288215e-01, 2.51356006e-01, 3.68884504e-02, -9.69492178e-03, 3.60786259e-01, 7.12686479e-02, 3.10870379e-01, 7.37577498e-01, 8.29828203e-01, -2.37491488e-01, 6.77580535e-02, -1.17823887e+00, 4.23468888e-01, -1.31367743e+00, -4.37606238e-02, -1.55824885e-01, 1.14254189e+00, -2.59627432e-01, -2.27638543e-01, 1.29635847e+00, -6.66724384e-01, -1.04579914e+00, -1.23574831e-01, 4.21379089e-01, -6.79141700e-01, 1.05886197e+00, 8.61444950e-01, 9.46896911e-01, 4.62024540e-01, 2.40616903e-01, -1.92693308e-01, 9.59028423e-01, -6.06339574e-01, -3.56682688e-01, -5.00818729e-01, 3.37091923e-01, 6.82711601e-02, 7.39933252e-01, 1.66518867e+00, -2.80452091e-02, -7.71207452e-01, 7.26041019e-01, -8.22354317e-01, 2.67282575e-01, 9.69297886e-01, 6.33447468e-01, 2.13868022e+00, 6.23088419e-01, 1.54185188e+00, -2.86420792e-01, -9.53051031e-01, -1.37920523e+00, 1.23338938e-01, 5.19704998e-01, -5.39764225e-01, 7.10156932e-02, 3.97083730e-01, -1.29998326e-01, 1.17280390e-02, 7.00607181e-01, 1.44474363e+00, -6.98847115e-01, 2.77548939e-01, -7.53482342e-01, -4.78482991e-01, 5.64425468e-01, -5.30632615e-01, -9.93413508e-01, 2.36042142e-01, 1.13796055e+00, -1.54483885e-01, -5.17767787e-01, -1.26728284e+00, -2.28314605e-02, -1.82609379e-01, 1.10257196e+00, 3.40071529e-01, 1.62014544e+00, 9.67467070e-01, -8.12644482e-01, -4.55618799e-01, -2.04983130e-01, -2.10284561e-01, -8.80014300e-01, 6.18717313e-01, -4.28777523e-02, 8.94034803e-02, -6.40965819e-01, -5.91588795e-01, -2.48515252e-02, -2.97658533e-01, -3.60326856e-01, -5.13339698e-01, 2.95412451e-01, 9.05253366e-02, 7.82390296e-01, -2.38825884e-02, 4.38579857e-01, -1.59976855e-02, -1.23613477e+00, 4.93151516e-01, 1.72606464e-02, 2.23822087e-01, 1.76842466e-01, -1.89223245e-01, -5.30380428e-01, -7.05080032e-01, -6.40930772e-01, 8.69440258e-01, 6.89755082e-01, 9.97707248e-01, 3.01049352e-02, 1.26208985e+00, 4.10589278e-01, 7.05745757e-01, 6.55546546e-01, 1.09116614e+00, 4.72230673e-01, 3.49424303e-01, 3.55938345e-01, -7.82030404e-01, -6.20575905e-01, -1.30519009e+00, 1.53471339e+00, 3.28236252e-01, 1.10598469e+00, 6.73336625e-01, 5.31317770e-01, 1.51782110e-01, 1.34559083e+00, 9.47234333e-01, -2.08910942e-01, -6.93111897e-01, 1.24585402e+00, -8.08868051e-01, 5.95568419e-01, 5.51985264e-01, 1.00488627e+00, -1.17247608e-02, -1.03121705e-01, 9.05231297e-01, -7.87826419e-01, 6.79148495e-01, 8.98920953e-01, 9.72523019e-02, -6.55541062e-01, 1.03379405e+00, 2.31501722e+00, 3.78584415e-01, 1.74309641e-01, -1.68061411e+00, 8.08922887e-01, 5.75915933e-01, -2.56312937e-01, 5.11307895e-01, -5.34317255e-01, 7.06703722e-01, 1.27909616e-01, 7.59080291e-01, -1.00043023e+00, 7.75793850e-01, -1.13898385e+00, 1.53326437e-01], dtype=float32), 'gender': 0} 03:40:29-709926 ERROR Failed to build checkpoint list index out of range ```