Closed francescotaioli closed 2 years ago
Ok, this error goes away with timm==0.3.2
(I was using the latest timm 0.4.12 version
)
After having fixed this, I have issue with another piece of code ( torch '1.10.0+cu113'
version):
File "/root/miniconda3/envs/head_detection/lib/python3.8/site-packages/timm/models/layers/helpers.py", line 6, in <module>
from torch._six import container_abcs
ImportError: cannot import name 'container_abcs' from 'torch._six' (/root/miniconda3/envs/head_detection/lib/python3.8/site-packages/torch/_six.py)
The fix to this issue is to upgrade timm, but if I do this I have the positional arguments issue
Please install timm=0.3.2, otherwise the above error will occur!
---Original--- From: "Francesco @.> Date: Tue, Dec 14, 2021 21:58 PM To: @.>; Cc: @.***>; Subject: Re: [wfs123456/CCTrans] Error on train.py - ShanghaiTech/part_A/(Issue #1)
Ok, this error goes away with timm==0.3.2 (I was using the latest timm 0.4.12 version)
After having fixed this, I have issue with another piece of code ( torch '1.10.0+cu113' version):
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
Thanks for the response. However, with timm=0.3.2 I have another error (cannot import name 'container_abcs' from 'torch._six'
)
The version of torch should be 1.7!
---Original--- From: "Francesco @.> Date: Tue, Dec 14, 2021 22:48 PM To: @.>; Cc: @.**@.>; Subject: Re: [wfs123456/CCTrans] Error on train.py - ShanghaiTech/part_A/ (Issue #1)
Thanks for the response. However, with timm=0.3.2 I have another error (cannot import name 'container_abcs' from 'torch._six')
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
Unfortunately, I must use the last version of torch in order to use the last gen gpu
U may creat conda virtual environment without affecting the local! Also, pytorch either 1.7 or 1.8 are available,because 1.9 and later version do not contain 'container_abcs' from 'torch._six'!
---Original--- From: "Francesco @.> Date: Wed, Dec 15, 2021 00:35 AM To: @.>; Cc: @.**@.>; Subject: Re: [wfs123456/CCTrans] Error on train.py - ShanghaiTech/part_A/ (Issue #1)
Unfortunately, I have to upgrade torch to last version in order to use the last gen gpu
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
This was not a environment problem, but I fixed it in the pull request. Also, there is a way I can contact you? I have a few question about the implementation, I think that some parts are not coherent with the original paper. Hope to hear you soon
Thanks for the fix! You can contact me through email @.***)!
---Original--- From: "Francesco @.> Date: Mon, Dec 20, 2021 23:50 PM To: @.>; Cc: @.**@.>; Subject: Re: [wfs123456/CCTrans] Error on train.py - ShanghaiTech/part_A/(Issue #1)
This was not a environment problem, but I fixed it in the pull request. Also, there is a way I can contact you? I have a few question about the implementation that I think is not coherent with the original paper. Hope to hear you soon
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>
I would, but I'm unable to find you email :)
The above one is my Tencent mailbox, also,you can contact me by the university mailbox. @.***)
---Original--- From: "Francesco @.> Date: Tue, Dec 21, 2021 00:33 AM To: @.>; Cc: @.**@.>; Subject: Re: [wfs123456/CCTrans] Error on train.py - ShanghaiTech/part_A/ (Issue #1)
I would, but I'm unable to find you email :)
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>
If the above not, NetEase mailbox can also be considered ! @.***)
---Original--- From: "Francesco @.> Date: Tue, Dec 21, 2021 00:33 AM To: @.>; Cc: @.**@.>; Subject: Re: [wfs123456/CCTrans] Error on train.py - ShanghaiTech/part_A/ (Issue #1)
I would, but I'm unable to find you email :)
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>
I understand why I cannot view your email. When you write some address in the content of the issue email, as you did, GitHub will replace the address with @.***. Take a look at your message in the GitHub UI. You can find my address in my profile, please send an email so we can continue the discussion of the paper.
My Tencent email: @.***,please take out all the '-'
---Original--- From: "Francesco @.> Date: Tue, Dec 21, 2021 03:43 AM To: @.>; Cc: @.**@.>; Subject: Re: [wfs123456/CCTrans] Error on train.py - ShanghaiTech/part_A/(Issue #1)
I understand why I cannot view your email. When you write some address in the content of the issue email, as you did, GitHub will replace the address with @.***. Take a look at your message in the GitHub UI.
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>
OH, THIS IS WHAT I SEE, I CAN'T VIEW YOUR EMAIL! My Tencent email: @.***,please take out all the '-'
You can try to send me your email address, or transmit a paper with your email address to me, and then I will contact you!
---Original--- From: "Francesco @.> Date: Tue, Dec 21, 2021 23:29 PM To: @.>; Cc: @.**@.>; Subject: Re: [wfs123456/CCTrans] Error on train.py - ShanghaiTech/part_A/(Issue #1)
OH, THIS IS WHAT I SEE, I CAN'T VIEW YOUR EMAIL! My Tencent email: @.***,please take out all the '-'
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>
Thank you! This is my email developer email: francescotdev@gmail.com
Error when training on ShanghaiTech/part_A/.
I have cloned your repo, made a small fix (the
utils
folder was not in the repo, intrain.py
you dofrom train_helper_PVT import Trainer
but the name I think istrain_helper_ALTGVT.py
, I can make a Pull later on to fix this) Then i execute train.py, but as soon the code reaches the model creations, I get: