lood339 / SCCvSD

Sports Camera Calibration via Synthesic Data
BSD 2-Clause "Simplified" License
71 stars 19 forks source link

where are these MAT-files generated from? #6

Closed rambleramble closed 4 years ago

rambleramble commented 4 years ago

Could you share where and how are these mat-files generated from? https://github.com/lood339/SCCvSD/blob/474f5b612955fdb7c3c1f568cc39764533eeab74/data/read_me.py

Are these all based on the input of the UoT_soccer annotation from "Sports Field Localization Via Deep Structured Models"?

Thanks a lot!

rambleramble commented 4 years ago

The reason I am asking is that: (1) if I am using your preprocessed MAT "database_camera_feature.mat" and "testset_feature", the matching is very good.

(2) However, alternatively, if I am training the Siamese network following your instruction in "bash network_train.sh" and generated "network.pth". And then use the "fake_D.data" from the GAN approach as input to obtain the deep feature, the result is not too bad by visual examination with the "testset_feature.mat". However, the retrieval with "database_camera_feature.mat" does not give a satisfactory result as the 1st approach above.

lood339 commented 4 years ago

Hi, thanks for pointing this out. The code was modified from Matlab code. The network training/testing part is not finished yet. I put it on the To do list: Refine train siamese network and extract deep feature. Unfortunately, I do not have time to do that. Pretty sorry for that.

rambleramble commented 4 years ago

Hi thanks a lot for the prompt reply. I think your TODO feature is exactly the missing piece.

Using both your "soccer_seg_detection" and my own data, I observed the following: (1) Your GAN-generated edge-image works fine with the HoG feature, and the NN search is correct with the groundtruth database.

(2) However, using the same GAN-generated edge-image, Siamese network feature can be generated but the NN search does not give the correct result. I suspect something was not correct when I implement the deep-feature extraction. Or at least not the same way which was used during the Siamese network training, which is exactly what you pointed out in TODO.

Update: I have found the issue is that my dataset was trained by 10k default, while your shared is based on 90k. It was my bad didn't realize the difference. Now everything seems work fine. Thanks again!

lood339 commented 4 years ago

Hi Rambleramble, No problem. Because I do not test the network training part, can you pull the code that works in your machine? So that, others may can use your code? Thank you.

Jimmy

Explorerli commented 4 years ago

Hi Rambleramble, I'm following your discussions with Dr. Chen. Have you achieved the same results as Dr. Chen? Could you shed some light on how to achieve this target?

  1. For the network training part, are you using a 90K dataset(new "train_data_90k.mat") rather than default "train_data_10k.mat" generated in "generate_train_data.py"?
  2. For the deep feature extracting part, are you using the method in "network_test.py" to obtain your own "testset_feature.mat"?

Thanks very much in advance! Thanks very much also to Dr. Chen for sharing this code!

rambleramble commented 4 years ago

@lood339 , thank you!! At this moment, I haven't implemented any new code. I only tested the capability and it works well for my application. I will pull if any necessary new source is generated in the future.

@ Explorerli, I uesd 10k version. which is already good enough for my application. deep feature extraction in "network_test.py" is for the 10K training data to be proceed to generate the database feature for the later stage retrieval. For the query image ( I assume input an RGB or BGR from your frame), you need to extract your own deep-feature, following the GAN-generated edgemap and the network_test.py implmenetaion of the ndarray example. I think it shouldn't be too many lines of code.

Explorerli commented 4 years ago

@rambleramble Thank you very much! I'll try!

AhmedKhaled945 commented 4 years ago

@Explorerli Any luck with re-producing the same results in the paper by Dr.Chen? Thanks in advance.