Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MY AVATAR KEEPS LAGGING #577

Open
Otitokelly opened this issue Apr 24, 2023 · 33 comments
Open

MY AVATAR KEEPS LAGGING #577

Otitokelly opened this issue Apr 24, 2023 · 33 comments

Comments

@Otitokelly
Copy link

Alright I’m not running my avatarify on google collab, after days of running the avatarify i managed to get past the solving environment and then the avatarify opened with windows.bat conmand. But after restart I’m only running the avatarify with Cd Avatarify python and run windows.bat but after installing the necessary files which is pip install pyaml and the rest everything was fixed and I’m now able to open my avatarify but it keeps lagging. Please somebody help I’ll appreciate it dearly

@JohanAR
Copy link
Collaborator

JohanAR commented Apr 25, 2023

What kind of graphics card does your computer have?

When you open a new issue it is pre-filled with a template containing questions, including the one above. If you answer those questions it becomes much easier to help you.

@stanleyotf
Copy link

stanleyotf commented Apr 25, 2023 via email

@Otitokelly
Copy link
Author

Otitokelly commented Apr 25, 2023 via email

@stanleyotf
Copy link

stanleyotf commented Apr 25, 2023 via email

@seegunz
Copy link

seegunz commented Apr 25, 2023

you can easily bypass this solving environment by editing your script\install_windows.bat

change this the line of code there to this exactly

call conda create -y -n %CONDA_ENV_NAME% python=3.10.11

note (just replace the version of that line of code : python version (3.10.11) to the version of python you are using)

@Otitokelly
Copy link
Author

Otitokelly commented Apr 25, 2023 via email

@seegunz
Copy link

seegunz commented Apr 25, 2023

also, i ll like to see how smooth your avatarify performs. i am about to try the colab as you stated

@stanleyotf
Copy link

stanleyotf commented Apr 25, 2023 via email

@Cashout004
Copy link

Greetings to you @seegunz please can you explain more because I am also suck on this solving environment stage

@seegunz
Copy link

seegunz commented Apr 26, 2023

Greetings to you @seegunz please can you explain more because I am also suck on this solving environment stage

check your c files where your avatarify-python is installed, go to the script folder and right click it and select edit. then change the line of code that is similar to this code below.

call conda create -y -n %CONDA_ENV_NAME% python=3.10.11

note: the python=3.10.11 is the version of python i have installed on my pc, so the exact version of python u install should be used

@seegunz
Copy link

seegunz commented Apr 27, 2023

Alright I’m not running my avatarify on google collab, after days of running the avatarify i managed to get past the solving environment and then the avatarify opened with windows.bat conmand. But after restart I’m only running the avatarify with Cd Avatarify python and run windows.bat but after installing the necessary files which is pip install pyaml and the rest everything was fixed and I’m now able to open my avatarify but it keeps lagging. Please somebody help I’ll appreciate it dearly

you should do this

pip uninstall torch
pip cache purge
pip install torch -f https://download.pytorch.org/whl/torch_stable.html

@abladefelix
Copy link

I didn't know it's uses data connections for the process. Thanks for the info I read libmamba can solve it faster and I don't know how to do it. I don't have funds to buy 5g router for now!! If libmamba can help, I really need someone to guide me through

On Tue, Apr 25, 2023, 7:56 AM Otitokelly @.> wrote: All you need to pass that conda solving environment is a very good network, I need to buy a 5G router before my PC could pass that stage. You need to leave your PC connected to the router over night, last night it took 11pm to 5am on my 5G router to pass that stage. Then once it’s past that stage everything else loads pretty much quickly then you use run_windows.bat to start the avatarify. This morning when i ran the run_windows.bat it needed me to install requests, Pvc and face alignment so i used pip install requests, etc. to get past that stage and everything opened pretty much easily. Even the lagging issue got solved. My Pc graphics card is an NVIDIA GEForce RTX 3070 with 8gb video dedicated memory. I hope this helps On Tue, Apr 25, 2023 at 7:47 AM stanleyotf @.> wrote: > Am still stuck in conda solving environments, can't get pass that phase!! > > On Tue, Apr 25, 2023, 7:27 AM Johan @.> wrote: > > > What kind of graphics card does your computer have? > > > > When you open a new issue it is pre-filled with a template containing > > questions, including the one above. If you answer those questions it > > becomes much easier to help you. > > > > — > > Reply to this email directly, view it on GitHub > > < > #577 (comment) > >, > > or unsubscribe > > < > https://github.com/notifications/unsubscribe-auth/A7LXOYN5BG4R5GOU2L7FL63XC5VDVANCNFSM6AAAAAAXKHPWCA > > > > . > > You are receiving this because you are subscribed to this thread.Message > > ID: @.> > > > > — > Reply to this email directly, view it on GitHub > < #577 (comment) >, > or unsubscribe > < https://github.com/notifications/unsubscribe-auth/A7M7C4MW3CQII4WG54MYBQDXC5XPLANCNFSM6AAAAAAXKHPWCA > > . > You are receiving this because you authored the thread.Message ID: > @.> > — Reply to this email directly, view it on GitHub <#577 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7LXOYNARF7PBXTQ47NXATLXC5YRJANCNFSM6AAAAAAXKHPWCA . You are receiving this because you commented.Message ID: @.>

You need to install mamba and then edit the install script to install the dependencies using mamba

@Otitokelly
Copy link
Author

Otitokelly commented May 3, 2023 via email

@daan323232
Copy link

ImportError: DLL load failed. The specified module could not be found error help

@abladefelix
Copy link

@Otitokelly Good to know you solved it

@seegunz
Copy link

seegunz commented May 9, 2023

@veragreg
Copy link

veragreg commented Jun 1, 2023

pip install torch -f https://download.pytorch.org/whl/torch_stable.html

(base) C:\Users\Adoini\avatarify-python-youtube>pip install torch -f https://download.pytorch.org/whl/torch_stable.html
Looking in links: https://download.pytorch.org/whl/torch_stable.html
Collecting torch
Downloading https://download.pytorch.org/whl/cu117/torch-1.13.1%2Bcu117-cp37-cp37m-win_amd64.whl (2255.6 MB)
|██████████████ | 969.1 MB 20 kB/s eta 17:10:40ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_vendor\urllib3\response.py", line 438, in _error_catcher
yield
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_vendor\urllib3\response.py", line 519, in read
data = self._fp.read(amt) if not fp_closed else b""
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_vendor\cachecontrol\filewrapper.py", line 62, in read
data = self.__fp.read(amt)
File "C:\Users\Adoini\miniconda3\lib\http\client.py", line 465, in read
n = self.readinto(b)
File "C:\Users\Adoini\miniconda3\lib\http\client.py", line 509, in readinto
n = self.fp.readinto(b)
File "C:\Users\Adoini\miniconda3\lib\socket.py", line 589, in readinto
return self._sock.recv_into(b)
File "C:\Users\Adoini\miniconda3\lib\ssl.py", line 1071, in recv_into
return self.read(nbytes, buffer)
File "C:\Users\Adoini\miniconda3\lib\ssl.py", line 929, in read
return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_internal\cli\base_command.py", line 173, in _main
status = self.run(options, args)
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_internal\cli\req_command.py", line 203, in wrapper
return func(self, options, args)
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_internal\commands\install.py", line 316, in run
reqs, check_supported_wheels=not options.target_dir
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 95, in resolve
collected.requirements, max_rounds=try_to_avoid_resolution_too_deep
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 472, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 341, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool
return bool(self._sequence)
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 140, in bool
return any(self)
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 128, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 32, in _iter_built
candidate = func()
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 209, in _make_candidate_from_link
version=version,
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 301, in init
version=version,
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 156, in init
self.dist = self._prepare()
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 227, in _prepare
dist = self._prepare_distribution()
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 306, in _prepare_distribution
self._ireq, parallel_builds=True
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_internal\operations\prepare.py", line 508, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_internal\operations\prepare.py", line 552, in _prepare_linked_requirement
self.download_dir, hashes
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_internal\operations\prepare.py", line 243, in unpack_url
hashes=hashes,
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_internal\operations\prepare.py", line 102, in get_http_url
from_path, content_type = download(link, temp_dir.path)
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_internal\network\download.py", line 145, in call
for chunk in chunks:
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_internal\cli\progress_bars.py", line 144, in iter
for x in it:
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_internal\network\utils.py", line 87, in response_chunks
decode_content=False,
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_vendor\urllib3\response.py", line 576, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_vendor\urllib3\response.py", line 541, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "C:\Users\Adoini\miniconda3\lib\contextlib.py", line 130, in exit
self.gen.throw(type, value, traceback)
File "C:\Users\Adoini\miniconda3\lib\site-packages\pip_vendor\urllib3\response.py", line 443, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='download.pytorch.org', port=443): Read timed out.

(base) C:\Users\Adoini\avatarify-python-youtube>

@veragreg
Copy link

veragreg commented Jun 1, 2023

this was what i got as a result of trying the code to solve the Lagging issue. any solution for this.?

@stanleyotf
Copy link

stanleyotf commented Jun 1, 2023 via email

@stanleyotf
Copy link

stanleyotf commented Jun 1, 2023 via email

@abladefelix
Copy link

abladefelix commented Jun 1, 2023 via email

@MICKYGEM
Copy link

If you have nvidia GPU Rtx or gtx dm now let's fix the lagging

‪+234 811 513 3627‬

@seegunz
Copy link

seegunz commented Jun 18, 2023

this was what i got as a result of trying the code to solve the Lagging issue. any solution for this.?

it will lag if u are not using the minimum recommended graphic pc or u are not using at all. if u use, install cuda

@skylar12345
Copy link

DEEPFAKE is working well for me

Please can you help me configure mine on anydesk? or remote desktop. please bro.

@seegunz
Copy link

seegunz commented Aug 25, 2023

DEEPFAKE is working well for me

Please can you help me configure mine on anydesk? or remote desktop. please bro.

What kinda pc do u use

@andrewwood790
Copy link

@seegunz bro can i email you or something? My pc is the same as the script install you asked me to change to but still at solving environment is there a way we can communicate faster please

@SanPatrick01
Copy link

Send text to WhatsApp with anydesk address

@jaceray2334
Copy link

Alright I’m not running my avatarify on google collab, after days of running the avatarify i managed to get past the solving environment and then the avatarify opened with windows.bat conmand. But after restart I’m only running the avatarify with Cd Avatarify python and run windows.bat but after installing the necessary files which is pip install pyaml and the rest everything was fixed and I’m now able to open my avatarify but it keeps lagging. Please somebody help I’ll appreciate it dearly

you should do this

pip uninstall torch pip cache purge pip install torch -f https://download.pytorch.org/whl/torch_stable.html

Please I have this same issue, how can I contact you please help me, [email protected]

@SanPatrick01
Copy link

Text on WhatsApp
Hope it's a gaming laptop?

@jaceray2334
Copy link

jaceray2334 commented Jan 24, 2024 via email

@SanPatrick01
Copy link

Well we can work on it

‪+234 811 513 3627‬

@SanPatrick01
Copy link

‪+2348115133627‬

@daniel12232
Copy link

i really dont understand this from the beginning, but i got it to face alignment and don't know again, please i need directions from the start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

15 participants