darkflow
darkflow copied to clipboard
This error came when i test cfg/tiny-yolo-voc-1c.cfg .my mode after training the data . Any one can help please
C:\Users\MIPRG-P2\Anaconda3\lib\site-packages\h5py_init_.py:36: FutureWarning: Conversion of the second argument of issubdtype from float
to np.floating
is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type
.
from ._conv import register_converters as _register_converters
WARNING:tensorflow:From C:\Users\MIPRG-P2\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\base.py:198: retry (from tensorflow.contrib.learn.python.learn.datasets.base) is deprecated and will be removed in a future version.
Instructions for updating:
Use the retry module or similar alternatives.
Parsing cfg/tiny-yolo-voc-1c.cfg
Traceback (most recent call last):
File "C:\Users\MIPRG-P2\Desktop\dark\darkflow-master\realtimeDetection.py", line 10, in
the Error occurs when i test my cfg file named tiny-yolo-voc-1c.cfg.. after training the dataset. Any one who can help me . I am using darkflow on windows
Please check the file cfg/tiny-yolo-voc-1c.cfg
is existed.
yes the file exists .. this is the issue the even a file exists it show me this message however i give full path and darkflow respond me like this
WARNING:tensorflow:From C:\Users\MIPRG-P2\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\base.py:198: retry (from tensorflow.contrib.learn.python.learn.datasets.base) is deprecated and will be removed in a future version. Instructions for updating: Use the retry module or similar alternatives. Parsing C:\Users\MIPRG-P2\Desktop\dark\darkflow-master\cfg\tiny-yolo-voc-1c.cfg Traceback (most recent call last): File "C:\Users\MIPRG-P2\Desktop\dark\darkflow-master\realtimeDetection.py", line 12, in tfnet = TFNet(options) File "C:\Users\MIPRG-P2\Desktop\dark\darkflow-master\darkflow\net\build.py", line 64, in init self.framework = create_framework(*args) File "C:\Users\MIPRG-P2\Desktop\dark\darkflow-master\darkflow\net\framework.py", line 59, in create_framework return this(meta, FLAGS) File "C:\Users\MIPRG-P2\Desktop\dark\darkflow-master\darkflow\net\framework.py", line 15, in init self.constructor(meta, FLAGS) File "C:\Users\MIPRG-P2\Desktop\dark\darkflow-master\darkflow\net\yolo_init_.py", line 20, in constructor misc.labels(meta, FLAGS) #We're not loading from a .pb so we do need to load the labels File "C:\Users\MIPRG-P2\Desktop\dark\darkflow-master\darkflow\net\yolo\misc.py", line 36, in labels with open(file, 'r') as f: FileNotFoundError: [Errno 2] No such file or directory: 'labels.txt' Loading None ... Finished in 0.0s [Finished in 5.002s]
E:\Users\ZP\Desktop\Getdata>flow.py --model cfg/yolov2-tiny-voc.cfg --load bin/yolov2-tiny-voc.weights --savepb
Parsing ./cfg/yolov2-tiny-voc.cfg
Parsing cfg/yolov2-tiny-voc.cfg
Loading bin/yolov2-tiny-voc.weights ...
Successfully identified 63102560 bytes
Finished in 0.04497408866882324s
Traceback (most recent call last):
File "E:\Users\ZP\Desktop\Getdata\flow.py", line 6, in
@sharoseali Did you solve it?
JofferyN... he command u r using is usually used when we train our own data set.. to save pb file... this command will work when u specify your labels file explicitly by using --labels filname
where filename is gile where u wil define your class names or labels on which your model is trained
On Thu, Jul 19, 2018, 2:00 PM JoffreyN [email protected] wrote:
@sharoseali https://github.com/sharoseali Did you solve it?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/thtrieu/darkflow/issues/764#issuecomment-406206527, or mute the thread https://github.com/notifications/unsubscribe-auth/AS8u8p6r4XBVRLHJcoRwZjJ8hbequGMjks5uIEqVgaJpZM4UENze .
@sharoseali kindly take a look at the error it's giving: FileNotFoundError: [Errno 2] No such file or directory: 'labels.txt' which means the file "labels.txt" is not found in the current directory. Please check your folder structure once.
@sharoseali @JoffreyN Did you guys solve it?
@sharoseali Did you solve it?
I solved it by switching the slash in my options. I was on windows 10 and was getting below error: FileNotFoundError: [Errno 2] No such file or directory: 'cfg/tiny-yolo-voc-1c.cfg'
I had options as:
options = {
'model': 'cfg\tiny-yolo-voc-1c.cfg',
:
:
}
I changed it to:
options = {
'model': 'cfg/tiny-yolo-voc-1c.cfg',
:
:
}
Parsing ./cfg/tiny-yolo-voc.cfg
Parsing cfg/tiny-yolo-voc-7c.cfg
Traceback (most recent call last):
File "flow", line 6, in
i have above mentioned problem. I don't know what's wrong.
I've kept the filters to 60 as I've seven classes of dataset. And those models are right there in the cfg file(file does exist). I even changed the labels as well. any help would be appreciated.
Check the directory structure that you've created and placed those files in.