[Linux] Calculate How Many Files In a Folder
In linux system, how can we view the number of the files in a folder? It is a common request, so I record it today.
Read More »[Linux] Calculate How Many Files In a FolderIn linux system, how can we view the number of the files in a folder? It is a common request, so I record it today.
Read More »[Linux] Calculate How Many Files In a FolderToday, I record some of my own experience in solving data imbalance problem of training model here. It may not be enough for the proficient and expert to refer to, but I hope it can help those who are still unclear on how to do it.
Read More »[PyTorch] Give Different Loss Weights for Different Classification results to Solve the Problem of Data ImbalanceTypeError: not a sequence
When using PyTorch to build a deep learning model, I think the above error is the most troublesome. The biggest problem is that this error report basically doesn't tell what kind of error happened. It's up to the user to look at his own data format.
Read More »[Solved][PyTorch] TypeError: not a sequenceToday when I use PyTorch to build a model, I got an error message:
ValueError: expected sequence of length 300 at dim 1 (got 3)
Read More »[Solved][PyTorch] ValueError: expected sequence of length 300 at dim 1 (got 3)In the past, I once wrote an article describing how I printed the model architect I built using PyTorch. For specific links, please refer to the end of the article.
Read More »[Solved][PyTorch] AttributeError: 'tuple' object has no attribute 'size'Recently, I want to experiment the execution speed of Linux program, in order to avoid being affected by the memory loading when measuring the speed, some commands are queried to clear the memory.
Read More »[Linux] Use "free" command to Release MemoryIf we want to determine a data type of variable in Python (such as int
, float
, bool
, str
... etc), we may be use isinstance()
function instead of type()
function.
In Linux system, we often create many automated scripts to help us handle all kinds of work. Today, I need to automatically log in to the remote server on a local host and execute commands on the server.
Read More »[Linux] Use "ssh" Command to log in the Remote Server and Execute CommandsIf we want to translate a language to another language, many people will open the Google Translate web.
Read More »[Python] Use googletrans Python Package to use Google TranslateWhen using the Vim editor, it would be too boring if you don't try to change some theme color with colorscheme
.