Giter Club home page Giter Club logo

Comments (9)

leJson avatar leJson commented on August 17, 2024 2

@leJson Could you please specify where to find the parameter "n_cup" you're talking about? Thanks in advance

parser.add_argument("--n_cpu",dest='n_cpu',type=int,default=2,help="torch多线程核数")在这里把defualt=2改为defualt=0,也可以在训练的时候指定.

from yolov3-network-slimming.

cococener avatar cococener commented on August 17, 2024

Me,too,and did you solve it?

from yolov3-network-slimming.

EtheneXiang avatar EtheneXiang commented on August 17, 2024

Me,too,and did you solve it?

do not use "subdivisions", it does not work, so set "batch"
@cococener

from yolov3-network-slimming.

baigang666 avatar baigang666 commented on August 17, 2024

调整cfg文件中的batch和subvision参数

from yolov3-network-slimming.

AbanoubMamdouh avatar AbanoubMamdouh commented on August 17, 2024

When I change the batch number, it threw the following RunTimeError:

/usr/local/lib/python3.6/dist-packages/torch/nn/_reduction.py:15: UserWarning: reduction='elementwise_mean' is deprecated, please use reduction='mean' instead.
warnings.warn("reduction='elementwise_mean' is deprecated, please use reduction='mean' instead.")
Traceback (most recent call last):
File "sparsity_train.py", line 152, in
train()
File "sparsity_train.py", line 98, in train
loss = model(imgs, targets)
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/home/abanoub/Desktop/yolov3-network-slimming-master/yolomodel.py", line 332, in forward
x = torch.cat((map1, map2), 1)
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1. Got 26 and 24 in dimension 2 at /pytorch/aten/src/THC/generic/THCTensorMath.cu:71

Architecture is yolov3-tiny

from yolov3-network-slimming.

leJson avatar leJson commented on August 17, 2024

我在docker里训练也遇到了这个问题,解决办法是 n_cup设为0

from yolov3-network-slimming.

leJson avatar leJson commented on August 17, 2024

貌似原因是docker与pytorch之间的兼容问题

from yolov3-network-slimming.

AbanoubMamdouh avatar AbanoubMamdouh commented on August 17, 2024

@leJson Could you please specify where to find the parameter "n_cup" you're talking about? Thanks in advance

from yolov3-network-slimming.

PiseyYou avatar PiseyYou commented on August 17, 2024

@leJson it is rigth, follow this suggestion, it work. But there is another problem, in parse_config.py file, as the default, try to set options['gpus'] = '0, 1' let two GPU work together, but actually, when run python sparsity_train.py, it is only 1 gpu work, not 2 together, any advise?

from yolov3-network-slimming.

Related Issues (20)

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.