Comments (8)
Hello, onnx doesn't support the .view(..., -1, ...) shape inference that is used in ContextualAttention
.
You can easily replace the -1's as shown here:
L = raw_w.size(2)
raw_w = raw_w.view(raw_int_bs[0], raw_int_bs[1], kernel, kernel, L)
...
w = w.view(int_bs[0], int_bs[1], self.ksize, self.ksize, L)
...
m = m.view(int_ms[0], int_ms[1], self.ksize, self.ksize, L)
from deepfillv2-pytorch.
Hi, your script works for me after the modifications. I get the same error without them. I have attached my networks.py file.
networks.py.txt
from deepfillv2-pytorch.
Hello @nipponjo, I've used your networks.py file but still got the same error. Could you share me your environment you used to convert?
from deepfillv2-pytorch.
Hello, I use the following versions:
fastapi==0.91.0
numpy==1.23.5
Pillow==9.4.0
PyYAML==6.0
torch==1.13.1+cu117
torchvision==0.14.1+cu117
uvicorn==0.20.0
from deepfillv2-pytorch.
@nipponjo Did you install by using pip or conda? And which version of python you used?
from deepfillv2-pytorch.
I installed with pip and use python 3.9.12
from deepfillv2-pytorch.
@nipponjo Thank you, I could export to ONNX successfully.
I'm very appreciate your help.
from deepfillv2-pytorch.
Hi @nipponjo, Could you help me to convert your model to MNN please?
from deepfillv2-pytorch.
Related Issues (20)
- how to generate test masks? HOT 5
- Where can I download the states_tf_places2.pth file? HOT 2
- Questions in the Learning Process HOT 1
- Question about train.yaml HOT 1
- How can i export pytorch model to coreml model
- Error during Core ML conversion
- Grayscale conversion HOT 4
- How to use muti GPU training?
- Pretrained models HOT 1
- Why use a grid during inference but not during training ?
- Is the test.ipynb up-to-date ?
- The object does not get removed but gets filled with noise on running test.py HOT 7
- How to set the train and value folder?
- 系统找不到指定的文件。: 'app/frontend/build/c_hello'
- training time and convergence HOT 8
- Can you please create new CoreML model ? HOT 1
- How to run with cpu? HOT 2
- An error HOT 1
- Why do I train my dataset, the output picture is just masked and not fixed, and 300,000 epochs are trained like this? HOT 1
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 deepfillv2-pytorch.