Code Monkey home page Code Monkey logo

Comments (4)

BloodAxe avatar BloodAxe commented on August 30, 2024

It would be great to get some more details of the issue:

  • What model are you training
  • How are you launching training (torchrun, train_from_recipe, maybe your custom train.py)
  • Launching from console or notebook?
  • SG version

from super-gradients.

JaehwanOh-R avatar JaehwanOh-R commented on August 30, 2024

It would be great to get some more details of the issue:

  • What model are you training
  • How are you launching training (torchrun, train_from_recipe, maybe your custom train.py)
  • Launching from console or notebook?
  • SG version
  • I trained the YOLO-NAS-L model
  • I trained below codes
train_loader = dataloaders.get(name="coco2017_train_yolo_nas",
                               dataset_params={"data_dir": "/workspace/data/coco_dataset"},
                               dataloader_params={"num_workers": 2})
valid_loader = dataloaders.get(name="coco2017_val_yolo_nas",
                               dataset_params={"data_dir": "/workspace/data/coco_dataset"},
                               dataloader_params={"num_workers": 2})

train_params = {
    "max_epochs": 300,
    "warmup_mode": "linear_epoch_step",
    "warmup_initial_lr": 1e-6,
    "lr_warmup_steps": 1000,
    "lr_warmup_epochs": 0,
    "initial_lr": 2e-4,
    "lr_mode": "cosine",
    "cosine_final_lr_ratio": 0.1,
    "zero_weight_decay_on_bias_and_bn": True,
    "batch_accumulate": 1,
    "save_ckpt_epoch_list": [100, 200, 250],
    "loss": PPYoloELoss(use_static_assigner=False, num_classes=80, reg_max=16),
    "optimizer": "AdamW",
    "optimizer_params": {"weight_decay": 0.00001},
    "ema": True,
    "ema_params": {"decay": 0.9997, "decay_type": "threshold"},
    "mixed_precision": False,
    "sync_bn": True,
    
    "valid_metrics_list": [
        DetectionMetrics(score_thres=0.1, top_k_predictions=300, num_cls=80, normalize_targets=True,
                         post_prediction_callback=PPYoloEPostPredictionCallback(score_threshold=0.01,
                                                                                nms_top_k=1000, max_predictions=300,
                                                                                nms_threshold=0.7))],
    "metric_to_watch": '[email protected]:0.95',
    "greater_metric_to_watch_is_better": True}

setup_device(multi_gpu='DP', num_gpus=2)

trainer = Trainer(experiment_name="yolo_nas_l_coco", ckpt_root_dir="./out/sg_checkpoints_dir/")
net = models.get(Models.YOLO_NAS_L, num_classes=80)
trainer.train(model=net, training_params=train_params, train_loader=train_loader, valid_loader=valid_loader)
  • Launching from VScode
  • SG version = 3.7.1

from super-gradients.

JaehwanOh-R avatar JaehwanOh-R commented on August 30, 2024

@BloodAxe
Additionally, if you let me know the output format of the YOLO-NAS Large model, it may be solved

from super-gradients.

AlbertoRomanRamosRodriguez avatar AlbertoRomanRamosRodriguez commented on August 30, 2024

I'm having the same issue right now

from super-gradients.

Related Issues (20)

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.