Comments (20)
@P16101150
Hey Bro,I fix the bugs that rcnn_loss always zero。But link_pos and link_neg still zero. And the best_model.pth is update right now.
Look for your reply.
from jmodt.
when i start training,why the rcnn_loss is zero?
hey bro. have u fix the bugs that "UnboundLocalError: local variable 'val_loss_epoch' referenced before assignment"? can u help me ? thanks a lot
from jmodt.
you can delete line 25 and chang line 81 to val_set, val_loader = create_dataloader(logger, split=cfg.TRAIN.VAL_SPLIT),
it can get val_loader!
from jmodt.
and do you know when i start training,why the rcnn_loss ,link_pos and link_neg always zero?
from jmodt.
@P16101150
Thanks a lot,
I rewrite the code of line 81,because of the val_set and val_loader can not get value from " val_set, val_loader = create_dataloader(logger, split=cfg.TRAIN.VAL_SPLIT) if args.train_with_eval else None, None
" , and then I get the val_set and val_loader, then the code can run, but laterly I found that the rcnn_loss ,link_pos and link_neg always zero. these days I think maybe the dataset is not correct for the code, but i have not fix the problem.
Hey bro, thanks again, and wanna to talk with u for this problem.
I do not fix the problem that, maybe we can talk about the problem~
from jmodt.
I think maybe these parameters are zero causing the best_model.pth not to be updated
from jmodt.
@zkp0113 i think so,but i have no idea why the loss always zero,The author did not to solve the problem
from jmodt.
I'm guessing that the code is using the first part of the dataset all the time during training so that the various losses are always zero, I'm not sure if that's the right idea.
May I have your email? I think we can fix the problem together.
from jmodt.
@P16101150
Hey bro.
Do you check the code ”val_set, val_loader = create_dataloader(logger, split=cfg.TRAIN.VAL_SPLIT) if args.train_with_eval else None, None“ train.py?I found that the val_set maybe not called by other code.
from jmodt.
Can you tell me how to do it?
from jmodt.
Can you tell me how to do it?
check the command that when u run the code.--fintune needed when you train ur own dataset
from jmodt.
But it say if you want to jointly train the detection and correlation models, remove the --finetune option ,So I didn't add this command
from jmodt.
But it say if you want to jointly train the detection and correlation models, remove the --finetune option ,So I didn't add this command
yep,and first i remove the --finetune option, it comes problem, so i checked the code when the--finetune option i removed ,i found the --finetune might be have been set in the config.py,and then i add it and trained. The problem fixed.
from jmodt.
@P16101150
We can chat with eachother. look for ur reply.
from jmodt.
@P16101150
U can check the loss-calculate code for this problem,if nothing send to the function the loss would be zero.
from jmodt.
i add the --finetune as "python train.py --data_root data/KITTI --batch_size 8 --finetun --output_dir result",but i get the error
raceback (most recent call last):
File "A:\JMODT-main\train.py", line 151, in
main()
File "A:\JMODT-main\train.py", line 139, in main
trainer.train(
File "A:\JMODT-main\jmodt\utils\train_utils.py", line 137, in train
train_loss, tb_dict, disp_dict = self.model_fn(self.model, batch)
File "A:\JMODT-main\jmodt\detection\modeling\train_functions.py", line 21, in model_fn_train
rpn_cls_label, rpn_reg_label = data['rpn_cls_label'], data['rpn_reg_label']
KeyError: 'rpn_cls_label'
how can i fixed?
from jmodt.
@P16101150
I think this problem may cause by the parameters of the config.py file.
If you want to receive the rcnn_loss, you need to set the correct parameters to the train.py.
Check the fine-tune that the loss calculates function.
from jmodt.
@P16101150
if u set the " cfg.TRAIN.FINETUNE = True" the rcnn_loss will be always zero.
from jmodt.
Hi, bro, have you fixed the "zero" problem?
from jmodt.
from jmodt.
Related Issues (15)
- Link to the paper HOT 1
- UnboundLocalError: local variable 'val_loss_epoch' referenced before assignment HOT 10
- how to use the dataset HOT 1
- Multiple GPUs for training HOT 3
- The problem of finetune the model jmodt.pth HOT 1
- Hello, where can I find these txt files? Or how do I need to create it? thanks!! HOT 2
- How to generate the three files test.txt, sample2frame.txt and seq2sample.txt? HOT 2
- ‘best_model.path’ HOT 5
- val_loss_epoch HOT 2
- The parameters for Affinity Compution and data_association.
- About the Train Seq and Val Seq. HOT 1
- Feat Visualization Issues HOT 2
- error: protobuf 3.19.6 is installed but protobuf>=4.21.5 is required by {'ortools'}
- Quite a small sized images (.png) in the jmodt folder for visualization.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jmodt.