Skip to content
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

the integrity of the data “ready to use” #53

Open
Lime2333 opened this issue Apr 10, 2023 · 3 comments
Open

the integrity of the data “ready to use” #53

Lime2333 opened this issue Apr 10, 2023 · 3 comments

Comments

@Lime2333
Copy link

Hi, thank you very much for the great research about RADIal.
I have some questions about how to use the "ready to use" RADIal dataset:

  • After downloading and decompressing the six .z0x files, I found that the number of radar_FFT was only 8105, instead of 8252.
  • However, the number of other formats are all 8252.
  • And when i use the dataset in 1-Train.py, there is a problem--missing files:
    image

I wonder whether there is something wrong with my process, or whether the file is missing ,Because when I decompress, I will be prompted that the file is missing.

@yanglijay
Copy link

Actually I encountered the same problem as yours. I added the following code to /FFTRadNet/dataset/dataset.py and the problem is temporarily solved. This is used to remove the radar_FFT labels that are not exist.

def __remove_nonexist_file__(self):
    labels = self.labels[:, 0]
    nonexist_file_ = []
    for i in range(labels.__len__()):
        curr_file = os.path.join(self.root_dir, 'radar_FFT',"fft_{:06d}.npy".format(labels[i]))
        search_result = os.path.isfile(curr_file)
        if (search_result == False):
            nonexist_file_.append(labels[i])
    self.nonexist_file = np.array(nonexist_file_)
    for item in self.nonexist_file:
        index = np.where(self.labels[:,0] == item)
        self.labels = np.delete(self.labels, index, axis=0)
    return self.labels

Also remebler to use this code at the beginning of the dataset.py file as follows:

def __init__(self, root_dir,statistics=None,encoder=None,difficult=False):

    self.root_dir = root_dir
    self.statistics = statistics
    self.encoder = encoder
    
    self.labels = pd.read_csv(os.path.join(root_dir,'labels.csv')).to_numpy()
    self.labels = self.__remove_nonexist_file__()

@Lime2333
Copy link
Author

Thank you for your solution. I'll give it a try.
And I hope it won't affect the performance too much.

@yyxr75
Copy link

yyxr75 commented Dec 17, 2023

Have you guys figured out how to produce RA heatmap from radar_FFT.npy s?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants