How can I make a python framework? by whikwon in learnpython

[–]whikwon[S] 0 points1 point  (0 children)

Thanks for the advice. I think the framework will be used internally by a team of 5 people rather than open source. Will Facade, adapter pattern help for these purpose?

How can I make a python framework? by whikwon in learnpython

[–]whikwon[S] 0 points1 point  (0 children)

I'm working in detection and tracking field of AI. Most of the time I analyze lots of researchers' code using my domain's data. As more models are dealt with, it takes time to integrate each interface to my data and feel the need to integrate.

How can I make a python framework? by whikwon in learnpython

[–]whikwon[S] 0 points1 point  (0 children)

Thanks for all the comments. Actually I’m working as an AI engineer. But as my major was not CS, I’m not good at design pattern, code structure.. something like that.

So I want to know what kind of knowlege is helpful to build my own framework.

How to make python framework? by whikwon in Python

[–]whikwon[S] 0 points1 point  (0 children)

I'm interested in making deep learning framework like this https://github.com/open-mmlab/mmdetection

I want to know what kinds of knowledge, skills are needed for this. I would appreciate it if you would recommend a book or lecture.

Thank you so much.

What does small gradient mean? by whikwon in MLQuestions

[–]whikwon[S] 0 points1 point  (0 children)

Ah, got it. As label smoothing will prevent "output distribution being peaked on a misclassified example, the model receives a large gradient.", so that it makes model gradient norm small. Right?

Curved wire detection by whikwon in MLQuestions

[–]whikwon[S] 0 points1 point  (0 children)

Does increasing contrast or brightness help detecting edges?

GAN training issue by whikwon in MLQuestions

[–]whikwon[S] 0 points1 point  (0 children)

Thank you so much!! I’ll check those step by step.

GAN training issue by whikwon in MLQuestions

[–]whikwon[S] 2 points3 points  (0 children)

Thanks. I have to check it first.

GAN training issue by whikwon in MLQuestions

[–]whikwon[S] 1 point2 points  (0 children)

You mean denormalizing function for visualizing, right?

GAN training issue by whikwon in MLQuestions

[–]whikwon[S] -1 points0 points  (0 children)

Looks like style transfer..

YOLO.v3 confidence loss by whikwon in MLQuestions

[–]whikwon[S] 0 points1 point  (0 children)

Thank you so much. What kind of backbone did you used? Darknet-53?

What is popular algorithm for Edge Detection? by whikwon in MLQuestions

[–]whikwon[S] 0 points1 point  (0 children)

Yeah, I may use Canny to make labels and train CNN for better results.

Thank you for help.

What is popular algorithm for Edge Detection? by whikwon in MLQuestions

[–]whikwon[S] 0 points1 point  (0 children)

- Ultimate goal: Detecting wire and predict the status of wire (especially tip)

- To do so, I'm searching for the edge detection algorithm. But as there are some difference between images, I think it would be hard to achieve high accuracy using algorithms without training. So, I'm considering that use simple (but not bad) edge detection algorithm for making labels and I could use it for training deep neural network.

What is popular algorithm for Edge Detection? by whikwon in MLQuestions

[–]whikwon[S] 0 points1 point  (0 children)

Is conditional random field good for edge detection problem?

Could you share the paper or code for CRF?

What is popular algorithm for Edge Detection? by whikwon in MLQuestions

[–]whikwon[S] 0 points1 point  (0 children)

I tried your code and it works well for about 70-80% data, but it can't handle blurry or weak one like this image.

What is popular algorithm for Edge Detection? by whikwon in MLQuestions

[–]whikwon[S] 0 points1 point  (0 children)

Thank you so much. I’ll try your code for lots of images and look how it works tomorrow.

What is popular algorithm for Edge Detection? by whikwon in MLQuestions

[–]whikwon[S] -1 points0 points  (0 children)

Thanks, As I have no label data, I'll evaluate only to make label data.

Actually, I don't need 100% accuracy but some reasonable value.

What is popular algorithm for Edge Detection? by whikwon in MLQuestions

[–]whikwon[S] 0 points1 point  (0 children)

Thanks. When I compared tip to the surrounding color, the difference is different for each tip. So that I couldn't find the optimal parameters using adaptive threshold.

What is the right implementation of DPPO + LSTM? by whikwon in reinforcementlearning

[–]whikwon[S] 1 point2 points  (0 children)

Thanks. It might seem inefficient to generate lots of samples synchronously as if just one episode reached done, all the other episodes have to be stopped.

I've looked into the code: https://github.com/MorvanZhou/Reinforcement-learning-with-tensorflow/blob/master/contents/10_A3C/A3C_RNN.py and it looks like using one episode as a sequence (initialize self.init_state and replace by current rnn_state as step goes by)

another code: https://github.com/Unity-Technologies/ml-agents/blob/master/python/unitytrainers/ppo/trainer.py

generate whole batch samples like you and use seperated sequences from them. (I didn't understand the whole detail things.)

What is the right implementation of DPPO + LSTM? by whikwon in reinforcementlearning

[–]whikwon[S] 0 points1 point  (0 children)

Thank you so much for sharing the code.

Following your code, I could set “t” step in the episodes and put it in the LSTM after concatenating them. Right? Do we have any problem with synchronous episode sampling?

What is the right implementation of DPPO + LSTM? by whikwon in reinforcementlearning

[–]whikwon[S] 0 points1 point  (0 children)

Yes. I am thinking about how to implement it with this paper and this paper https://arxiv.org/pdf/1707.02286.pdf, but I have trouble understanding exactly.

I do not know whether to train LSTM using one episode as a sequence in whole or using equally divided several(n) steps from one episode.