Giter VIP home page Giter VIP logo

Comments (20)

zkp0113 avatar zkp0113 commented on August 22, 2024 1

@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.

zkp0113 avatar zkp0113 commented on August 22, 2024

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.

P16101150 avatar P16101150 commented on August 22, 2024

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.

P16101150 avatar P16101150 commented on August 22, 2024

and do you know when i start training,why the rcnn_loss ,link_pos and link_neg always zero?

from jmodt.

zkp0113 avatar zkp0113 commented on August 22, 2024

@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.

zkp0113 avatar zkp0113 commented on August 22, 2024

@P16101150

I think maybe these parameters are zero causing the best_model.pth not to be updated

from jmodt.

P16101150 avatar P16101150 commented on August 22, 2024

@zkp0113 i think so,but i have no idea why the loss always zero,The author did not to solve the problem

from jmodt.

zkp0113 avatar zkp0113 commented on August 22, 2024

@P16101150

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.

zkp0113 avatar zkp0113 commented on August 22, 2024

@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.

P16101150 avatar P16101150 commented on August 22, 2024

Can you tell me how to do it?

from jmodt.

zkp0113 avatar zkp0113 commented on August 22, 2024

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.

P16101150 avatar P16101150 commented on August 22, 2024

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.

zkp0113 avatar zkp0113 commented on August 22, 2024

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.

zkp0113 avatar zkp0113 commented on August 22, 2024

@P16101150
We can chat with eachother. look for ur reply.

from jmodt.

zkp0113 avatar zkp0113 commented on August 22, 2024

@P16101150
U can check the loss-calculate code for this problem,if nothing send to the function the loss would be zero.

from jmodt.

P16101150 avatar P16101150 commented on August 22, 2024

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.

zkp0113 avatar zkp0113 commented on August 22, 2024

@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.

zkp0113 avatar zkp0113 commented on August 22, 2024

@P16101150
if u set the " cfg.TRAIN.FINETUNE = True" the rcnn_loss will be always zero.

from jmodt.

zzm-hl avatar zzm-hl commented on August 22, 2024

Hi, bro, have you fixed the "zero" problem?

from jmodt.

zkp0113 avatar zkp0113 commented on August 22, 2024

from jmodt.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.