Comments (1)
I had same problem
usage: custom.py [-h] [--dataset /path/to/custom/dataset/] --weights /path/to/weights.h5 [--logs /path/to/logs/] [--image path or URL to image] [--video path or URL to video] <command> custom.py: error: the following arguments are required: <command>
Then I tried this command
python3 custom.py train --dataset='dataset' --weights=coco
Now I am facing another error
2020-10-13 11:12:25.202133: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory 2020-10-13 11:12:25.202171: E tensorflow/stream_executor/cuda/cuda_driver.cc:313] failed call to cuInit: UNKNOWN ERROR (303) 2020-10-13 11:12:25.202207: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (talha-TravelMate-P246-M): /proc/driver/nvidia/version does not exist 2020-10-13 11:12:25.202435: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA 2020-10-13 11:12:25.228419: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 2394445000 Hz 2020-10-13 11:12:25.228811: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f01dc000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2020-10-13 11:12:25.228851: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version Traceback (most recent call last): File "custom.py", line 326, in <module> model = modellib.MaskRCNN(mode="training", config=config, File "/home/talha/RCNN/car-damage-detector/mrcnn/model.py", line 1837, in __init__ self.keras_model = self.build(mode=mode, config=config) File "/home/talha/RCNN/car-damage-detector/mrcnn/model.py", line 1934, in build anchors = KL.Lambda(lambda x: tf.Variable(anchors), name="anchors")(input_image) File "/home/talha/.local/lib/python3.8/site-packages/tensorflow/python/keras/engine/base_layer.py", line 922, in __call__ outputs = call_fn(cast_inputs, *args, **kwargs) File "/home/talha/.local/lib/python3.8/site-packages/tensorflow/python/keras/layers/core.py", line 889, in call self._check_variables(created_variables, tape.watched_variables()) File "/home/talha/.local/lib/python3.8/site-packages/tensorflow/python/keras/layers/core.py", line 916, in _check_variables raise ValueError(error_str) ValueError: The following Variables were created within a Lambda layer (anchors) but are not tracked by said layer: <tf.Variable 'anchors/Variable:0' shape=(2, 261888, 4) dtype=float32> The layer cannot safely ensure proper Variable reuse across multiple calls, and consquently this behavior is disallowed for safety. Lambda layers are not well suited to stateful computation; instead, writing a subclassed Layer is the recommend way to define layers with Variables.
from car-damage-detector.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from car-damage-detector.