Giter Site home page Giter Site logo

yolov3_fake_refactor's Introduction

yolov3_fake_refactor

将qqwweee大佬的yolov3的keras实现做了一丢丢改动来适应tf2.0

生成.weight文件

在当前目录输入python convert.py yolov3.cfg yolov3.weights model_data/yolo.h5

预测

python yolo_video.py [-image] [--input "路径"] [--output "路径"]

训练

python train.py

具体使用

参见 https://github.com/qqwweee/keras-yolo3/blob/master/README.md

yolov3_fake_refactor's People

Contributors

kongqi404 avatar

Stargazers

Ximo avatar  avatar

Watchers

 avatar

Forkers

monoloxo

yolov3_fake_refactor's Issues

在win10的tf2.1版本下运行train.py会报错,具体信息如下:

Load weights model_data/yolo_weights.h5.
Freeze the first 249 layers of total 252 layers.
Traceback (most recent call last):
File "train.py", line 203, in
_main()
File "train.py", line 46, in _main
freeze_body=2, weights_path='model_data/yolo_weights.h5') # make sure you know what you freeze
File "train.py", line 143, in create_model
[*model_body.output, *y_true])
File "C:\Users\diaoc.conda\envs\tf21\lib\site-packages\tensorflow_core\python\keras\engine\base_layer.py", line 773, in call
outputs = call_fn(cast_inputs, *args, **kwargs)
File "C:\Users\diaoc.conda\envs\tf21\lib\site-packages\tensorflow_core\python\keras\layers\core.py", line 846, in call
result = self.function(inputs, **kwargs)
File "C:\Users\diaoc\tf20\yolov3_fake_refactor\yolo3\model.py", line 412, in yolo_loss
_, ignore_mask = K.control_flow_ops.while_loop(lambda b,*args: b<m, loop_body, [0, ignore_mask])

AttributeError: module 'tensorflow.keras.backend' has no attribute 'control_flow_ops'

但是源文件是可以在backend.py下找到from tensorflow.python.ops import control_flow_ops的。

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.