Easonyesheng / CCS

[RA-L&IROS22] A learning-based camera calibration system.
MIT License
35 stars 2 forks source link

question: what is the train_txt_path #8

Closed njsymanz closed 6 months ago

njsymanz commented 10 months ago

In the two training scripts, there is an empty string train_txt_path that is required but lacks an explanation. The best I could find was the description under the ChessboardDetectDataset class saying txt saved as: img_path heatmap_path. If there is a sample text file I missed, that would be helpful as well.

Easonyesheng commented 10 months ago

Hi~ The train_txt_path is a path of a txt file for training, which contains paths of training data. Taking the Chessboard Corner Detection model as an example, this txt file gets `n' lines and each line is f"{chessboard_img_path, e.g. ../../../xxx.jpg} {heatmap_path e.g. ../../xxx.npy}". I hope this description will be helpful.

123ioup commented 9 months ago

Hi~ The train_txt_path is a path of a txt file for training, which contains paths of training data. Taking the Chessboard Corner Detection model as an example, this txt file gets n' lines and each line isf"{chessboard_img_path, e.g. ../../../xxx.jpg} {heatmap_path e.g. ../../xxx.npy}"`. I hope this description will be helpful.

Can you send a txt file example?

Easonyesheng commented 9 months ago

Examples as follows.

/home/sd/CCS/train/chessboard_img_folder/0001.jpg /home/sd/CCS/train/heatmap_folder/0001.npy
/home/sd/CCS/train/chessboard_img_folder/0002.jpg /home/sd/CCS/train/heatmap_folder/0002.npy
...