-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we convert CfgNode to yaml file or anyother format? #31
Comments
This works for me (where cfg is a CfgNode):
|
@xl-sr it doesn't work for arrays actually. A: ["a", "b", "c"] isn't loaded the same way when we do what you did. Know any way to fix it? |
@dhaivat666 Can you give a short reproducible snippet? To me, It is able to load the array when using @xl-sr's suggestion. |
Using
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a config node which has certain mode config nodes,
is there anyway I can get a yaml file out of it?
CfgNode({'USE_CUDA': True, 'NO_GPU': False, 'RANDOMIZATION': CfgNode({'SEED': 5}), 'BACKBONE': CfgNode({'MODEL_NAME': 'resnet50', 'RESNET_STOP_LAYER': 4}), 'INPUT': CfgNode({'MEAN': (0.485, 0.456, 0.406), 'STD': (0.229, 0.224, 0.225)}), 'DTYPE': CfgNode({'FLOAT': 'torch.cuda.FloatTensor', 'LONG': 'torch.cuda.LongTensor'}), 'ANCHORS': CfgNode({'ASPECT_RATIOS': (1, 1.5, 2), 'ANCHOR_SCALES': (192, 128, 256), 'N_ANCHORS_PER_LOCATION': 9}), 'RPN': CfgNode({'OUT_CHANNELS': 512, 'LAYER_CHANNELS': (512, 256, 128), 'N_ANCHORS_PER_LOCATION': 9, 'SOFTPLUS_BETA': 1, 'SOFTPLUS_THRESH': 20, 'CONV_MEAN': 0, 'CONV_VAR': 0.01, 'BIAS': 0, 'UNCERTAIN_MEAN': 0, 'UNCERTAIN_VAR': 0.01, 'UNCERTAIN_BIAS': 1.0, 'ACTIVATION_ALPHA': 1}), 'TRAIN': CfgNode({'OPTIM': 'adam', 'LR': 1e-05, 'MOMENTUM': 0.09, 'EPOCHS': 40, 'MILESTONES': (10, 18, 25), 'DSET_SHUFFLE': True, 'BATCH_SIZE': 1, 'FREEZE_BACKBONE': False, 'LR_DECAY': 0.1, 'LR_DECAY_EPOCHS': 50, 'SAVE_MODEL_EPOCHS': 5, 'TRAIN_TYPE': 'probabilistic', 'DATASET_DIVIDE': 0.9, 'NUSCENES_IMAGE_RESIZE_FACTOR': 1.5, 'CLASS_LOSS_SCALE': 5.0, 'FAKE_BATCHSIZE': 27})})
The text was updated successfully, but these errors were encountered: