Closed msadoun closed 4 years ago
@msadoun try single or double quotes. Your argparser arguments show 4 values weights="''"
which is wrong. You only want 2 weights=''
I used [weights=""] and now it shows me this:
C:\Users\msadoun\Desktop\YOLOv3---2>python train.py --weights "" --cfg cfg\yolov3-spp.cfg --epochs 273 --batch 16 --accum 4 --multi Namespace(accumulate=4, adam=False, batch_size=16, bucket='', cache_images=False, cfg='cfg\yolov3-spp.cfg', data='data/coco2017.data', device='', epochs=273, evolve=False, img_size=[416], multi_scale=True, name='', nosave=False, notest=False, rect=False, resume=False, single_cls=False, var=None, weights='') Using CPU
2020-03-23 09:00:59.936872: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_100.dll'; dlerror: cudart64_100.dll not found
2020-03-23 09:00:59.940200: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Using multi-scale 288 - 640
Model Summary: 225 layers, 6.29987e+07 parameters, 6.29987e+07 gradients
Traceback (most recent call last):
File "train.py", line 433, in
how can I solve this
when i run this command !python3 train.py --data'' data/roboflow.data --epochs 300
I get this error please help Namespace(accumulate=4, adam=False, batch_size=16, bucket='', cache_images=False, cfg='cfg/yolov3-spp.cfg', data='data/roboflow.data', device='', epochs=300, evolve=False, img_size=[416], multi_scale=False, name='', nosave=False, notest=False, rect=False, resume=False, single_cls=False, var=None, weights='weights/yolov3-spp-ultralytics.pt') Using CUDA device0 _CudaDeviceProperties(name='Tesla T4', total_memory=15109MB)
WARNING: smart bias initialization failure.
WARNING: smart bias initialization failure.
WARNING: smart bias initialization failure.
Model Summary: 225 layers, 6.29987e+07 parameters, 6.29987e+07 gradients
Downloading https://drive.google.com/uc?export=download&id=1UcR-zVoMs7DH5dj3N1bswkiQTA4dmKF4 as weights/yolov3-spp-ultralytics.pt... Done (1.9s)
Traceback (most recent call last):
File "train.py", line 433, in
@aisulhaq please use the YOLOv5 repo for the most up to date YOLO training code. You can train YOLOv3 models there as well: https://github.com/ultralytics/yolov5
whenever I use this command: train.py --weights '' --cfg yolov3-spp.cfg --epochs 273 --batch 16 --accum 4 --multi
it gives me this response
Namespace(accumulate=4, adam=False, batch_size=16, bucket='', cache_images=False, cfg='yolov3-spp.cfg', data='data/coco2017.data', device='', epochs=273, evolve=False, img_size=[416], multi_scale=True, name='', nosave=False, notest=False, rect=False, resume=False, single_cls=False, var=None, weights="''") Using CPU
2020-03-22 09:11:59.021987: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_100.dll'; dlerror: cudart64_100.dll not found 2020-03-22 09:11:59.025916: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. Using multi-scale 288 - 640 Model Summary: 225 layers, 6.29987e+07 parameters, 6.29987e+07 gradients Downloading https://pjreddie.com/media/files/'' % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 Not Found 'rm' is not recognized as an internal or external command, operable program or batch file. Traceback (most recent call last): File "train.py", line 433, in
train() # train normally
File "train.py", line 104, in train
attempt_download(weights)
File "C:\Users\msadoun\Desktop\YOLOv3---2\models.py", line 487, in attempt_download
raise Exception(msg)
Exception: '' missing, try downloading from https://drive.google.com/open?id=1LezFG5g3BCW6iYaV89B2i64cqEUZD7e0
I wanna train the network from scratch but it keeps asking about YOLO weights