Git Product home page Git Product logo

humpback-whale-identification-1st-'s People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

humpback-whale-identification-1st-'s Issues

mask

老哥你如何做的mask

代码中问题

您好 我们想在您的基础上训练一个分类网络,但细节的地方有两个位置不太理解,能不能麻烦解释一下,万分感谢。
第一个是results为什么后面还要torch.cat一个torch.ones_like
results = torch.cat([torch.sigmoid(results), torch.ones_like(results[:, :1]).float().cuda() * 0.5], 1)
第二个是这里为什么要乘以16
out = self.fc(global_feat) * 16

I want you to teach me kaggle.

My name is Taiyo Suzuki. I live in Yokohama, Japan, and I speak English.
I'm studying data science to seriously accelerate the Singularity.
I want you to teach me kaggle.
I don't know how to build a model.
I'm an intern with no major in machine learning.
Thank you for your time.

Undefined name 'main' in convert_from_mxnet.py

flake8 testing of https://github.com/earhian/Humpback-Whale-Identification-1st- on Python 3.7.1

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./models/modelZoo/convert_from_mxnet.py:111:5: F821 undefined name 'main'
    main()    ^
1     F821 undefined name 'main'
1

E901,E999,F821,F822,F823 are the "showstopper" flake8 issues that can halt the runtime with a SyntaxError, NameError, etc. These 5 are different from most other flake8 issues which are merely "style violations" -- useful for readability but they do not effect runtime safety.

  • F821: undefined name name
  • F822: undefined name name in __all__
  • F823: local variable name referenced before assignment
  • E901: SyntaxError or IndentationError
  • E999: SyntaxError -- failed to compile a file into an Abstract Syntax Tree

Training problem

Ran into two problems.

bboxs.csv file not found. I am assuming that the bbox_by_masks.csv is the correct bboxs.csv file

Cuda Out of Memory Error.
Having 2 1080Ti GPU with 11G memory each. Got the OOM error as following.

Traceback (most recent call last):
  File "train.py", line 310, in <module>
    train(freeze, fold_index, model_name, min_num_class, checkPoint_start, lr, batch_size)
  File "train.py", line 261, in train
    global_feat, local_feat, results = data_parallel(model,images)

changing batch_size from 12 to 6 doesn't help to solve this. Would you like to share your training environment. Thanks.

How to get the bbox.csv file?

Hello, perfect job! But I wonder how did you get the bounding boxes? Is there a source code by which I can regenerate this .csv file?

Mask

Can you explain more exactly what the mask is? THANKS.

triplet_loss problem

I want use your triplet_loss function to train a classification model with imagenet, and i got a mistake at triplet_loss.py line 70
dist_ap, relative_p_inds = torch.max((dist_mat * is_pos.float()).contiguous().view(N, -1), 1,keepdim=True)
if my label is [1, 1, 2, 3] then N=4 i got
RuntimeError: shape '[4, -1]' is invalid for input of size 6
if my label is [1, 1, 2, 2] and it worked
Is my understanding correct?Do I need to generate labels in this form[1,1,2,2]?

train problems..

earhian, Thanks for sharing !!!

i'd like to train your model..

could you use pretrained SENET model?

if I use pretrained model, there is input channel size problem(your model: 4, imagenet: 3) in load state_dict().

How could I fix It?

arcface loss

我很困惑arcface的实现过程,为为什么要在越界使用cosface

I was confused by the functions of local_dist()

你好,我在学习你写的代码的时候,对于你的一段在local_dist()函数中的代码产生了疑惑。你使用了这个函数,直接计算了两个三维矩阵的距离。我理解中的做法,是在实际使用过程中,x和y是同一个矩阵,其维数相同,把这两个矩阵给做一个按实例样本数做第一维,剩余的做flatten之后求其欧拉距离或者余弦距离。但是你的做法是把通道数最后一维, 把其的flatten,求欧拉距离之后,再使用了一个 (exp(x) - 1) / (exp(x) + 1), 这个函数的作用是用作把值归到[0, 1]的么,这种的归一化我还没有见过,这是某种特殊的作法么?其次你把距离矩阵的维做了交换之后使用了一次动态规划来求一个距离矩阵,那这意思可能是之前在做的都是在求一个关于距离长度度量的一个矩阵,我对此做法感到很不解。我也在网上找了一些资料,但是没有找到类似做法的解释。如果可以,你可以给我一些帮助么。感谢老铁, 你的这个代码写的很棒。

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.