Giter Club home page Giter Club logo

deep-sfm-revisited-annotated's People

Contributors

wavelet-jc avatar

Watchers

 avatar

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)

使用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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.