So machen Sie VSCODE starten.json für ein Python -ModulPython

Python-Programme
Anonymous
 So machen Sie VSCODE starten.json für ein Python -Modul

Post by Anonymous »

Ich recherchiere selbst überprüfte maschinelles Lerncode.

Code: Select all

python -m torch.distributed.launch --nproc_per_node=1 main_swav.py \
--data_path /dataset/imagenet/train \
--epochs 400 \
--base_lr 0.6 \
--final_lr 0.0006 \
--warmup_epochs 0 \
--batch_size 8 \
--size_crops 224 96 \
--nmb_crops 2 6 \
--min_scale_crops 0.14 0.05 \
--max_scale_crops 1. 0.14 \
--use_fp16 true \
--freeze_prototypes_niters 5005 \
--queue_length 380 \
--epoch_queue_starts 15\
--workers 10
< /code>
Um den Code mit VSCODE zu debuggen, habe ich versucht, den Start zu überarbeiten.{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"module": "torch.distributed.launch --nproc_per_node=1 main_swav.py",
"request": "launch",
"console": "integratedTerminal",
"args": ["--data_path", "/dataset/imagenet/train"]
}
]
}
Ich wusste, dass dies nicht funktionieren würde ...
Könnten Sie mir einen Rat geben?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post