Coder Social home page Coder Social logo

Comments (11)

WongKinYiu avatar WongKinYiu commented on May 15, 2024 2

you could try https://github.com/JunnYu/mish-cuda

from scaledyolov4.

WongKinYiu avatar WongKinYiu commented on May 15, 2024 1

installation is updated.

from scaledyolov4.

businiaoo avatar businiaoo commented on May 15, 2024 1

when I run:
python setup.py build

Report an error:
ScaledYOLOv4-yolov4-large/mc/csrc/mish_kernel.cu:3:30: fatal error: CUDAApplyUtils.cuh: No such file or directory

Do you know how to solve it?

installation is updated.

Thank you. I made it

from scaledyolov4.

WongKinYiu avatar WongKinYiu commented on May 15, 2024 1

這比較麻煩 得改用pytorch原生程式碼構建mish 但會比較慢也比較吃資源

class Mish(nn.Module):  # https://github.com/digantamisra98/Mish
    def forward(self, x):
        return x * F.softplus(x).tanh()

from scaledyolov4.

BaofengZan avatar BaofengZan commented on May 15, 2024

一样遇到了,不知道是不是需要最新的pytorch

from scaledyolov4.

pingdow avatar pingdow commented on May 15, 2024

一样遇到了

from scaledyolov4.

pingdow avatar pingdow commented on May 15, 2024

installation is updated.

Thank you. I made it

from scaledyolov4.

wuzhenxin1989 avatar wuzhenxin1989 commented on May 15, 2024

csrc/cpu/mish_cpu.obj build\temp.win-amd64-3.8\Release\csrc/cuda/mish_cuda.obj build\temp.win-amd64-3.8\Release\csrc/cuda/mish_kernel.obj /OUT:build\lib.win-amd64-3.8\mish_cuda_C.cp38-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.8\Release\csrc/cpu_C.cp38-win_amd64.lib
正在创建库 build\temp.win-amd64-3.8\Release\csrc/cpu_C.cp38-win_amd64.lib 和对象 build\temp.win-amd64-3.8\Release\csrc/cpu_C.cp38-win_amd64.exp
正在生成代码
已完成代码的生成

model = attempt_load(weights, map_location=device)  # load FP32 model

File "C:\Users\Administrator.SC-201905102106\Desktop\ScaledYOLOv4-yolov4-large\models\experimental.py", line 137, in attempt_load
model.append(torch.load(w, map_location=map_location)['model'].float().fuse().eval()) # load FP32 model
File "D:\Program Files\Anaconda36\envs\yolov52\lib\site-packages\torch\serialization.py", line 593, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "D:\Program Files\Anaconda36\envs\yolov52\lib\site-packages\torch\serialization.py", line 773, in _legacy_load
result = unpickler.load()
ModuleNotFoundError: No module named 'mc.build.lib'

还是报错

from scaledyolov4.

wuzhenxin1989 avatar wuzhenxin1989 commented on May 15, 2024

@WongKinYiu 大佬看下

from scaledyolov4.

WongKinYiu avatar WongKinYiu commented on May 15, 2024

ModuleNotFoundError: No module named 'mc.build.lib'
這裡就是說您沒有mc/build/lib呀

from scaledyolov4.

BaofengZan avatar BaofengZan commented on May 15, 2024

@WongKinYiu 你好,导出onnx时出错:ONNX export failure: ONNX export failed: Couldn't export Python operator MishCudaFunction。这种还需要更改哪一块代码么?

from scaledyolov4.

Related Issues (20)

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.