TingTingin / TikTokDiffusion

69 stars 10 forks source link

Numpy error #2

Closed ecureuilfourbe closed 1 year ago

ecureuilfourbe commented 1 year ago

Hello, after a torchvision error that I fix by pip install torchvision and python.exe -m pip install --upgrade pip, I got this new error, any idea ?

Traceback (most recent call last):

File "C:\SD2.0_automatic1111\TikTokDiffusion-main\TikTokDiffusion\TikTokDiffusion.py", line 75, in import track

File "C:\SD2.0_automatic1111\TikTokDiffusion-main\TikTokDiffusion\track.py", line 60, in from trackers.multi_tracker_zoo import create_tracker

File "C:\SD2.0_automatic1111\TikTokDiffusion-main\TikTokDiffusion\trackers\multi_tracker_zoo.py", line 4, in from trackers.bytetrack.byte_tracker import BYTETracker

File "C:\SD2.0_automatic1111\TikTokDiffusion-main\TikTokDiffusion\trackers\bytetrack\byte_tracker.py", line 13, in from trackers.bytetrack import matching

File "C:\SD2.0_automatic1111\TikTokDiffusion-main\TikTokDiffusion\trackers\bytetrack\matching.py", line 7, in from cython_bbox import bbox_overlaps as bbox_ious

File "src\cython_bbox.pyx", line 12, in init cython_bbox

File "C:\Users\julie\AppData\Local\Programs\Python\Python310\lib\site-packages\numpy__init.py", line 305, in getattr raise AttributeError(former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'float'. np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

Appuyez sur une touche pour continuer...

Thank you,

ecureuilfourbe commented 1 year ago

you already solve this problem in another issue, my bad

ecureuilfourbe commented 1 year ago

nevermind problem is still there

TingTingin commented 1 year ago

do this

the problem is having the wrong version of numpy to fix

ecureuilfourbe commented 1 year ago

already try that from previous issues, it does not work:

numpy was uninstalled at this point

"Le fichier spécifié est introuvable" = "Files not found"

image

TingTingin commented 1 year ago

try this instead pip install numpy==1.23.5

ecureuilfourbe commented 1 year ago

Nope, same error, maybe i'm doing something wrong, I must open the CMD, in the same folder as webui-user.bat , right ?

TingTingin commented 1 year ago

how about this try this instead pip install "numpy<=1.23.5"

ecureuilfourbe commented 1 year ago

I don't know, numpy is installed: image

but I've got the same error again:

image

ecureuilfourbe commented 1 year ago

update, I fix previous error by learning how to read, but I've got new error, yeah \O/

image

TingTingin commented 1 year ago

Try launching again I think that this was an error with SD not having full access to some info until after a delay when you connect to it if you try again it should work

ecureuilfourbe commented 1 year ago

It works if I launch TikTok-Diffusion-webui-user.bat, leave it do it's thing, then launch TikTokDiffusion.bat ans kill the second cmd that open, I'm ok with that