Comments (5)
Updating the gradio version in the requirements.txt file and re-running pip install -r requirements.txt
fixed this issue for me.
gradio==3.36.1
FYI, I'm running in CPU mode on Ubuntu 22 with only the --server-name
flag: python3 app.py --server_name 192.168.0.98
from refacer.
mwiater thank you! It work for me too!
from refacer.
from refacer.
Have similar problem on macos.
When press "Reface" queue start count, but nothing happened.
There are no logs in console, no cpu load.
Waiting few hours leads to error in webui
If press Reface again after error messages in log:
(venv) (base) admin@admins-MBP-2 refacer % python app.py
Trying FFMPEG h264_videotoolbox encoder
FFMPEG h264_videotoolbox encoder works
Video codec for FFMPEG: h264_videotoolbox
CPU mode with providers ['CPUExecutionProvider']
inswapper-shape: [1, 3, 128, 128]
Running on local URL: http://127.0.0.1:7860/
Task exception was never retrieved
future: <Task finished name='j4xebw3ra3d_0' coro=<Queue.process_events() done, defined at /Users/admin/PycharmProjects/refacer/venv/lib/python3.10/site-packages/gradio/queueing.py:343> exception=1 validation error for PredictBody
event_id
Field required [type=missing, input_value={'data': [[{'data': 'data...on_hash': 'j4xebw3ra3d'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.1/v/missing>
Traceback (most recent call last):
File "/Users/admin/PycharmProjects/refacer/venv/lib/python3.10/site-packages/gradio/queueing.py", line 347, in process_events
client_awake = await self.gather_event_data(event)
File "/Users/admin/PycharmProjects/refacer/venv/lib/python3.10/site-packages/gradio/queueing.py", line 220, in gather_event_data
data, client_awake = await self.get_message(event, timeout=receive_timeout)
File "/Users/admin/PycharmProjects/refacer/venv/lib/python3.10/site-packages/gradio/queueing.py", line 456, in get_message
return PredictBody(**data), True
File "/Users/admin/PycharmProjects/refacer/venv/lib/python3.10/site-packages/pydantic/main.py", line 159, in __init__
__pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__)
pydantic_core._pydantic_core.ValidationError: 1 validation error for PredictBody
event_id
Field required [type=missing, input_value={'data': [[{'data': 'data...on_hash': 'j4xebw3ra3d'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.1/v/missing
Also tied with COREML, CPU, --max_num_faces 1, --force_cpu, --share_gradio and API example.
roop via sd and standalone work on this machine.
Any advice how to find a problem?
Tech specs:
MacOS Ventura 13.4
MBP M1 32gb ram
from refacer.
It also works for me. However, I wonder whether the authors can update a python root for us to use, not only the localhost.
from refacer.
Related Issues (20)
- refacer and roop parralel installation causes problems. HOT 12
- refacer web-interface uses same port as automatic1111 aka stable diffusion. HOT 1
- How can I increase the number of faces? HOT 1
- Error
- Doesn't recognise face from photo so doesnt swap. HOT 1
- Unable to determine which face was not detected
- Error and doesn't work HOT 2
- Crashing at extracting frames. HOT 1
- (question for a friend) press reface but nothing appears in terminal HOT 2
- "CUDAExecutioner" In terminal missing after I accidentally uninstalled onnxruntime HOT 1
- Add option to use codeformer? HOT 1
- Option to swap to all faces? HOT 2
- I don't know what caused it, please help determine.
- Limitation Of a Video File? HOT 2
- numpy.core._exceptions._ArrayMemoryError
- Insightface Issue
- Hello, dnt work on colab HOT 2
- Issue HOT 2
- Error when creating a video
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from refacer.