-
Notifications
You must be signed in to change notification settings - Fork 20
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
Testing the trained models #9
Comments
@AbdulMoqeet Dear AbdulMoqeet, I would like to ask a question about train.py. When I ran it , this line of the code( |
@carolchenyx I checked my code but couldn't get hint. I was facing similar errors but don't remember how I fixed them though. Did you make any changes in the code? How's your data directory look like? |
@AbdulMoqeet I changed a little bit about the data process. The data directory is like (/media/hkuit104/24d4ed16-ee67-4121-8359-66a09cede5e7/AbnormalDetection/DATASET/SHT/testing/frames/). |
It may be a problem of data loading.. My directory looks like |
@AbdulMoqeet Oh, I see. Let me try it first. Super thanks for you quick reply. |
@AbdulMoqeet Dear AM, it seems will raise the same problem. I pushed the code I used in (https://github.com/carolchenyx/Few-shot-Scene-adaptive-Anomaly-Detection). I will be very grateful if you can help to check it. Thank you. |
@carolchenyx Added a pull request for working code. Changes are made in your code. Have fun! |
@AbdulMoqeet Great! Super thanks again. |
@AbdulMoqeet @carolchenyx Can you share the folder structure of training videos? I have extracted the frames under folder name of videos. Below is the structure I have. Is this correct?
This is the structure of the training videos (which by default in Shanghai-Tech, doesn't provide anomalies in training set.) |
@abhishekaich27 Yes, but that default structure didn't work for me. I had to change the directories structure. My directory looks like \Training\frames\08\08_003*.jpg where 08 is the Task number, '08_003' is video number and *.jpg represent the video frames. Let me know if the problem still persists. |
Exactly @AbdulMoqeet. Does the Task number has some relation with Video number? e.g. |
Yes, all of the videos started from same numbers (e.g. Those particular two digits refer to task/scene number. For Task 8: For Task 7: |
Thank you! I will restructure the folders this way then. Do you think this is the new train-test split authors propose in the paper? Were you able to reproduce the results of the paper for the Shanghai-Tech dataset? |
I am not sure. I had to do reverse engineering to make this code work. So, by tracing the errors and codes, I came to that directory structure. I never meant to reproduce the quantitative results. However, I check some of qualitative results, there were positive results that ensure that code is working fine. I had to use this code for some other industrial application (for experimental purpose) that I am working on. |
Alright. I have emailed the authors regarding this dataset's training/testing split and one of the authors has replied to get back to me in a while. I will update here if I get anything concrete. Thank you again for your kind help. |
@AbdulMoqeet The author of the repo confirmed that the folder structure you have is correct. |
@abhishekaich27 Thanks a lot for the confirmation. |
@AbdulMoqeet Hi, AbdulMoqeet. Thanks a lot for your conversation, my 'train.py' code is already running. Have you solved the problem of how to test the model? |
Same question |
@AbdulMoqeet Dear AbdulMoqeet, I would like to ask a question about train.py. When I ran it , this line of the code( |
@accountyangaaa Could you please run with default arguments? I have also shared a working code above. Check my answer to @carolchenyx Please share a screenshot. |
@AbdulMoqeet Dear AbdulMoqeet, thanks a lot for your reply. I just ran the working code above. There is another error. |
Hi, maybe you can try to change to a smaller batch size.
accountyangaaa ***@***.***> 于2021年11月22日周一 下午4:00写道:
… @AbdulMoqeet <https://github.com/AbdulMoqeet> Thanks a lot for your
reply.I just ran the working code above.There is another problem.Do you
know how to fix it? Thank you.
The screenshot is as follows.
[image: image]
<https://user-images.githubusercontent.com/56595279/142824356-368ea4ea-adf0-4d31-8b43-634650b1af81.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL2PSUEP3NGCL54UORY7ZLDUNH2DBANCNFSM447O6GHA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@carolchenyx Thanks a lot for your reply. Can I see your dataset structure |
@carolchenyx Hi,below is the structure I have. Is this correct? |
Hi, I think it's correct. |
Hello @AbdulMoqeet @carolchenyx, where do you know the version list of the dependencies? Have you got information to test the trained model? Thank you |
@dekathomas I did by trial & error. For testing, I made changes in the given code by following the paper. You can modify the train code accordingly. I tested on my private dataset at that time and, the results were unsatisfactory. |
Can you share to me the testing code you have made? |
Sorry, I am not allowed to do so :-( |
Owh oke, no problem |
@AbdulMoqeet Hi are you able to provide a skeleton code for the test.py file without the sensitive information. Thanks |
@lzyuan168 Hi, I am sorry, I do not have access to those files anymore. As it's been long time so I do not even remember about them. If I remember correctly, I used train file/conditions to set conditions in test file |
@AbdulMoqeet alright thank you |
Hello,
Thank you for sharing the code.
Once the network is trained using
train.py
, how to test the model?Regards,
AM
The text was updated successfully, but these errors were encountered: