If you have > 1 gpu, the first gpu is #0 and the second is therefore #1, etc.
$ CUDA_VISIBLE_DEVICES=1 python3 ~/.../faceswap.py train -A ~/.../face1 -B ~/.../face2 -m ~/.../models -p
(In fact, you can have more than one Time Machine backup disks, MacOS will backup your whole system alternately into them)
!! DO NOT USE APPLE OFFICIAL APPROACH (DRAG-N-DROP), WHICH COSTS WEEKS TO FINISH WRITING 10x DISKS !!
- Open Disk Utility (/Applications/Utilities/Disk Utility.app).
- Check the format of your new backup drive. It needs to be a GUID partition and formatted as Mac OS Extended (Journaled).
- Temporarily turn Time Machine off.
- In Disk Utility select the new backup drive.
To fix Ubuntu mic no input problem, install pavucontrol
:
$ sudo apt-get install pavucontrol
$ sudo pavucontrol
Reference: Sound Input device (microphone) not working
Qin Yu, Apr 2020
When typing in Latex, I often desperately wonder what are those weird mathematics symbols called???
Go to the Detexify website and draw it!
p.s. it turned out to be in a GitHub repo: kirel/detexify.
One possibility is that the keyboard setting is bad for the massive amount of shortcuts we are using. The system default input source is ABC - Extended
, which causes ⌥+⇧+f to input a ̰
character. For example, in VS Code, to format a document, one uses ⌥+⇧+f, which inputs ̰
instead of executing the shortcut.
Just change the ABC - Extended
input source to ABC
.
- Go to the GitHub repo of MBeautifier and clone/download it to anywhere as a library/package for MATLAB.
- Add the root directory of MBeautifier to the MATLAB path, e.g. on MacOS:
- Add the folder
/path/to/MBeautifier
to the beginning of the search path on a UNIX® system:
oldpath = path;
path('/path/to/MBeautifier',oldpath)
- Perform formatting on the currently active page of MATLAB Editor. Command:
SYSTEM is a function that returns an integer result, so declare a variable:
integer iret
and then change the call to:
iret = system(tmpline)
The Fortran standard does not allow calling a function as a subroutine. Indeed, earlier versions of our compiler did allow this, under some conditions, but the restrictions were not enough to avoid possible bad results and, after long debate, we decided that as the number of cases where this was harmless was small enough it was simpler to just make it an error. The problem has to do with mismatched assumptions about where arguments and return values get placed.