开源项目介绍-02 Aubio【1】环境配置和使用 @ Ubuntu + Pycharm + Python

前言:

aubio 是一组算法和工具,用于标记和变换音乐和声音。它扫描或监听音频信号,并尝试识别音乐事件。例如,当鼓被击打时,它能检测到音符的频率,或者一个有节奏的旋律的节拍是多少。

aubio 的功能包括:

  • 在每次打击前对声音文件进行分割
  • 进行音高检测
  • 敲击节奏
  • 从现场音频产生 MIDI 流

  • Python版本的配置和使用:

  • 按照官网的说法,异常简单,但是,。。。。。

笔者的工作目录:github,下载后解压,

K:\Prj_EDU\Sw_Proj\Aubio_python

 1 python + pycharm 版本@windows:【失败】

$ python -c "import aubio; print(aubio.version, aubio.float_type)"

 如果没有安装:

1.1 安装AUBIO

1.1.0 用pip安装aubio,错误,笔者没有实现:

错误如下:

Looking in indexes: https://pypi.mirrors.ustc.edu.cn/simple/, https://pypi.mirrors.ustc.edu.cn/simple/, https://mirrors.aliyun.com/pypi/simple/, https://pypi.tuna.tsinghua.edu.cn/simple/, http://pypi.mirrors.ustc.edu.cn/simple/, https://pypi.org/simple/
Collecting aubio
  Using cached aubio-0.4.9.tar.gz (479 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in k:\prj_edu\sw_proj\aubio_python\aubio_python\.venv\lib\site-packages (from aubio) (1.26.4)
Building wheels for collected packages: aubio
  Building wheel for aubio (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [42 lines of output]

      K:\Prj_EDU\Sw_Proj\Aubio_python\Aubio_Python\.venv\lib\site-packages\setuptools\__init__.py:81: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
      !!

              ********************************************************************************
              Requirements should be satisfied by a PEP 517 installer.
              If you are using pip, you can try `pip install --use-pep517`.
              ********************************************************************************

      !!
        dist.fetch_build_eggs(dist.setup_requires)
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-39
      creating build\lib.win-amd64-cpython-39\aubio
      copying python\lib\aubio\cmd.py -> build\lib.win-amd64-cpython-39\aubio
      copying python\lib\aubio\cut.py -> build\lib.win-amd64-cpython-39\aubio
      copying python\lib\aubio\midiconv.py -> build\lib.win-amd64-cpython-39\aubio
      copying python\lib\aubio\slicing.py -> build\lib.win-amd64-cpython-39\aubio
      copying python\lib\aubio\__init__.py -> build\lib.win-amd64-cpython-39\aubio
      running build_ext
      checking for aubio = 0.4.9
      Running "pkg-config --libs --cflags aubio = 0.4.9" failed: FileNotFoundError(2, '系统找不到指定的文件。', None, 2, None)
      Info: aubio 0.4.9 was not found by pkg-config

      Info: looking for *optional* additional packages
      checking for libavcodec
      Running "pkg-config --libs --cflags libavcodec" failed: FileNotFoundError(2, '系统找不到指定的文件。', None, 2, None)
      checking for libavformat
      Running "pkg-config --libs --cflags libavformat" failed: FileNotFoundError(2, '系统找不到指定的文件。', None, 2, None)
      checking for libavutil
      Running "pkg-config --libs --cflags libavutil" failed: FileNotFoundError(2, '系统找不到指定的文件。', None, 2, None)
      checking for libswresample
      Running "pkg-config --libs --cflags libswresample" failed: FileNotFoundError(2, '系统找不到指定的文件。', None, 2, None)
      checking for libavresample
      Running "pkg-config --libs --cflags libavresample" failed: FileNotFoundError(2, '系统找不到指定的文件。', None, 2, None)
      checking for sndfile
      Running "pkg-config --libs --cflags sndfile" failed: FileNotFoundError(2, '系统找不到指定的文件。', None, 2, None)
      checking for samplerate
      Running "pkg-config --libs --cflags samplerate" failed: FileNotFoundError(2, '系统找不到指定的文件。', None, 2, None)
      Info: libaubio was not installed or built locally with waf, adding src/
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for aubio
  Running setup.py clean for aubio
Failed to build aubio
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (aubio)
 

尝试用,python-pip的包管理

(.venv) PS K:\Prj_EDU\Sw_Proj\Aubio_python\Aubio_Python> pip install python-pip
Looking in indexes: https://pypi.mirrors.ustc.edu.cn/simple/, https://pypi.mirrors.ustc.edu.cn/simple/, https://mirrors.aliyun.com/pypi/simple/, https://pypi.tuna.tsinghua.edu.cn/simple/, http://pypi.mirrors.ustc.edu.cn/simple/, https://pypi.org/simple/
Collecting python-pip
  Downloading python_pip-1.1.1-py3-none-any.whl.metadata (1.9 kB)
Downloading python_pip-1.1.1-py3-none-any.whl (4.7 kB)
Installing collected packages: python-pip
Successfully installed python-pip-1.1.1
(.venv) PS K:\Prj_EDU\Sw_Proj\Aubio_python\Aubio_Python> 
 

结果和上面错误一样,没有用。

1.1.1 用conda安装:【笔者安装了,但是不知道为何,无法使用,或者不知道如何实验,未来在研究吧】
(.venv) PS K:\Prj_EDU\Sw_Proj\Aubio_python> conda config --add channels conda-forge
(.venv) PS K:\Prj_EDU\Sw_Proj\Aubio_python> conda install -c conda-forge aubio

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    aubio-0.4.9                |   py37hdcea730_5         256 KB  conda-forge
    ffmpeg-4.3.1               |       ha925a31_0        26.2 MB  conda-forge
    ------------------------------------------------------------
                                           Total:        26.4 MB

The following NEW packages will be INSTALLED:

  aubio              conda-forge/win-64::aubio-0.4.9-py37hdcea730_5 None
  ffmpeg             conda-forge/win-64::ffmpeg-4.3.1-ha925a31_0 None
  python_abi         conda-forge/win-64::python_abi-3.7-2_cp37m None


Proceed ([y]/n)?


Downloading and Extracting Packages
aubio-0.4.9          | 256 KB    | ############################################################################################################################################################################################ | 100%
ffmpeg-4.3.1         | 26.2 MB   | ############################################################################################################################################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Retrieving notices: ...working... done
 

1.1.2 pip安装
$ pip install pytest

 在    Pycharm的调试如下:

$ git clone https://git.aubio.org/aubio/aubio
$ cd aubio
$ pytest

参考: 

Python documentation — aubio 0.4.9 documentation


 2 Python版本 pycharm @Linux  Ubuntu的版本 【成功】


项目地址:

frank@frank-virtual-machine:~/Projects/PythonAubio/PrjAubio$ 

2.1 在ubuntu上安装pycharm(略)

2.2 配置环境:

2.2.1 安装numpy

 pip install numpy

遇到问题:

(.venv) frank@frank-virtual-machine:~/Projects/PythonAubio/PrjAubio$ pip install numpy

ERROR: Could not find a version that satisfies the requirement numpy (from versions: none)
ERROR: No matching distribution found for numpy

解决:

1 安装 python-pip
sudo apt-get install python-pip
2 用pip安装numpy,并采用清华的安装包源:
pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple

【案]如果直接用pip install numpy 会报错:

2.2.2 直接安装:aubio

pip install aubio

Collecting aubio
  Downloading aubio-0.4.9.tar.gz (479 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 479.0/479.0 kB 21.6 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in ./.venv/lib/python3.10/site-packages (from aubio) (1.26.4)
Building wheels for collected packages: aubio
  Building wheel for aubio (setup.py) ... done
  Created wheel for aubio: filename=aubio-0.4.9-cp310-cp310-linux_x86_64.whl size=380355 sha256=cabcdaf2ab3bffd631e1fa78608ec6b7857393070e7eebb68108a886c960741a
  Stored in directory: /home/frank/.cache/pip/wheels/00/30/30/a06fe7e9c7fe740486c219851b2bc1c7ed4a97e9c257efd3d7
Successfully built aubio
Installing collected packages: aubio
Successfully installed aubio-0.4.9
 

2.3 使用aubio:

2.3.1 进入aubio/python/demo目录:

2.3.2 使用python版本的工具:

2.3.2.1 py确认系统安装的python的可用版本
 2.3.2.2 运行一个demo

(.venv) frank@frank-virtual-machine:~/Projects/aubio/aubio/python/demos$ python3 demo_pitch.py
Usage: demo_pitch.py <filename> [samplerate]
 

【会给出使用技巧】

python3 demo_pitch.py TestAudio/1.wav 48000

 0.000000 0.000000 0.000000
0.010667 0.000000 0.000000
0.021333 0.000000 0.000000
0.032000 0.000000 0.000000
0.042667 0.000000 0.000000
0.053333 0.000000 0.000000
0.064000 0.000000 0.000000
0.074667 0.000000 0.000000
0.085333 0.000000 0.000000
0.096000 0.000000 0.000000
0.106667 0.000000 0.000000
0.117333 0.000000 0.000000
0.128000 20.157473 0.000000
0.138667 25.830223 0.000000
0.149333 34.323399 0.000000
0.160000 51.689980 0.000000
0.170667 162.232635 0.000000
0.181333 162.232635 0.000000
0.192000 162.232635 0.000000
0.202667 162.232635 0.000000
0.213333 138.269699 0.270921
0.224000 138.326996 0.249590
0.234667 138.321472 0.244399
0.245333 162.232635 0.000000

报错,audio的图像画的时候,确实python, matplotlib包:

  2.3.2.3  安装matplotlib

(.venv) frank@frank-virtual-machine:~/Projects/aubio/aubio/python/demos$ pip install matplotlib
ERROR: Could not find a version that satisfies the requirement matplotlib (from versions: none)
ERROR: No matching distribution found for matplotlib

[notice] A new release of pip is available: 23.2.1 -> 24.0
[notice] To update, run: pip install --upgrade pip
 

提升pip的版本有点低,

解决,先sudo apt update更新包的List,

然后,sudo apt install python3-pip

【案] linux 系统的好处,就是配置开源环境的时候,比windows的系统,方便太多,

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib python-pkg-resources python-setuptools python2 python2-minimal python2.7 python2.7-minimal
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  python-pip
The following NEW packages will be installed:
  python3-pip
0 upgraded, 1 newly installed, 1 to remove and 113 not upgraded.
Need to get 1,305 kB of archives.
After this operation, 2,153 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python3-pip all 22.0.2+dfsg-1ubuntu0.4 [1,305 kB]
Fetched 1,305 kB in 2s (524 kB/s)      
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
(Reading database ... 187860 files and directories currently installed.)
Removing python-pip (20.3.4+dfsg-4) ...

Progress: [  0%] [.....................................................................................................................................................................................................................................................................................] 
Progress: [ 14%] [#######################################..............................................................................................................................................................................................................................................] 
Selecting previously unselected package python3-pip.#############################################......................................................................................................................................................................................................] 
(Reading database ... 187359 files and directories currently installed.)
Preparing to unpack .../python3-pip_22.0.2+dfsg-1ubuntu0.4_all.deb ...

Unpacking python3-pip (22.0.2+dfsg-1ubuntu0.4) ...######################################################################################...............................................................................................................................................................] 

Setting up python3-pip (22.0.2+dfsg-1ubuntu0.4) ...#############################################################################################################################.......................................................................................................................] 

Progress: [ 71%] [#####################################################################################################################################################################################################................................................................................] 
Processing triggers for man-db (2.10.2-1) ...##################################################################################################################################################################################################################........................................] 
 

然后,安装matplotlib

(.venv) frank@frank-virtual-machine:~/Projects/aubio/aubio/python/demos$ pip3 install matplotlib

【案,由于源的问题,会报错】

改为,

pip3 install -i https://pypi.mirrors.ustc.edu.cn/simple/ matplotlib

2.3.3 使用demo_notes。py 找到一段音乐的音调:

【案,笔者先录制了一段D4调号的钢琴音乐,然后,用识别软件进行测试,结果如下]

(.venv) frank@frank-virtual-machine:~/Projects/aubio/aubio/python/demos$ python3 demo_notes.py TestAudio/1_D4.wav 
    time [ start vel last ]
1.578957 [ 62. 110.  -1.]
D4
4.620771 [ 62. 110.   0.]
D4
7.407166 [ 62. 110.   0.]
D4
 

由此,LINUX环境下的配置成功完结。


参考:

GitHub - aubio/aubio: a library for audio and music analysis


问题:

1 下载aubio的问题:

(.venv) PS K:\Prj_EDU\Sw_Proj\Aubio_python> git clone https://git.aubio.org/aubio/aubio
程序“git.exe”无法运行: 拒绝访问。所在位置 行:1 字符: 1
+ git clone https://git.aubio.org/aubio/aubio
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~。
所在位置 行:1 字符: 1
+ git clone https://git.aubio.org/aubio/aubio
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed
 

 【解决】如果不能自动下载,我们手动下载,然后,把源码Copy到对应的文件夹也可。

2 Python包的问题:

(.venv) PS K:\Prj_EDU\Sw_Proj\Aubio_python> pytest
========================================================================================================= test session starts =========================================================================================================
platform win32 -- Python 3.9.5, pytest-8.2.0, pluggy-1.5.0
rootdir: K:\Prj_EDU\Sw_Proj\Aubio_python
collected 0 items / 29 errors                                                                                                                                                                                                          

=============================================================================================================== ERRORS ================================================================================================================ 
_____________________________________________________________________________________________ ERROR collecting python/tests/test_aubio.py _____________________________________________________________________________________________ 
ImportError while importing test module 'K:\Prj_EDU\Sw_Proj\Aubio_python\python\tests\test_aubio.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Programs\Python\Python39\lib\importlib\__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
python\tests\test_aubio.py:3: in <module>
    from numpy.testing import TestCase
E   ModuleNotFoundError: No module named 'numpy'
 

___________________________________________________________________________________________ ERROR collecting python/tests/test_aubio_cut.py ___________________________________________________________________________________________ 
ImportError while importing test module 'K:\Prj_EDU\Sw_Proj\Aubio_python\python\tests\test_aubio_cut.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
D:\Programs\Python\Python39\lib\importlib\__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
python\tests\test_aubio_cut.py:3: in <module>
    import aubio.cut
E   ModuleNotFoundError: No module named 'aubio'
 

【案】大部分报了aubio,和 numpy的包的错误 ,正确安装即可

3  pip install aubio问题:

3.1 pip install aubio报错:

 解决办法,

(.venv) PS K:\Prj_EDU\Sw_Proj\Aubio_python> .\setup.py clean

4 本地编译器版本太低:

      Running "pkg-config --libs --cflags samplerate" failed: FileNotFoundError(2, '系统找不到指定的文件。', None, 2, None)
      Info: libaubio was not installed or built locally with waf, adding src/
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for aubio
  Running setup.py clean for aubio
Failed to build aubio
ERROR: Could not build wheels for aubio, which is required to install pyproject.toml-based projects
 

 


参考:

 1 安装aubio:

Installing aubio — aubio 0.4.9 documentation

@python

Installing aubio for Python — aubio 0.4.9 documentation

2 下载aubio

https://aubio.org/download

3 Python的包安装管理手册: PyPA的基本使用:

PYPI下的aubio项目地址:

aubio · PyPI

Installing Packages - Python Packaging User Guide

4 aubio 开源仓库:

https://github.com/aubio/aubio

@python

aubio/python at master · aubio/aubio · GitHub

各个版本列表:

Index of /pub

aubio

=====

aubio is a collection of tools for music and audio analysis.

This package integrates the aubio library with [NumPy] to provide a set of

efficient tools to process and analyse audio signals, including:

- read audio from any media file, including videos and remote streams

- high quality phase vocoder, spectral filterbanks, and linear filters

- Mel-Frequency Cepstrum Coefficients and standard spectral descriptors

- detection of note attacks (onset)

- pitch tracking (fundamental frequency estimation)

- beat detection and tempo tracking

aubio works with both Python 2 and Python 3.

Links

-----

- [module documentation][doc_python]

- [installation instructions][doc_python_install]

- [aubio manual][manual]

- [aubio homepage][homepage]

- [issue tracker][bugtracker]

Demos

-----

Some examples are available in the [`python/demos` folder][demos_dir]. Each

script is a command line program which accepts one ore more argument.

**Notes**: installing additional modules is required to run some of the demos.

### Analysis

- `demo_source.py` uses aubio to read audio samples from media files

- `demo_onset_plot.py` detects attacks in a sound file and plots the results

  using [matplotlib]

- `demo_pitch.py` looks for fundamental frequency in a sound file and plots the

  results using [matplotlib]

- `demo_spectrogram.py`, `demo_specdesc.py`, `demo_mfcc.py` for spectral

  analysis.

### Real-time

- `demo_pyaudio.py` and `demo_tapthebeat.py` use [pyaudio]

- `demo_pysoundcard_play.py`, `demo_pysoundcard.py` use [PySoundCard]

- `demo_alsa.py` uses [pyalsaaudio]

### Others

- `demo_timestretch.py` can change the duration of an input file and write the

  new sound to disk,

- `demo_wav2midi.py` detects the notes in a file and uses [mido] to write the

  results into a MIDI file

### Example

Use `demo_timestretch_online.py` to slow down `loop.wav`, write the results in

`stretched_loop.wav`:

    $ python demo_timestretch_online.py loop.wav stretched_loop.wav 0.92

Built with

----------

The core of aubio is written in C for portability and speed. In addition to

[NumPy], aubio can be optionally built to use one or more of the following

libraries:

- media file reading:

    - [ffmpeg] / [avcodec] to decode and read audio from almost any format,

    - [libsndfile] to read audio from uncompressed sound files,

    - [libsamplerate] to re-sample audio signals,

    - [CoreAudio] to read all media formats supported by macOS, iOS, and tvOS.

- hardware acceleration:

    - [Atlas] and [Blas], for accelerated vector and matrix computations,

    - [fftw3], to compute fast Fourier Transforms of any size,

    - [Accelerate] for accelerated FFT and matrix computations (macOS/iOS),

    - [Intel IPP], accelerated vector computation and FFT implementation.

[ffmpeg]: https://ffmpeg.org

[avcodec]: https://libav.org

[libsndfile]: http://www.mega-nerd.com/libsndfile/

[libsamplerate]: http://www.mega-nerd.com/SRC/

[CoreAudio]: https://developer.apple.com/reference/coreaudio

[Atlas]: http://math-atlas.sourceforge.net/

[Blas]: https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms

[fftw3]: http://fftw.org

[Accelerate]: https://developer.apple.com/reference/accelerate

[Intel IPP]: https://software.intel.com/en-us/intel-ipp

[demos_dir]:https://github.com/aubio/aubio/tree/master/python/demos

[pyaudio]:https://people.csail.mit.edu/hubert/pyaudio/

[PySoundCard]:https://github.com/bastibe/PySoundCard

[pyalsaaudio]:https://larsimmisch.github.io/pyalsaaudio/

[mido]:https://mido.readthedocs.io

[manual]: https://aubio.org/manual/latest/

[doc_python]: https://aubio.org/manual/latest/python.html

[doc_python_install]: https://aubio.org/manual/latest/python_module.html

[homepage]: https://aubio.org

[NumPy]: https://www.numpy.org

[bugtracker]: https://github.com/aubio/aubio/issues

[matplotlib]:https://matplotlib.org/

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/834359.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

基于stm32的spi从机实验HAL库编程

目录 基于stm32的spi从机实验HAL库编程前言业务场景硬件设计接线配置swd接口配置spi配置DMA配置中断配置系统时钟配置工程生成代码写点从机代码上机现象后记本文使用的测试工程 基于stm32的spi从机实验HAL库编程 前言 在微控制器的世界中&#xff0c;串行外设接口(SPI)是一种…

ICode国际青少年编程竞赛- Python-2级训练场-for循环练习2

ICode国际青少年编程竞赛- Python-2级训练场-for循环练习2 1、 for i in range(5):Dev.step(9 - i * 2)Dev.turnLeft()2、 for i in range(3):Spaceship.step(i 1)Spaceship.turnRight()Spaceship.step(i 1)Spaceship.turnLeft()3、 for i in range(4):Dev.step(10 - i…

接口测试必备技能

接口测试&#xff0c;其实并没有那么可怕&#xff0c;但是作为测试人员也是必不可少的技能。 接口分为&#xff1a;内部接口和外部接口。 内部接口&#xff1a;是浏览器与服务器的接口。这个很容易理解&#xff0c;web开发一般分前端和后端&#xff0c;前端开发人员用html/css…

vue管理系统导航中添加新的iconfont的图标

1.在官网上将需要的图标&#xff0c;加入项目中&#xff0c;下载 2.下载的压缩包中&#xff0c;可以选择这两个&#xff0c;复制到项目目录中 3.如果和之前的iconfont有重复&#xff0c;那么就重新命名 4.将这里的.ttf文件&#xff0c;也重命名为自己的 5.在main文件中导入 6.在…

【Linux 系统】多线程(线程控制、线程互斥与同步、互斥量与条件变量)-- 详解

一、线程概念 线程是进程的一个执行分支&#xff0c;是在进程内部运行的一个执行流。下面将从是什么、为什么、怎么办三个角度来解释线程。 1、什么是线程 上面是一张用户级页表&#xff0c;我们都知道可执行程序在磁盘中无非就是代码或数据&#xff0c;更准确点表述&#xff0…

第十六课 美化表格

美化表格 利用“图表工具/格式”选项卡可分别对图表的图表区、绘图区、图表标题、坐标轴标题、图例项、数据系列等组成元素进行格式设置&#xff0c;如使用系统提供的形状样式快速设置&#xff0c;或单独设置填充颜色、边框颜色和字体等&#xff0c;从而美化图表。【例如&…

AI 绘画神器 Fooocus 本地部署指南:简介、硬件要求、部署步骤、界面介绍

本文收录于《AI绘画从入门到精通》专栏&#xff0c;专栏总目录&#xff1a;点这里&#xff0c;订阅后可阅读专栏内所有文章。 大家好&#xff0c;我是水滴~~ 随着人工智能技术的飞速发展&#xff0c;AI 绘画逐渐成为创意领域的新宠。Fooocus 作为一款免费开源的 AI 绘画工具&am…

Git之revert的使用

问题场景&#xff1a; 提交代码都是以merge request的形式合并到主分支master的。 由于有一个merge request被误merge了&#xff0c;这期间又有同时merge了其它内容。 如何快速将这个被误merge的request从master上revert呢&#xff1f; 实例演示&#xff1a; 下面是最近的5…

别再观望!2024年必做的项目:视频号无货源

大家好&#xff0c;我是电商花花。 现在做项目&#xff0c;更喜欢的是一个能稳定出单&#xff0c;稳定发展的一个创业项目&#xff0c;一个好的项目就是能长期稳定的发展&#xff0c;如果只追求短平快收益的项目&#xff0c;这样的项目也并不适合我们。 对于越来越火爆的视频…

冒泡排序----深刻理解版本

前面虽然向大家介绍了冒泡排序&#xff0c;但是表达的不是很清楚&#xff0c;这次我带着更深刻的理解向大家介绍以下冒泡排序。 1.冒泡排序 冒泡排序其实是一种排序算法&#xff0c;通过数据之间的相互比较将一堆混乱的数据按照升序或者降序的顺序排列。 2.解题思路 解题思…

数据存储-SQLite

一般使用到数据库存储&#xff0c;涉及到的数据量都较大&#xff0c;采用文件存储也能完成&#xff0c;但是文件操作复杂&#xff0c;效率低&#xff0c;大量结构化数据通常采用关系型数据库存储较为合适。Android中已经嵌入了轻量级的关系型数据库SQLite&#xff0c;直接按照数…

信号处理SCI期刊,中科院2区,专业性强,审稿速度快!

一、期刊名称 Signal Processing 二、期刊简介概况 期刊类型&#xff1a;SCI 学科领域&#xff1a;信号处理 影响因子&#xff1a;4.4 中科院分区&#xff1a;2区 出版方式&#xff1a;订阅模式/开放出版 版面费&#xff1a;选择开放出版需支付$3300 三、期刊征稿范围 …

信创基础软件之中间件

信创基础软件之中间件 中间件概述 中间件是一种应用于分布式系统的基础软件&#xff0c;位于应用与操作系统、数据库之间&#xff0c;主要用于解决分布式环境下数据传输、数据访问、应用调度、系统构建和系统集成、流程管理等问题&#xff0c;是分布式环境下支撑应用开发、运…

【多客开源】游戏陪玩系统,游戏陪玩源码,游戏陪玩语音社交源码运营版游戏陪玩平台源码/tt语音聊天/声优服务/陪玩系统源码开黑/约玩源码

介绍 我们针对陪玩app源码市场的发展趋势&#xff0c;整合市面上主流陪玩app应用功能&#xff0c;自主开发了多客陪玩系统源码&#xff0c;并可为客户提供全部原生陪玩源码&#xff0c;进行二次开发&#xff0c;打造适用于线上游戏陪玩、语音聊天、心理咨询、情感陪伴等业务场…

26 | 备库为什么会延迟好几个小时?

在官方的 5.6 版本之前,MySQL 只支持单线程复制,由此在主库并发高、TPS 高时就会出现严重的主备延迟问题。 coordinator 就是原来的 sql_thread, 不过现在它不再直接更新数据了,只负责读取中转日志和分发事务。真正更新日志的,变成了 worker 线程。而 work 线程的个数,就是…

Macbook pnpm 安装 node-sass 报错(node-gyp)

换了 Macbook M3 Pro 后安装项目依赖时报错&#xff0c;提示 node-sass 安装出错。 &#xff08;此外&#xff0c;ValueError: invalid mode: rU while trying to load binding.gyp 也是类似原因。只需要确保 node-gyp 运行条件就可以&#xff09; 原因是 node-gyp 运行环境缺…

IntelliJ IDEA安装教程

IntelliJ IDEA-安装 解锁编程新境界&#xff0c;IntelliJ IDEA —— Java开发者梦寐以求的智慧之选&#xff01; 在代码的海洋里航行&#xff0c;你需要的不仅仅是一艘船&#xff0c;而是一位智勇双全的领航员。IntelliJ IDEA&#xff0c;这款被全球数百万程序员热烈追捧的Ja…

JAVA(三)常用类和API

目录 常用类与基础API---String String的内存结构 构造器和常用方法 字符串构建 String与其他结构间的转换 String的常用API 系列1&#xff1a;常用方法 系列2&#xff1a;查找 系列3&#xff1a;字符串截取 系列4&#xff1a;和字符/字符数组相关 系列5&#xff1a;开头…

数据库加密数据模糊匹配查询技术方案

文章目录 前言沙雕方案内存加载解密密文映射表 常规做法实现数据库加密算法参考 分词组合加密&#xff08;推荐&#xff09; 超神方案总结个人简介 前言 在数据安全性和查询效率之间找到平衡是许多数据管理系统所面临的挑战之一。特别是在涉及加密数据的情况下&#xff0c;如何…