bingykang / Fewshot_Detection

Few-shot Object Detection via Feature Reweighting
https://arxiv.org/abs/1812.01866
528 stars 111 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'backup/metayolo_novel0_neg1' #52

Open myh12138 opened 3 years ago

myh12138 commented 3 years ago

Anyone have a backup file in your program? python train_meta.py cfg/metayolo.data cfg/darknet_dynamic.cfg cfg/reweighting_net.cfg darknet19_448.conv.23 /home/myh/Documents/program/few-shot-learning/Fewshot_Detection-master/data/coco.names save_interval 10 ['bird', 'bus', 'cow', 'motorbike', 'sofa'] base_ids [0, 1, 3, 4, 6, 7, 8, 10, 11, 12, 14, 15, 16, 18, 19] logging to backup/metayolo_novel0_neg1 Traceback (most recent call last): File "train_meta.py", line 79, in <module> os.mkdir(backupdir) FileNotFoundError: [Errno 2] No such file or directory: 'backup/metayolo_novel0_neg1'

LDZ233 commented 3 years ago

You should create this file manually

myh12138 commented 3 years ago

You should create this file manually

Does it need anything in it?Or just a empty file?Thinks.

yanxiaod123 commented 3 years ago

I met the same problem. How did you solve it? @myh12138

VinhLoiIT commented 3 years ago

Just create an empty folder named "backup" in your PROJ_ROOT

zhanghao5 commented 3 years ago

use this python method os.makedirs()

myh12138 commented 3 years ago

I met the same problem. How did you solve it? @myh12138

Yes,as they said to make an empty folder.But the results made by me is 0000000,I don not why.

Zyt-wenwne commented 3 years ago

You should create this file manually

Hi,​ when I run the code , a error happened, Traceback (most recent call last): File "train_meta.py", line 352, in train(epoch) File "train_meta.py", line 197, in train loss,recall_rate,conf_proposal,loss_bbox,loss_conf,loss_cls = region_loss(output, target) File "/home/plc319/anaconda3/envs/ct/lib/python3.6/site-packages/torch/nn/modules/module.py", line 532, in call result = self.forward(*input, *kwargs) File "/home/plc319/桌面/Few-shot-Object-Detection-via-Feature-Reweighting-main/models/layers/region_loss.py", line 296, in forward cls = cls.view(bs, cs, nA nC nH nW).transpose(1, 2).contiguous().view(bs nA nC nH nW, cs) RuntimeError: shape '[32, 15, 845]' is invalid for input of size 540800 can you tell me how to solve the problem, I know is the tensor's error , BUT how to solve it without influence to the model