Coder Social home page Coder Social logo

Comments (4)

Kongsea avatar Kongsea commented on July 4, 2024

Of course you can, if you have enough GPU memory.

from fpn_tensorflow.

xyeahr avatar xyeahr commented on July 4, 2024

@Kongsea But when I changed it, I got this error:
Traceback (most recent call last):
File "./tools/train.py", line 229, in
train()
File "./tools/train.py", line 38, in train
text=tf.shape(gtboxes_and_label_batch)[1])
File "./tools/../libs/box_utils/show_box_in_tensor.py", line 59, in draw_box_with_color
img_tensor = tf.squeeze(img_batch, 0)
File "/home/rf/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/array_ops.py", line 2630, in squeeze
return gen_array_ops.squeeze(input, axis, name)
File "/home/rf/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/gen_array_ops.py", line 7862, in squeeze
"Squeeze", input=input, squeeze_dims=axis, name=name)
File "/home/rf/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "/home/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3392, in create_op
op_def=op_def)
File "/home/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1734, in init
control_input_ops)
File "/home/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1570, in _create_c_op
raise ValueError(str(e))
ValueError: Can not squeeze dim[0], expected a dimension of 1, got 64 for 'draw_gtboxes/Squeeze' (op: 'Squeeze') with input shapes: [64,?,?,3].

What can I do? I just started doing this project so I need your help. Thanks a lot!

from fpn_tensorflow.

Kongsea avatar Kongsea commented on July 4, 2024

Sorry, it seems the original code only supports to set batch_size to be 1. Maybe you have to modify the code accordingly while changing the batch_size.

from fpn_tensorflow.

xyeahr avatar xyeahr commented on July 4, 2024

@Kongsea Thank you ! I'll try it.

from fpn_tensorflow.

Related Issues (18)

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.