hmorimitsu / ptlflow

PyTorch Lightning Optical Flow models, scripts, and pretrained weights.
Apache License 2.0
250 stars 33 forks source link

permanent error in installing ptlflow in google colab #51

Closed hoseinCode closed 11 months ago

hoseinCode commented 1 year ago

hi i have an error from some days ago until Now, when i want install ptlflow package in google colab, colab shows following error: OSError: /usr/local/lib/python3.10/dist-packages/torchtext/lib/libtorchtext.so: undefined symbol: _ZN2at4_ops5zeros4callEN3c108ArrayRefINS2_6SymIntEEENS2_8optionalINS2_10ScalarTypeEEENS6_INS2_6LayoutEEENS6_INS2_6DeviceEEENS6_IbEE

i did all solutions (in google and in stackoverflow) for fixing this error , but error fix for a very short time just, and error appears again. please guide me for fixing error permanently

hmorimitsu commented 12 months ago

Hi, thanks for reporting.

Could you tell me how you are installing ptlflow? Is it by pip?

It seems like the problem is with the torchtext library, which is actually not necessary for ptlflow, so I wonder if there is some way to remove it.

Best

On Thu, Sep 7, 2023, 18:59 seyed hosein alhoseiny @.***> wrote:

hi i have an error from some days ago until Now, when i want install ptlflow package in google colab, colab shows following error: OSError: /usr/local/lib/python3.10/dist-packages/torchtext/lib/libtorchtext.so: undefined symbol: _ZN2at4_ops5zeros4callEN3c108ArrayRefINS2_6SymIntEEENS2_8optionalINS2_10ScalarTypeEEENS6_INS2_6LayoutEEENS6_INS2_6DeviceEEENS6_IbEE

i did all solutions (in google and in stackoverflow) for fixing this error , but error fix for a very short time just, and error appears again. please guide me for fixing error permanently

— Reply to this email directly, view it on GitHub https://github.com/hmorimitsu/ptlflow/issues/51, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF2KE3PHWRXAYKFZ6WFBBP3XZGSJHANCNFSM6AAAAAA4OWYJVM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

hoseinCode commented 12 months ago

yes. by pip

hoseinCode commented 12 months ago

in during installing ptlflow, torchtext installed itself.

hoseinCode commented 12 months ago

when i write !pip install ptlflow command, it install correctly and colab shows successful message and import ptlflow is ok, but when i add some scripts to my code and i run code in colab again, the error appears and red lines appear under import ptlflow command in colab cell.

hoseinCode commented 12 months ago

i did all solutions from stackoverflow but did not fix.

hmorimitsu commented 12 months ago

So the errors only happen after adding your scripts?

Is the error with torchtext happening in one of ptlflow's modules,or is it inside your scripts?

On Fri, Sep 8, 2023, 21:01 seyed hosein alhoseiny @.***> wrote:

i did all solutions from stackoverflow but did not fix.

— Reply to this email directly, view it on GitHub https://github.com/hmorimitsu/ptlflow/issues/51#issuecomment-1711636687, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF2KE3MO74BHF42NWMNNGQTXZMJL5ANCNFSM6AAAAAA4OWYJVM . You are receiving this because you commented.Message ID: @.***>

hoseinCode commented 12 months ago

yes after adding scripts. error happening in one of ptlflow modules

hoseinCode commented 12 months ago

hi Mr please introduce me definitive solution for fixing this bug, because i am in trouble some days and My project is delayed. or please say me a similar package that contain three models:PWC-Net,FlowNetC and FlowNetS for ensemble learning in estimating optical flow using python in colab

hmorimitsu commented 12 months ago

Hi, I think mmflow has the models you want https://github.com/open-mmlab/mmflow

As for the error, could you provide an example code where the error occurs so that I can check in more details?

Best

On Sun, Sep 10, 2023, 18:09 seyed hosein alhoseiny @.***> wrote:

hi Mr please introduce me definitive solution for fixing this bug, because i am in trouble some days and My project is delayed. or please say me a similar package that contain three models:PWC-Net,FlowNetC and FlowNetS for ensemble learning in estimating optical flow using python in colab

— Reply to this email directly, view it on GitHub https://github.com/hmorimitsu/ptlflow/issues/51#issuecomment-1712772930, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF2KE3KPGVLIHSHT5EK4HL3XZWGWPANCNFSM6AAAAAA4OWYJVM . You are receiving this because you commented.Message ID: @.***>