Skip to content

关于evo_cppn_material的Github开源代码中parallel各向同性对称性复现实验报错的咨询 #1

@SmileMint

Description

@SmileMint

我在尝试复现论文中关于parallel各向同性(isotropic)对称性的实验时遇到了一些技术问题,想向您请教。
环境配置:
操作系统:Ubuntu 20.04.6 LTS
Python版本:3.8
已按照README配置好依赖
修改的参数:
在 main.py 中设置 cur_tradeoff = "Max:E-Min:nu"
在 config.ini 中设置 pcdtype = parallel(对应论文中的六边形isotropic对称性p31m)
报错信息:
当运行 python main.py 时,出现以下错误:

(metamaterial) smile-mint@LAPTOP-H2C5T9E5:/mnt/c/Users/9999/Desktop/GraduationProject/evo_cppn_material-main-back$ python main.py
The folder './mesh' does not exist.
The folder './contour' does not exist.
The folder './pcd' does not exist.
The folder './output' does not exist.
start generate pcd
end generate pcd

****** Running generation 1 ******

multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/smile-mint/miniconda3/envs/metamaterial/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "main.py", line 131, in eval_genome
filtered_tri = get_parallel_filtered_mesh(inside_points)
File "/mnt/c/Users/9999/Desktop/GraduationProject/evo_cppn_material-main-back/tools/shape.py", line 177, in get_parallel_filtered_mesh
tri = Delaunay(points)
File "_qhull.pyx", line 1835, in scipy.spatial._qhull.Delaunay.init
IndexError: tuple index out of range
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "main.py", line 231, in
run_experiment(
File "main.py", line 193, in run_experiment
p.run(
File "/mnt/c/Users/9999/Desktop/GraduationProject/evo_cppn_material-main-back/neat/population.py", line 251, in run
fitness_function(self.population, self.config, k)
File "/mnt/c/Users/9999/Desktop/GraduationProject/evo_cppn_material-main-back/neat/parallel.py", line 33, in evaluate
fits, outputs, is_normal, violate_num = job.get(timeout=self.timeout)
File "/home/smile-mint/miniconda3/envs/metamaterial/lib/python3.8/multiprocessing/pool.py", line 771, in get
raise self._value
IndexError: tuple index out of range

观察:
我测试了其他几种对称性(如 完全各向异性nosym、四方对称性sym4 等),代码都能正常运行,唯独在设置为 parallel 且目标为弹性模量-泊松比(Max:E-Min:nu)组合时出现此错误。
请问这是否与parallel对称性下的特定边界条件处理或返回值结构有关?或者是我遗漏了某些针对isotropic对称性的特殊配置?
期待您的指导

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions