tidy(ui): remove errant console.logs

This commit is contained in:
psychedelicious 2024-05-09 10:08:36 +10:00 committed by Kent Keirsey
parent 44280ed472
commit adebe639e3
3 changed files with 0 additions and 8 deletions

View File

@ -132,7 +132,6 @@ export const addControlAdapterPreprocessor = (startAppListening: AppStartListeni
dispatch(caLayerIsProcessingImageChanged({ layerId, isProcessingImage: false })); dispatch(caLayerIsProcessingImageChanged({ layerId, isProcessingImage: false }));
} }
} catch (error) { } catch (error) {
console.log(error);
log.error({ enqueueBatchArg: parseify(enqueueBatchArg) }, t('queue.graphFailedToQueue')); log.error({ enqueueBatchArg: parseify(enqueueBatchArg) }, t('queue.graphFailedToQueue'));
dispatch(caLayerIsProcessingImageChanged({ layerId, isProcessingImage: false })); dispatch(caLayerIsProcessingImageChanged({ layerId, isProcessingImage: false }));

View File

@ -455,11 +455,9 @@ const parseLayers: MetadataParseFunc<Layer[]> = async (metadata) => {
try { try {
const controlNetsRaw = await getProperty(metadata, 'controlnets', isArray); const controlNetsRaw = await getProperty(metadata, 'controlnets', isArray);
console.log('controlNetsRaw', controlNetsRaw);
const controlNetsParseResults = await Promise.allSettled( const controlNetsParseResults = await Promise.allSettled(
controlNetsRaw.map(async (cn) => await parseControlNetToControlAdapterLayer(cn)) controlNetsRaw.map(async (cn) => await parseControlNetToControlAdapterLayer(cn))
); );
console.log('controlNetsParseResults', controlNetsParseResults);
const controlNetsAsLayers = controlNetsParseResults const controlNetsAsLayers = controlNetsParseResults
.filter((result): result is PromiseFulfilledResult<ControlAdapterLayer> => result.status === 'fulfilled') .filter((result): result is PromiseFulfilledResult<ControlAdapterLayer> => result.status === 'fulfilled')
.map((result) => result.value); .map((result) => result.value);
@ -470,11 +468,9 @@ const parseLayers: MetadataParseFunc<Layer[]> = async (metadata) => {
try { try {
const t2iAdaptersRaw = await getProperty(metadata, 't2iAdapters', isArray); const t2iAdaptersRaw = await getProperty(metadata, 't2iAdapters', isArray);
console.log('t2iAdaptersRaw', t2iAdaptersRaw);
const t2iAdaptersParseResults = await Promise.allSettled( const t2iAdaptersParseResults = await Promise.allSettled(
t2iAdaptersRaw.map(async (cn) => await parseT2IAdapterToControlAdapterLayer(cn)) t2iAdaptersRaw.map(async (cn) => await parseT2IAdapterToControlAdapterLayer(cn))
); );
console.log('t2iAdaptersParseResults', t2iAdaptersParseResults);
const t2iAdaptersAsLayers = t2iAdaptersParseResults const t2iAdaptersAsLayers = t2iAdaptersParseResults
.filter((result): result is PromiseFulfilledResult<ControlAdapterLayer> => result.status === 'fulfilled') .filter((result): result is PromiseFulfilledResult<ControlAdapterLayer> => result.status === 'fulfilled')
.map((result) => result.value); .map((result) => result.value);
@ -485,11 +481,9 @@ const parseLayers: MetadataParseFunc<Layer[]> = async (metadata) => {
try { try {
const ipAdaptersRaw = await getProperty(metadata, 'ipAdapters', isArray); const ipAdaptersRaw = await getProperty(metadata, 'ipAdapters', isArray);
console.log('ipAdaptersRaw', ipAdaptersRaw);
const ipAdaptersParseResults = await Promise.allSettled( const ipAdaptersParseResults = await Promise.allSettled(
ipAdaptersRaw.map(async (cn) => await parseIPAdapterToIPAdapterLayer(cn)) ipAdaptersRaw.map(async (cn) => await parseIPAdapterToIPAdapterLayer(cn))
); );
console.log('ipAdaptersParseResults', ipAdaptersParseResults);
const ipAdaptersAsLayers = ipAdaptersParseResults const ipAdaptersAsLayers = ipAdaptersParseResults
.filter((result): result is PromiseFulfilledResult<IPAdapterLayer> => result.status === 'fulfilled') .filter((result): result is PromiseFulfilledResult<IPAdapterLayer> => result.status === 'fulfilled')
.map((result) => result.value); .map((result) => result.value);

View File

@ -249,7 +249,6 @@ export const buildGenerationTabGraph = async (state: RootState): Promise<NonNull
const shouldUseHRF = !addedLayers.some((l) => isInitialImageLayer(l) || isRegionalGuidanceLayer(l)); const shouldUseHRF = !addedLayers.some((l) => isInitialImageLayer(l) || isRegionalGuidanceLayer(l));
// High resolution fix. // High resolution fix.
if (state.hrf.hrfEnabled && shouldUseHRF) { if (state.hrf.hrfEnabled && shouldUseHRF) {
console.log('HRFING');
addHrfToGraph(state, graph); addHrfToGraph(state, graph);
} }