I can't reproduce results
See original GitHub issue❓ Questions and Help
I’m trying to reproduce results for the same experiment.
I’ve tried everything discussed here but nothing worked.
I added the following lines of code in tools/train_net.py
:
+torch.backends.cudnn.benchmark = False
+torch.backends.cudnn.deterministic = True
+
+torch.manual_seed(42)
+torch.cuda.manual_seed(42)
+torch.cuda.manual_seed_all(42)
+random.seed(42)
+np.random.seed(42)
Also added the following in maskrcnn_benchmark/data/build.py
data_loader = torch.utils.data.DataLoader(
dataset,
num_workers=num_workers,
batch_sampler=batch_sampler,
collate_fn=collator,
+ worker_init_fn=np.random.seed(42),
)
To see if it works, I train for only180 iterations.
any clue?
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
What should I do if I cannot reproduce experimental published ...
Easiest solution is to invite them over and let them do the experiment. You will find what they are doing different and then...
Read more >Six factors affecting reproducibility in life science research and ...
There are several reasons why an experiment cannot be replicated. ... Many studies claim a significant result, but their findings cannot be reproduced....
Read more >Why Can't I Reproduce Their Results?
Perhaps your data isn't clean in the first place? Perhaps it has outliers or invalid entries? Perhaps there is a bug in your...
Read more >Why can't we reproduce so many scientific findings?
Being able to do an experiment over again and confirm the results is actually a crucial aspect of science, called reproducibility.
Read more >Having hard times reproducing your experiments? - Westburg
Although there is a growing alarm about results that cannot be reproduced, the 'reproducibility crisis' is older than we think and goes back...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure, I will try that! Thanks for your help !
I’ll try that and let you know!