大家好,我正在使用Hashlips [版本:“1.1.1”.]
我使用它与 NodeJS ,以生成一个收集的NFT的,我已经插入到层文件夹2文件夹(45个背景,x 135双鞋)和它的假设给予我6075张图片,因为45 x 135 = 6075,但是在生成5615个图像后,它停止并在终端上告诉我,如果我想能够生成更多独特的图像,我需要添加更多的图层)但这是错误的,我应该能够产生6075张图片,我不知道我哪里错了。
这是我的Config.js文件:
const basePath = process.cwd();
const { MODE } = require(`${basePath}/constants/blend_mode.js`);
const { NETWORK } = require(`${basePath}/constants/network.js`);
const network = NETWORK.eth;
// General metadata for Ethereum
const namePrefix = "Nft collection article Name example";
const description = "example NFT description ";
const baseUri = "ipfs://NewUriToReplace";
const solanaMetadata = {
symbol: "EX",
seller_fee_basis_points: 500, // Define how much % you want from secondary market sales 1000 = 10%
external_url: "https://www.example.com",
creators: [
{
address: "jdk3R0000EXAMPLEADRESSD0000oUKeB433SSh",
share: 10000,
},
],
};
// If you have selected Solana then the collection starts from 0 automatically
const layerConfigurations = [
{
growEditionSizeTo: 6075,
layersOrder: [
{ name: "Background" },
{ name: "Shoes" },
],
},
];
const shuffleLayerConfigurations = false;
const debugLogs = true;
const format = {
width: 2048,
height: 2048,
smoothing: false,
};
const gif = {
export: false,
repeat: 0,
quality: 100,
delay: 500,
};
const text = {
only: false,
color: "#ffffff",
size: 20,
xGap: 40,
yGap: 40,
align: "left",
baseline: "top",
weight: "regular",
family: "Courier",
spacer: " => ",
};
const pixelFormat = {
ratio: 2 / 128,
};
const background = {
generate: false,
brightness: "80%",
static: false,
default: "#000000",
};
const extraMetadata = {
creator: "d3fco man",
};
const rarityDelimiter = "#";
const uniqueDnaTorrance = 10000;
const preview = {
thumbPerRow: 5,
thumbWidth: 50,
imageRatio: format.height / format.width,
imageName: "preview.png",
};
const preview_gif = {
numberOfImages: 5,
order: "ASC", // ASC, DESC, MIXED
repeat: 0,
quality: 100,
delay: 500,
imageName: "preview.gif",
};
module.exports = {
format,
baseUri,
description,
background,
uniqueDnaTorrance,
layerConfigurations,
rarityDelimiter,
preview,
shuffleLayerConfigurations,
debugLogs,
extraMetadata,
pixelFormat,
text,
namePrefix,
network,
solanaMetadata,
gif,
preview_gif,
};
对于前5000张图像,一切顺利,但我不知道为什么在5615时停止,我再次尝试,有时它会产生多一点或少一点的图像。
但实际上有45张图片,在“背景”文件夹中.(不同的图纸相同大小的png的)
在“Shoes”文件夹中实际上有135张图片(不同的图纸,但相同大小的PNG)
我有Windows 10,有很多可用空间,(200 G的)和最新的Node Js版本(v16. 13. 2)我的Hashlips也是最新版本:“1.1.1”。这是我使用的代码的Github Repo:https://github.com/HashLips/hashlips_art_engine
1条答案
按热度按时间hgqdbh6s1#
问题出在这一行:
第一个月
它让密码在10000次不同的DNA尝试后停止
解决方案是建立唯一的DNA监管:
以便代码可以不断尝试组合以达到6075版本