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

Error when converting csv to image #30

Open
Rabab53 opened this issue Oct 5, 2020 · 1 comment
Open

Error when converting csv to image #30

Rabab53 opened this issue Oct 5, 2020 · 1 comment

Comments

@Rabab53
Copy link

Rabab53 commented Oct 5, 2020

Hello great developers,

I have built my own localization table and I am trying to start the training step. It produces the following error:
Could you please help in this issue?

Found 5 samples in ./training_workdir_exp1/train.
generating images...
Traceback (most recent call last):
File "run_csv.py", line 30, in
sources = create_data_sources('TransformedCSVImages', opt)
File "/home/omairyrm/ANNA-PALM/smlm_datasets.py", line 47, in create_data_sources
return TransformedCSVImages(opt)
File "/home/omairyrm/ANNA-PALM/smlm_datasets.py", line 322, in init
target_size=(2560, 2560))
File "/home/omairyrm/ANNA-PALM/localization_utils.py", line 395, in generate_image_pairs_from_csv
(aa, bb, p, inf_range, outf_range) = source_train[i]
File "/home/omairyrm/ANNA-PALM/AnetLib/data/folder_dataset.py", line 94, in getitem
ret = self.transform(ret.copy())
File "/home/omairyrm/ANNA-PALM/localization_utils.py", line 373, in transform_train
tableout = fSamplerOutTest(table, index=repeat)
File "/home/omairyrm/ANNA-PALM/localization_utils.py", line 195, in call
assert self.frame_limit[0]<self.frame_limit[1]
AssertionError
AssertionError

@baiddd
Copy link

baiddd commented May 4, 2022

Hi @Rabab53,
Sorry for this late reply, It's possible that your acquisition of given samples has less than 2000 frames, you could change this line to B_frame_limit=(0, 1.0),

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

2 participants