avatarify-python icon indicating copy to clipboard operation
avatarify-python copied to clipboard

Module not found error

Open Samaybobo opened this issue 1 year ago • 30 comments

(avatarify) C:\Users\LAMAR\avatarify-python>run_windows.bat [1703360958.695988] Loading Predictor Traceback (most recent call last): File "afy/cam_fomm.py", line 216, in from afy import predictor_local File "C:\Users\LAMAR\avatarify-python\afy\predictor_local.py", line 4, in from modules.keypoint_detector import KPDetector ModuleNotFoundError: No module named 'modules'

Samaybobo avatar Dec 23 '23 20:12 Samaybobo

You may need to install missing modules using pip if they are not already installed. You can use the following command to install packages:

pip install package_name install the required packages for the 'avatarify' project.

make sure configs are right for our python script, especially if it relies on relative imports or specific directory structures.

Verify that the 'modules/keypoint_detector.py' file or module actually exists in the 'modules' directory.

Lilneo786 avatar Dec 23 '23 20:12 Lilneo786

pip install package_name

it didnt work

Samaybobo avatar Dec 23 '23 20:12 Samaybobo

it may be helpful to share more details about the project structure and dependencies, as well as the relevant portions of the code within 'predictor_local.py' and 'keypoint_detector.py'. This information can assist in diagnosing the problem more accurately.

Lilneo786 avatar Dec 23 '23 20:12 Lilneo786

from modules.keypoint_detector import KPDetector from modules.generator_optim import OcclusionAwareGenerator from sync_batchnorm import DataParallelWithCallback import numpy as np

else: from afy import predictor_local predictor = predictor_local.PredictorLocal( **predictor_args )

Samaybobo avatar Dec 23 '23 20:12 Samaybobo

you're trying to import the 'KPDetector' and 'OcclusionAwareGenerator' classes from the 'modules' package, but you're also attempting to import 'predictor_local' from 'afy' based on some condition. However, there is a slight issue with the structure of your code.

from modules.keypoint_detector import KPDetector
from modules.generator_optim import OcclusionAwareGenerator
from sync_batchnorm import DataParallelWithCallback
import numpy as np

# Check some condition
if some_condition:
    from afy import predictor_local
    predictor = predictor_local.PredictorLocal(**predictor_args)
else:
    # Continue with other code if the condition is not met
    # Your code here

Make sure to replace some_condition with your actual condition that determines whether to import 'predictor_local'. Let me know if this fixes it

Lilneo786 avatar Dec 23 '23 20:12 Lilneo786

pls im not really good in coding, i dont understand any code im just trying to use the software......but ill appreciate if you can assist me further outside this platform so that i can share my screen with you can just assist

Samaybobo avatar Dec 23 '23 21:12 Samaybobo

I'm sorry I won't be able to help outside of Github

Lilneo786 avatar Dec 23 '23 22:12 Lilneo786

so what will i do now?

Samaybobo avatar Dec 23 '23 22:12 Samaybobo

maybe somebody else here can help. im sorry once again

Lilneo786 avatar Dec 23 '23 22:12 Lilneo786

alright, thanks, i appreciate

Samaybobo avatar Dec 23 '23 22:12 Samaybobo

Download anydesk and share thr address on it

SanPatrick01 avatar Dec 24 '23 07:12 SanPatrick01

106251575

Samaybobo avatar Dec 24 '23 10:12 Samaybobo

im online now

Samaybobo avatar Dec 24 '23 12:12 Samaybobo

lifeofthegoat this is my reddit username lets talk there

Samaybobo avatar Dec 25 '23 11:12 Samaybobo

am also facing same issue can you please help me out..

Mohammedsagito avatar Dec 26 '23 05:12 Mohammedsagito

1727257002 please this my anydesk id as well

Mohammedsagito avatar Dec 26 '23 05:12 Mohammedsagito

‪+234 811 513 3627‬

Send to my whatsappp so we won't miss time please

SanPatrick01 avatar Dec 26 '23 07:12 SanPatrick01

image

SanPatrick01 avatar Dec 26 '23 07:12 SanPatrick01

Sending you a message

On Tue, 26 Dec 2023 at 7:15 AM, SanPatrick01 @.***> wrote:

‪+234 811 513 3627‬

Send to my whatsappp so we won't miss time please

— Reply to this email directly, view it on GitHub https://github.com/alievk/avatarify-python/issues/691#issuecomment-1869320148, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7BYCE47YLBJLZZJ2PMXKPTYLJ2PTAVCNFSM6AAAAABBA75N6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRZGMZDAMJUHA . You are receiving this because you commented.Message ID: @.***>

Mohammedsagito avatar Dec 27 '23 02:12 Mohammedsagito

(avatarify) C:\Users\LAMAR\avatarify-python>run_windows.bat [1703360958.695988] Loading Predictor Traceback (most recent call last): File "afy/cam_fomm.py", line 216, in from afy import predictor_local File "C:\Users\LAMAR\avatarify-python\afy\predictor_local.py", line 4, in from modules.keypoint_detector import KPDetector ModuleNotFoundError: No module named 'modules'

If you have any problem with avatarify . Contact me for solutions 100% results. You can also watch my installation video that shows you how to do it yourself. Or simply ask for help from my whatsapp contact https://wa.me/message/GXQYWX4XRTXGB1

Updatedme avatar Dec 27 '23 20:12 Updatedme

If you have any problem with avatarify . Contact me for solutions 100% results. You can also watch my installation video that shows you how to do it yourself. Or simply ask for help from my whatsapp contact https://wa.me/message/GXQYWX4XRTXGB1

Updatedme avatar Dec 27 '23 20:12 Updatedme

1727257002 please this my anydesk id as well

If you have any problem with avatarify . Contact me for solutions 100% results. You can also watch my installation video that shows you how to do it yourself. Or simply ask for help from my whatsapp contact https://wa.me/message/GXQYWX4XRTXGB1

Updatedme avatar Dec 27 '23 20:12 Updatedme

am also facing same issue can you please help me out..

If you have any problem with avatarify . Contact me for solutions 100% results. You can also watch my installation video that shows you how to do it yourself. Or simply ask for help from my whatsapp contact https://wa.me/message/GXQYWX4XRTXGB1

Updatedme avatar Dec 27 '23 20:12 Updatedme

am also facing same issue can you please help me out..

If you have any problem with avatarify . Contact me for solutions 100% results. You can also watch my installation video that shows you how to do it yourself. Or simply ask for help from my whatsapp contact https://wa.me/message/GXQYWX4XRTXGB1

Updatedme avatar Dec 27 '23 20:12 Updatedme

lifeofthegoat this is my reddit username lets talk there

If you have any problem with avatarify . Contact me for solutions 100% results. You can also watch my installation video that shows you how to do it yourself. Or simply ask for help from my whatsapp contact https://wa.me/message/GXQYWX4XRTXGB1

Updatedme avatar Dec 27 '23 20:12 Updatedme

1727257002 please this my anydesk id as well

If you have any problem with avatarify . Contact me for solutions 100% results. You can also watch my installation video that shows you how to do it yourself. Or simply ask for help from my whatsapp contact https://wa.me/message/GXQYWX4XRTXGB1

If anyone ever deal with this guy na scammer... don't ever deal or send money to him. he don't know anything.

Morten202 avatar Mar 24 '24 01:03 Morten202

Hello Please I Get The Bellow Message Each Time I Try To Do } run_windows.bat. Please What Do i Need To Do Because after downloading and place vox-adv-cpk.pth.tar file in the avatarify-python directory and then run_windows.bat i get the messages bellow please what do i do next. thanks

Traceback (most recent call last): File "afy/cam_fomm.py", line 4, in import yaml ModuleNotFoundError: No module named 'yaml' (base) PS C:\Users\pc\avatarify-python>

adindu11 avatar Jun 02 '24 15:06 adindu11

On Sun, 2 Jun 2024 at 4:54 PM, adindu11 @.***> wrote:

Hello Please I Get The Bellow Message Each Time I Try To Do } run_windows.bat. Please What Do i Need To Do Because after downloading and place vox-adv-cpk.pth.tar file in the avatarify-python directory and then run_windows.bat i get the messages bellow please what do i do next. thanks

Traceback (most recent call last): File "afy/cam_fomm.py", line 4, in import yaml ModuleNotFoundError: No module named 'yaml' (base) PS C:\Users\pc\avatarify-python>

— Reply to this email directly, view it on GitHub https://github.com/alievk/avatarify-python/issues/691#issuecomment-2143910469, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWRQLYVZ3KN5KIHXOBPK4ADZFM55DAVCNFSM6AAAAABBA75N6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBTHEYTANBWHE . You are receiving this because you commented.Message ID: @.***>

Download the vox and place in the avatarify folder

SanPatrick01 avatar Jun 02 '24 15:06 SanPatrick01

I Did That Already, I Will Attach It Bellow IMAGE

adindu11 avatar Jun 02 '24 16:06 adindu11