deep-sfm-revisited-annotated's People
deep-sfm-revisited-annotated's Issues
[libprotobuf ERROR google/protobuf/descriptor_database.cc:58
[libprotobuf ERROR google/protobuf/descriptor_database.cc:58] File already exists in database: google/protobuf/descriptor.proto
[libprotobuf FATAL google/protobuf/descriptor.cc:1394] CHECK failed: generated_database_->Add(encoded_file_descriptor, size):
Aborted (core dumped)
nvcc fatal : Unknown option '-generate-dependencies-with-compile'
I solved this problem and adopted NguyenVanThanhHust's method
in this link: facebookresearch/detectron2#2909
Refer to NguyenVanThanhHust's comment [on Jul 16, 2021]
this is his method:
In the last line of setup.py, you change from
cmdclass={"build_ext": torch.utils.cpp_extension.BuildExtension},
to
cmdclass={"build_ext": torch.utils.cpp_extension.BuildExtension.with_options(use_ninja=False)},
[关于protobuf报错:If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.]
使用self.photo_aug函数对图像进行增强部分出错
File "/media/lokia/My_Passport/JIANGCHAO/python project/Deep-SfM-Revisited-annotated/KITTI_loader.py", line 421, in __getitem__ image_stack = np.array(self.photo_aug(Image.fromarray(image_stack)), dtype=np.uint8)
TypeError: 'tuple' object is not callable
将出错这行代码
image_stack = np.array(self.photo_aug(Image.fromarray(image_stack)), dtype=np.uint8)
改为
__init__():
fn_idx, b, c, s, h = ColorJitter.get_params((0.8, 1.2), (0.8, 1.2), (0.8, 1.2), (0, 0.1))
self.colorJitter = ColorJitter(b, c, s, h)
__getitem__()
image_stack = np.array(self.colorJitter.forward(Image.fromarray(image_stack)), dtype=np.uint8)
ValueError: cannot resize an array that references or is referenced, in line 102
File "/media/lokia/My_Passport/JIANGCHAO/python project/Deep-SfM-Revisited-annotated/flow_transforms.py", line 102, in __call__
scaled_images = [im.resize((scaled_h, scaled_w)) for im in images] #
File "/media/lokia/My_Passport/JIANGCHAO/python project/Deep-SfM-Revisited-annotated/flow_transforms.py", line 102, in <listcomp>
scaled_images = [im.resize((scaled_h, scaled_w)) for im in images]
ValueError: cannot resize an array that references or is referenced
by another array in this way.
Use the np.resize function or refcheck=False
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.