MAT项目是用于修复图片中缺失的部分:及为图像中缺失的区域产生视觉吸引力和语义适当的内容。
项目链接:GitHub - fenglinglwb/MAT: MAT: Mask-Aware Transformer for Large Hole Image InpaintingMAT: Mask-Aware Transformer for Large Hole Image Inpainting - GitHub - fenglinglwb/MAT: MAT: Mask-Aware Transformer for Large Hole Image Inpaintinghttps://github.com/fenglinglwb/MAT
1. ninja: error: loading 'build.ninja': No such file or directory
解决方案参考:
ninja: error: loading 'build.ninja': No such file or directory / Applications & Desktop Environments / Arch Linux Forumshttps://bbs.archlinux.org/viewtopic.php?id=250533
2. g++/c++ compiler incompatibility
解决方案参考:g++/c++ compiler incompatibility · Issue #974 · NVIDIA/apex · GitHubI am working with an application that uses Pytorch and Apex. The application requires that Apex be compiled with the --cpp_ext and --cuda_ext flags. I set up my environment like so. conda create -n layoutlm conda activate layoutlm conda ...https://github.com/NVIDIA/apex/issues/974
3. subprocess.CalledProcessError: Command ‘[‘which‘, ‘c++‘]‘ returned non-zero exit status 1.
subprocess.CalledProcessError: Command ‘[‘which‘, ‘c++‘]‘ returned non-zero exit status 1._-徐徐图之-的博客-CSDN博客_subprocess.calledprocesserror解决方案参考:subprocess.CalledProcessError: Command ‘[‘which‘, ‘c++‘]‘ returned non-zero exit status 1._-徐徐图之-的博客-CSDN博客_subprocess.calledprocesserror
4. 更改anaconda 虚拟环境的 gcc 版本
解决方案参考:如何改变anaconda 的 gcc 版本? - 知乎在ubuntu上借助swig实现python和c++的联合开发。在ubuntu上安装anaconda,运行Python可以发现,anaconda…https://www.zhihu.com/question/56272908
5. subprocess.CalledProcessError: Command '['which', 'c++']' returned non-zero exit status 1
解决方案参考:python - subprocess.CalledProcessError: Command '['which', 'c++']' returned non-zero exit status 1 - Stack Overflowhttps://stackoverflow.com/questions/72009245/subprocess-calledprocesserror-command-which-c-returned-non-zero-exit