Use detectron2 model_convert.py to convert the trained mask-rcnn model file .pth to .pb file error - caffe

Colab error message: "Dataset 'fruits_nuts' is not registered! But I use register_coco_instances function registered. Can someone help me? thanks.

Related

Import IFC in Revit using Forge (automatically generate ifc.rvt)

I am trying to automate the import of IFC file in Revit in order to automaticcally generate ifc.rvt files using Forge:
AppBundle & Activity which I want to use
private void ChangeIfcToRev(DesignAutomationData data)
{
Application rvtApp = data.RevitApp;
string modelPath = data.FilePath;
Document doc = rvtApp.OpenIFCDocument(modelPath);
ModelPath path = ModelPathUtils.ConvertUserVisiblePathToModelPath("result.rvt");
doc.SaveAs(path, new SaveAsOptions());
}
Right now everytime I start my Plugin I get this error:
Autodesk.Revit.Exceptions.InvalidOperationException: The document can not be opened.
at Autodesk.Revit.ApplicationServices.Application.OpenDocumentFile(ModelPath modelPath,
OpenOptions openOptions)
at DesignAutomationFramework.DesignAutomationData..ctor(Application revitApp, String
mainModelPath)
at DesignAutomationFramework.DesignAutomationReadyEventArgs..ctor(Application revitApp, String
mainModelPath)
at DesignAutomationFramework.DesignAutomationBridge.SetDesignAutomationReady(Application
revitApp, String mainModelPath)
at RevitCoreEngineTest.RceConsoleApplication.Program.UserMain(CommandLineArgs cl)
Thats really weird because I dont use the OpenDocumentFile function in my code. Im using the OpenIFCDocument function.
Since I didn't get any further, I tried to only resave the ifc file. Same error.
Then I tried to use the samplePlugin from the Forge Tutorial:
https://learnforge.autodesk.io/#/designautomation/appbundle/
The samplePlugin works fine with .rvt files but not with .ifc files. Also there I get an error.
What do I wrong? Thanks for your help!
Possibly, Forge DA for Revit insists on starting up Revit with an RVT input file argument provided. To work with this requirement, you might be able to provide a minimal dummy RVT file as an input argument and simply ignore it, continuing to open your IFC file as a second open document and saving that as RVT just like you are already doing now.
Looking more closely and the instructions to Publish an Activity, I see that the input file is specified in the command line:
"commandLine": [ "$(engine.path)\\\\revitcoreconsole.exe /i \"$(args[rvtFile].path)\" /al \"$(appbundles[DeleteWallsApp].path)\"" ],
What input file are you specifying there?
Can you simply omit it?
I heard back from the development team, and the solution is simpler still.
Just omit the input argument in your commandLine specification:
"commandLine": [ "$(engine.path)\\\\revitcoreconsole.exe /al \"$(appbundles[mybundles].path)\"" ]
This is not new, and most customers probably know it. Still, I agree we can update the Forge docs to explicitly state this usage.

Attempting to import blender json model into three.js, getting a 'length' error

I'm attempting to use a JSON 3D model from Blender, and having it to where it shifts slightly based on mouse/touch movement on the screen.
I'm getting an error of "cannot read property "Length" of undefined, and I'm not finding good documentation of how to load models from Blender into three.js anywhere.
This is my code.
var loader = new THREE.JSONLoader();
loader.load( 'js/Neuron.json', );
https://pastebin.com/wD59mGBu
Any help or even someone pointing me to an online resource to demonstrate a result would be highly appreciated.
The issue was the Json file itself; it was exported without "scene" being chosen as the option. Doing that and setting the importer worked.

Still downloading even Keras has the VGG16 pretrained model in ./keras/models

I tried running the VGG16 keras script.
I get this error:
Downloading data from https://github.com/fchollet/deep-learning-models/releases/download/v0.1/vgg16_weights_tf_dim_ordering_tf_kernels.h5
Traceback (most recent call last):
File "test_imagenet.py", line 40, in
model = VGG16(weights="imagenet")
File "/home/nvidia/deep-learning-models/imagenet-example/vgg16.py", line 143, in VGG16
cache_subdir='models')
File "build/bdist.linux-aarch64/egg/keras/utils/data_utils.py", line 222, in get_file
Exception: URL fetch failure on https://github.com/fchollet/deep-learning-models/releases/download/v0.1/vgg16_weights_tf_dim_ordering_tf_kernels.h5:
I tried to download it manually from here and paste it to ~/.keras/models.
But still, I am getting the same error. Why? I donĀ“t understand the error because the correct model already is in .keras/models.
The default value of include_top parameter in VGG16 function is True. This means if you want to use a full layer pre-trained VGG network (with fully connected parts) you need to download vgg16_weights_tf_dim_ordering_tf_kernels.h5 file, not vgg16_weights_tf_dim_ordering_tf_kernels_notop.h5.

mxGetProperty function in octave

I'm trying to adopt some C-coded matlab module to octave. mkoctave returns batch of warning, but no errors and generates mex file. However octave cannot load this file and returns an error:
error: JustKmodel.m: /home/simulations/exampls/RetinalMap-master/stepFastGlobal.mex:
failed to load: /home/simulations/exampls/RetinalMap-master/stepFastGlobal.mex: undefined symbol: mxGetProperty
As far as I can understand there is no such function GetProperty or library isn't available.
I'll appreciate any ideas how to work around this problem

How to remove error created using cocos2d-x v2.2.3 (Language cpp) for windows phone?

I'm trying to run my Game created using cocos2d-x-v2.2.3 (language cpp) for windows phone. But it shows following error.
error C2440: 'type cast' : cannot convert from 'void (__cdecl StartScene::* )(void)' to 'cocos2d::extension::SEL_CCControlHandler'
If I include pch.h file in all class file above error is removed then new error created. The error is
"Cannot open include file: 'pch.h': No such file or directory"
Though pch.h and pch.cpp are presented in CocosDenshion. In this circumstances what should i do?
Thanks in Advance
i think this because you use wrong function, fowllow this (CCObject::SEL_CCControlHandler)(CCObject, CCControlEvent) so the func you use must have func(CCObject*, CCControlEvent),