Comments (3)
Ensure you have properly followed the installation instructions. Make sure you are running the script from inside the virtual environment, and that you have the specified version of torch installed.
from pasta-gan.
I think the problem is the cuda version on your environment is not equal to the requirement 11.0.
See Line1204-1225 on networks.py:
from torch.autograd import Function
from torch.utils.cpp_extension import load
def is_custom_kernel_supported():
version_str = str(torch.version.cuda).split(".")
major = version_str[0]
minor = version_str[1]
return int(major) >= 10 and int(minor) >= 1
if is_custom_kernel_supported():
print("Loading custom kernel...")
module_path = os.path.dirname(__file__)
upfirdn2d_op = load(
'upfirdn2d',
sources=[
os.path.join(module_path, 'upfirdn2d.cpp'),
os.path.join(module_path, 'upfirdn2d_kernel.cu'),
],
verbose=True
)
use_custom_kernel = is_custom_kernel_supported()
if your cuda version satisfied with the condition : int(major) >= 10 and int(minor) >= 1, will go to the above codes.
However, cuda version 11.0 not satisfied with the condition and thus not go to the above codes.
By the way, @alexlevenston2021 I didn't find file upfirdn2d_kernel.cu in the source code? Do I miss compile any thing?
from pasta-gan.
@miibotree please rename PASTA-GAN-main/torch_utils/ops/upfirdn2d.cu to upfirdn2d_kernel.cu it will solve your issue
after solving this issue I stuck in
RuntimeError: Error building extension 'upfirdn2d'
any able to run full code for test?
from pasta-gan.
Related Issues (17)
- pre-trianed model HOT 20
- How to get cloth keypoints files and cloth parsing files in UvitonDatasetV19_test? HOT 3
- runtimeerror given group=1,weight of size [64,42,1,1],expected input[1,60,64,64] to have 42 channels, but got 60 channels instead HOT 6
- Training model from scratch results in incompatibility with the testing script and inferior visual quality after adjustments
- Could you share some preprocessed samples? HOT 1
- modify a Dockerfile
- can you share upper/lower model? not full body HOT 1
- Test--NameError: name 'os' is not defined Now os module is obviously installed and importable in python HOT 2
- Testing on CPU HOT 1
- <<name '__file__' is not defined>> in _src_to_module function
- filename in parsing should be image1_label.png
- result is very bad HOT 7
- Training time HOT 3
- Training issues
- How to get "train_random_mask_acgpn" HOT 5
- dataset download error 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 pasta-gan.