Commit 1422c428 authored by Julian Dierkes's avatar Julian Dierkes

removed ImgResize Parameter because we have Preprocessing now

parent 87b2c233
Pipeline #223799 failed with stages
in 3 seconds
......@@ -259,8 +259,6 @@ grammar CNNTrain extends de.monticore.lang.monticar.Common2, de.monticore.Number
QNetworkEntry implements ConfigEntry = name:"qnet_name" ":" value:ComponentNameValue;
PreprocessingEntry implements ConfigEntry = name:"preprocessing_name" ":" value:ComponentNameValue;
ImgResizeEntry implements ConfigEntry = name:"img_resize" ":" value:IntegerTupelValue;
// Noise Distribution Creator
NoiseDistributionEntry implements MultiParamConfigEntry = name:"noise_distribution" ":" value:NoiseDistributionValue;
interface NoiseDistributionValue extends MultiParamValue;
......
......@@ -121,8 +121,7 @@ class ParameterAlgorithmMapping {
private static final List<Class> GENERAL_GAN_PARAMETERS = Lists.newArrayList(
ASTDiscriminatorNetworkEntry.class,
ASTQNetworkEntry.class,
ASTNoiseDistributionEntry.class,
ASTImgResizeEntry.class
ASTNoiseDistributionEntry.class
);
ParameterAlgorithmMapping() {
......
......@@ -512,20 +512,6 @@ public class CNNTrainSymbolTableCreator extends CNNTrainSymbolTableCreatorTOP {
configuration.getEntryMap().put(node.getName(), entry);
}
@Override
public void visit(ASTImgResizeEntry node) {
EntrySymbol width_entry = new EntrySymbol(node.getName());
EntrySymbol height_entry = new EntrySymbol(node.getName());
width_entry.setValue(getValueSymbolForInteger(node.getValue().getFirst()));
height_entry.setValue(getValueSymbolForInteger(node.getValue().getSecond()));
addToScopeAndLinkWithNode(width_entry, node);
addToScopeAndLinkWithNode(height_entry, node);
configuration.getEntryMap().put(node.getName() + "_width", width_entry);
configuration.getEntryMap().put(node.getName() + "_height", height_entry);
}
@Override
public void visit(ASTReplayMemoryEntry node) {
processMultiParamConfigVisit(node, node.getValue().getName());
......
......@@ -50,7 +50,4 @@ public class ConfigEntryNameConstants {
public static final String QNETWORK_NAME = "qnet_name";
public static final String PREPROCESSING_NAME = "preprocessing_name";
public static final String NOISE_DISTRIBUTION = "noise_distribution";
public static final String IMG_RESIZE = "img_resize";
public static final String IMG_RESIZE_WIDTH = "img_resize_width";
public static final String IMG_RESIZE_HEIGHT = "img_resize_height";
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment